NVIDIATanya LenzTutorial
Developing Nemotron 3.5 Lightning NVFP4 with QAD Using NVIDIA Model Optimizer
Summary
NVIDIA’s post presents a workflow for developing an NVFP4 checkpoint of the Nemotron 3.5 Lightning 30B-A3B model, targeting lower memory use and higher inference throughput without sacrificing accuracy. The method starts with post-training quantization (PTQ), producing a W4A16 student from the BF16 teacher, then applies quantization-aware distillation (QAD), where simulated quantization and KL-divergence loss align student logits with the frozen teacher. For the selected four_over_six recipe, 32K calibration performed best, and the recipe using W4A16 Mamba linears offered the best reported trade-off between accuracy degradation and inference performance; the checkpoint is 22 GB versus 66 GB and delivers up to 4x faster throughput. The workflow includes Model Optimizer examples and launchers for Megatron-LM and Megatron-Bridge, covering calibration, distillation, evaluation, and export.
Context
Teams need model variants that meet latency, throughput, memory, and compute targets. PTQ can cover common NVFP4 compression needs, but tighter memory and higher throughput require more aggressive quantization, which can cause accuracy degradation. The work addresses this trade-off for Nemotron 3.5 Lightning by using QAD to recover accuracy after aggressive quantization.
Approach / What changed
The workflow uses the BF16 Nemotron 3.5 Lightning model as a frozen teacher and creates a W4A16-NVFP4 student through PTQ. QAD then runs the student through simulated quantization while training it against the teacher with a KL-divergence loss on logits. The recipe evaluates PTQ configurations, selects the four_over_six variant with W4A16 Mamba linears and 32K calibration, and supports end-to-end execution and export through NVIDIA Model Optimizer, Megatron-LM, and Megatron-Bridge.
Takeaways
QAD permits more aggressive PTQ settings by targeting 95–99% median accuracy recovery before distillation, rather than the over-99% target commonly used when PTQ is the final step.
Among the evaluated recipes, four_over_six with W4A16 Mamba linear layers provided the best trade-off between accuracy degradation and inference-performance improvement; 32K calibration produced the best PTQ results for four_over_six.
The resulting NVFP4 checkpoint is reported at 22 GB compared with 66 GB for the full-precision checkpoint and provides up to 4x faster throughput while preserving accuracy.
Source and freshness
- Source
- developer.nvidia.com
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.