executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
.\nDo not paste a literal `$PROPERTY` unless it is intentionally left for the\nshell to expand.\n\n## Resource and output controls\n\nThe default trainer is one device with float32 precision and a nominal total\ntraining batch size of 512; the data-module batch expression divides this by\n`trainer.accumulate_grad_batches`, devices, and nodes. Alex-MP-20 commonly needs\n`trainer.accumulate_grad_batches=4` or more on one GPU. Start with a reduced\nbatch/limited epoch smoke test only when the user explicitly approves a launch;\nthe normal route is the no-launch preflight above. See [configuration.md](references/configuration.md)\nfor safe override patterns.\n\nThe default run directory is the generic pattern\n`outputs/singlerun/\u003cdate>/\u003ctime>` (the config uses Hydra's `${now:...}` values).\nA user may set `OUTPUT_DIR` before launch; preserve a dedicated, writable output\nlocation and do not overwrite an unrelated run. Base training has\n`auto_resume: True` and stores a resume checkpoint directory below the run;\nCSP also enables auto-resume. Fine-tuning uses its own output directory and\nloads the source checkpoint through the adapter rather than `checkpoint_path`.\n\nW&B is configured as the default trainer logger, but README commands opt out\nwith `~trainer.logger`. Keep that opt-out for local checks and offline work.\nRemove it only when the user has deliberately configured W&B credentials/project\nsettings or another logger. Do not claim that logging or full training metrics\nwere verified merely because a command was assembled.\n\n## Expected observations and stop conditions\n\n- A resolved config should show the selected `data_module`, trainer device,\n accumulation, logger state, and all requested properties.\n- A train/fine-tune launch should print/save a resolved config and write\n Lightning checkpoints under the run output; the exact checkpoint filename is\n data- and epoch-dependent.\n- README reports `loss_val` reaching about `0.4` for its MP-20 base-training\n example after 360 epochs, but this repository inspection did not reproduce\n that claim. Treat it as a documented reference, not a verification result.\n- Stop before launch when the requested property is absent from every split,\n its embedding config is absent, the adapter source checkpoint cannot be\n located, the backend is unavailable, or the effective batch is unsafe.\n- Stop and preserve the output directory when a job fails; inspect the saved\n config and checkpoint state before deciding whether to resume or start a new\n run. Use [troubleshooting.md](references/troubleshooting.md).\n","licenseDocuments":[]}}
training-finetuningRoute MatterGen Hydra base training, CSP training, property fine-tuning, custom-property setup, resource controls, checkpoints, and safe no-launch validation.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this route when the task is to train MatterGen from scratch, train its crystal-structure-prediction (CSP) variant, or fine-tune a checkpoint on one or more properties. This route is procedural: it selects a dataset and config, preflights overrides, then asks for an explicit decision before launching a long-running job. It does not launch training as a default check.
mattergen-train with default.yaml. It constructs a
new unconditional diffusion model from the selected data module.csp config name. CSP omits atomic-number
denoising, so it is a distinct model/config, not a sampling-only flag.mattergen-finetune with finetune.yaml and an
adapter. It loads adapter.pretrained_name from the published checkpoint
registry, or adapter.model_path from a locally trained model, then adds
the requested conditions under property_embeddings_adapt.If the user has not chosen between base training and fine-tuning, stop after preflight and ask. Fine-tuning is not a resume operation: it creates an adapter model from a source checkpoint, whereas base training can auto-resume its own output directory.
From the installed skill directory, syntax-check a command without starting it:
python <mattergen-skill-root>/sub-skills/training-finetuning/scripts/validate_hydra_overrides.py \
--config-root <mattergen-config-root> \
data_module=mp_20 '~trainer.logger'
For CSP or fine-tuning, include the intended config and all property names:
python <mattergen-skill-root>/sub-skills/training-finetuning/scripts/validate_hydra_overrides.py \
--config-root <mattergen-config-root> --config-name csp data_module=mp_20
python <mattergen-skill-root>/sub-skills/training-finetuning/scripts/validate_hydra_overrides.py \
--config-root <mattergen-config-root> data_module=mp_20 \
'+lightning_module/diffusion_module/model/property_embeddings@adapter.adapter.property_embeddings_adapt.dft_mag_density=dft_mag_density' \
'data_module.properties=["dft_mag_density"]'
<mattergen-config-root> is the installed package's conf resource or an
explicit project copy that the user controls; it is not a path back to the
source repository. The preflight checks override shape, config-group files,
and property-embedding files when the config root is supplied. A passing
result is not a model instantiation or a data-read test. It is safe to run
repeatedly. Fix every error; review warning messages before launching.
Only after confirming dataset cache, backend/device, output location, and
checkpoint choice should the user run a command from cli-reference.md.
Quote list/dict overrides in shells that interpret brackets, braces, or $.
Do not paste a literal $PROPERTY unless it is intentionally left for the
shell to expand.
The default trainer is one device with float32 precision and a nominal total
training batch size of 512; the data-module batch expression divides this by
trainer.accumulate_grad_batches, devices, and nodes. Alex-MP-20 commonly needs
trainer.accumulate_grad_batches=4 or more on one GPU. Start with a reduced
batch/limited epoch smoke test only when the user explicitly approves a launch;
the normal route is the no-launch preflight above. See configuration.md
for safe override patterns.
The default run directory is the generic pattern
outputs/singlerun/<date>/<time> (the config uses Hydra's ${now:...} values).
A user may set OUTPUT_DIR before launch; preserve a dedicated, writable output
location and do not overwrite an unrelated run. Base training has
auto_resume: True and stores a resume checkpoint directory below the run;
CSP also enables auto-resume. Fine-tuning uses its own output directory and
loads the source checkpoint through the adapter rather than checkpoint_path.
W&B is configured as the default trainer logger, but README commands opt out
with ~trainer.logger. Keep that opt-out for local checks and offline work.
Remove it only when the user has deliberately configured W&B credentials/project
settings or another logger. Do not claim that logging or full training metrics
were verified merely because a command was assembled.
data_module, trainer device,
accumulation, logger state, and all requested properties.loss_val reaching about 0.4 for its MP-20 base-training
example after 360 epochs, but this repository inspection did not reproduce
that claim. Treat it as a documented reference, not a verification result.