Fine-Tune Nemotron-3-Ultra-550B
Fine-Tune Nemotron-3-Ultra-550B
Introduction
NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16 is a large language model (LLM) trained by NVIDIA with agentic, reasoning, and conversational capabilities. It supports multi-step agents, long-context analysis, and reasoning over code, math, and science. Like other models in the family, it responds to user queries and tasks by first generating a reasoning trace and then concluding with a final response. The model’s reasoning capabilities can be configured through a flag in the chat template.
The model employs a hybrid Latent Mixture-of-Experts (LatentMoE) architecture, using interleaved Mamba-2 and MoE layers, along with select Attention layers. Like the Super model, the Ultra model incorporates Multi-Token Prediction (MTP) layers for faster text generation and improved quality. It is also trained using an NVFP4 pre-training recipe to maximize compute efficiency. The model has 55B active parameters and 550B parameters in total.
This guide walks you through fine-tuning Nemotron-3-Ultra on HellaSwag using NVIDIA NeMo AutoModel. You will learn how to configure the recipe, launch training, and inspect the results.
To set up your environment to run NeMo AutoModel, follow the installation guide.
Data
HellaSwag
This guide uses HellaSwag, a commonsense natural-language-inference dataset consisting of context and four candidate continuations. This guide uses the standard rowan/hellaswag Hugging Face split, formatted for next-token-prediction fine-tuning.
- Train and validation splits: taken directly from the Hugging Face dataset.
- Tokenizer: shared with the base model (instantiated from the Nemotron-3-Ultra checkpoint’s config).
- Sequence packing: THD packing with
packed_sequence_size=2048(packing_strategy: thd) using the packed-sequence THD collater. Validation uses the same THD collater, so the whole run stays on the packed(1, T)path used by the Transformer Engine attention backend.
For the full HellaSwag dataset wrapper used in NeMo AutoModel, refer to nemo_automodel.components.datasets.llm.hellaswag.HellaSwag.
Launch Training
A ready-to-use PEFT (LoRA) recipe ships at examples/llm_finetune/nemotron/nemotron_ultra_v3_hellaswag_peft_gb200.yaml, validated on 4 × GB200 (16 GPUs). An H100-oriented variant (same recipe, deepep dispatcher and ep_size: 32 for a 4 × 8 H100 allocation) ships at examples/llm_finetune/nemotron/nemotron_ultra_v3_hellaswag_peft.yaml.
NeMo AutoModel supports several ways to launch training — through the AutoModel CLI with Slurm, interactive sessions, torchrun, and more. For full details on all launch options (Slurm batch jobs, multi-node configuration, environment variables, and so on), refer to the Run on a Cluster guide.
Standalone Slurm Script
This recipe runs in the 26.04 NeMo AutoModel container (nvcr.io/nvidia/nemo-automodel:26.04.00) and expects your main checkout of AutoModel mounted over the container’s /opt/Automodel, so the run uses the latest code rather than the image’s baked-in copy. Clone it once onto a shared filesystem that every node can see:
The Slurm script below fine-tunes Nemotron-3-Ultra on 4 × GB200 (16 GPUs). It drives torchrun from inside an srun step that rendezvouses on the first allocated node and forwards the per-node rank. Fill in the <...> placeholders (account, credentials, paths), point the /opt/Automodel mount at the clone above, then sbatch it:
Before you start:
- Container: use
nvcr.io/nvidia/nemo-automodel:26.04.00. Pyxis pulls it from NGC on first use; on a multi-node run you can pre-import it to a local.sqsh(enroot import) to avoid every node pulling it. - Mount
main: the/your/clone/of/Automodel:/opt/Automodelbind mount is what makes the job run your checked-outmaininstead of the image’s frozen copy — keep it pointed at the clone from the step above. - GPU count: set
--gpus-per-node/--nproc-per-nodeto the GPUs per node (4on GB200) and sizedistributed.ep_sizeto the total GPU count (16 here). - First-run download: the recipe pulls the ~1 TB model from the Hugging Face Hub into
HF_HOME. Because rank 0 downloads while the other ranks wait at a collective, the recipe ships withdist_env.timeout_minutes: 120— keep it generous, or pre-stage the model intoHF_HOME(HF applies download rate limits, so cloning ahead of time is recommended). - Caches: ensure
HF_HOMEis on a shared filesystem. - W&B: set
WANDB_API_KEYand configure thewandbsection in the YAML, or drop theWANDB_API_KEYexport to skip it.
Training Results
The recipe was validated with LoRA PEFT on HellaSwag on a 4 × GB200 (16-GPU) allocation, using the hybrid Mamba-2 and MoE Ultra backbone with MTP and Transformer Engine kernels. Training loss decreased steadily over the run (≈2.67 → ≈1.6), confirming healthy convergence end-to-end through model load, THD-packed data, FSDP2 and expert parallelism, and safetensors checkpointing.
