[KongchangAI]
Concept

FuTransformer

A CUDA implementation of Llama-style Transformer inference optimized for NVIDIA Hopper GPUs. It employs an FP8 quantization path for the prefill stage and an INT4 quantization path for the decode stage, and fuses GEMM with the epilogue to reduce data movement.

Timeline (last 90 days)

Oct 19

FuTransformer is a CUDA implementation targeting NVIDIA Hopper GPUs, with a separate FP8 prefill path and INT4 decode path designed for Llama-style Transformer blocks.

Unverified50%
Oct 19

On a single H100, FuTransformer's prefill path is up to 1.48x faster than compiled PyTorch FP8, reaching 1.29 PFLOP/s.

Unverified50%
Oct 19

On the gate/up projection with SwiGLU at 8B shapes, FuTransformer's BF16 path is 1.13x faster than CODA, and its FP8 path is 2.02 to 2.18x faster than the evaluated BF16 CODA path.

Unverified50%
Oct 19

Across 8B and 70B shapes and batch sizes from 1 to 32, FuTransformer's INT4 decode is 1.3 to 2.4x faster than the faster of PyTorch's BF16 and INT4 blocks.

Unverified50%
Oct 19

FuTransformer's INT4 decode is 31% to 51% faster than its own FP8 path.

Unverified50%
Oct 19

Full Llama-3.1-8B decodes in 2.8 milliseconds per step at batch 1 using FuTransformer, compared with 8.1 milliseconds for the compiled transformers implementation.

Unverified50%
Oct 19

The perplexity difference between FuTransformer's kernel implementation and the quantized reference computation is within 0.001, indicating that the acceleration introduces no additional numerical deviation.

Unverified50%
Oct 19

The above acceleration figures all come from a single-GPU H100 experimental environment, and performance under multi-GPU parallelism, longer contexts, and different batch distributions still requires further validation.

Unverified50%

All Facts (8)

Source Articles