End‑to‑End 4‑Bit Training thinkingmachines.ai · 17 points · 0 comments · HN thre...

@best

End‑to‑End 4‑Bit Training thinkingmachines.ai · 17 points · 0 comments · HN thread

TL;DR Thinking Machines Lab describes an end-to-end 4-bit training recipe used for their Inkling 2 Small model, running the forward pass of mixture-of-experts layers in NVFP4 on NVIDIA GB300 hardware while keeping BF16 and MXFP8 elsewhere. They report an 8% wall-clock speedup in pretraining and 20% in RL over full MXFP8 training, at a cost of about 2% compute efficiency in pretraining. The post covers block scaling, stochastic-rounding re-quantization for the backward pass, and 8-bit communication for expert parallelism.

  • NVFP4 stores values in 4 bits with 16-value blocks and FP8 scale factors, and runs up to 6x faster than BF16 on GB300 (15 PFLOPS vs 2.5).
  • Quantizing only the MoE forward pass gave a better speed/accuracy tradeoff than quantizing the backward pass too; full NVFP4 training hurt compute efficiency too much.
  • The backward pass re-quantizes forward tensors to MXFP8 using stochastic rounding, preserving values in expectation across differently grouped blocks.
  • Expert-parallel communication became a bottleneck after speedups; dispatch is sent in NVFP4 and combine uses a 32-dimensional random Hadamard transform with S2F6 quantization, cutting combine traffic from 16 to 8.25 bits per value.
  • Reported costs and gains: about 2% compute-efficiency loss in pretraining, 8% wall-clock speedup in pretraining, 20% in RL, with the same numerics from pretraining through RL with no calibration step.
  • Inkling 2 Small was pretrained in 68 hours on GB300 NVL72 racks.

Discussion The Hacker News thread has no comments yet, so there is no discussion to summarize. The post has 17 points at the time of collection.

#lowPrecisionTraining #NVFP4 #GPUs #MixtureOfExperts #LLMTraining #quantization