Views
No views yet
molfm-v1-stage-3.ptmolfm-v1-stage-3.pt: Pretrained model checkpoint.config.yaml: Model and inference configuration.molfm codebase. Please refer to the official repository for installation instructions.1from ase.build import molecule
2from molfm.interface.ase.calculator.e2former_calculator import E2FormerCalculator
3
4# 1. Setup atoms
5atoms = molecule("H2O")
6atoms.set_cell([10, 10, 10])
7atoms.pbc = [True, True, True]
8
9# 2. Load the model using the provided checkpoint and config
10calc = E2FormerCalculator(
11 checkpoint_path="path/to/molfm-v1-stage-3.pt",
12 config_name="path/to/config.yaml", # Or local config name if in search path
13 head_name="omol25",
14 device="cuda",
15 use_tf32=True,
16 use_compile=True,
17)
18
19# 3. Perform calculation
20atoms.calc = calc
21energy = atoms.get_potential_energy()
22forces = atoms.get_forces()
23
24print(f"Energy: {energy} eV")
25print(f"Forces:\n{forces}")1from ase import units
2from ase.md.langevin import Langevin
3from ase.md.velocitydistribution import MaxwellBoltzmannDistribution
4
5# Initialize velocities
6MaxwellBoltzmannDistribution(atoms, temperature_K=300)
7
8# Setup Langevin integrator
9dyn = Langevin(atoms, 1 * units.fs, temperature_K=300, friction=0.01)
10
11# Run MD
12dyn.run(100)use_tf32=True to enable TF32 on supported NVIDIA GPUs for higher throughput.use_compile=True to enable torch.compile for faster execution.1@misc{huang2026ubiomolfm,
2 title={UBio-MolFM: A Universal Molecular Foundation Model for Bio-Systems},
3 author={Lin Huang and Arthur Jiang and XiaoLi Liu and Zion Wang and Jason Zhao and Chu Wang and HaoCheng Lu and ChengXiang Huang and JiaJun Cheng and YiYue Du and Jia Zhang},
4 year={2026},
5 eprint={2602.17709},
6 url={https://arxiv.org/abs/2602.17709},
7 archivePrefix={arXiv},
8 primaryClass={physics.chem-ph}
9}
10
11@misc{huang2026e2formerv2,
12 title={E2Former-V2: On-the-Fly Equivariant Attention with Linear Activation Memory},
13 author={Lin Huang and Chengxiang Huang and Ziang Wang and Yiyue Du and Chu Wang and Haocheng Lu and Yunyang Li and Xiaoli Liu and Arthur Jiang and Jia Zhang},
14 year={2026},
15 eprint={2601.16622},
16 url={https://arxiv.org/abs/2601.16622},
17 archivePrefix={arXiv},
18 primaryClass={cs.LG}
19}