Train Models Faster with JAX and MaxText Using NVFP4 on NVIDIA Blackwell

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

Why it matters

Teams running JAX-based LLM pretraining on Blackwell hardware can now train 1.31x to 1.73x faster than FP8 with no accuracy loss, cutting compute costs materially.

Read this as

NVIDIA has published a recipe for training large language models using 4-bit numbers instead of the 8-bit numbers normally used, on its newest GB200 and GB300 chips. The 4-bit method is much faster but is normally inaccurate; this recipe adds special techniques that keep the model's quality the same. In tests with Llama models, training ran 1.31x to 1.73x faster than the 8-bit baseline. This matters for companies that train models themselves, because compute time is money.

NVIDIA's new NVFP4 recipe in TransformerEngine and MaxText cuts pretraining step time on Blackwell superchips by up to 73% versus FP8, with loss curves matching within 0.026 nats. The gains are largest at scale: 1.73x on GB300 for Llama 3.1 405B. Teams training on NVIDIA hardware in JAX can reduce time-to-train or fit larger models in the same budget; the recipe is available today in the public MaxText container.

The NVFP4 recipe combines 16-element micro block scaling, E4M3 block scale factors, Random Hadamard Transform on WGRAD inputs only, 2D weight scaling (16x16 FP8 blocks), and stochastic rounding. NVFP4 quantizes only MLP GEMMs, keeping attention in higher precision because softmax amplifies quantization noise. Benchmarks: 1.31x (Llama 3 8B GB200) to 1.73x (405B GB300) over FP8 delayed scaling; loss gap +0.026 nats over ~10k steps. MXFP4 reportedly needed ~36% more tokens to match final loss.

Read the original

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

Key terms

NVFP4 MaxText TransformerEngine Llama 3 8B GB300 JAX

Was this summary useful?

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

Related reading