ai-loom 2.0.0__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.
- ai_loom-2.0.0/.gitignore +46 -0
- ai_loom-2.0.0/LICENSE +21 -0
- ai_loom-2.0.0/PKG-INFO +97 -0
- ai_loom-2.0.0/README.md +35 -0
- ai_loom-2.0.0/configs/tasks/oe62_orbital_synthesizable.yaml +59 -0
- ai_loom-2.0.0/configs/tasks/oe62_orbital_weaving.yaml +47 -0
- ai_loom-2.0.0/pyproject.toml +128 -0
- ai_loom-2.0.0/scripts/check_wheel.py +28 -0
- ai_loom-2.0.0/src/loom/__init__.py +3 -0
- ai_loom-2.0.0/src/loom/chemistry/__init__.py +15 -0
- ai_loom-2.0.0/src/loom/chemistry/valence_reconciler.py +945 -0
- ai_loom-2.0.0/src/loom/cli.py +29 -0
- ai_loom-2.0.0/src/loom/compat/hyff/LICENSE.txt +259 -0
- ai_loom-2.0.0/src/loom/compat/hyff/NOTICE.txt +6 -0
- ai_loom-2.0.0/src/loom/compat/hyff/__init__.py +30 -0
- ai_loom-2.0.0/src/loom/compat/hyff/api.py +294 -0
- ai_loom-2.0.0/src/loom/compat/hyff/batch/__init__.py +0 -0
- ai_loom-2.0.0/src/loom/compat/hyff/batch/base.py +281 -0
- ai_loom-2.0.0/src/loom/compat/hyff/batch/collection.py +401 -0
- ai_loom-2.0.0/src/loom/compat/hyff/batch/geometry_axiswise.py +113 -0
- ai_loom-2.0.0/src/loom/compat/hyff/batch/geometry_gpu.py +136 -0
- ai_loom-2.0.0/src/loom/compat/hyff/batch/geometry_vectorized.py +107 -0
- ai_loom-2.0.0/src/loom/compat/hyff/batch/latent_charge_pairs.py +105 -0
- ai_loom-2.0.0/src/loom/compat/hyff/batch/latent_charge_pool.py +82 -0
- ai_loom-2.0.0/src/loom/compat/hyff/batch/native.py +153 -0
- ai_loom-2.0.0/src/loom/compat/hyff/batch/native_dense.py +254 -0
- ai_loom-2.0.0/src/loom/compat/hyff/batch/native_efm.py +230 -0
- ai_loom-2.0.0/src/loom/compat/hyff/batch/native_presto.py +291 -0
- ai_loom-2.0.0/src/loom/compat/hyff/batch/pool.py +121 -0
- ai_loom-2.0.0/src/loom/compat/hyff/batch/reference.py +38 -0
- ai_loom-2.0.0/src/loom/compat/hyff/checkpoints/andante/weights.json +158 -0
- ai_loom-2.0.0/src/loom/compat/hyff/checkpoints/index.json +138 -0
- ai_loom-2.0.0/src/loom/compat/hyff/checkpoints/largo/weights.json +156 -0
- ai_loom-2.0.0/src/loom/compat/hyff/checkpoints/moderato/weights.json +123 -0
- ai_loom-2.0.0/src/loom/compat/hyff/checkpoints/presto/weights.json +119 -0
- ai_loom-2.0.0/src/loom/compat/hyff/checkpoints/vivace/weights.json +121 -0
- ai_loom-2.0.0/src/loom/compat/hyff/data.py +125 -0
- ai_loom-2.0.0/src/loom/compat/hyff/download.py +159 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/__init__.py +0 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/__init__.py +0 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/andante.py +192 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/base_port.py +288 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/capacity.py +69 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/compaction.py +49 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/compile_policy.py +37 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/dynamic_shapes.py +80 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/edge_growth.py +106 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/efm_engine.py +495 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/efm_port.py +230 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/efm_port_dynamic.py +283 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/efm_port_grouped.py +77 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/efm_tiling.py +146 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/expert_storage_alias.py +156 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/fp64_conservation.py +75 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/largo.py +198 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/long_range.py +134 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/native_activation.py +133 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/native_activation_backend.py +125 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/native_activation_state.py +120 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/partial_tiling.py +44 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/capture/tiled_recompute.py +161 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/compiler_budget.py +78 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/dispatch.py +260 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/force_engine.py +465 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/native/__init__.py +0 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/native/base_adapter.py +190 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/native/base_forward.py +138 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/native/centered_fp32.py +42 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/native/efm_native.py +469 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/native/fast_csr.py +350 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/native/frozen_nodes.py +248 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/native/frozen_nodes_forward.py +137 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/native/moderato.py +401 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/native/moderato_forward.py +137 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/native/pair_radial_execution.py +137 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/native/presto.py +476 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/native/presto_messages.py +147 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/native/presto_nodes.py +562 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/native/radius_variants.py +76 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/native/vivace.py +526 -0
- ai_loom-2.0.0/src/loom/compat/hyff/engines/reference.py +208 -0
- ai_loom-2.0.0/src/loom/compat/hyff/graph.py +304 -0
- ai_loom-2.0.0/src/loom/compat/hyff/io.py +170 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/__init__.py +0 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/compact_pair_messages.py +137 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/efm_blocked.py +56 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/efm_rotated.py +119 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/eight_channel_messages.py +341 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/fused_element_experts.py +208 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/fused_linear.py +267 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/fused_messages.py +612 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/grouped_experts.py +180 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/joined_linear.py +69 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/layernorm.py +125 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/layernorm_fp32.py +125 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/layernorm_fp64.py +123 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/local_features_fp32.py +296 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/local_features_fp64.py +295 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/long_range/__init__.py +1 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/long_range/backends.py +403 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/long_range/codegen.py +190 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/long_range/dense.py +158 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/long_range/pair_function.py +54 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/long_range/spme.py +429 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/long_range/tree.py +394 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/message_tiles.py +83 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/pair_energy.py +85 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/pair_energy_species.py +46 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/pair_messages.py +323 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/pair_messages_reference.py +96 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/radial_table.py +129 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/sparse_experts.py +251 -0
- ai_loom-2.0.0/src/loom/compat/hyff/kernels/tensor_vjp.py +124 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/__init__.py +0 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/angular_branch.py +258 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/base_model.py +49 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/charge_bound.py +116 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/edge_frame_mixing.py +433 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/efm_backbone.py +583 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/efm_model.py +123 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/electronic_embedding.py +190 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/element_forward.py +132 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/element_model.py +229 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/experts.py +243 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/factory.py +236 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/family_reference.py +60 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/isotropic_outer.py +108 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/l2_chunked_reference.py +68 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/l2_potential.py +953 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/latent_charge_model.py +174 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/latent_charges.py +67 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/pair_radials.py +190 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/pair_radials_io.py +12 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/radial_capacity.py +84 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/scalar_expert_capacity.py +155 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/scalar_refresh.py +105 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/stabilized.py +227 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/state_forward.py +129 -0
- ai_loom-2.0.0/src/loom/compat/hyff/models/state_model.py +98 -0
- ai_loom-2.0.0/src/loom/compat/hyff/registry.py +263 -0
- ai_loom-2.0.0/src/loom/compat/hyff/weights.py +206 -0
- ai_loom-2.0.0/src/loom/compat/unimol2/LICENSE.txt +21 -0
- ai_loom-2.0.0/src/loom/compat/unimol2/NOTICE.txt +3 -0
- ai_loom-2.0.0/src/loom/compat/unimol2/__init__.py +1 -0
- ai_loom-2.0.0/src/loom/compat/unimol2/layers.py +651 -0
- ai_loom-2.0.0/src/loom/compat/unimol2/runtime.py +57 -0
- ai_loom-2.0.0/src/loom/compat/unimol2/transformer_encoder_with_pair.py +92 -0
- ai_loom-2.0.0/src/loom/compat/unimol2/unimol2.py +544 -0
- ai_loom-2.0.0/src/loom/compat/unimol2/upstream.json +9 -0
- ai_loom-2.0.0/src/loom/constraints.py +117 -0
- ai_loom-2.0.0/src/loom/flowmol/__init__.py +104 -0
- ai_loom-2.0.0/src/loom/flowmol/constants.py +455 -0
- ai_loom-2.0.0/src/loom/flowmol/data.py +570 -0
- ai_loom-2.0.0/src/loom/flowmol/gvp.py +470 -0
- ai_loom-2.0.0/src/loom/flowmol/model.py +1162 -0
- ai_loom-2.0.0/src/loom/flowmol/priors.py +133 -0
- ai_loom-2.0.0/src/loom/flowmol/scheduler.py +146 -0
- ai_loom-2.0.0/src/loom/generator/__init__.py +17 -0
- ai_loom-2.0.0/src/loom/generator/condition_contrast.py +17 -0
- ai_loom-2.0.0/src/loom/generator/electronic_constraints.py +18 -0
- ai_loom-2.0.0/src/loom/generator/molecular_state.py +198 -0
- ai_loom-2.0.0/src/loom/generator/octree_alignment.py +390 -0
- ai_loom-2.0.0/src/loom/generator/octree_backend.py +152 -0
- ai_loom-2.0.0/src/loom/generator/octree_model.py +924 -0
- ai_loom-2.0.0/src/loom/generator/random_streams.py +33 -0
- ai_loom-2.0.0/src/loom/generator/spatial_box.py +64 -0
- ai_loom-2.0.0/src/loom/generator/supervised_weights.py +18 -0
- ai_loom-2.0.0/src/loom/oracles/__init__.py +12 -0
- ai_loom-2.0.0/src/loom/oracles/applicability.py +49 -0
- ai_loom-2.0.0/src/loom/oracles/base.py +50 -0
- ai_loom-2.0.0/src/loom/oracles/dpa4_oracle.py +477 -0
- ai_loom-2.0.0/src/loom/oracles/fingerprint_oracle.py +153 -0
- ai_loom-2.0.0/src/loom/oracles/graph_features.py +27 -0
- ai_loom-2.0.0/src/loom/oracles/unimol2_oracle.py +116 -0
- ai_loom-2.0.0/src/loom/oracles/unimol2_task.py +100 -0
- ai_loom-2.0.0/src/loom/oracles/unimol_oracle.py +396 -0
- ai_loom-2.0.0/src/loom/oracles/uniqsar_oracle.py +1112 -0
- ai_loom-2.0.0/src/loom/physics/__init__.py +5 -0
- ai_loom-2.0.0/src/loom/physics/batched_relaxer.py +161 -0
- ai_loom-2.0.0/src/loom/physics/conformer_relaxer.py +178 -0
- ai_loom-2.0.0/src/loom/physics/dpa_forcefield.py +397 -0
- ai_loom-2.0.0/src/loom/physics/factory.py +13 -0
- ai_loom-2.0.0/src/loom/physics/hyff_forcefield.py +481 -0
- ai_loom-2.0.0/src/loom/physics/standard_relaxer.py +84 -0
- ai_loom-2.0.0/src/loom/quantum/__init__.py +1 -0
- ai_loom-2.0.0/src/loom/quantum/gpu_engine.py +21 -0
- ai_loom-2.0.0/src/loom/utils/__init__.py +25 -0
- ai_loom-2.0.0/src/loom/utils/conformers.py +42 -0
- ai_loom-2.0.0/src/loom/utils/dataset_io.py +189 -0
- ai_loom-2.0.0/src/loom/utils/molecular_identity.py +32 -0
- ai_loom-2.0.0/src/loom/utils/oe62.py +88 -0
- ai_loom-2.0.0/src/loom/utils/reproducibility.py +80 -0
- ai_loom-2.0.0/src/loom/utils/run_evidence.py +62 -0
- ai_loom-2.0.0/src/loom/vendor/UNI3DAR_LICENSE.txt +21 -0
- ai_loom-2.0.0/src/loom/vendor/__init__.py +1 -0
- ai_loom-2.0.0/src/loom/vendor/flash_attn/__init__.py +3 -0
- ai_loom-2.0.0/src/loom/vendor/flash_attn/flash_attn_interface.py +43 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/__init__.py +1 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/data/__init__.py +20 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/data/atom_data.py +335 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/data/atom_dictionary.py +228 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/data/base_grid_dataset.py +475 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/data/cluster_sample_dataset.py +54 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/data/conformer_sample_dataset.py +92 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/data/crystal_data_utils.py +342 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/data/crystal_grid_dataset.py +98 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/data/data_type_dataset.py +18 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/data/data_utils.py +153 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/data/grid_dataset.py +114 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/data/grid_utils.py +191 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/data/lmdb_dataset.py +86 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/data/protein_grid_dataset.py +48 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/inference.py +321 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/losses/__init__.py +16 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/losses/ar_loss.py +315 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/losses/metric_reduce.py +121 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/models/__init__.py +1 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/models/attention.py +127 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/models/autoregressive_prediction_head.py +73 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/models/diffusion/__init__.py +47 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/models/diffusion/diffusion_utils.py +73 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/models/diffusion/gaussian_diffusion.py +877 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/models/diffusion/respace.py +129 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/models/diffusion_prediction_head.py +387 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/models/kv_cache.py +68 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/models/layers.py +214 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/models/rope.py +71 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/models/transformer_encoder.py +125 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/models/uni3dar.py +888 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/models/uni3dar_sampler.py +993 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/tasks/__init__.py +7 -0
- ai_loom-2.0.0/src/loom/vendor/uni3dar/tasks/uni3dar.py +424 -0
- ai_loom-2.0.0/src/loom/vendor/unicore/__init__.py +27 -0
- ai_loom-2.0.0/src/loom/vendor/unicore/data.py +56 -0
- ai_loom-2.0.0/src/loom/vendor/unicore/losses.py +14 -0
- ai_loom-2.0.0/src/loom/vendor/unicore/models.py +27 -0
- ai_loom-2.0.0/src/loom/vendor/unicore/modules.py +39 -0
- ai_loom-2.0.0/src/loom/vendor/unicore/tasks.py +12 -0
- ai_loom-2.0.0/src/loom/weaving/__init__.py +151 -0
- ai_loom-2.0.0/src/loom/weaving/conditioner.py +190 -0
- ai_loom-2.0.0/src/loom/weaving/critic_bus.py +511 -0
- ai_loom-2.0.0/src/loom/weaving/flowmol_slot.py +1013 -0
- ai_loom-2.0.0/src/loom/weaving/gp_atlas.py +687 -0
- ai_loom-2.0.0/src/loom/weaving/grpo.py +1143 -0
- ai_loom-2.0.0/src/loom/weaving/lora.py +163 -0
- ai_loom-2.0.0/src/loom/weaving/metrics.py +163 -0
- ai_loom-2.0.0/src/loom/weaving/octree_process_critic.py +1323 -0
- ai_loom-2.0.0/src/loom/weaving/post_tree_refiner.py +549 -0
- ai_loom-2.0.0/src/loom/weaving/registry.py +1107 -0
- ai_loom-2.0.0/src/loom/weaving/rsi.py +692 -0
- ai_loom-2.0.0/src/loom/weaving/service.py +852 -0
- ai_loom-2.0.0/src/loom/weaving/slots.py +599 -0
- ai_loom-2.0.0/src/loom/weaving/spec.py +299 -0
- ai_loom-2.0.0/src/loom/weaving/uni3dar_slot.py +6142 -0
- ai_loom-2.0.0/tests/conftest.py +7 -0
- ai_loom-2.0.0/tests/fixtures/connectivity_drift.json +333 -0
- ai_loom-2.0.0/tests/fixtures/inferred_stereo_cleanup.json +127 -0
- ai_loom-2.0.0/tests/test_batched_relaxation.py +99 -0
- ai_loom-2.0.0/tests/test_contracts.py +402 -0
- ai_loom-2.0.0/tests/test_flowmol_foundation.py +471 -0
- ai_loom-2.0.0/tests/test_generator_hotswap_and_awr.py +354 -0
- ai_loom-2.0.0/tests/test_hyff_descriptors.py +43 -0
- ai_loom-2.0.0/tests/test_kv_cache.py +41 -0
- ai_loom-2.0.0/tests/test_loom_service_and_nd_rsi.py +468 -0
- ai_loom-2.0.0/tests/test_loom_v2_platform_and_rsi.py +643 -0
- ai_loom-2.0.0/tests/test_loom_weaving.py +483 -0
- ai_loom-2.0.0/tests/test_octree_process_critic.py +1004 -0
- ai_loom-2.0.0/tests/test_oe62.py +43 -0
- ai_loom-2.0.0/tests/test_qm9_scheme2_invariance_and_cfg.py +139 -0
- ai_loom-2.0.0/tests/test_standard_relaxer.py +43 -0
- ai_loom-2.0.0/tests/test_unimol2_contracts.py +44 -0
- ai_loom-2.0.0/tests/test_unimol2_task.py +24 -0
- ai_loom-2.0.0/tests/test_unimol_contracts.py +104 -0
- ai_loom-2.0.0/tests/test_unimol_encoder_dropout.py +16 -0
ai_loom-2.0.0/.gitignore
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.py[cod]
|
|
3
|
+
*$py.class
|
|
4
|
+
*.so
|
|
5
|
+
build/
|
|
6
|
+
dist/
|
|
7
|
+
*.egg-info/
|
|
8
|
+
.venv/
|
|
9
|
+
venv/
|
|
10
|
+
.pytest_cache/
|
|
11
|
+
.ruff_cache/
|
|
12
|
+
.DS_Store
|
|
13
|
+
.idea/
|
|
14
|
+
.vscode/
|
|
15
|
+
|
|
16
|
+
# Large local weights, external reference repos, and raw datasets
|
|
17
|
+
pretrained/
|
|
18
|
+
weights/
|
|
19
|
+
external/
|
|
20
|
+
/dataset/
|
|
21
|
+
/checkpoints/
|
|
22
|
+
outputs/
|
|
23
|
+
*.pt
|
|
24
|
+
*.pth
|
|
25
|
+
*.ckpt
|
|
26
|
+
*.safetensors
|
|
27
|
+
*.pb
|
|
28
|
+
*.onnx
|
|
29
|
+
*.fm118
|
|
30
|
+
*.mgpf
|
|
31
|
+
*.u3m
|
|
32
|
+
*.mgpao
|
|
33
|
+
*.dpa4
|
|
34
|
+
*.hyff
|
|
35
|
+
*.loom_lora
|
|
36
|
+
*.loom_oracle
|
|
37
|
+
|
|
38
|
+
# LaTeX build intermediates
|
|
39
|
+
paper/*.aux
|
|
40
|
+
paper/*.blg
|
|
41
|
+
paper/*.fdb_latexmk
|
|
42
|
+
paper/*.fls
|
|
43
|
+
paper/*.log
|
|
44
|
+
paper/*.out
|
|
45
|
+
paper/*.synctex.gz
|
|
46
|
+
/paper/build/
|
ai_loom-2.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Shangqian Chen, Guojiang Zhao, Zheng Cheng, Jiankun Wang, Hongshuai Wang, Zhifeng Gao
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
ai_loom-2.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: ai-loom
|
|
3
|
+
Version: 2.0.0
|
|
4
|
+
Summary: Loom: Predictor-Agnostic 3-Layer Weaving & Grounded RSI Platform for Calibrated 3D Molecular Generation
|
|
5
|
+
Project-URL: Homepage, https://github.com/ShangChien/loom
|
|
6
|
+
Project-URL: Repository, https://github.com/ShangChien/loom
|
|
7
|
+
Project-URL: Issues, https://github.com/ShangChien/loom/issues
|
|
8
|
+
Author: Guojiang Zhao, Zheng Cheng, Jiankun Wang, Hongshuai Wang, Zhifeng Gao
|
|
9
|
+
Author-email: Shangqian Chen <chensq@dp.tech>
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: 3d-molecular-generation,dpa-4,grpo,hyff,mlip,octree-autoregression,uni-3dar,uni-qsar,unimol
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering :: Chemistry
|
|
20
|
+
Requires-Python: <3.13,>=3.11
|
|
21
|
+
Requires-Dist: ase>=3.22.0
|
|
22
|
+
Requires-Dist: joblib>=1.3.0
|
|
23
|
+
Requires-Dist: numpy<2.0.0,>=1.26.0
|
|
24
|
+
Requires-Dist: pandas>=2.0.0
|
|
25
|
+
Requires-Dist: pyyaml>=6.0
|
|
26
|
+
Requires-Dist: rdkit>=2022.9.5
|
|
27
|
+
Requires-Dist: safetensors>=0.4.0
|
|
28
|
+
Requires-Dist: scikit-learn>=1.3.0
|
|
29
|
+
Requires-Dist: scipy>=1.11.0
|
|
30
|
+
Requires-Dist: torch==2.7.1
|
|
31
|
+
Provides-Extra: deepmd
|
|
32
|
+
Requires-Dist: deepmd-kit==3.2.0; extra == 'deepmd'
|
|
33
|
+
Requires-Dist: e3nn==0.5.9; extra == 'deepmd'
|
|
34
|
+
Requires-Dist: nvalchemi-toolkit-ops==0.3.1; (sys_platform == 'linux') and extra == 'deepmd'
|
|
35
|
+
Requires-Dist: vesin[torch]; (sys_platform != 'linux') and extra == 'deepmd'
|
|
36
|
+
Requires-Dist: warp-lang==1.10.1; extra == 'deepmd'
|
|
37
|
+
Provides-Extra: dev
|
|
38
|
+
Requires-Dist: pytest>=8.0.0; extra == 'dev'
|
|
39
|
+
Requires-Dist: ruff>=0.4.0; extra == 'dev'
|
|
40
|
+
Provides-Extra: hyff
|
|
41
|
+
Requires-Dist: nvalchemi-toolkit-ops==0.3.1; (sys_platform == 'linux') and extra == 'hyff'
|
|
42
|
+
Requires-Dist: safetensors>=0.4.0; extra == 'hyff'
|
|
43
|
+
Requires-Dist: triton>=3.3.0; (sys_platform == 'linux') and extra == 'hyff'
|
|
44
|
+
Requires-Dist: warp-lang==1.10.1; extra == 'hyff'
|
|
45
|
+
Provides-Extra: octree
|
|
46
|
+
Requires-Dist: lmdb>=1.4; extra == 'octree'
|
|
47
|
+
Requires-Dist: numba>=0.59; extra == 'octree'
|
|
48
|
+
Requires-Dist: tqdm>=4.66; extra == 'octree'
|
|
49
|
+
Provides-Extra: quantum
|
|
50
|
+
Requires-Dist: geometric==1.1; extra == 'quantum'
|
|
51
|
+
Requires-Dist: pyscf-dispersion==1.3.0; (platform_machine == 'x86_64') and extra == 'quantum'
|
|
52
|
+
Requires-Dist: pyscf==2.12.1; extra == 'quantum'
|
|
53
|
+
Provides-Extra: quantum-gpu
|
|
54
|
+
Requires-Dist: cupy-cuda12x==13.4.1; (sys_platform == 'linux') and extra == 'quantum-gpu'
|
|
55
|
+
Requires-Dist: cutensor-cu12==2.2.0; (sys_platform == 'linux') and extra == 'quantum-gpu'
|
|
56
|
+
Requires-Dist: geometric==1.1; extra == 'quantum-gpu'
|
|
57
|
+
Requires-Dist: gpu4pyscf-cuda12x==1.9.1; (sys_platform == 'linux') and extra == 'quantum-gpu'
|
|
58
|
+
Requires-Dist: gpu4pyscf-libxc-cuda12x==0.9.0; (sys_platform == 'linux') and extra == 'quantum-gpu'
|
|
59
|
+
Requires-Dist: pyscf-dispersion==1.3.0; (platform_machine == 'x86_64') and extra == 'quantum-gpu'
|
|
60
|
+
Requires-Dist: pyscf==2.12.1; extra == 'quantum-gpu'
|
|
61
|
+
Description-Content-Type: text/markdown
|
|
62
|
+
|
|
63
|
+
# Loom (`ai-loom` v2.0)
|
|
64
|
+
|
|
65
|
+
**Predictor-Agnostic 3D Molecular Weaving with Dual-Track Valence Purity and Grounded Recursive Self-Improvement**
|
|
66
|
+
|
|
67
|
+
`Loom` is a four-layer, predictor-agnostic 3D molecular weaving and Self-Driving Lab (SDL) platform that composes plug-and-play generative 3D backbones (`MolGPAO`, `MolGPF`, `PropMolFlow`), arbitrary external property predictors (`Uni-Mol2`, `Uni-Mol`, QSAR, analytical rules), hot-swappable MLIPs (`DPA-4`, `HyFF`), and epistemic GP calibration (`GPAtlas` + live `GPU4PySCF`) into a closed-loop inverse design system.
|
|
68
|
+
|
|
69
|
+
## Installation
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
pip install ai-loom
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
*(PyPI distribution name is `ai-loom`; Python import remains `import loom` and CLI remains `loom`.)*
|
|
76
|
+
|
|
77
|
+
## Related Repositories
|
|
78
|
+
|
|
79
|
+
- **[`molgpao`](https://github.com/ShangChien/molgpao)**: Standalone zero-Loom `MolGPAO` octree 3D generator & paper (`pip install molgpao`).
|
|
80
|
+
- **[`molgpf`](https://github.com/ShangChien/molgpf)**: Standalone `MolGPF` periodic-table-wide (118-element) generative pre-trained flow foundation model & paper (`pip install molgpf`).
|
|
81
|
+
- **[`molgen-rs`](https://github.com/ShangChien/molgen-rs)**: Unified client-side Rust + WebGPU (`Metal / Vulkan / DX12 / Browser WASM`) inference, MLIP relaxation/MD, fine-tuning engine & browser workbench.
|
|
82
|
+
|
|
83
|
+
## Architecture Overview
|
|
84
|
+
|
|
85
|
+
1. **Layers 1–2 (`PredictorAsset` & `CompositeCriticBus`)**: Declarative YAML task specification (`configs/tasks/`), zero-retrain `29-D` `ResidualCalibratedAsset`, and hot-swappable `PotentialSlot` (`DPA-4` / `HyFF`).
|
|
86
|
+
2. **Layer 3 (`GeneratorSlot`, `TopoGRPO` & Dual-Track Valence Purity)**: Hot-swappable autoregressive (`LoomUni3DARGenerator`) and flow-matching (`LoomFlowMolGenerator`) backbones, scale-decoupled `TopoGRPO`, and zero-heavy-displacement `ValenceReconciler` (`RMSD_heavy = 0.0000 Å`).
|
|
87
|
+
3. **Layer 4 (`GPAtlas` & Grounded RSI)**: Heteroscedastic `1D/2D` reachability atlas separating `INNER_UNDEREXPLORED`, `OUTER_BLINDSPOT`, `PRIOR_CEILING`, and `CONVERGED` regimes with live `GPU4PySCF PBE0/def2-TZVP` outer calibration.
|
|
88
|
+
|
|
89
|
+
## Quick Verification
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
# Run test suite
|
|
93
|
+
.venv/bin/pytest -q
|
|
94
|
+
|
|
95
|
+
# Recompile Loom arXiv manuscript
|
|
96
|
+
(cd paper && tectonic -X compile main.tex)
|
|
97
|
+
```
|
ai_loom-2.0.0/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Loom (`ai-loom` v2.0)
|
|
2
|
+
|
|
3
|
+
**Predictor-Agnostic 3D Molecular Weaving with Dual-Track Valence Purity and Grounded Recursive Self-Improvement**
|
|
4
|
+
|
|
5
|
+
`Loom` is a four-layer, predictor-agnostic 3D molecular weaving and Self-Driving Lab (SDL) platform that composes plug-and-play generative 3D backbones (`MolGPAO`, `MolGPF`, `PropMolFlow`), arbitrary external property predictors (`Uni-Mol2`, `Uni-Mol`, QSAR, analytical rules), hot-swappable MLIPs (`DPA-4`, `HyFF`), and epistemic GP calibration (`GPAtlas` + live `GPU4PySCF`) into a closed-loop inverse design system.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pip install ai-loom
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
*(PyPI distribution name is `ai-loom`; Python import remains `import loom` and CLI remains `loom`.)*
|
|
14
|
+
|
|
15
|
+
## Related Repositories
|
|
16
|
+
|
|
17
|
+
- **[`molgpao`](https://github.com/ShangChien/molgpao)**: Standalone zero-Loom `MolGPAO` octree 3D generator & paper (`pip install molgpao`).
|
|
18
|
+
- **[`molgpf`](https://github.com/ShangChien/molgpf)**: Standalone `MolGPF` periodic-table-wide (118-element) generative pre-trained flow foundation model & paper (`pip install molgpf`).
|
|
19
|
+
- **[`molgen-rs`](https://github.com/ShangChien/molgen-rs)**: Unified client-side Rust + WebGPU (`Metal / Vulkan / DX12 / Browser WASM`) inference, MLIP relaxation/MD, fine-tuning engine & browser workbench.
|
|
20
|
+
|
|
21
|
+
## Architecture Overview
|
|
22
|
+
|
|
23
|
+
1. **Layers 1–2 (`PredictorAsset` & `CompositeCriticBus`)**: Declarative YAML task specification (`configs/tasks/`), zero-retrain `29-D` `ResidualCalibratedAsset`, and hot-swappable `PotentialSlot` (`DPA-4` / `HyFF`).
|
|
24
|
+
2. **Layer 3 (`GeneratorSlot`, `TopoGRPO` & Dual-Track Valence Purity)**: Hot-swappable autoregressive (`LoomUni3DARGenerator`) and flow-matching (`LoomFlowMolGenerator`) backbones, scale-decoupled `TopoGRPO`, and zero-heavy-displacement `ValenceReconciler` (`RMSD_heavy = 0.0000 Å`).
|
|
25
|
+
3. **Layer 4 (`GPAtlas` & Grounded RSI)**: Heteroscedastic `1D/2D` reachability atlas separating `INNER_UNDEREXPLORED`, `OUTER_BLINDSPOT`, `PRIOR_CEILING`, and `CONVERGED` regimes with live `GPU4PySCF PBE0/def2-TZVP` outer calibration.
|
|
26
|
+
|
|
27
|
+
## Quick Verification
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
# Run test suite
|
|
31
|
+
.venv/bin/pytest -q
|
|
32
|
+
|
|
33
|
+
# Recompile Loom arXiv manuscript
|
|
34
|
+
(cd paper && tectonic -X compile main.tex)
|
|
35
|
+
```
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
task_name: oe62_orbital_synthesizable
|
|
2
|
+
description: >-
|
|
3
|
+
Enterprise multi-asset weaving example: zero-retrain alignment combining an
|
|
4
|
+
external 3D electronic predictor (Uni-Mol2 / ResidualCalibratedAsset) with
|
|
5
|
+
synthesizability (SA_Score <= 3.5), reactive-group suppression, and zero
|
|
6
|
+
exotic zwitterions via ValenceReconciler.
|
|
7
|
+
potential_asset_id: mlip_dpa4
|
|
8
|
+
reconcile_valence: true
|
|
9
|
+
unphysical_pair_rule: null
|
|
10
|
+
|
|
11
|
+
objectives:
|
|
12
|
+
- name: homo
|
|
13
|
+
asset_id: ext_unimol2
|
|
14
|
+
asset_channel: homo
|
|
15
|
+
mode: point
|
|
16
|
+
tolerance: 0.25
|
|
17
|
+
unit: eV
|
|
18
|
+
weight: 1.0
|
|
19
|
+
- name: lumo
|
|
20
|
+
asset_id: ext_unimol2
|
|
21
|
+
asset_channel: lumo
|
|
22
|
+
mode: point
|
|
23
|
+
tolerance: 0.25
|
|
24
|
+
unit: eV
|
|
25
|
+
weight: 1.0
|
|
26
|
+
|
|
27
|
+
constraints:
|
|
28
|
+
- name: synthesizable_sa
|
|
29
|
+
asset_id: builtin_rules
|
|
30
|
+
asset_channel: sa_score
|
|
31
|
+
op: leq
|
|
32
|
+
threshold: 3.5
|
|
33
|
+
soft_margin: 0.60
|
|
34
|
+
weight: 0.75
|
|
35
|
+
hard_gate: true
|
|
36
|
+
- name: mol_weight_cap
|
|
37
|
+
asset_id: builtin_rules
|
|
38
|
+
asset_channel: mol_weight
|
|
39
|
+
op: leq
|
|
40
|
+
threshold: 550.0
|
|
41
|
+
soft_margin: 60.0
|
|
42
|
+
weight: 0.30
|
|
43
|
+
hard_gate: false
|
|
44
|
+
- name: reactive_smarts_clean
|
|
45
|
+
asset_id: builtin_rules
|
|
46
|
+
asset_channel: smarts_alert
|
|
47
|
+
op: leq
|
|
48
|
+
threshold: 0.0
|
|
49
|
+
soft_margin: 0.50
|
|
50
|
+
weight: 0.40
|
|
51
|
+
hard_gate: true
|
|
52
|
+
|
|
53
|
+
auditors:
|
|
54
|
+
- name: dpa4_homo_audit
|
|
55
|
+
objective_name: homo
|
|
56
|
+
mode: cross_oracle
|
|
57
|
+
auditor_asset_id: audit_dpa4
|
|
58
|
+
auditor_channel: homo
|
|
59
|
+
disagreement_cap: 0.35
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
task_name: oe62_orbital_weaving
|
|
2
|
+
description: >-
|
|
3
|
+
Standard OE62 2-channel frontier orbital weaving specification (HOMO & LUMO)
|
|
4
|
+
mounted via declarative PredictorAsset adapters without hardcoded pipeline flags.
|
|
5
|
+
potential_asset_id: mlip_dpa4
|
|
6
|
+
reconcile_valence: true
|
|
7
|
+
unphysical_pair_rule: "x>=y"
|
|
8
|
+
|
|
9
|
+
objectives:
|
|
10
|
+
- name: homo
|
|
11
|
+
asset_id: ext_unimol2
|
|
12
|
+
asset_channel: homo
|
|
13
|
+
mode: point
|
|
14
|
+
tolerance: 0.25
|
|
15
|
+
unit: eV
|
|
16
|
+
weight: 1.0
|
|
17
|
+
- name: lumo
|
|
18
|
+
asset_id: ext_unimol2
|
|
19
|
+
asset_channel: lumo
|
|
20
|
+
mode: point
|
|
21
|
+
tolerance: 0.25
|
|
22
|
+
unit: eV
|
|
23
|
+
weight: 1.0
|
|
24
|
+
|
|
25
|
+
constraints:
|
|
26
|
+
- name: zero_reactive_alerts
|
|
27
|
+
asset_id: builtin_rules
|
|
28
|
+
asset_channel: smarts_alert
|
|
29
|
+
op: leq
|
|
30
|
+
threshold: 0.0
|
|
31
|
+
soft_margin: 0.5
|
|
32
|
+
weight: 0.4
|
|
33
|
+
hard_gate: false
|
|
34
|
+
|
|
35
|
+
auditors:
|
|
36
|
+
- name: dpa4_homo_audit
|
|
37
|
+
objective_name: homo
|
|
38
|
+
mode: cross_oracle
|
|
39
|
+
auditor_asset_id: audit_dpa4
|
|
40
|
+
auditor_channel: homo
|
|
41
|
+
disagreement_cap: 0.35
|
|
42
|
+
- name: dpa4_lumo_audit
|
|
43
|
+
objective_name: lumo
|
|
44
|
+
mode: cross_oracle
|
|
45
|
+
auditor_asset_id: audit_dpa4
|
|
46
|
+
auditor_channel: lumo
|
|
47
|
+
disagreement_cap: 0.38
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling>=1.27.0"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "ai-loom"
|
|
7
|
+
version = "2.0.0"
|
|
8
|
+
description = "Loom: Predictor-Agnostic 3-Layer Weaving & Grounded RSI Platform for Calibrated 3D Molecular Generation"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11,<3.13"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Development Status :: 4 - Beta",
|
|
15
|
+
"Intended Audience :: Science/Research",
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"Programming Language :: Python :: 3.11",
|
|
18
|
+
"Programming Language :: Python :: 3.12",
|
|
19
|
+
"Topic :: Scientific/Engineering :: Chemistry",
|
|
20
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
21
|
+
]
|
|
22
|
+
authors = [
|
|
23
|
+
{ name = "Shangqian Chen", email = "chensq@dp.tech" },
|
|
24
|
+
{ name = "Guojiang Zhao" },
|
|
25
|
+
{ name = "Zheng Cheng" },
|
|
26
|
+
{ name = "Jiankun Wang" },
|
|
27
|
+
{ name = "Hongshuai Wang" },
|
|
28
|
+
{ name = "Zhifeng Gao" }
|
|
29
|
+
]
|
|
30
|
+
keywords = [
|
|
31
|
+
"3d-molecular-generation",
|
|
32
|
+
"octree-autoregression",
|
|
33
|
+
"uni-3dar",
|
|
34
|
+
"grpo",
|
|
35
|
+
"dpa-4",
|
|
36
|
+
"hyff",
|
|
37
|
+
"unimol",
|
|
38
|
+
"uni-qsar",
|
|
39
|
+
"mlip"
|
|
40
|
+
]
|
|
41
|
+
dependencies = [
|
|
42
|
+
"numpy>=1.26.0,<2.0.0",
|
|
43
|
+
"scipy>=1.11.0",
|
|
44
|
+
"pandas>=2.0.0",
|
|
45
|
+
"scikit-learn>=1.3.0",
|
|
46
|
+
"joblib>=1.3.0",
|
|
47
|
+
"pyyaml>=6.0",
|
|
48
|
+
"safetensors>=0.4.0",
|
|
49
|
+
"torch==2.7.1",
|
|
50
|
+
"rdkit>=2022.9.5",
|
|
51
|
+
"ase>=3.22.0",
|
|
52
|
+
]
|
|
53
|
+
|
|
54
|
+
[project.optional-dependencies]
|
|
55
|
+
quantum = ["pyscf==2.12.1", "pyscf-dispersion==1.3.0; platform_machine == 'x86_64'", "geometric==1.1"]
|
|
56
|
+
quantum-gpu = [
|
|
57
|
+
"pyscf==2.12.1", "pyscf-dispersion==1.3.0; platform_machine == 'x86_64'", "geometric==1.1",
|
|
58
|
+
"gpu4pyscf-cuda12x==1.9.1; sys_platform == 'linux'",
|
|
59
|
+
"gpu4pyscf-libxc-cuda12x==0.9.0; sys_platform == 'linux'",
|
|
60
|
+
"cupy-cuda12x==13.4.1; sys_platform == 'linux'",
|
|
61
|
+
"cutensor-cu12==2.2.0; sys_platform == 'linux'",
|
|
62
|
+
]
|
|
63
|
+
octree = ["lmdb>=1.4", "numba>=0.59", "tqdm>=4.66"]
|
|
64
|
+
deepmd = [
|
|
65
|
+
"deepmd-kit==3.2.0",
|
|
66
|
+
"e3nn==0.5.9",
|
|
67
|
+
"warp-lang==1.10.1",
|
|
68
|
+
"nvalchemi-toolkit-ops==0.3.1; sys_platform == 'linux'",
|
|
69
|
+
"vesin[torch]; sys_platform != 'linux'",
|
|
70
|
+
]
|
|
71
|
+
hyff = [
|
|
72
|
+
"safetensors>=0.4.0",
|
|
73
|
+
"triton>=3.3.0; sys_platform == 'linux'",
|
|
74
|
+
"warp-lang==1.10.1",
|
|
75
|
+
"nvalchemi-toolkit-ops==0.3.1; sys_platform == 'linux'",
|
|
76
|
+
]
|
|
77
|
+
dev = [
|
|
78
|
+
"pytest>=8.0.0",
|
|
79
|
+
"ruff>=0.4.0",
|
|
80
|
+
]
|
|
81
|
+
|
|
82
|
+
[project.urls]
|
|
83
|
+
Homepage = "https://github.com/ShangChien/loom"
|
|
84
|
+
Repository = "https://github.com/ShangChien/loom"
|
|
85
|
+
Issues = "https://github.com/ShangChien/loom/issues"
|
|
86
|
+
|
|
87
|
+
[project.scripts]
|
|
88
|
+
loom = "loom.cli:main"
|
|
89
|
+
|
|
90
|
+
[tool.hatch.build.targets.sdist]
|
|
91
|
+
include = [
|
|
92
|
+
"/src/loom",
|
|
93
|
+
"/tests",
|
|
94
|
+
"/scripts/check_wheel.py",
|
|
95
|
+
"/configs",
|
|
96
|
+
"/README.md",
|
|
97
|
+
"/LICENSE",
|
|
98
|
+
"/pyproject.toml",
|
|
99
|
+
]
|
|
100
|
+
|
|
101
|
+
[tool.hatch.build.targets.wheel]
|
|
102
|
+
packages = ["src/loom"]
|
|
103
|
+
|
|
104
|
+
[tool.uv]
|
|
105
|
+
managed = true
|
|
106
|
+
package = true
|
|
107
|
+
default-groups = ["dev"]
|
|
108
|
+
# PyPI's 3.2.0 C++ wheel targets Torch 2.11. Use the supported Python
|
|
109
|
+
# PyTorch backend with our pinned Torch; DPA inference still runs on CUDA.
|
|
110
|
+
no-binary-package = ["deepmd-kit"]
|
|
111
|
+
|
|
112
|
+
[tool.uv.extra-build-variables]
|
|
113
|
+
deepmd-kit = { DP_ENABLE_TENSORFLOW = "0", DP_ENABLE_PYTORCH = "0" }
|
|
114
|
+
|
|
115
|
+
[dependency-groups]
|
|
116
|
+
dev = [
|
|
117
|
+
"pytest>=8.0.0",
|
|
118
|
+
"ruff>=0.4.0",
|
|
119
|
+
]
|
|
120
|
+
|
|
121
|
+
[tool.ruff]
|
|
122
|
+
line-length = 110
|
|
123
|
+
target-version = "py311"
|
|
124
|
+
src = ["src", "scripts"]
|
|
125
|
+
|
|
126
|
+
[tool.pytest.ini_options]
|
|
127
|
+
testpaths = ["tests"]
|
|
128
|
+
pythonpath = [".", "src"]
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"""Check resources required by the installed octree and HyFF backends."""
|
|
2
|
+
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
import argparse
|
|
5
|
+
import zipfile
|
|
6
|
+
|
|
7
|
+
parser = argparse.ArgumentParser(description=__doc__)
|
|
8
|
+
parser.add_argument("wheel", nargs="?", type=Path, help="Wheel to inspect; defaults to the only wheel in dist/")
|
|
9
|
+
args = parser.parse_args()
|
|
10
|
+
wheels = [args.wheel] if args.wheel else list(Path("dist").glob("*.whl"))
|
|
11
|
+
assert len(wheels) == 1, "Specify a wheel or leave exactly one wheel in dist/"
|
|
12
|
+
with zipfile.ZipFile(wheels[0]) as wheel:
|
|
13
|
+
assert "loom/compat/hyff/checkpoints/index.json" in wheel.namelist()
|
|
14
|
+
assert "loom/compat/hyff/LICENSE.txt" in wheel.namelist()
|
|
15
|
+
assert "loom/compat/hyff/NOTICE.txt" in wheel.namelist()
|
|
16
|
+
assert "loom/compat/unimol2/LICENSE.txt" in wheel.namelist()
|
|
17
|
+
assert "loom/compat/unimol2/upstream.json" in wheel.namelist()
|
|
18
|
+
assert "loom/oracles/unimol2_oracle.py" in wheel.namelist()
|
|
19
|
+
assert "loom/vendor/UNI3DAR_LICENSE.txt" in wheel.namelist()
|
|
20
|
+
assert "loom/vendor/uni3dar/models/uni3dar.py" in wheel.namelist()
|
|
21
|
+
assert "loom/weaving/__init__.py" in wheel.namelist()
|
|
22
|
+
assert "loom/weaving/gp_atlas.py" in wheel.namelist()
|
|
23
|
+
assert "loom/weaving/registry.py" in wheel.namelist()
|
|
24
|
+
assert "loom/weaving/spec.py" in wheel.namelist()
|
|
25
|
+
assert "loom/weaving/critic_bus.py" in wheel.namelist()
|
|
26
|
+
assert "loom/weaving/rsi.py" in wheel.namelist()
|
|
27
|
+
assert "loom/chemistry/valence_reconciler.py" in wheel.namelist()
|
|
28
|
+
print(f"{wheels[0]}: Loom v2.0 Chemistry, 3-Layer Weaving, RSI, Octree, HyFF & Uni-Mol2 resources packaged")
|
|
@@ -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
|
+
]
|