/atomistic-skills:ml-mlip-automlfrom Atomistic Skills
Automates hyperparameter tuning for MLIPs (MACE, MatGL, FairChem) using an LLM-driven iterative search. Interprets validation MAE trajectories to deduce optimal parameter permutations.
Ships in Atomistic Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
To automate the discovery of optimal training hyperparameters (learning rate, batch size, backbone freezing) by coupling the agent to an iterative execution loop. Instead of conducting exhaustive grid searches, the LLM actively interprets validation MAE trajectories per epoch and strategically deduces the next optimal parameter permutation to evaluate.
Instead of calling a monolithic training tool, this SKILL dictates how you (the Agent) should orchestrate a search using the individual foundation fine-tuning SKILLs (ml-mace-finetune, ml-matgl-finetune, ml-fairchem-finetune).
search_run_lr1e-3_frozen) and execute the respective MLIP's prepare_*_data.py and training runner.training_history.json directly into your context. Analyze the validation loss and MAE curves (slope, signs of overfitting/forgetting).Different MLIP frameworks expose different tunable parameters. When deducing your next move, restrict your search space to the available features:
| Feature | ml-fairchem-finetune | ml-matgl-finetune | ml-mace-finetune |
|---|---|---|---|
| Freeze backbone | --freeze-backbone | --freeze-backbone | --freeze-backbone |
| Re-init head | N/A (Auto) | --reinit-head | --reinit-head |
| Learning Rate | --lr (Default: 4e-4) | --lr (Default: 1e-3) | --lr (Default: 1e-4) |
| Batch Size | --batch-size | --batch-size | --batch-size |
| Scheduler | Cosine with Warmup | Cosine or Plateau | Exponential or Plateau |
| Force Loss Ratio | --force-weight | --force-weight | --forces-weight |
| Energy Loss Ratio | --energy-weight | --energy-weight | --energy-weight |
| Loss Criterion | Huber/L1/L2 | Huber/L1/L2 | universal/weighted |
[!TIP] Constraints & Best Practices
- Key hyperparameters to explore: Learning rate, backbone freezing, force loss ratio, energy loss ratio, and loss criterion.
- Batch Size: Should generally be set to around 8.
- Trial Count: Spend around 10 trials on different sets of hyperparameters.
- Epoch Count during Search: Use only ~10 epochs per trial on a small dataset to quickly gauge convergence.
- Dataset Size: If the dataset is already small (smaller than 1000 structures), we don't need to test on a subset. Just use the full dataset.
- Final Training: Afterwards, use the best set of hyperparameters discovered to train on the full dataset for many epochs with early stopping.
To initiate this workflow, users should provide an anchor dataset and instruction similar to:
"I have a dataset at
private_data/my_dataset.json. Please orchestrate an LLM-driven hyperparameter search over learning rates, batch sizes (~8), freezing strategies, and loss ratios. Execute one run at a time for ~10 epochs, read thetraining_history.json, explain your logic for the next permutation, and stop after ~10 trials to find the best combination. Finally, train the best model for many epochs with early stopping."
Author: Bowen Deng Contact: GitHub @learningmatter-mit
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub learningmatter-mit/atomisticskills --plugin atomistic-skills133 skills in this plugin
/chem-bond-dissociationCalculate homolytic and heterolytic bond dissociation energies (BDEs) for all single bonds in a molecule using MLIPs with RDKit fragmentation./chem-conformer-searchGenerate molecular conformers with RDKit ETKDG, relax with MLIPs, and rank by energy with Boltzmann weighting./chem-db-mofQuery multiple MOF databases (QMOF via MPContribs; ARC-MOF DB7/Majumdar et al. via Materials Cloud) and download CIF structures with optional element or identifier filters.Other plugins' skills for the same job