Scale Bitwise-Deterministic Pretraining with NVIDIA Megatron Core

AI-generated summary of reporting by NVIDIA Developer Blog. Read the original for the full story.

Why it matters

NVIDIA engineers can now rerun trillion-parameter training runs bit-for-bit at roughly 2% overhead, making failure replay, loss-spike debugging and checkpoint recovery practical at large scale.

Read this as

NVIDIA's Megatron Core software can now train enormous AI models 'bitwise deterministically', meaning two identical training runs produce exactly the same numbers, step for step. This lets engineers replay failures, debug sudden loss spikes, and resume interrupted runs without changing the outcome. NVIDIA says it cut the speed penalty to about 2% across 2,432 GPUs on a trillion-parameter Nemotron model over 800 steps.

For organisations running expensive frontier-model pretraining, determinism turns unreproducible failures into debuggable ones: a loss spike can be replayed at the exact step, and interrupted trillion-parameter runs can resume without losing progress. NVIDIA reports the speed cost fell to roughly 2% at 2,432 GPUs, versus double-digit baselines. On a hypothetical 100-day, 10,000-GPU run, cutting overhead from 15% to 5% saves 100,000 GPU-days.

Megatron-LM PR #7262 adds ordered per-rank tensor fingerprints (via torch.hash_tensor) with progressive tracing from end-to-end metrics down to kernels to localise the first diverging bit. Kernel fixes include giving grouped-GEMM writers private output slots with fixed-order reduction. Determinism tax reached ~1.5% for Nemotron 3 Ultra at 3,072 GPUs and ~2% for a hybrid Triton proxy at 2,432 GPUs over 800 steps. Validated only within a fixed hardware/software stack; MoE routing is fingerprinted per-chunk since XOR digests miss permutations.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Megatron Core Megatron-LM Nemotron PyTorch

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading