# Develop FastGen

Resolve the user's FastGen checkout separately from the installed skill. Use the requested
revision, or the current checkout, as the authority for linked policies and interfaces. Read
[Design and Maintenance](https://github.com/NVlabs/FastGen/blob/main/CONTRIBUTING.md#design-and-maintenance)
for the shared coding rules and the owning component's README and interface docstrings.
Use the requested scope and information already provided before asking for missing inputs.
For review-only requests, inspect and verify within scope, then report findings without editing.

1. **Trace.** Follow the affected callers and consumers before editing. For changes across
   data and model boundaries, inspect loader decoding in
   [datasets](https://github.com/NVlabs/FastGen/blob/main/fastgen/datasets/README.md),
   `FastGenModel.prepare_batch` in [model.py](https://github.com/NVlabs/FastGen/blob/main/fastgen/methods/model.py),
   `FastGenNetwork.build_conditioning` in [network.py](https://github.com/NVlabs/FastGen/blob/main/fastgen/networks/network.py)
   and `Trainer.train_step` in [trainer.py](https://github.com/NVlabs/FastGen/blob/main/fastgen/trainer.py)
   as relevant; place the change with the component that owns the behavior.
2. **Change.** Apply the shared rules to the implementation and affected callers, tests
   and documentation together. For new capabilities, also use
   [fastgen-add-network](https://github.com/NVlabs/FastGen/blob/main/skills/fastgen-add-network/SKILL.md),
   [fastgen-add-method](https://github.com/NVlabs/FastGen/blob/main/skills/fastgen-add-method/SKILL.md) or
   [fastgen-add-modality](https://github.com/NVlabs/FastGen/blob/main/skills/fastgen-add-modality/SKILL.md).
3. **Verify.** Follow the contributor guide's
   [formatting](https://github.com/NVlabs/FastGen/blob/main/CONTRIBUTING.md#code-style-and-formatting)
   and [checks](https://github.com/NVlabs/FastGen/blob/main/CONTRIBUTING.md#continuous-integration).
   Exercise changed behavior and requested boundary cases through real FastGen components
   and affected call sites; distinguish static checks from runtime tests. For patch
   deliverables, generate the diff from complete target files and check it against clean
   files at the selected revision. If a failure crosses interfaces, trace the producer
   and consumer contracts before adding another check or workaround.

Report source-backed findings or changed behavior, affected interfaces and documentation,
checks actually run and any unverified paths.

---

Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.

The license files are attached. [Apache 2.0](https://knowen.md/f/d1b26c59-a154-4da4-a063-aca638c651b1) · [CC BY 4.0](https://knowen.md/f/7f7aaa6a-a0bf-4460-9b22-48da4ce0fdc9)

The attached ZIP contains the pinned supporting files and applicable license notices.