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

How to predict energies for a batch of structures with Mace

Run a trained or downloaded MACE model over an XYZ file and write the predictions to a new file.

Short answer: Install with pip install mace-torch; then run mace_eval_configs with --configs="your_configs.xyz", --model="your_model.model" and --output="./your_output.xyz"; For single structures in Python, use mace_mp or mace_off from Mace.calculators as an ASE calculator. All steps.

Who it is forA scientist screening many candidate structures.

The problemRunning DFT on every candidate structure is too expensive.

The outcomeAn output XYZ file with model predictions for each configuration.

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_eval_configs with --configs="your_configs.xyz", --model="your_model.model" and --output="./your_output.xyz"
  3. For single structures in Python, use mace_mp or mace_off from Mace.calculators as an ASE calculator
  4. Compare predictions with reference values where you have them

Prompt for your agent

Using ACEsuit/mace, run mace_eval_configs on <my structures.xyz> with <my model file>, then list the five lowest energy configurations from the output.

Caveat. MACE-MP energies are raw MPTrj DFT energies and are not directly comparable to Materials Project or CHGNet energies with MP2020 corrections.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for ACEsuit/mace and "Predict energies for a batch of structures"

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