蚂蚁集团与vLLM开源Humming量化推理内核库
蚂蚁集团与vLLM社区开源了面向量化推理的通用高性能内核库Humming,代码仓库位于github.com/vllm-project/humming。项目称其支持从Turing起的NVIDIA GPU架构,以及平头哥镇岳810E等兼容CUDA的设备,并以统一的量化表示覆盖稠密与MoE负载下多种整数/浮点权重与激活格式、位宽和缩放方案。作者称在自行运行的GEMM微基准中,Humming在多数工作负载上追平或超过vLLM Marlin、FlashInfer与DeepGEMM,并利用了Blackwell Tensor Core中两项未在PTX类型系统中暴露的隐藏格式float4e0m3与float8e3m4。
文章指出,量化带来的显存与计算节省只有在高效内核下才能转化为更低延迟和更高吞吐,因此一个覆盖多种量化方案与多代GPU的共享内核库,意在缓解推理栈中不断累积的维护负担。
Ant Group and the vLLM community are open-sourcing Humming, a general-purpose, high-performance kernel library for quantized inference. Humming offers the following features:
- Broad device support: Supports NVIDIA GPU architectures from Turing onward, along with CUDA-compatible devices such as T-Head's Zhenwu 810E.
- Extensive quantization support: A unified architecture supports diverse combinations of weight and activation formats for dense and MoE workloads, covering a wide range of integer and floating-point types, bit widths, and scaling schemes.
- Strong execution performance: Significantly outperforms existing implementations from vLLM Marlin, FlashInfer, and DeepGEMM across many representative workloads.
Repository: github.com/vllm-project/humming
Background
As models and inference workloads grow, memory capacity, memory bandwidth, and compute costs increasingly constrain deployment. This is especially apparent in MoE models: each token activates only a subset of experts, but the full set of weights still needs to be stored. DeepSeek-V3, for example, has 671 billion parameters, with 37 billion activated per token. Quantization lowers the precision of weights and activations to reduce memory usage and data movement, and can also improve compute efficiency.
Quantization requirements vary across models and GPU generations. Common configurations include WNA16, W8A8, W4A8, and W4A4, where W and A specify weight and activation bit widths, and N denotes a variable weight bit width. Even at the same precision, schemes such as INT4 and NVFP4 differ in numeric format and scaling. Scaling granularity, scale representation, group size, and symmetric or asymmetric quantization further expand the configuration space.
#Ant Group#vLLM#Humming#NVIDIA#T-Head#Zhenwu 810E#vLLM Marlin#FlashInfer#DeepGEMM#Blackwell#DeepSeek-V3