Skip to content

Latest commit

 

History

History
86 lines (58 loc) · 3.08 KB

README.md

File metadata and controls

86 lines (58 loc) · 3.08 KB

BitDecoding-FP4

arXiv:2611.09825 License: MIT OpenBitSys

BitDecoding-FP4 delivers accurate, high-performance LLM decoding through algorithm-system co-design, combining FP4 KV-cache quantization with native FP4 attention kernels. It integrates into vLLM as an out-of-tree CUSTOM backend.

Overview

BitDecoding-FP4 system overview: accuracy-aware FP4 quantization, native FP4 decoding kernels, and a custom vLLM backend with paged FP4 KV storage and separate BF16 sink and recent-token buffers.

Loss-less Accuracy

BitDecoding-NVFP4 achieves near-lossless accuracy: across seven benchmarks, the average score stays within 0.5 percentage points of BF16 KV on Qwen3-4B-Thinking-2507 and Qwen3-30B-A3B-Thinking-2507.

Paper accuracy table: scores on seven benchmarks and their average for both Qwen3 models.

Results on larger FP8-weight models:

Accuracy and KV-cache memory table for GLM-4.7 (GQA) and Hy4-preview (MLA).

Higher Serving Throughput.

On NVIDIA B300, BitDecoding-NVFP4 delivers 3.00× (Qwen3-4B) and 2.62× (Qwen3-30B-A3B) the BF16 KV throughput:

Paper serving throughput on B300: 64K input with TP=1 in the top row, and 128K input with TP=2 in the bottom row; each row compares both Qwen3 models.

Concurrency: 1, 8, 16, 32, 64.

Setup

Requirements

  • 1 × NVIDIA B200 or B300 GPU (SM100 / SM103)
  • CUDA 13.0 or newer (NVIDIA driver 580+)
  • Python 3.12 and uv (pip install uv)

Install

git clone --recurse-submodules https://github.com/OpenBitSys/BitDecoding-FP4.git
cd BitDecoding-FP4
bash tools/bootstrap_env.sh

All the required packages are then installed in _local/envs/bd_fp4.

Benchmark

See the performance benchmark guide for kernel and e2e-serving options.

Evaluation

See the accuracy evaluation guide for dataset installation and the evaluation benchmarks used in the paper.

License

Original code is licensed under the MIT License. Third-party components retain their own licenses; see NOTICE.

Citation

If you use BitDecoding-FP4 in your research, please cite:

@misc{du2026bitdecodingfp4nativefp4kv,
      title={BitDecoding-FP4: Native FP4 KV Cache Decoding via Algorithm-System Co-Design},
      author={Dayou Du and Woon Yee Ng and Guangming Sheng and Nick Lau and Jianyi Cheng and Luo Mai},
      year={2026},
      eprint={2611.09825},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2611.09825},
}