uv run scripts/preprocess_data.py data/mptrj-gga-ggapu data/mptrj-aselmdb
Then start the training run:
nequix_train configs/nequix-mp-1.yml
This will take less than 125 hours on a single 4 x A100 node (<25 hours with kernels). The batch_size in the
config is per-device, so you should be able to run this on any number of GPUs
(although hyperparameters like learning rate are often sensitive to global batch
size, so keep in mind).
Phonon fine-tuning (PFT)
First sync extra dependencies with
uv sync --extra pft
Phonon calculations
We provide pretrained model weights for the co-trained (better alignment with
MPtrj) and non co-trained models in models/nequix-mp-1-pft.nqx and
nequix-mp-1-pft-nocotrain.nqx respectively. See nequix-examples/phonon for
examples on how to use these models for phonon calculations with both finite
displacement, and analytical Hessians.
Training
Data for the PBE MDR phonon database was originally downloaded and preprocessed with:
bash data/download_pbe_mdr.sh
uv run data/split_pbe_mdr.py
uv run scripts/preprocess_data_phonopy.py data/pbe-mdr/train data/pbe-mdr/train-aselmdb
uv run scripts/preprocess_data_phonopy.py data/pbe-mdr/val data/pbe-mdr/val-aselmdb
However we provide preprocessed data which can be downloaded with
bash data/download_pbe_mdr_preprocessed.sh
To run PFT without co-training run:
uv run nequix/pft/train.py configs/nequix-mp-1-pft-no-cotrain.yml
To run PFT with co-training run (note this requires mptrj-aselmdb preprocessed):
uv run nequix/pft/train.py configs/nequix-mp-1-pft.yml
To run PFT on the OAM base model, follow the data download instructions below and then run:
uv run nequix/pft/train.py configs/nequix-oam-1-pft.yml
Both PFT training runs take about 140 hours on a single A100. Note that PFT training is only currently only supported with the JAX backend, which is both significantly faster and supported by the kernels. See nequix-examples/pft, which contains a small demo for PFT in PyTorch that can be adapted to other models. Feel free to reach out with questions.
Training OMat/OAM base models
To reproduce our training runs for the OMat and OAM base models run the following. First download OMat and sAlex data:
./data/download_omat.sh <path to storage location>
Then symlink to ./data
ln -s <path to storage location>/omat ./data/omat
ln -s <path to storage location>/salex ./data/salex
ln -s <path to storage location>/mptrj-aselmdb ./data/mptrj-aselmdb
To train the OMat model, run:
uv run torchrun --nproc_per_node=4 nequix/torch_impl/train.py configs/nequix-omat-1.yml
This takes roughly 60 hours on a 4 x A100 node. To fine-tune the OAM model, copy
the OMat model to models/nequix-omat-1.pt and run
uv run torchrun --nproc_per_node=4 nequix/torch_impl/train.py configs/nequix-oam-1.yml
This takes roughly 10 hours on a 4 x A100 node.
Citation
@article{koker2026pft,
title={{PFT}: Phonon Fine-tuning for Machine Learned Interatomic Potentials},
author={Koker, Teddy and Gangan, Abhijeet and Kotak, Mit and Marian, Jaime and Smidt, Tess},
journal={arXiv preprint arXiv:2601.07742},
year={2026}
}
@article{koker2025training,
title={Training a foundation model for materials on a budget},
author={Koker, Teddy and Kotak, Mit and Smidt, Tess},
journal={arXiv preprint arXiv:2508.16067},
year={2025}
}
Alternatives
Use instead of nequix: tools that do the same job, closest first.
e3nn-jaxPythie’s Index: 44Equivariant convolutional neural networks for the group E(3) of 3 dimensional rotations, translations, and mirrors.37.5K downloads/mo
ipiPythie’s Index: 88A Python interface for ab initio path integral molecular dynamics simulations24.2K downloads/mo