Open Source

DeepSpeed Adds FP8 Training. It Wasn’t Always Faster.

CRAZE CRAZE Summary 3 things to know
  • DeepSpeed 0.20.2 introduces an opt-in FP8 and INT8 training path.
  • Row-scaled FP8 reduced median step time by about 17% on Qwen2.5-32B in a contributor test, without reducing peak memory.
  • Both FP8 configurations were slower than BF16 on the tested Qwen3-30B-A3B workload.
Jeff Lu | · 4 min read
DeepSpeed Adds FP8 Training. It Wasn’t Always Faster.

On November 28, DeepSpeed published version 0.20.2, adding an optional FP8 and INT8 training path for dense linear layers and its AutoEP mixture-of-experts implementation. The same FP8 approach that cut step time for a dense Qwen model increased it for a sparse one. Both results come from the contributor’s tests, not an independent SUPERCRZY benchmark.

The same precision setting produced opposite results

In the contributor’s benchmark, a row-scaled FP8 configuration reduced median step time for Qwen2.5-32B from 4,594 to 3,801 milliseconds. That is about 17% less time per step or 1.21 times the throughput at the same batch size. The run covered 100 continued-pretraining steps on WikiText-103 using four NVIDIA H200 GPUs. It was a short, single-seed test, not a claim about how quickly a full training run converges.

A different FP8 setting on the same dense model, using 128-element blocks, increased median step time to 6,175 milliseconds. All three runs measured 82.2 GiB peak memory. The implementation quantizes the operands as needed for matrix multiplication; it does not change the stored precision of parameters, gradients, or optimizer states. That distinction matters if the reason for switching precision is to fit a larger model rather than accelerate one that already fits.

The sign of the speed change flipped on Qwen3-30B-A3B. Over 300 steps with AutoEP, row-scaled FP8 took a median 947 milliseconds, versus 622 milliseconds for BF16. Block-scaled FP8 was also slower at 789 milliseconds. The dense and expert-model runs had different setups, so those numbers are comparisons against the BF16 baseline within each model, not a direct comparison between models.

One broad tile grid beside four smaller grids
One large calculation and smaller grouped calculations incur different overhead. Cover and inline art are OpenAI-generated editorial illustrations; neither depicts the test hardware or shows benchmark data.

The cost of preparing the calculation can erase its gain

DeepSpeed can configure the forward pass and the two backward matrix multiplications independently. Row scaling uses one scale per operand row; block scaling uses finer-grained scales along the dimension being summed. The detailed approach can be useful for numerical behavior, but a lower-precision calculation is only faster if its gain outweighs the work of preparing the inputs and applying the scales.

The contributor’s single-layer tests illustrate the crossover. For a wide multiplication with 32,768 input tokens and 8,192 input and output features, the row-scaled variant took 15.3 milliseconds, down from 21.2 with BF16. In a test with 16 grouped experts, the row-scaled variant took 4.8 milliseconds against 2.4 for BF16. Smaller groups can make it harder to amortize quantization and kernel-launch overhead. The results explain why a speedup on a dense layer is a poor proxy for a mixture-of-experts training job.

The tests also put a limit on quality claims. On two smaller models trained from scratch with two seeds each, the FP8 runs tracked BF16 closely in validation and test loss. The larger Qwen comparisons ran for only 100 or 300 steps. Near-term agreement in loss is useful for screening a configuration; it does not establish that a large model will reach the same final quality. Nor does an unchanged peak on one setup tell teams how other training jobs will use memory.

What training teams can actually evaluate

The feature is available as a numbered release, not just a merged patch. The quantized path is opt-in. The release also adds routing replay for AutoEP, which can reuse recorded expert assignments during activation-checkpoint recomputation while preserving gradients through current gate scores. That is a separate change, not evidence that enabling replay will turn the FP8 numbers above into a speedup.

The most useful first comparison is a matched run on the workload a team already trains: same model, hardware, token count per step, and checkpointing strategy. Compare median step time and peak memory against BF16, then check the loss trajectory on a longer run before adopting a new recipe. For expert models, compare the actual token distribution and batch sizes expected in training rather than relying on a dense-model result. That is how to distinguish useful lower precision from extra overhead.

The new option is most interesting for teams with wide dense workloads and room to experiment. For teams whose priority is lower memory usage or faster grouped expert execution, the release gives them something to test, but not a reason to assume those goals are already met. Track the precision recipe as part of the run configuration so any later speed or quality comparison can be traced to the setting that produced it.

A benchmark record should also preserve the software versions, GPU count, and number of timed steps. That makes it possible to distinguish a change in the precision recipe from a change in the measurement setup.


P.S. A step-speed gain is not a time-to-quality result. Keep the BF16 baseline until the faster recipe has earned its place on the workload that matters.


Frequently Asked Questions

Q: Does DeepSpeed 0.20.2 turn FP8 on by default?

A: No. The new training path is opt-in, and the forward and backward matrix multiplications can be configured independently.

Q: How much faster was Qwen2.5-32B in the reported test?

A: Median step time fell from 4,594 to 3,801 milliseconds with row-scaled FP8, about 17% less time per step over 100 continued-pretraining steps.

Q: Did FP8 save GPU memory in that run?

A: No. The three Qwen2.5-32B configurations each measured 82.2 GiB peak memory.

Q: Did AutoEP expert models get the same speedup?

A: No. Both tested FP8 configurations were slower than BF16 on Qwen3-30B-A3B.

Q: Does the release prove large models converge equally well in FP8?

A: No. Tests to convergence used smaller models; the larger Qwen runs were shorter checks.

Advertisement

CRAZE

Use CRAZE to turn this article into a faster answer: pull the summary, surface the key term, or jump straight to the next story in this thread.

Article