Agent skill

ML Fairchem Finetune

by learningmatter-mit in learningmatter-mit/AtomisticSkills

Fine-tune Fairchem machine learning interatomic potentials (UMA, ESEN) on custom datasets.

MITAuto-check passedAI & LLM Engineering

Install ML Fairchem Finetune

skills CLI
$ npx skills add learningmatter-mit/AtomisticSkills --skill ml-fairchem-finetune -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install learningmatter-mit/AtomisticSkills ml-fairchem-finetune --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/learningmatter-mit/AtomisticSkills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ml-fairchem-finetune .claude/skills/ml-fairchem-finetune && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ml-fairchem-finetune
GitHub stars
176
Token cost
~1.7k tokens
SKILL.md length
675 words
Files
12 (incl. scripts)
Skills in repo
129
Repo updated
First seen
Licence
MIT

At a glance

Fine-tune Fairchem machine learning interatomic potentials (UMA, ESEN) on custom datasets.

  • Works in 7 steps: Prepare Labeled Dataset: Obtain diverse… → Custom Data Conversion: Read the source… → Benchmarking: Predict results on the new… → …
  • Tasks that involve Fine-tuning
  • SKILL.md covers Goal, Instructions, Training Configuration and Constraints
  • Runs Python and Shell scripts from its folder

What it does

ML Fairchem Finetune is an agent skill from learningmatter-mit/AtomisticSkills. Fine-tune Fairchem machine learning interatomic potentials (UMA, ESEN) on custom datasets.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 14 other files, including scripts (for example `examples/fairchem-wbm-finetune/README.md`, `examples/fairchem-wbm-finetune/_freeze_backbone_helper.py` and `examples/fairchem-wbm-finetune/dataset_metadata.json`).

It sits in AI & LLM Engineering, covering Fine-tuning and Machine learning. The repository describes itself as: Integrating AtomisticSkills into Agentic IDEs (Cursor, Claude Code, Codex, Google Antigravity, Hermes Agent, etc). The licence is MIT.

When your agent uses it

  • Tasks that involve Fine-tuning
  • Tasks that involve Machine learning

Example prompts

  • “/ml-fairchem-finetune”

Requirements

  • Python 3
  • A Bash shell

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Prepare Labeled Dataset: Obtain diverse structures with high-fidelity labels (energy, forces, stress). See the /benchmark-finetuning…
  2. Custom Data Conversion: Read the source data format and write a customized conversion script if needed, formatting it for the subsequent…
  3. Benchmarking: Predict results on the new labels and benchmark the foundation model using ml-mlip-benchmark.
  4. Data Preparation: Execute scripts/prepare_fairchem_data.py to convert JSON structures to extxyz, generate native LMDB databases, compute…
  5. Fine-Tuning: Execute fairchem -c uma_sm_finetune_template.yaml job.run_dir=XXX natively.
  6. Validation: Run scripts/extract_fairchem_logs.py to extract curves and verify convergence against the benchmarked foundation metrics.
  7. Registration: Use the register_model tool to register the newly fine-tuned model checkpoint into the local registry so future research…

What it can do on your machine

Read from SKILL.md and the folder at commit 6257444. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Python and Shell), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

ML Fairchem Finetune loads about 1.7k tokens when it runs. Until then it costs about 28 tokens; SKILL.md has 675 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~28
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from learningmatter-mit/AtomisticSkills at commit 6257444, republished under its MIT licence (© learningmatter-mit). 675 words, ~1,701 tokens.

Download SKILL.mdSave it as .claude/skills/ml-fairchem-finetune/SKILL.md (or your agent's skills folder). This skill also uses 11 other files; get the full folder from GitHub.
name
ml-fairchem-finetune
description
Fine-tune Fairchem machine learning interatomic potentials (UMA, ESEN) on custom datasets.
metadata.category
machine-learning
metadata.venv
fairchem

Fairchem Fine-tuning

Goal

To evaluate and improve the accuracy of a foundation Fairchem potential (e.g., UMA, ESEN) for a specific chemical system or physical property using the provided Python fine-tuning script.

Instructions

  1. Prepare Labeled Dataset: Obtain diverse structures with high-fidelity labels (energy, forces, stress). See the /benchmark-finetuning workflow for details.
  2. Custom Data Conversion: Read the source data format and write a customized conversion script if needed, formatting it for the subsequent preparation step.
  3. Benchmarking: Predict results on the new labels and benchmark the foundation model using ml-mlip-benchmark.
  4. Data Preparation: Execute scripts/prepare_fairchem_data.py to convert JSON structures to extxyz, generate native LMDB databases, compute dataset references, and configure a templated uma_sm_finetune_template.yaml.
  5. Fine-Tuning: Execute fairchem -c uma_sm_finetune_template.yaml job.run_dir=XXX natively.
  6. Validation: Run scripts/extract_fairchem_logs.py to extract curves and verify convergence against the benchmarked foundation metrics.
  7. Registration: Use the register_model tool to register the newly fine-tuned model checkpoint into the local registry so future research tasks can discover and reuse it.

Training Configuration

Fairchem fine-tuning relies heavily on the fairchem CLI, which uses Hydra for configuration. The script scripts/prepare_fairchem_data.py bridges standard data into the complex Fairchem directory structure and generates .aselmdb dataset formats automatically.

Basic Arguments (Data Prep Script)
KeyTypeDefaultDescription
--datastr(Required)Path to JSON file containing ASE/pymatgen structure dictionaries
--val-datastrNonePath to JSON file containing validation split. (Optional, otherwise --val-split is used)
--val-splitfloat0.1Validation split if --val-data is not provided
--seedint42Random seed for data splitting and initialization
--modelstruma-s-1p1Base model name or path to a checkpoint
--task-namestromatThe specific multi-task context to run against (omat, omol)
--epochsint10Number of training epochs
--lrfloat4e-4Peak learning rate for training
--batch-sizeint2Training batch size
--freeze-backboneflagN/AAdd flag to mathematically freeze OCP/UMA interaction layers
--weight-decayfloat1e-3Weight decay parameter
--warmup-factorfloat0.2LR warmup factor
--warmup-epochsfloat0.01Epochs to perform LR warmup
--lr-min-factorfloat0.01Minimum LR factor after decay
--clip-grad-normfloat100.0Gradient clipping threshold
--evaluate-every-n-stepsint100Steps frequency for validation evaluation
--checkpoint-every-n-stepsint1000Steps frequency for model checkpointing
--ema-decayfloat0.999Exponential moving average decay parameter
--linref-coeffstrNoneJSON array of elemental energy linear references. If None, it auto-computes it over the data.
--vasp-stress-conversionflagN/AAdd flag to automatically convert kB to eV/ų for VASP inputs
--output-dirstr./fairchem_finetuningDirectory to save the lmdb_output intermediate data and run configs
Show full SKILL.md (267 more words)Show less

[!NOTE] If you have created a dedicated research directory for your current workflow (e.g. using the create_research_dir tool), you should set the --output-dir argument to a folder within that active research directory to keep all artifacts and models organized. The data preparation script takes several minutes because it automatically creates .aselmdb copies of all structural inputs mapping to specific index structures.

[!WARNING] Stress Units: Fairchem expects stress in eV/ų. Raw VASP stress obtained directly via some JSON files may be in kilo-Bar (kB), which is ~160x larger and will cause catastrophic training divergence. The Atomate2 MCP tool handles this conversion automatically when convert_units=True. However, if your JSON labels contain raw kB stress, you MUST pass the --vasp-stress-conversion flag to scripts/prepare_fairchem_data.py to automatically scale them by -1/160.2x. For more details on unit standardization, see @[skills/general-property-units/SKILL.md].

Usage:

bash
# 1. Prepare Data and Config
${CLAUDE_SKILL_DIR}/../../venv/run fairchem python ${CLAUDE_SKILL_DIR}/scripts/prepare_fairchem_data.py \
    --data /path/to/training_data.json \
    --model uma-s-1p1 \
    --epochs 10 \
    --lr 4e-4 \
    --batch-size 2 \
    --freeze-backbone \
    --output-dir ./research/my_dir/fairchem_finetuning

# 2. Run Training
export PYTHONPATH=/path/to/research/my_dir/fairchem_finetuning/lmdb_output:$PYTHONPATH
cd /path/to/research/my_dir/fairchem_finetuning/lmdb_output
${CLAUDE_SKILL_DIR}/../../venv/run fairchem fairchem -c uma_sm_finetune_template.yaml job.run_dir=/path/to/research/my_dir/fairchem_finetuning/runs +job.timestamp_id=run_10ep

# 3. Extract Training Logs (Optional, to create standard training_history.json)
${CLAUDE_SKILL_DIR}/../../venv/run fairchem python ${CLAUDE_SKILL_DIR}/scripts/extract_fairchem_logs.py \
    --log /path/to/research/my_dir/fairchem_finetuning/runs/run_10ep/logs/trainer.log \
    --output-dir /path/to/research/my_dir/fairchem_finetuning/results

Constraints

  • Multi-task Setup: UMA and ESEN are trained explicitly on tasks. Be absolutely sure to specify the right --task-name for your datasets (omat vs omol).
  • Reference Energies (linref_coeff): If your fine-tuning data is computed using the same DFT functional (e.g., PBE) as the foundation model's original training data, you should extract and pass the foundation model's original linref_coeff array instead of allowing the script to automatically re-fit it via Least Squares. This maintains thermodynamic scale compatibility across the periodic table.
  • GPU Overhead: Fairchem configuration files compile PyTorch networks prior to run and memory overhead can cause execution to take over 5 minutes to generate logs if using data parallel or multi-gpu execution. Disable wandb using the --debug parameter within the configuration file if training stalls completely.

Author: Bowen Deng Contact: GitHub @learningmatter-mit

© learningmatter-mit, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 11 other files (scripts) in skills/ml-fairchem-finetune of learningmatter-mit/AtomisticSkills.

  • SKILL.md
  • examples/fairchem-wbm-finetune/README.md
  • examples/fairchem-wbm-finetune/_freeze_backbone_helper.py
  • examples/fairchem-wbm-finetune/dataset_metadata.json
  • examples/fairchem-wbm-finetune/run.sh
  • examples/fairchem-wbm-finetune/training_history.json
  • examples/fairchem-wbm-finetune/training_history.png
  • examples/fairchem-wbm-finetune/uma_sm_finetune_template.yaml
  • scripts/extract_fairchem_logs.py
  • scripts/generate_fairchem_config.py
  • scripts/prepare_fairchem_data.py
  • test_fairchem_finetuning.sh

Open the folder on GitHubat commit 6257444

Compare with similar skills

ML Fairchem Finetune next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

ML Fairchem Finetune compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
ML Fairchem Finetune this skilllearningmatter-mit/AtomisticSkills176—~1.7kAutomated safety check: PassMIT
Unimoljinzhezenggroup/computational-chemistry-agent-skills1481 repos~1.5kAutomated safety check: PassLGPL-3.0-or-later
Adapting Transfer Learning Modelsjeremylongshore/tons-of-skills-marketplace2.8k—~1.1kAutomated safety check: PassMIT
Deepmd TrainHello-QM/catgo-LRG2051 repos~1.1kAutomated safety check: PassAGPL-3.0
ML Research LabAnastasiyaW/codex-claude-code-config154—~794Automated safety check: PassMIT
RuView Model Trainingruvnet/RuView97k—~1.3kAutomated safety check: NotesMIT

Similar skills

  • Unimol

    jinzhezenggroup/computational-chemistry-agent-skills

    A standardized CLI wrapper for Uni-Mol molecular ML workflows that handles representation extraction (embeddings), model training (regression/classification), and property prediction with built-in…

    148 GitHub starsUsed in 1 repo~1.5k tokens
    AI & LLM EngineeringAuto-check passed
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Deepmd Train

    Hello-QM/catgo-LRG

    Train DeePMD-kit machine learning potentials. An agent skill from Hello-QM/catgo-LRG.

    205 GitHub starsUsed in 1 repo~1.1k tokens
    AI & LLM EngineeringAuto-check passed
  • ML Research Lab

    AnastasiyaW/codex-claude-code-config

    Machine-learning research loop for dataset curation, fine-tuning, evaluation, inference deployment, experiment tracking, and model explainability.

    154 GitHub stars~794 tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Trains and evaluates several WiFi-signal-based pose and sensing models, from unsupervised pose estimation to domain adaptation and publishing.

    97k GitHub stars~1.3k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check: notes
  • ML Experiment Iteration

    Leeroo-AI/superml

    Produces ranked, evidence-grounded next steps when an ML experiment has stalled, drawing on a Leeroopedia knowledge base or on fetched docs and issues.

    195 GitHub stars~4.8k tokensUpdated 6 mo ago
    AI & LLM EngineeringAuto-check passed

More from learningmatter-mit/AtomisticSkills

All 129 skills in this repo
  • Drug Binding Site Definition

    learningmatter-mit/AtomisticSkills

    Define a docking search box (center coordinates + box dimensions in Angstroms) from a co-crystal ligand, binding-site residues, or a saved JSON specification.

    176 GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • Drug Complex System Builder

    learningmatter-mit/AtomisticSkills

    Build a solvated, charge-neutralized protein-ligand complex for OpenMM molecular dynamics simulation.

    176 GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Drug Pocket Detection

    learningmatter-mit/AtomisticSkills

    Identify and rank ligandable pockets on a protein structure or model using geometry (fpocket) or an ML predictor (P2Rank).

    176 GitHub stars~4k tokensUpdated yesterday
    Auto-check passed
  • Chem Bond Dissociation

    learningmatter-mit/AtomisticSkills

    Calculate homolytic and heterolytic bond dissociation energies (BDEs) for all single bonds in a molecule using MLIPs with RDKit fragmentation.

    176 GitHub stars~2.5k tokensUpdated yesterday
    Auto-check passed
  • Chem Conformer Search

    learningmatter-mit/AtomisticSkills

    Generate molecular conformers with RDKit ETKDG, relax with MLIPs, and rank by energy with Boltzmann weighting.

    176 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Chem DB Mof

    learningmatter-mit/AtomisticSkills

    Query multiple MOF databases (QMOF via MPContribs; ARC-MOF DB7/Majumdar et al.

    176 GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed

Questions about ML Fairchem Finetune

What does ML Fairchem Finetune do?

Fine-tune Fairchem machine learning interatomic potentials (UMA, ESEN) on custom datasets. ML Fairchem Finetune is an agent skill from learningmatter-mit/AtomisticSkills. Fine-tune Fairchem machine learning interatomic potentials (UMA, ESEN) on custom datasets.

When should I use ML Fairchem Finetune?

ML Fairchem Finetune fits situations like: tasks that involve Fine-tuning; tasks that involve Machine learning.

How do I install ML Fairchem Finetune in Claude Code?

Run `npx skills add learningmatter-mit/AtomisticSkills --skill ml-fairchem-finetune -a claude-code`. Or copy the skill folder (skills/ml-fairchem-finetune in learningmatter-mit/AtomisticSkills) into .claude/skills/ml-fairchem-finetune in your project. Claude Code loads it when a task matches its description.

How do I install ML Fairchem Finetune in Codex?

Run `npx skills add learningmatter-mit/AtomisticSkills --skill ml-fairchem-finetune -a codex`. Or copy the skill folder (skills/ml-fairchem-finetune in learningmatter-mit/AtomisticSkills) into .agents/skills/ml-fairchem-finetune in your project. Codex loads it when a task matches its description.

Can I use ML Fairchem Finetune in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add learningmatter-mit/AtomisticSkills --skill ml-fairchem-finetune -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ml-fairchem-finetune, .gemini/skills/ml-fairchem-finetune, .github/skills/ml-fairchem-finetune and .opencode/skills/ml-fairchem-finetune in your project.

What does ML Fairchem Finetune need to run?

Going by SKILL.md and its folder, ML Fairchem Finetune needs Python and a shell for the scripts in its folder. Our summary lists: Python 3; A Bash shell.

Does ML Fairchem Finetune access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is ML Fairchem Finetune safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does ML Fairchem Finetune use?

ML Fairchem Finetune is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does ML Fairchem Finetune use?

About 1.7k tokens (SKILL.md is roughly 6.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to ML Fairchem Finetune?

Skills that share tags, products or a category with ML Fairchem Finetune: Unimol (jinzhezenggroup/computational-chemistry-agent-skills, 148 stars), Adapting Transfer Learning Models (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Deepmd Train (Hello-QM/catgo-LRG, 205 stars) and ML Research Lab (AnastasiyaW/codex-claude-code-config, 154 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains ML Fairchem Finetune?

learningmatter-mit (a GitHub organization) maintains it in learningmatter-mit/AtomisticSkills, which has 176 GitHub stars. The repository holds 129 skills in this directory. The repository was last updated on October 7, 2026.

Source: learningmatter-mit/AtomisticSkills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.