molgpao 1.0.0__py3-none-any.whl
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.
- molgpao/__init__.py +46 -0
- molgpao/chemistry/__init__.py +15 -0
- molgpao/chemistry/valence_reconciler.py +945 -0
- molgpao/conditioner.py +190 -0
- molgpao/engine.py +6120 -0
- molgpao/generator/__init__.py +1 -0
- molgpao/generator/condition_contrast.py +17 -0
- molgpao/generator/electronic_constraints.py +18 -0
- molgpao/generator/molecular_state.py +198 -0
- molgpao/generator/octree_backend.py +152 -0
- molgpao/generator/octree_model.py +924 -0
- molgpao/generator/random_streams.py +33 -0
- molgpao/generator/spatial_box.py +64 -0
- molgpao/lora.py +163 -0
- molgpao/octree_process_critic.py +1323 -0
- molgpao/post_tree_refiner.py +549 -0
- molgpao/slots.py +64 -0
- molgpao/vendor/UNI3DAR_LICENSE.txt +21 -0
- molgpao/vendor/__init__.py +1 -0
- molgpao/vendor/flash_attn/__init__.py +3 -0
- molgpao/vendor/flash_attn/flash_attn_interface.py +43 -0
- molgpao/vendor/uni3dar/__init__.py +1 -0
- molgpao/vendor/uni3dar/data/__init__.py +20 -0
- molgpao/vendor/uni3dar/data/atom_data.py +335 -0
- molgpao/vendor/uni3dar/data/atom_dictionary.py +228 -0
- molgpao/vendor/uni3dar/data/base_grid_dataset.py +475 -0
- molgpao/vendor/uni3dar/data/cluster_sample_dataset.py +54 -0
- molgpao/vendor/uni3dar/data/conformer_sample_dataset.py +92 -0
- molgpao/vendor/uni3dar/data/crystal_data_utils.py +342 -0
- molgpao/vendor/uni3dar/data/crystal_grid_dataset.py +98 -0
- molgpao/vendor/uni3dar/data/data_type_dataset.py +18 -0
- molgpao/vendor/uni3dar/data/data_utils.py +153 -0
- molgpao/vendor/uni3dar/data/grid_dataset.py +114 -0
- molgpao/vendor/uni3dar/data/grid_utils.py +191 -0
- molgpao/vendor/uni3dar/data/lmdb_dataset.py +86 -0
- molgpao/vendor/uni3dar/data/protein_grid_dataset.py +48 -0
- molgpao/vendor/uni3dar/inference.py +321 -0
- molgpao/vendor/uni3dar/losses/__init__.py +16 -0
- molgpao/vendor/uni3dar/losses/ar_loss.py +315 -0
- molgpao/vendor/uni3dar/losses/metric_reduce.py +121 -0
- molgpao/vendor/uni3dar/models/__init__.py +1 -0
- molgpao/vendor/uni3dar/models/attention.py +127 -0
- molgpao/vendor/uni3dar/models/autoregressive_prediction_head.py +73 -0
- molgpao/vendor/uni3dar/models/diffusion/__init__.py +47 -0
- molgpao/vendor/uni3dar/models/diffusion/diffusion_utils.py +73 -0
- molgpao/vendor/uni3dar/models/diffusion/gaussian_diffusion.py +877 -0
- molgpao/vendor/uni3dar/models/diffusion/respace.py +129 -0
- molgpao/vendor/uni3dar/models/diffusion_prediction_head.py +387 -0
- molgpao/vendor/uni3dar/models/kv_cache.py +68 -0
- molgpao/vendor/uni3dar/models/layers.py +214 -0
- molgpao/vendor/uni3dar/models/rope.py +71 -0
- molgpao/vendor/uni3dar/models/transformer_encoder.py +125 -0
- molgpao/vendor/uni3dar/models/uni3dar.py +888 -0
- molgpao/vendor/uni3dar/models/uni3dar_sampler.py +993 -0
- molgpao/vendor/uni3dar/tasks/__init__.py +7 -0
- molgpao/vendor/uni3dar/tasks/uni3dar.py +424 -0
- molgpao/vendor/unicore/__init__.py +27 -0
- molgpao/vendor/unicore/data.py +56 -0
- molgpao/vendor/unicore/losses.py +14 -0
- molgpao/vendor/unicore/models.py +27 -0
- molgpao/vendor/unicore/modules.py +39 -0
- molgpao/vendor/unicore/tasks.py +12 -0
- molgpao-1.0.0.dist-info/METADATA +69 -0
- molgpao-1.0.0.dist-info/RECORD +66 -0
- molgpao-1.0.0.dist-info/WHEEL +4 -0
- molgpao-1.0.0.dist-info/licenses/LICENSE +21 -0
molgpao/__init__.py
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""MolGPAO: Standalone Speculative Octree 3D Molecular Generation Engine."""
|
|
2
|
+
|
|
3
|
+
from .chemistry.valence_reconciler import ValenceReconciler
|
|
4
|
+
from .conditioner import LoomConditioner
|
|
5
|
+
from .engine import LoomUni3DARGenerator
|
|
6
|
+
from .lora import LoRALinear, inject_uni3dar_lora, inject_xyz_head_lora
|
|
7
|
+
from .octree_process_critic import (
|
|
8
|
+
NUM_COARSE_GEOM_FEATS,
|
|
9
|
+
NUM_ELEM_CLOUD_FEATS,
|
|
10
|
+
OctreeElementProcessCritic,
|
|
11
|
+
OctreeProcessCritic,
|
|
12
|
+
TwoStageOctreeProcessCritic,
|
|
13
|
+
compute_element_cloud_features,
|
|
14
|
+
fit_octree_element_process_critic,
|
|
15
|
+
fit_octree_process_critic,
|
|
16
|
+
)
|
|
17
|
+
from .post_tree_refiner import PostTreeGraphRefiner, fit_post_tree_graph_refiner
|
|
18
|
+
from .slots import GeneratorSlot, resolve_effort_candidates
|
|
19
|
+
|
|
20
|
+
MolGPAOEngine = LoomUni3DARGenerator
|
|
21
|
+
Uni3DARMolEngine = MolGPAOEngine
|
|
22
|
+
|
|
23
|
+
__version__ = "1.0.0"
|
|
24
|
+
|
|
25
|
+
__all__ = [
|
|
26
|
+
"MolGPAOEngine",
|
|
27
|
+
"Uni3DARMolEngine",
|
|
28
|
+
"LoomUni3DARGenerator",
|
|
29
|
+
"LoomConditioner",
|
|
30
|
+
"LoRALinear",
|
|
31
|
+
"inject_uni3dar_lora",
|
|
32
|
+
"inject_xyz_head_lora",
|
|
33
|
+
"NUM_COARSE_GEOM_FEATS",
|
|
34
|
+
"NUM_ELEM_CLOUD_FEATS",
|
|
35
|
+
"OctreeProcessCritic",
|
|
36
|
+
"OctreeElementProcessCritic",
|
|
37
|
+
"TwoStageOctreeProcessCritic",
|
|
38
|
+
"compute_element_cloud_features",
|
|
39
|
+
"fit_octree_process_critic",
|
|
40
|
+
"fit_octree_element_process_critic",
|
|
41
|
+
"PostTreeGraphRefiner",
|
|
42
|
+
"fit_post_tree_graph_refiner",
|
|
43
|
+
"ValenceReconciler",
|
|
44
|
+
"GeneratorSlot",
|
|
45
|
+
"resolve_effort_candidates",
|
|
46
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""Chemistry validation and 3D neutral-valence reconciliation utilities for `Loom`."""
|
|
2
|
+
|
|
3
|
+
from .valence_reconciler import (
|
|
4
|
+
ReconciliationResult,
|
|
5
|
+
ValenceReconciler,
|
|
6
|
+
reconcile_3d_point_cloud,
|
|
7
|
+
reconcile_trajectory_batch,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"ReconciliationResult",
|
|
12
|
+
"ValenceReconciler",
|
|
13
|
+
"reconcile_3d_point_cloud",
|
|
14
|
+
"reconcile_trajectory_batch",
|
|
15
|
+
]
|