Add config.json for HF download tracking and refresh model card for Mena-Lab v0.2.0
Browse filesFiles changed (2)
- README.md+43-13
- config.jsonAdded+124
7 unmodified lines8910111213141515161717181920212223212223242526272829303132333435362537383940412829424344454647484950513452535455375657585960616263646566676839697041717243737475767 unmodified lines - machine-learning-force-field - molecular-dynamics - atomistic-simulation - dft---
# Mena-LAM-6
Machine-learned interatomic potential for **crystals, surfaces, catalysis, and molecules**, with built-in **physics interpretation heads** (HOMO–LUMO gap estimate, unpaired-electron character, Pauli overlap repulsion, spin-exchange energy, and partial charges). It is the default materials model of [Mena-Lab](https://github.com/iatecoding/mena-lab), described in the [Mena-LAM preprint on ChemRxiv](https://chemrxiv.org/doi/full/10.26434/chemrxiv.15013103/v1).**Compact (`8.48M` params / `34.0 MB`) O(3)-equivariant multi-LoT interatomic potential for crystals, surfaces, catalysis, molecular crystals, and molecules**, trained from scratch on a single GPU in `48.5` GPU-hours and running in strict IEEE FP32 at up to **`555,000 atoms/s`** (RTX PRO 6000) / **`98,600 atoms/s`** (Apple M3 Max laptop).
Mena-Lab is an independent project: the models were developed and trained by Francesco Viola with personal resources and in personal time.Default periodic materials & surfaces model of [Mena-Lab (`v0.2.0`)](https://github.com/iatecoding/mena-lab), described in the [Mena-LAM preprint on ChemRxiv](https://chemrxiv.org/doi/full/10.26434/chemrxiv.15013103/v1). Mena-Lab is an independent student project developed and trained by Francesco Viola with personal resources and in personal time.
## Key Benchmarks
| Benchmark | Result ||---|---|| Matbench Discovery | CPS 0.897, F1 0.909, κ<sub>SRME</sub> 0.182, RMSD AUC 0.789 ([predictions](https://huggingface.co/datasets/iatecoding/mena-lam-6-matbench-discovery)) || DynaMat MD (Matbench Discovery) | 43.6 min (17 systems × 80k steps), 0.46 GB VRAM, CMDS 0.777 || Molecules (OMol25 val) | energy 2.00 kcal/mol, forces 0.40 kcal/mol/Å || Matbench Discovery (post-`#418`, [PR #420](https://github.com/janosh/matbench-discovery/pull/420)) | **CPS `0.897`**, F1 `0.909`, κ<sub>SRME</sub> `0.182` (`0/103` imag), RMSD AUC `0.789` ([predictions](https://huggingface.co/datasets/iatecoding/mena-lam-6-matbench-discovery)) || DynaMat MD (Matbench Discovery) | **`43.6 min`** (17 crystals × 80k NVT steps), **`0.46 GB`** VRAM (**#1 fastest**), CMDS `0.777` || WBM-257k batched relaxation (GPU FIRE) | **`4 min 38 s`** for all `256,963` crystals on 1× RTX PRO 6000 || Throughput (32k Si, strict IEEE FP32) | **`555,000 atoms/s`** (RTX PRO 6000, `0.35 GB` VRAM) / **`98,600 atoms/s`** (Apple M3 Max) || Molecules (OMol25 val) | Energy `2.00 kcal/mol`, forces `0.40 kcal/mol/Å` |
## Physics Interpretation & Energy Decomposition
`Mena-LAM-6` decomposes total energies into bonding network, Coulomb, polarization, D3 dispersion, Pauli cloud-overlap repulsion, and spin exchange (`mena sp ... --explain` or the local web app):
- **Molecules:** HOMO–LUMO gap (`Reliable trend`), unpaired-electron radical localization (`Qualitative`), Pauli repulsion (`Qualitative`), partial charges (`Qualitative`), and spin exchange.- **Crystals & surfaces:** Energy decomposition and per-atom Pauli overlap map.
## Use## Quickstart (`Mena-Lab v0.2.0`)
Requires Python 3.10+ and PyTorch (works on Apple Silicon MPS, NVIDIA CUDA, and CPU).
```bashpip install "mena-lab @ git+https://github.com/iatecoding/mena-lab"mena webapp # or: mena relax structure.cifpip install https://github.com/iatecoding/mena-lab/archive/refs/heads/main.zipmena webapp # launch the local Web UI (auto-downloads weights)mena relax structure.cif --lot matpes_r2scan # geometry & cell optimization (PBE, PBE+U, r²SCAN, RPBE, ...)mena sp benzyl_radical.xyz --spin 2 --model lam6-v1 --explain```
Python / ASE API:
```pythonfrom mena_app import calculatoratoms.calc = calculator("lam6-v1") # weights download from here on first use
atoms.calc = calculator("lam6-v1", lot="auto") # or "mp_pbe", "matpes_r2scan", "oc20_rpbe", "omc25_pbe", "omol_wb97mv"```
File: `mena-lam6-v1.pt` (34.0 MB).Direct download from Hugging Face Hub (includes `config.json` metadata + `mena-lam6-v1.pt`):
```pythonfrom huggingface_hub import hf_hub_download
config_path = hf_hub_download("iatecoding/Mena-LAM-6", "config.json")weights_path = hf_hub_download("iatecoding/Mena-LAM-6", "mena-lam6-v1.pt")```
Supported levels of theory (`--lot`): `mp_pbe`, `mp_pbeU`, `omat_pbe`, `omat_pbeU`, `matpes_pbe`, `matpes_r2scan`, `oc20_rpbe`, `omc25_pbe`, `omol_wb97mv`, `spice_wb97md3`.
Also see [Mena-LAM-s](https://huggingface.co/iatecoding/Mena-LAM-s) (molecular default with lowest OMol25/PLF547 errors, IR/Raman, conformers & ORCA `!ExtOpt`).
## Training data## Training Data
OMol25, MPtrj, sAlex, OMat24, MatPES, OC20, OC25, MAD-1.6, OMC25, SPICE 2. Please cite them when you use the model.OMol25, SPICE 2, OMat24, MPtrj, sAlex, OMC25, OC20, MatPES (PBE / r²SCAN). Please cite them when you use the model.
## License and citation## License and Citation
Weights: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/), © 2026 Francesco Viola. Code: Apache-2.0.If you use this model, please cite the [Mena-LAM preprint](https://chemrxiv.org/doi/full/10.26434/chemrxiv.15013103/v1) and [Mena-Lab](https://github.com/iatecoding/mena-lab):123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124{ "model_type": "mena-lam", "architectures": [ "MenaLAM4" ], "model_id": "lam6-v1", "title": "Mena-LAM-6", "backend": "lam4", "checkpoint_file": "mena-lam6-v1.pt", "checkpoint_format": "lam6-ema-weights-v1", "checkpoint_sha256": "3662302cab3a8689efeee36d75bb5dffbe92914342916fbb33e498fac2577a85", "checkpoint_size_bytes": 34037953, "num_parameters": 8479848, "step": 747692, "domains": [ "crystal", "slab", "molecule" ], "levels_of_theory": [ "mp_pbe", "mp_pbeU", "omat_pbe", "omat_pbeU", "matpes_pbe", "matpes_r2scan", "oc20_rpbe", "omc25_pbe", "omol_wb97mv", "spice_wb97md3" ], "dtypes": [ "float32", "float64" ], "license": "cc-by-4.0", "repository": "https://github.com/iatecoding/mena-lab", "paper": "https://chemrxiv.org/doi/full/10.26434/chemrxiv.15013103/v1", "cfg_hash": "07596c350413", "arch_config": { "r_cut": 6.0, "r_on": 5.0, "n_rbf": 32, "descriptor_floor": true, "spline_grid": 768, "n_stages": 3, "d_scalar": 384, "swiglu_ratio": 2.0, "msg_dim": 128, "k_vec": 32, "k2": 16, "k3": 8, "vec_c": 2.0, "state_norm": true, "n_heads": 4, "head_dim": 16, "edge_gain_max": 2.0, "ttt_mix": 16, "vttv_rank": 32, "r1_vec": 128, "r2_ten": 64, "r3_tvv": 64, "k3_read": 32, "inv_norm": true, "r_cut_near": 0.0, "r_on_near": 3.0, "k_s_far": 32, "k_v_far": 16, "edge_weight": "heads", "domains": [ "crystal", "molecule" ], "n_tokens": 6, "cond_dim": 64, "q_max": 10, "s_max": 11, "group_context": true, "feedback_points": 2, "phi_basis": 8, "fb_hidden": 64, "charge_bound": 2.0, "coulomb_sigma": 2.0, "polarization": true, "aniso_polarizability": true, "stage_e_weight": 0.05, "long_range_molecule": "exact", "long_range_crystal": "spme_gated", "charge_gate_bias_crystal": -3.0, "charge_gate_skip": 0.02, "long_range_inference": "pme", "coulomb_cap": 350, "mesh_spacing": 0.8, "mesh_order": 6, "repulsion": "nlh_c2_shift_rmin", "pair_read": false, "direct_force_head": false, "ffn_mode": "env_mod_1152", "env_mod_rank": 32, "contract_cumulative_t": true, "coord_inv_scale": true, "coord_alpha_max": 2.5, "coord_alpha_signed": true, "factorized_lot": true, "n_xc_tokens": 12, "n_paw_bases": 16, "direct_inv_bypass": true, "direct_inv_rank": 64, "expose_readout_phi": true, "two_channel_spin": true, "use_l2_efg": true, "sqe_pqeq": false, "sqe_k_fix": 24, "spme_batched": false, "cloud_overlap": true, "eda_calib_head": false, "iso_atom_n1": true, "iso_atom_d_lo": 0.05, "iso_atom_d_hi": 0.5, "spin_exchange": true, "quad_l2_head": true, "gap_head": true }}README.md+43-13
config.jsonAdded+124