Skip to content

Nemotron-H: A Family of Accurate and Efficient Hybrid Mamba-Transformer Models

optionalextendedfrontierpaperrubric 8/122025 · ~30 min

NVIDIA (Aaron Blakeman, Aarti Basant, Abhinav Khattar, et al.)

Status

TL;DR. Nemotron-H replaces most self-attention with Mamba-2 so that per-token generation cost stays roughly constant. Attention is about 8% of layers: 4 of 52 in the 8B and 10 of 118 in the 56B, evenly spread. Accuracy matches Qwen-2.5-7B/72B and Llama-3.1-8B/70B, and inference is up to 3× faster. The 56B is the first Nemotron fully pre-trained in FP8.

Keep a few attention layers for precise retrieval and let Mamba-2 handle the rest. Attention cost per generated token grows linearly with context, while a Mamba-2 layer keeps a fixed-size state. Layers alternate Mamba-2 and squared-ReLU FFN, with attention always preceding an FFN. There are no position embeddings; attention uses GQA with 8 KV heads.

Results and discussion. At 65,536 input tokens, Nemotron-H-56B-Base generates 2.4× more tokens per second per GPU than Qwen-2.5-72B and Llama-3.1-70B, and 2.9× more after distillation to 47B, which has similar accuracy and is 20% faster. Of 17 tasks, the 56B is best of the three models on 9. What transferred: the result shows that an attention-light hybrid holds up at 20T-token scale, and that coarse per-tensor FP8 suffices for pre-training (contrast DeepSeek-V3’s fine-grained block scaling). VLMs built on Nemotron-H were used in Cosmos-Reason1.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    Nemotron-H-8B has 52 layers: 4 self-attention layers (32 query heads, 8 KV heads, hidden 4,096), with the rest split evenly between FFN and Mamba-2 (state dim 128, head dim 64, expansion 2). Compare its BF16 KV cache at the 65,536-token benchmark length with an all-attention 32-layer model of the same head shape, and estimate the Mamba-2 state size.

    What a strong answer covers
    • Head dim is 4,096 / 32 = 128, so each attention layer stores 2 × 8 × 128 = 2,048 values per token.
    • Nemotron-H: 4 layers × 2,048 × 65,536 tokens × 2 bytes ≈ 1.07 GB; a 32-layer transformer needs ≈ 8.6 GB, 8× more.
    • There are (52 − 4) / 2 = 24 Mamba-2 layers, each with (2 × 4,096 / 64) = 128 heads × 64 × 128 ≈ 1.05M state values, about 25M values (≈ 50 MB) in total.
    • The Mamba state does not grow with sequence length, so the advantage widens at long contexts. This is why the reported speedup is measured at 65,536 input tokens.
    • Smaller per-sequence memory allows larger batches, the second source of throughput the authors cite.
  2. Mechanism

    Describe Nemotron-H's FP8 pre-training recipe: what is quantized, how the scale is chosen, which layers stay in BF16, and what the 8B ablations showed about loss vs. downstream accuracy.

    What a strong answer covers
    • All linear layers (FFN and attention QKV and output projections) run in FP8 in both forward and backward passes, E4M3 for weights and activations and E5M2 for gradients.
    • Per-tensor current scaling: one scale per tensor, chosen to preserve its largest value; values too small for FP8 are flushed to zero.
    • The first 4 and last 4 layers stay in BF16, which the authors found important for stability.
    • FP8 loss was slightly higher than BF16 (relative gap typically under 0.1%), yet downstream accuracy was equal or better, sometimes substantially better on math and code.
    • Recipes validated below 8B parameters did not generalize, so all checks used at least 8B and 1T tokens.
  3. Critique

    The paper claims hybrids are as accurate as transformers at state-of-the-art scale, based mainly on Nemotron-H-8B vs. Nemotron-T-8B trained on identical data. How strong is this evidence?

    What a strong answer covers
    • It is a clean apples-to-apples comparison: same data and tokens, differing only in architecture.
    • The result is mixed: the hybrid is higher on 7 of 15 tasks and within one point on 4 more, which supports parity, not superiority.
    • There is only one scale with a matched baseline; the 56B is compared to Qwen-2.5-72B and Llama-3.1-70B, trained on different data.
    • The throughput claims use 65,536-token inputs with 1,024-token outputs, the regime most favorable to Mamba; the gap is smaller with short prompts.
    • Section 5 shows the hybrids post-train like transformers (SFT, GRPO, long context), which addresses an important practical concern.

Done with this page?

Status