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.
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.
Results on larger FP8-weight models:
On NVIDIA B300, BitDecoding-NVFP4 delivers 3.00× (Qwen3-4B) and 2.62× (Qwen3-30B-A3B) the BF16 KV throughput:
Concurrency: 1, 8, 16, 32, 64.
- 1 × NVIDIA B200 or B300 GPU (SM100 / SM103)
- CUDA 13.0 or newer (NVIDIA driver 580+)
- Python 3.12 and uv (
pip install uv)
git clone --recurse-submodules https://github.com/OpenBitSys/BitDecoding-FP4.git
cd BitDecoding-FP4
bash tools/bootstrap_env.shAll the required packages are then installed in _local/envs/bd_fp4.
See the performance benchmark guide for kernel and e2e-serving options.
See the accuracy evaluation guide for dataset installation and the evaluation benchmarks used in the paper.
Original code is licensed under the MIT License. Third-party components retain their own licenses; see NOTICE.
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},
}