Fastgen train
Run, resume or troubleshoot NVIDIA FastGen training.
Safety check
- Not rated by Claude yet. We only sell skills Claude has read and rated 7 out of 10 or higher, so this one is a free link to its author.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: fastgen-train
description: >-
Run, resume or troubleshoot NVIDIA FastGen training: SFT or distillation with train.py, bounded smoke tests, distributed launches, checkpoints, validation and W&B evidence. Use it whenever training is executed or a training run misbehaves.
license: Apache-2.0
metadata:
author: "Julius Berner <jberner@nvidia.com>"
domain: ml
---
# Train or distill with FastGen
Apply [fastgen-runtime](https://github.com/NVlabs/FastGen/blob/main/skills/fastgen-runtime/SKILL.md) first. The
[README](https://github.com/NVlabs/FastGen/blob/main/README.md#quick-start) and the [configuration README](https://github.com/NVlabs/FastGen/blob/main/fastgen/configs/README.md)
own launch commands, run directories and checkpoint storage; the
[troubleshooting guide](https://github.com/NVlabs/FastGen/blob/main/fern/docs/troubleshooting.mdx) owns failure diagnosis. Read
[run contracts](references/run-contract.md) to bound a run, read its logs or continue a
checkpoint.
1. **Goal and inputs.** Decide whether the deliverable is a smoke test, a bounded
experiment, a quality target or a resumed run. Use
[fastgen-configure](https://github.com/NVlabs/FastGen/blob/main/skills/fastgen-configure/SKILL.md) for the recipe and
[fastgen-dataset](https://github.com/NVlabs/FastGen/blob/main/skills/fastgen-dataset/SKILL.md) for data; check every enabled
loss, and the validation loader, against the real-data versus prompt-only contract.
2. **Weights versus state.** Distinguish external weights, warm starts and full resume;
the [checkpoint table](https://github.com/NVlabs/FastGen/blob/main/fern/docs/troubleshooting.mdx#a-checkpoint-fails-to-load)
lists the settings and their order. Resume is on by default, so independent runs need
new run identities, and FSDP runs resume only from sharded checkpoints
([checkpoint storage](https://github.com/NVlabs/FastGen/blob/main/fastgen/configs/README.md#distributed-checkpoint-storage)).
3. **Bound and observe.** Before launching set `trainer.max_iter`,
`trainer.save_ckpt_iter`, `trainer.validation_iter`, `trainer.logging_iter` and the
W&B destination; keep the algorithmic callbacks. For a smoke test log scalars and media
every iteration through the [W&B callback](https://github.com/NVlabs/FastGen/blob/main/fastgen/callbacks/README.md) and run
long enough to cover a student update and every alternating optimizer phase.
4. **Launch.** Enable exactly one of `trainer.ddp`/`trainer.fsdp` for multi-GPU runs; a
launcher alone distributes nothing. Budget memory for teacher, student, auxiliary
networks, optimizer state and preprocessors
([CUDA out of memory](https://github.com/NVlabs/FastGen/blob/main/fern/docs/troubleshooting.mdx#cuda-runs-out-of-memory)),
then confirm the [runtime startup checks](https://github.com/NVlabs/FastGen/blob/main/skills/fastgen-runtime/SKILL.md)
and, when requested, online tracker uploads.
...From NVIDIA's repository, Apache-2.0 licence.
Related skills
-
Checked
Resume tailor
Tailors your resume to a job ad by matching keywords, rewriting experience with numbers and checking ATS fit.
7/101 credit -
Checked
Job interview coach
Prepares likely interview questions, STAR answer scripts and mock follow ups from your resume and target role.
7/101 credit -
Checked
Career change CV
Writes a CV for a career change that leads with transferable evidence instead of job titles that do not match.
7/101 credit -
Checked
Project deep dive prep
Prepares you to present past technical work in interviews, from choosing a project to fielding hard questions.
7/101 credit -
Checked
Tailored resume bullets
Tailors your resume to a job ad with quantified, defensible bullets, so it parses well and fits the role.
7/101 credit -
Checked
Resume and cover letter
Writes a resume and cover letter for one role, in the right format for Australia, New Zealand, the US or UK.
7/101 credit