DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to fine-tune a MACE-MP foundation model on your system with Mace

Start from a pretrained materials model and adapt it to your chemistry with a few epochs of training.

Short answer: Install with pip install mace-torch; then run mace_run_train with --foundation_model="small" plus your --train_file, --valid_fraction and --test_file; use the README settings such as --E0s="average", --lr=0.01, --batch_size=2 and --max_num_epochs=6 as a starting point. All steps.

Who it is forA researcher with a small dataset who needs better accuracy than the general model gives.

The problemTraining from scratch needs far more data than most projects have.

The outcomeA fine-tuned model built on the small, medium or large MACE-MP weights.

What you need first

  • Python 3.11 or later and PyTorch 2.5 or later, installed first
  • Install with `pip install mace-torch` (the PyPI package named MACE is unrelated)
  • Training data as XYZ files; a CUDA GPU or Apple Silicon (mps) for practical training speed

Steps

  1. Install with pip install mace-torch
  2. Run mace_run_train with --foundation_model="small" plus your --train_file, --valid_fraction and --test_file
  3. Use the README settings such as --E0s="average", --lr=0.01, --batch_size=2 and --max_num_epochs=6 as a starting point
  4. Or pass a path with --foundation_model to fine-tune another model; its hyperparameters are extracted automatically

Prompt for your agent

Using ACEsuit/mace, fine-tune the small MACE-MP foundation model on <my dataset.xyz> with the README fine-tuning flags and compare test errors before and after.

Caveat. Downloaded models are cached in ~/.cache/mace unless XDG_CACHE_HOME is set.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for ACEsuit/mace and "Fine-tune a MACE-MP foundation model on your system"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer