You can fine-tune MACE foundation models (like mace-mp-0) using the mace_run_train script. Use the --foundation_model argument to specify the model type or a path to a model file.
If you provide a path via --foundation_model=$path_model, the script will automatically extract the hyperparameters from that model.
Supported model types for mace-mp-0 include small, medium, and large.
mace_run_train \
--name="MACE" \
--foundation_model="small" \
--train_file="train.xyz" \
--valid_fraction=0.05 \
--test_file="test.xyz" \
--energy_weight=1.0 \
--forces_weight=1.0 \
--E0s="average" \
--lr=0.01 \
--scaling="rms_forces_scaling" \
--batch_size=2 \
--max_num_epochs=6 \
--ema \
--ema_decay=0.99 \
--amsgrad \
--default_dtype="float32" \
--device=cuda \
--seed=3