ml-matgl-finetune
Installation
SKILL.md
MatGL Fine-tuning
Goal
To evaluate and improve the accuracy of a foundation MatGL potential (e.g., CHGNet, M3GNet, TensorNet) for a specific chemical system or physical property using the provided Python fine-tuning script.
Instructions
- Prepare Labeled Dataset: Obtain diverse structures with high-fidelity labels (energy, forces, stress). See the
/benchmark-finetuningworkflow for details. - Custom Data Conversion: Read the source data format and write a customized conversion script if needed, formatting it for the subsequent preparation step.
- Data Preparation: Execute
scripts/prepare_matgl_data.pyto process JSON structures and split into training and validation sets. - Fine-Tuning: Execute
scripts/train_matgl.pyto begin fine-tuning natively on the GPU using PyTorch Lightning. - Validation: Verify convergence and compare against the benchmarked foundation metrics.
- Registration: Use the
register_modeltool to register the newly fine-tuned model checkpoint into the local registry so future research tasks can discover and reuse it.