{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "acesuit-mace--fine-tune-a-mace-foundation-model",
 "repo": "ACEsuit/mace",
 "repo_url": "https://github.com/ACEsuit/mace",
 "repo_slug": "acesuit-mace",
 "title": "Fine-tune a MACE-MP foundation model on your system",
 "page_title": "How to fine-tune a MACE-MP foundation model on your system with Mace",
 "summary": "Start from a pretrained materials model and adapt it to your chemistry with a few epochs of training.",
 "who": "A researcher with a small dataset who needs better accuracy than the general model gives.",
 "problem": "Training from scratch needs far more data than most projects have.",
 "outcome": "A fine-tuned model built on the small, medium or large MACE-MP weights.",
 "steps": [
  "Install with `pip install mace-torch`",
  "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",
  "Or pass a path with --foundation_model to fine-tune another model; its hyperparameters are extracted automatically"
 ],
 "agent_prompt": "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.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Advanced",
 "time": "half a day",
 "basis": "readme",
 "caveat": "Downloaded models are cached in ~/.cache/mace unless XDG_CACHE_HOME is set.",
 "category": "Security and science",
 "tags": [
  "Security and science"
 ],
 "lang": "",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/acesuit-mace/fine-tune-a-mace-foundation-model/",
 "md": "https://dedupedai.com/use-cases/acesuit-mace/fine-tune-a-mace-foundation-model/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/acesuit-mace--fine-tune-a-mace-foundation-model.json",
 "api_version": "v1"
}
