TL;DR
A B200 study tests matched MXFP8 training and rollout in verl. Shared quantization improves numerical agreement relative to an MXFP8 learner with a BF16 sampler, but does not beat fully BF16 consistency. MoE step time falls 10.7%, while a short-sequence dense workload slows 5.1%; all runs are single-seed and short.
Why it matters
Low-precision RL needs agreement between learner and sampler as well as fast kernels. This report separates numerical matching, micro-batch overhead and weight-refresh correctness, showing why lower precision can improve throughput in one workload and lose it in another.
Key findings
- 01
The implementation uses Megatron/Transformer Engine for learning and vLLM or SGLang for rollout. At synchronization it applies the learner’s MXFP8 quantizer to the weights and rebuilds serving-kernel layouts. Embeddings, output projection and MoE routers remain in high precision; matching weight values does not make every activation or kernel operation identical.
- 02
Experiments use Qwen3-8B on two B200 GPUs and Qwen3-30B-A3B on four. Standard GRPO samples eight responses for each of 64 prompts per step, with learning rate 1e-6 and reference KL coefficient 0.001. Settings cover GSM8K and DAPO-Math-17k; the latter does not imply use of the DAPO algorithm.
- 03
At fixed checkpoint weights within vLLM, train–rollout KL is 0.00812 for an MXFP8 learner with a BF16 sampler, 0.00726 with partially matched MXFP8 and 0.00682 with fully matched decoder linears. The full match reduces KL by 16.1% relative to the BF16 sampler; the fully BF16 pipeline is much lower at 0.00072.
- 04
On the MoE workload over ten steps, mean end-to-end step time falls from 506.0 to 451.8 seconds, a 10.7% reduction. Generation falls from 133.6 to 101.7 seconds, or 23.8%, with token counts within 0.2%. These measurements include parameter offload, a CPU optimizer and untuned FlashInfer kernels in every arm.
- 05
In the dense experiments, long-sequence step time improves 6.4%, but the short-sequence workload slows 5.1%. A fitted actor-update break-even point is about 4.5k tokens per micro-batch on one model and host. Replaying identical token data supports per-micro-batch overhead: at 1.3k tokens MXFP8 is 15.37 seconds slower per update stage, versus 7.61 seconds faster at 10.3k.
- 06
The report documents seven synchronization conditions and complementary checks: live quantized-layer auditing, serving-kernel self-checks and a divergence sentinel. Sampled dense-model comparisons at two synchronizations find identical learner and sampler weight bytes. CPU fault tests and observed hardware failures support the checks, but do not establish complete fault coverage.
Evidence & limits
Every arm runs once for 10–60 steps; controlled experiments are shorter. Prompt-resampled intervals and within-run step statistics are not independent training-seed confidence intervals. The report explicitly does not rank final model quality or establish time-to-quality savings.
Matching changes weights, activation quantization and GEMM kernels together. The 16.1% KL reduction does not isolate the causal contribution of weight-grid matching. With unquantized KV caches, fully BF16 pipelines remain substantially more consistent.
The original dense vLLM runs accidentally kept gate_up_proj in BF16 because of an exclusion-matching bug; the author discloses this and adds a fully matched fixed-weight control. The long-sequence dense setting uses an FP8 KV cache in every arm, including its nominal BF16 baseline, limiting cross-setting comparisons.
The approximate 4.5k-token threshold is specific to one model, host and software stack, not a universal recommendation. The fixed-data sweep gives a wider 2.8–7.6k range under resampling, and the largest BF16 micro-batch deviates from the linear timing model.
Lower precision does not reduce every resource metric: MoE actor allocator peak rises from 60.0 to 75.0 GiB. Step-time reductions do not establish lower total training cost, and host dispatch, kernel selection and response-length changes can dominate timings.
Byte equality is checked on only three of 36 dense layers at two synchronizations, not all layers throughout training or the MoE path. Systematic hardware fault injection remains unperformed; corruption in unprobed layers or experts can escape the checks.
Scaling dimensions
Models, methods & benchmarks
- Models
- Qwen3-8B, Qwen3-30B-A3B
- Algorithms
- GRPO, MXFP8, Shared-grid weight synchronization
- Benchmarks
- GSM8K, DAPO-Math-17k
Topics