Qiming Bao · Blog · 1 December 2026 · English / 中文

FP8 halves the memory and slows diffusion down on an A100. Int8 does not

FP8 is the default answer to "my diffusion model does not fit": weights take half the memory of BF16. On an A100 it does fit, but it gets slower. I measured every quantization path of vLLM-Omni on one A100-SXM4-80GB with two image models, and Int8 turned out to be the better choice on this GPU.

Results

model (1024×1024)BF16fp8int8
Qwen-Image-2.1-Turbo, 8 steps5.03 s, ~42 GB5.98 s (+19%), ~25 GB4.10 s (−18%), ~25 GB
Boogu-Image-0.1-Base, 28 steps, DiT quantized20.5 s, 34.5 GiB28.5 s (+39%), 25.1 GiB14.6 s (−29%), 25.0 GiB

vLLM 0.34.0 built for SM80, each run started on an idle GPU, seed 42, two runs each (within 0.1 s of each other). Memory is peak GPU memory for Qwen-Image and the loaded weights for Boogu-Image. FP8 and Int8 save the same memory; FP8 costs time and Int8 saves it.

Quality, as PSNR against the BF16 image of the same seed (one prompt per model, so treat it as a sanity check): FP8 27.6 dB and Int8 26.4 dB on Qwen-Image; FP8 32.9 dB and Int8 27.9 dB on Boogu-Image. All of them look like the BF16 image by eye. FP8 is a little closer to BF16; Int8 is the faster one.

Why FP8 is slower on Ampere

Ampere has no FP8 tensor cores. vLLM therefore runs FP8 layers weight-only (W8A16) through the Marlin kernel, and the log says so: "Weight-only FP8 compression will be used leveraging the Marlin kernel. This may degrade performance for compute-heavy workloads." Marlin reads FP8 weights, converts them to BF16 inside the kernel, and multiplies in BF16. That is a good trade when a GEMM is memory-bound, as in LLM decode with a few tokens per step: half the bytes, nearly half the time.

A diffusion transformer is the opposite case. A 1024×1024 image is 4,096 image tokens per denoising step, so every linear layer is a large, compute-bound GEMM. Reading fewer bytes saves nothing there, and the conversion adds work, so FP8 ends up slower than plain BF16. Int8 W8A8 quantizes the activations too and runs on Ampere's INT8 tensor cores, which have twice the peak throughput of its BF16 ones.

Other paths I checked

Takeaways

Caveats

Two models, one GPU, one prompt for the quality check. The ratio will differ with resolution, step count and GPU; on GPUs with FP8 tensor cores, FP8 is the faster path.

I used Claude (Anthropic) to run these measurements and draft this post. I checked the numbers against the logs.