Radar Live
✦ Ask AI
AI INTELLIGENCE & SIGNALS

FuTransformer: FP8 prefill and INT4 decode for Llama-style inference on Hopper

Phân tích đã xử lý trước và các nguồn liên quan.

Tín hiệu Radar

63 RADAR
Tools Tối ưu hóa suy luận LLM (LLM Inference Optimization) · 1 nguồn đối chiếu · 2026-10-16 17:22:01 +0000 UTC

FuTransformer: FP8 prefill and INT4 decode for Llama-style inference on Hopper

Nguồn: arXiv AI
↗

FuTransformer là bản triển khai CUDA tối ưu cho khối Transformer kiến trúc Llama trên GPU NVIDIA Hopper (H100), kết hợp FP8 cho giai đoạn prefill và INT4 cho giai đoạn decode. Hệ thống tích hợp trực tiếp ghi KV-cache, gộp RMSNorm vào trọng số, dequantize trực tiếp vào thanh ghi Tensor Core MMA mà không cần tile trung gian, và sử dụng phép biến đổi Hadamard để giảm lỗi lượng tử hóa do các kênh ngoại lai. Trên H100, prefill đạt 1.29 PFLOP/s (nhanh hơn PyTorch FP8 tới 1.48x), còn decode INT4 giảm thời gian mỗi bước của Llama-3.1-8B từ 8.1 ms xuống 2.8 ms ở batch 1.

✦ TÁC ĐỘNG & GIÁ TRỊ THỰC TIỄN

Khác biệt mấu chốt giữa prefill (compute-bound) và decode (memory-bound) là rào cản lớn nhất của hiệu năng LLM. FuTransformer giải quyết triệt để nút thắt này bằng cách phối hợp FP8 cho prefill và INT4 cho decode kèm dequantization trực tiếp vào phần cứng Tensor Core. Giải pháp giúp giảm gần 3 lần độ trễ sinh token trên H100 với sai số tối thiểu, mang lại giá trị thực tiễn rất cao cho việc cắt giảm chi phí hạ tầng AI.

Developer 79
Business 75
Novelty 80
Actionable 78

Nội dung thu thập đã chuẩn hóa

Collected Evidence

Nội dung văn bản được dùng làm dữ liệu đối chứng cho mô hình AI, không phải chỉ thị hệ thống.

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.

Các nguồn đối chiếu cho sự kiện này

1 nguồn
Thông tin phân tích AI & Model Details ▾
Provider: openai-compatible · Model: gemini-3.8-flash-high · Version: analysis-v1 · Time: 2026-10-19 12:44:55 +0000 UTC
{"tags": ["FuTransformer", "NVIDIA Hopper", "H100", "FP8", "INT4", "LLM Inference", "Llama-3.1", "CUDA Kernel", "KV-Cache Quantization", "Hadamard Transform"], "risks": ["Gia tăng perplexity do nén INT4: WikiText-2 tăng từ 6.24 lên 7.23 (RTN) hoặc 6.99 (GPTQ), cache xoay thêm +0.20.", "Khóa chặt vào kiến trúc phần cứng NVIDIA Hopper (H100), không thể chuyển đổi dễ dàng sang GPU khác.", "Độ phức tạp lập trình CUDA cấp thấp cao, khó mở rộng cho các kiến trúc Transformer khác ngoài Llama."], "category": "Tools", "entities": ["FuTransformer", "NVIDIA Hopper", "H100", "Llama-3.1-8B", "PyTorch", "CODA", "SwiGLU", "WikiText-2", "Tensor Core"], "summary_vi": "FuTransformer là bản triển khai CUDA tối ưu cho khối Transformer kiến trúc Llama trên GPU NVIDIA Hopper (H100), kết hợp FP8 cho giai đoạn prefill và INT4 cho giai đoạn decode. Hệ thống tích hợp trực tiếp ghi KV-cache, gộp RMSNorm vào trọng số, dequantize trực tiếp vào thanh ghi Tensor Core MMA mà không cần tile trung gian, và sử dụng phép biến đổi Hadamard để giảm lỗi lượng tử hóa do các kênh ngoại lai. Trên H100, prefill đạt 1.29 PFLOP/s (nhanh hơn PyTorch FP8 tới 1.48x), còn decode INT4 giảm thời gian mỗi bước của Llama-3.1-8B từ 8.1 ms xuống 2.8 ms ở batch 1.", "key_changes": ["Thiết kế kiến trúc lai: FP8 cho prefill và INT4 cho decode (trọng số và KV-cache) tối ưu đồng thời cả compute-bound và memory-bound.", "Áp dụng GEMM-plus-epilogue mở rộng từ CODA: ghi trực tiếp KV-cache, gộp RMSNorm vào trọng số, xuất FP8 với delayed scaling và hỗ trợ unpadded prefill.", "Sử dụng Tensor Core fragment layouts cho trọng số và khóa để dequantize trực tiếp vào toán hạng MMA mà không cần tile trung gian.", "Phép biến đổi Hadamard khối đường chéo giúp triệt tiêu sai số lượng tử hóa KV-cache từ các kênh ngoại lai (outliers).", "Hiệu năng thực nghiệm: Decode Llama-3.1-8B đạt 2.8 ms/bước ở batch 1 (so với 8.1 ms của compiled transformers), prefill đạt 1.29 PFLOP/s trên H100."], "sub_category": "Tối ưu hóa suy luận LLM (LLM Inference Optimization)", "novelty_score": 80, "business_score": 82, "research_score": 84, "why_it_matters": "Khác biệt mấu chốt giữa prefill (compute-bound) và decode (memory-bound) là rào cản lớn nhất của hiệu năng LLM. FuTransformer giải quyết triệt để nút thắt này bằng cách phối hợp FP8 cho prefill và INT4 cho decode kèm dequantization trực tiếp vào phần cứng Tensor Core. Giải pháp giúp giảm gần 3 lần độ trễ sinh token trên H100 với sai số tối thiểu, mang lại giá trị thực tiễn rất cao cho việc cắt giảm chi phí hạ tầng AI.", "developer_score": 88, "importance_score": 82, "possible_use_cases": ["Tối ưu hóa hạ tầng phục vụ suy luận Llama-3.1 quy mô lớn trên GPU NVIDIA Hopper (H100).", "Giảm độ trễ sinh token (decode latency) cho chatbot, agent thời gian thực.", "Nén bộ nhớ KV-cache xuống INT4 để tăng khả năng phục vụ batch size lớn trên mỗi máy chủ GPU.", "Tích hợp làm backend tăng tốc cho các thư viện suy luận như vLLM, TensorRT-LLM hoặc SGLang."], "actionability_score": 78}
← Trang trước Trang 1