Metraipolis › archive › dc_a3e9dde140a9
FuTransformer: FP8 prefill and INT4 decode for Llama-style inference on Hopper — arXiv:2610.23796
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.23796
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-19T08:42:43.777Z
- SHA-256 of the archived text
20cfd35a22585c8594be1a4503b314ffb4d454c1ea1c2898986ffda8d71a99de- Stable URL of this page
https://metraipolis.com/documento/dc_a3e9dde140a9
How to cite
FuTransformer: FP8 prefill and INT4 decode for Llama-style inference on Hopper — arXiv:2610.23796 — arXiv (en), https://arxiv.org/abs/2610.23796 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_a3e9dde140a9 (Metraipolis archive dc_a3e9dde140a9, sha256 20cfd35a22585c8594be1a4503b314ffb4d454c1ea1c2898986ffda8d71a99de)
BibTeX
@misc{dca3e9dde140a9,
title = {FuTransformer: FP8 prefill and INT4 decode for Llama-style inference on Hopper — arXiv:2610.23796},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.23796},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_a3e9dde140a9; sha256 20cfd35a22585c8594be1a4503b314ffb4d454c1ea1c2898986ffda8d71a99de},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.23796. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Transformer prefill reuses weights across tokens and is dominated by matrix multiplication and activation data movement; single-token decode has limited reuse and is dominated by weight and KV-cache reads. We present FUTRANSFORMER, a CUDA implementation of a Llama-style Transformer block for NVIDIA Hopper GPUs. It applies CODA's GEMM-plus-epilogue approach to inference, adding direct KV-cache placement, folding the fixed RMSNorm gain into weights, writing FP8 output directly with delayed scaling, and supporting prefill without padding. Decode uses INT4 projection weights and an INT4 KV-cache copy. Weights and keys follow Tensor Core fragment layouts for direct dequantization into MMA operands without full intermediate tiles. A block-diagonal Hadamard transform reduces cache quantization error from outlier channels. On one H100, prefill is up to 1.48x faster than compiled PyTorch FP8 and reaches 1.29 PFLOP/s. For gate/up projection with SwiGLU at the 8B shape, our BF16 path is 1.13x faster than CODA. Our FP8 path is 2.02-2.18x faster than the evaluated BF16 CODA path. Across 8B and 70B shapes at batches 1-32, INT4 decode is 1.3-2.4x faster than the faster of PyTorch's BF16 and INT4 blocks at each point: 2.1-3.3x faster than compiled, CUDA-graphed BF16 and 1.3-6.3x faster than the same block using PyTorch's INT4 projection kernel, which targets a single query row and loses to BF16 at batch 32. It is also 31-51% faster than our FP8 path. Complete Llama-3.1-8B decode takes 2.8 ms per step at batch one, versus 8.1 ms for the compiled transformers implementation. Decoding every WikiText-2 token through the INT4 weight path raises perplexity from 6.24 to 7.23 with round-to-nearest weights or 6.99 with GPTQ in the same format; the rotated INT4 cache adds 0.20. The kernels match a quantized reference computation within 0.001 perplexity. Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno). Categorie arXiv: Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2610.23796 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-19T08:39:10.096Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).