{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "acesuit-mace--train-an-interatomic-potential-with-mace",
 "repo": "ACEsuit/mace",
 "repo_url": "https://github.com/ACEsuit/mace",
 "repo_slug": "acesuit-mace",
 "title": "Train a machine learning interatomic potential",
 "page_title": "How to train a machine learning interatomic potential with Mace",
 "summary": "Fit a MACE model to your own DFT data with mace_run_train and get loss and RMSE plots at the end.",
 "who": "A materials researcher with a set of DFT calculations who needs a faster force field.",
 "problem": "DFT is too slow for long molecular dynamics runs.",
 "outcome": "A trained .model file plus training curves and scatter plots in the results folder.",
 "steps": [
  "Install with `pip install --upgrade pip` and `pip install mace-torch`",
  "Prepare train.xyz and test.xyz, labeling isolated atoms with config_type=IsolatedAtom or using `--E0s=\"average\"`",
  "Run mace_run_train with --name, --train_file, --valid_fraction, --test_file, --model=\"MACE\", --r_max=5.0 and the other flags from the README example",
  "Use --default_dtype float32 for about a 2x training speed-up and --device=mps on Apple Silicon"
 ],
 "agent_prompt": "Using ACEsuit/mace, train a model on <my train.xyz> with mace_run_train following the README example flags, and report the final energy and force RMSE on the test set.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Advanced",
 "time": "1 day",
 "basis": "readme",
 "caveat": "Batch size and epochs should be adapted to your training set size, as the README explains.",
 "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": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/acesuit-mace/train-an-interatomic-potential-with-mace/",
 "md": "https://dedupedai.com/use-cases/acesuit-mace/train-an-interatomic-potential-with-mace/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--train-an-interatomic-potential-with-mace.json",
 "api_version": "v1"
}
