bayesianflow-for-chem 2.2.2__tar.gz → 2.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of bayesianflow-for-chem might be problematic. Click here for more details.
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/PKG-INFO +1 -1
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/bayesianflow_for_chem/__init__.py +1 -1
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/bayesianflow_for_chem/cli.py +2 -2
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/bayesianflow_for_chem/model.py +3 -0
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/bayesianflow_for_chem.egg-info/PKG-INFO +1 -1
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/LICENSE +0 -0
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/README.md +0 -0
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/bayesianflow_for_chem/_data/vocab.txt +0 -0
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/bayesianflow_for_chem/data.py +0 -0
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/bayesianflow_for_chem/scorer.py +0 -0
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/bayesianflow_for_chem/spectra.py +0 -0
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/bayesianflow_for_chem/tool.py +0 -0
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/bayesianflow_for_chem/train.py +0 -0
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/bayesianflow_for_chem.egg-info/SOURCES.txt +0 -0
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/bayesianflow_for_chem.egg-info/dependency_links.txt +0 -0
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/bayesianflow_for_chem.egg-info/entry_points.txt +0 -0
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/bayesianflow_for_chem.egg-info/requires.txt +0 -0
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/bayesianflow_for_chem.egg-info/top_level.txt +0 -0
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/pyproject.toml +0 -0
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/setup.cfg +0 -0
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/setup.py +0 -0
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/test/test_cli_plugin.py +0 -0
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/test/test_jit_compatibility.py +0 -0
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/test/test_merge_lora.py +0 -0
- {bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/test/test_molecular_embedding.py +0 -0
|
@@ -569,7 +569,7 @@ def main_script(version: str) -> None:
|
|
|
569
569
|
model = Model(bfn, mlp, scorer)
|
|
570
570
|
model.model.semi_autoregressive = runtime_config["train"]["semi_autoregressive"]
|
|
571
571
|
# ####### strat training #######
|
|
572
|
-
os.environ["
|
|
572
|
+
os.environ["PYTORCH_ALLOC_CONF"] = "max_split_size_mb:128"
|
|
573
573
|
if not runtime_config["train"]["dynamic_padding"]:
|
|
574
574
|
os.environ["MAX_PADDING_LENGTH"] = f"{lmax}" # important!
|
|
575
575
|
torch.set_float32_matmul_precision("medium")
|
|
@@ -696,7 +696,7 @@ def main_script(version: str) -> None:
|
|
|
696
696
|
with open(runtime_config["inference"]["result_file"], "w") as f:
|
|
697
697
|
f.write("\n".join(mols))
|
|
698
698
|
# ------- finished -------
|
|
699
|
-
print("
|
|
699
|
+
print("*" * 25 + " job finished " + "*" * 25)
|
|
700
700
|
print(_END_MESSAGE)
|
|
701
701
|
|
|
702
702
|
|
|
@@ -1171,6 +1171,9 @@ class EnsembleChemBFN(ChemBFN):
|
|
|
1171
1171
|
assert (
|
|
1172
1172
|
isinstance(c, dict) is self._label_is_dict
|
|
1173
1173
|
), f"`c` should be a {'`dict` instance' if self._label_is_dict else '`list` instance'} but got {type(c)} instand."
|
|
1174
|
+
assert len(c) == len(
|
|
1175
|
+
self.models
|
|
1176
|
+
), f"Number of conditions should match the number of LoRA models. We have {len(self.models)} LoRA models but {len(c)} conditions were provided."
|
|
1174
1177
|
out: Dict[str, Tensor] = {}
|
|
1175
1178
|
if isinstance(c, list):
|
|
1176
1179
|
c = dict(zip([f"val_{i}" for i in range(len(c))], c))
|
|
File without changes
|
|
File without changes
|
{bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/bayesianflow_for_chem/_data/vocab.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/bayesianflow_for_chem/spectra.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bayesianflow_for_chem-2.2.2 → bayesianflow_for_chem-2.2.4}/test/test_molecular_embedding.py
RENAMED
|
File without changes
|