Fastgen add method
Implement and validate a new NVIDIA FastGen training method or objective.
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-add-method
description: >-
Implement and validate a new NVIDIA FastGen training method or objective (distillation, consistency, adversarial or fine-tuning variants) from a paper or reference code: FastGenModel subclass, method config, gradients, student sampling and tests. Use it whenever an algorithm is not expressible through the existing method configs.
license: Apache-2.0
metadata:
author: "Julius Berner <jberner@nvidia.com>"
domain: ml
---
# Add a FastGen method
Apply [fastgen-develop](https://github.com/NVlabs/FastGen/blob/main/skills/fastgen-develop/SKILL.md)
and [fastgen-runtime](https://github.com/NVlabs/FastGen/blob/main/skills/fastgen-runtime/SKILL.md). Read the
[method index](https://github.com/NVlabs/FastGen/blob/main/fastgen/methods/README.md) and the nearest maintained implementation,
the `FastGenModel` docstrings in [model.py](https://github.com/NVlabs/FastGen/blob/main/fastgen/methods/model.py), then the
[method contract](references/method-contract.md).
1. **Plan.** Resolve the algorithm version and its authoritative paper or code. Write down
the state and time convention, target construction, detach boundaries, loss weighting
and reduction, update order, required teacher or auxiliary networks and the inference
rollout. Separate the method from the reference's architecture, dataset and
engineering defaults, and record unresolved paper/code discrepancies.
2. **Reuse.** If existing options express the algorithm, hand off to
[fastgen-configure](https://github.com/NVlabs/FastGen/blob/main/skills/fastgen-configure/SKILL.md).
Otherwise choose the narrowest compatible method extension. Share mechanisms only
where semantics match; do not inherit losses or networks because they are defaults.
Move objective math into
[common_loss.py](https://github.com/NVlabs/FastGen/blob/main/fastgen/methods/common_loss.py) only when another caller shares it.
3. **Implement.** Extend the selected method, creating a `FastGenModel` subclass in the
matching category only when needed. Follow the contract's model, optimizer, scheduler,
batch and checkpoint interfaces; for a new method add a typed config under
`fastgen/configs/methods/` and its export in
[methods/__init__.py](https://github.com/NVlabs/FastGen/blob/main/fastgen/methods/__init__.py). Keep model and dataset names out
of the method; experiment configs own them.
4. **Dependencies.** Trace the network operations and batch fields the method needs
through the actual callers; use
[fastgen-add-network](https://github.com/NVlabs/FastGen/blob/main/skills/fastgen-add-network/SKILL.md) for missing network
capabilities and [fastgen-dataset](https://github.com/NVlabs/FastGen/blob/main/skills/fastgen-dataset/SKILL.md) for supervision.
Declare the supported prediction types, samplers, modalities and causal modes.
...From NVIDIA's repository, Apache-2.0 licence.
Related skills
-
Only hereChecked
Exam answer coach for HSC, VCE and QCE
Coaches Australian Year 11 and 12 students (HSC, VCE, QCE, SACE, WACE) to answer exam and practice questions the way markers reward.
1 credit -
Only hereChecked
Practice answer marker for HSC, VCE and QCE
Marks an Australian senior student's practice or past paper answer (HSC, VCE, QCE, SACE, WACE) honestly.
1 credit -
Only hereChecked
Assessment task planner for Year 11 and 12
Turns an Australian Year 11 or 12 assessment task sheet.
1 credit -
Checked
Socratic tutor
Teaches a topic by asking questions, tracking your level and quizzing you with spaced review until it sticks.
8/101 credit -
Checked
Exam study planner
Builds a realistic day by day exam study plan with spaced review, recall practice and time for weak topics.
7/101 credit -
Checked
Study guide maker
Combines lecture notes, slides and readings into one exam ready study guide with self test questions.
7/101 credit