Configure and chain repo-native Nemotron steps for curation, tokenizer extension, SDG/BYOB, training, conversion, optimization, and evaluation.
76%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./skills/nemotron-customize/SKILL.mdIMPORTANT: Read this file before answering any nemotron-customize, Nemotron
customization, governed Curator flow, translation, tokenizer extension,
synthetic-data, BYOB benchmark, SFT, PEFT, RL, conversion, optimization,
checkpoint or existing/hosted-endpoint evaluation, or multi-step pipeline
request. This applies whether the user names one step or asks you to compose
several steps into a pipeline.
Evaluation requests count even when no training is involved: "evaluate",
"benchmark", "smoke test", or "score" an existing/hosted endpoint, an API/model
ID, or a deployed model all route to eval/model_eval. Read this skill for
those too.
Turn a model-customization request into a repo-native Nemotron step pipeline. Plan the DAG, validate artifact wiring, and create only the YAML/config files needed to run existing steps.
Use this skill only for inspecting, configuring, validating, running, or submitting existing Nemotron steps or multi-step training/customization pipelines. For frontend, dashboard, visualization, generic ML advice, billing/access, or unrelated coding tasks, stop with a short scope note and do not inspect the step catalog or edit files in that turn.
Required:
Optional when the selected route needs them:
Resolve omitted values by consulting, in order: selected state/config files,
explicit invocation arguments, established agent context, then the current user
prompt. An explicit user correction overrides an older source. If a required
value remains unknown, ask for it or return Blocked; do not guess it.
src/nemotron/steps/ present; run from
the repo root with uv available.NEMOTRON_ENV_FILE or
env*.toml) with a section matching the selected step.NGC_API_KEY for managed persona assets and HF_TOKEN for gated models.Blocked when they are missing.Use bundled references first. The references/ folder is the first decision
surface for routing, artifacts, patterns, hardware heuristics, and command
shape. Use src/nemotron/steps/... only as a live verification/fallback source
when you need exact current config fields, manifests, runner imports, or details
missing from bundled references.
If sources disagree:
SKILL.md workflow and the relevant bundled reference before
opening repo source files.references/CATALOG.md and references/ARTIFACTS.md before any
broad repo exploration. Once a route is determined, verify only the selected
live step/config/env files needed for the answer.Blocked handoff.references/COMMANDS.md as the authoritative checklist before
finalizing configs or execution commands.Keep Bash scoped to repo-safe commands such as uv run nemotron steps ...,
targeted tests, git status/diff, and config validation. Never run environment
dumps (env, printenv, broad export) or commands that expose secret values.
For remote submissions, destructive changes, or expensive launches, confirm
before execution.
When inspecting env/config files, avoid printing whole files that may contain
secrets. Use targeted reads, report only section names and env-var names, and
redact values for fields containing token, key, secret, password,
credential, or auth.
| Question | Read first | Live fallback / verification |
|---|---|---|
| Which step or category fits? | references/CATALOG.md | uv run nemotron steps list/show, then selected step.toml |
| Do artifacts chain? | references/ARTIFACTS.md | src/nemotron/steps/types.toml |
| What run shape should I emit? | references/COMMANDS.md | checked-in config YAML plus active profile TOML |
| Remote profile generation or selection | references/COMMANDS.md | active NEMOTRON_ENV_FILE, env.toml, or env.*.toml |
| What hardware/backend should I recommend? | references/HARDWARE.md | selected step [[models]] and [[strategies]] |
| Which cross-step guardrails apply? | references/PATTERNS.md | src/nemotron/steps/patterns/<id>.md |
| How do I run the full workflow? | references/WORKFLOW.md | selected step configs, step.py, and runners |
| Which upstream library API should generated code use? | references/context/index.toml -> matching pack | selected step.py, _runners/, upstream docs |
| New project scaffold, only when existing repo code cannot support the request | references/act/PROJECT.md | existing repo project/recipe shape |
| Per-stage code rules, only when existing repo code cannot support the request | references/act/STAGE.md | selected step.py and shared runner |
Do not start by reading category READMEs or step.toml for ordinary decisions.
Select candidates from bundled references, then verify exact live details before
writing configs or final commands.
Use references/CATALOG.md as the authoritative home for step selection and
route-specific fast paths. Use ARTIFACTS.md, PATTERNS.md, and HARDWARE.md
only to resolve artifact, cross-step, or hardware constraints after the catalog
narrows the route.
The catalog includes four specialized routing families that must not be collapsed into generic steps:
sdg/persona_mcq for persona-grounded MCQ-shaped training data and
byob/mcq for held-out MCQ benchmarks. Use byob/bfcl for executable
function-calling benchmarks and their translation/evaluation lifecycle.tokenizer_extension/* for tokenizer construction, fertility, embedding
initialization, and cross-vocabulary BPB evaluation. Continue pretraining the
resulting resized HF checkpoint with a pretraining step; tokenizer evaluation
does not replace downstream model evaluation.eval/model_eval, choose launcher when NeMo Evaluator Launcher owns the
deployment/executor flow and direct when the endpoint is already hosted and
the selected Nemotron env profile should own scheduling.Each step is independent and stitching steps together is your job. Compose any pipeline by artifact matching from the user's end goal: chain a step only when the next step consumes an artifact type nothing upstream already produces. Do not rely on fixed, named step combinations.
Follow the flow that matches the request: a recommendation/plan, a single-step command, or a multi-step pipeline. In all cases, route from the bundled references first, gather required inputs, and verify the selected live step before presenting anything as runnable.
Use this shape for planning answers:
Decision, Why, Required inputs, Config/command, Avoid, and Next step.
Call out the stack to avoid when the user's constraints make it a poor fit.
Whenever the answer includes a command that touches a hosted service or remote execution, also state, in the answer:
--batch/--run, the env TOML profile prerequisite; if no profile
exists, mark the command Blocked or give the local --dry-run shape.pyproject.toml and src/nemotron/steps/.references/CATALOG.md and the selected section of
references/COMMANDS.md.uv run nemotron steps show <step_id>
when available, or the selected step.toml when the CLI is unavailable.NEMOTRON_ENV_FILE or repo-root env*.toml and
pick an actual section whose profile matches the step.Verified, Repo-grounded, Reference-grounded, or Blocked.Canonical command shapes live in references/COMMANDS.md.
For pipelines with two or more stages, use Orient -> Plan -> Act -> Verify.
Read references/WORKFLOW.md for the phase checklist.
Use when the request maps to existing steps. Fast path:
references/CATALOG.md -> references/ARTIFACTS.md ->
references/COMMANDS.md -> verify selected live manifest/config/profile ->
add a new named config under the selected step's config/ directory.
src/nemotron/steps/. Never
divert to alternate recipe CLIs such as src/nemotron/cli/commands/super3/ or
.../nano3/, even for Super3/Nano3 work. If a request seems to need those,
map it back to the equivalent catalog step (e.g. sft/megatron_bridge).src/nemotron/steps/<cat>/<step>/config/ directory, for example
src/nemotron/steps/sft/megatron_bridge/config/my_super3.yaml.default.yaml, tiny.yaml, other shipped configs,
step.toml, step.py, or shared runners. Adding a new config file beside
them is the expected and only customization write.default.yaml schema (read it, copy the
needed fields), then override only what the request requires.Use only after confirming no existing step, runner, recipe, CLI, or YAML config
surface can satisfy the request. Full procedure lives in
references/WORKFLOW.md.
Surface these constraints before commands or config writes:
pack_size, Megatron-Bridge seq_length, packed sequence size,
tokenizer, and chat template must match.packed_parquet and binidx are tokenizer-locked; rebuild after
tokenizer, chat-template, sequence-length, split, or blend changes.max_docs, not max_tokens, for BPB comparisons across vocabularies, and
compare BPB rather than per-token perplexity.iter_*
checkpoint, not a parent run directory.tiny.yaml, tiny_chat.yaml) are wiring tests, not quality
evidence.${art:...} references belong in recipe-backed configs; standalone YAML uses
plain paths.bin/idx data and blend.json from the same run/release.src/nemotron/steps/<cat>/<step>/config/ directory; never modify the
checked-in default.yaml or other shipped configs.Do:
src/nemotron/steps/; never use
alternate recipe CLIs (src/nemotron/cli/commands/super3|nano3/...).config/ directory; base it
on default.yaml rather than copying it blindly.Do not:
default.yaml/tiny.yaml, other shipped configs,
step.toml, step.py, runners); only add a new config beside them.SKILL.md; use bundled references and source
fallback.Single-step routing (LoRA on a small box). User: "LoRA fine-tune a HF model
on 2 GPUs." Route per CATALOG.md -> peft/automodel (HF base + small GPU
count); do not offer Megatron-Bridge. Collect base model, JSONL data path,
output dir, LoRA rank/alpha, then emit one uv run nemotron steps run peft/automodel -c <config> --dry-run ... command.
Multi-step pipeline (Super3 SFT). User: "data prep + SFT for Super3." This is
two stages, so plan first: SFT on Super3 -> Megatron-Bridge, which consumes
packed_parquet, so data_prep/sft_packing is required upstream. Present the
DAG (sft_packing -> sft/megatron_bridge), align pack_size/seq_length/
tokenizer, wait for approval, then add new configs under
src/nemotron/steps/<step>/config/<name>.yaml. Super3 needs a remote profile;
state the env TOML prerequisite or mark Blocked.
Hosted-endpoint evaluation (no training). User: "benchmark my hosted model
endpoint." Route to eval/model_eval. Use -c tiny_chat for a one-sample
launcher smoke test, or -c direct when the endpoint is already hosted and the
Nemotron profile must own the backend. Collect endpoint URL, model id, task IDs,
matching tokenizer, durable output directory, and the auth env-var name (value
exported, never inlined). See references/COMMANDS.md Evaluation Examples.
| Situation | Action |
|---|---|
| Artifact types do not chain | Recheck references/ARTIFACTS.md; insert a converter or change the DAG before writing configs. |
Remote profile or --batch is unclear | Read active env TOML; do not guess profile names. |
| Config key is unclear | Verify selected checked-in config, step.py, and shared runner before editing. |
| Strategy points to a missing context pack | Skip the pack, use catalog/pattern text, and flag the plan with WARNING: <topic> docs unavailable. |
| Hardware looks too small | Use references/HARDWARE.md; suggest smaller model, AutoModel, then LoRA before full Megatron-Bridge. |
| Two Act attempts fail | Stop, explain what was tried and failed, and ask how to proceed. |
| No existing repo path matches | Check references/context/index.toml and selected source fallback; use Explorer mode only after naming the gap. |
NVIDIA-NeMo/Nemotron
6442e0f
Also appears in
last in sync Sep 6, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.