How to Optimize Transformer-Based Models for Low-Precision Training
AI-generated summary of reporting by NVIDIA Developer Blog. Read the original for the full story.
Why it matters
NVIDIA released a benchmark tool that tells teams before a costly training run whether FP8 or FP4 low-precision training will actually speed up their specific transformer, or whether quantization overhead will eat the gains.
NVIDIA built a tool that helps researchers predict how much faster they can train large AI models using lower-precision number formats (ways of storing model numbers more roughly but computing with them much quicker). Testing it on a 15-billion-parameter protein research model called ESM2-15B on NVIDIA B300 GPUs, the FP4 format ran the core math 2.69x faster than the standard BF16 format, or 4.01x faster when setup costs were excluded. The gap between those two numbers reveals how much time is lost converting data between formats.
Teams planning expensive large-model training runs can now measure, before committing GPU hours, whether low-precision formats will actually pay off. On NVIDIA B300 hardware with the ESM2-15B configuration, NVFP4 delivered 2.69x over BF16 in realistic conditions, but the true 4.01x kernel speedup was cut roughly in half by format-conversion overhead. The article advises benchmarking candidate configs first and checking that the software silently isn't falling back to slower formats, a real cost-control and planning tool for training budgets.
NVIDIA Transformer Engine's benchmark_gemm.py tool converts a transformer config (e.g. ESM2-15B: hidden 5120, 48 layers, seq 1024) into 12 concrete GEMM M×K×N shapes and benchmarks BF16, MXFP8, FP8 recipes and NVFP4. Autocast mode includes dynamic quantization cost; --pre-quantize isolates kernel throughput (NVFP4 jumps 2.69x→4.01x over BF16 on B300). FP8 DelayedScaling beats CurrentScaling and MXFP8 (1.74x over BF16) by avoiding per-step amax computation. Dgrad runs 4-22% slower than Fprop for quantized formats, and comparing microbenchmark vs end-to-end speedups exposes overhead from Hadamard transforms, stochastic rounding, or silent kernel fallback.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
NVIDIA Transformer Engine ESM2-15B NVFP4 MXFP8 FP8 DelayedScaling NVIDIA B300
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Samsung is testing a feature that changes the angle of photos you’ve already taken
Samsung’s new Recompose lets users change photo angles after shooting, potentially reducing the need for multiple shots and improving post-capture editing workflows for photographers and casual users alike.
Frame generation on NVIDIA cards: DLSS on RTX 40/50, FSR 3 elsewhere
Enabling frame generation on non-RTX 40/50 GPUs lets gamers run console-build games at higher frame rates without buying new hardware.
Taking Trainium3 to the Track: Generating Videos with LTX-2.5
Video generation on AWS Trainium3 can now rival Lightricks' paid API in speed, giving teams a non-CUDA inference option, though only after heavy custom patching.
The Download: Better bionic hands and AI’s natural-gas boom
This newsletter roundup mostly relays other outlets' reporting; its two own stories flag sensory-linked prosthetics reaching home use and AI data centers locking the US grid into natural gas.
Introducing the llama.cpp benchmark dashboard for AMD Ryzen and Radeon
AMD developers running llama.cpp locally on Ryzen/Radeon GPUs can now compare prompt-processing and token-generation speeds across builds, models and quantizations on a public dashboard.