What Is Humming? How the New MoE Kernel Differs from Marlin (Part 1)
Updated: Nov 13

Introduction: Humming, a newly released MoE kernel
Hi, I'm Yongrae Cho. I work on AI infrastructure R&D on the AIEEV engineering team.
In October 2026, Ant Group and the vLLM community open-sourced Humming, a kernel library for quantized inference. Today's LLMs, and MoE (Mixture of Experts) models in particular, often store their weights in as little as 4 bits to save memory. The actual multiplication with those compressed weights is handled by a GPU program called a kernel. Even with the same model, response speed changes depending on which kernel does the math. Kernels stay out of sight inside the serving engine, yet they are one of the parts that decide performance. [1] Humming has two defining features. First, it is a kernel generator. Instead of shipping a prebuilt kernel for every format and GPU combination, it builds kernels that fit your model and GPU when the server starts, then picks among them at runtime. Second, it supports combinations that existing kernels could not handle, such as W4A8, which multiplies 4-bit weights with 8-bit inputs. Humming ships by default with vLLM 0.29.0 and later, so a single option switches it in place of the existing MoE kernel. [1]
As a distributed cloud operator, one of our biggest priorities is serving technology that handles more requests on the same GPUs while keeping the response speed users experience (SLO). That is why we are looking closely at new kernels like Humming. In this post we share our research, split into two parts because there is a lot to cover. Part 1 explains what Humming is and how it differs from Marlin, the MoE kernel vLLM has relied on for a long time. Part 2 looks at how real user-facing response speed changed when we swapped Marlin for Humming while serving DeepSeek-V4.1-Flash-1017.
Key takeaways
Humming is a kernel generator that builds kernels for your model and GPU. Marlin picks from a few general-purpose W4A16 kernels fixed when vLLM is built. Humming instead compiles kernels (JIT) for your weight format, input format and GPU at server startup, one per input-size range, and picks among them at runtime. It also supports W4A8, where inputs are reduced to 8 bits as well.
Compute precision is where the two kernels diverge. Hopper GPUs such as the H100 have no tensor cores that multiply 4-bit values directly, so the weights must be unpacked first. Marlin multiplies in BF16. Humming multiplies in FP8. On the H100, FP8 tensor cores deliver twice the peak throughput of BF16.
The right kernel depends on the GPU generation. Blackwell GPUs have FP4 tensor cores, which adds a path that multiplies 4-bit values directly to the comparison.
In vLLM, it takes a single option to turn on. Humming is included by default from vLLM 0.29.0, so you can use it right away in place of the existing MoE kernel.
1. Core concepts and kernel libraries
Before diving in, let's go over the concepts that come up throughout this post and the kernel libraries you will often run into.
Kernel: the program that actually runs computations on the GPU
A kernel is the unit of program that actually performs computation on the GPU. When model code says "multiply these two matrices," the kernel decides the order of operations, which compute units to use and how data moves on the GPU. The same multiplication can run at very different speeds depending on when and how much data is fetched, what format it is converted to and which compute unit does the math. Marlin and Humming are two different kernels that do the same job: MoE expert matrix multiplication.
Tensor cores: dedicated matrix multiplication units
Tensor cores are compute units inside the GPU built specifically for matrix multiplication. Each GPU generation supports different number formats (precisions), and lighter formats allow more multiplications in the same amount of time. On the NVIDIA H100, for example, FP8 tensor cores offer twice the peak throughput of BF16. [2]
MoE experts: computing only a few experts per token
An MoE (Mixture of Experts) model places several small neural networks called experts in each layer, and a router selects only a few of them for each token. This lets the overall model grow large while keeping the computation per token small. Each expert's work comes down to multiplying the input by the expert's weight matrix. Because this repeats in every layer for every generated token, a faster MoE kernel means faster token output.
Precision and quantization: how many bits per number?
Precision is the number of bits used to represent a single number. BF16 uses 16 bits, FP8 uses 8 bits and FP4 uses 4 bits. Fewer bits mean less memory, faster data movement and faster multiplication, but numbers are represented more coarsely. Quantization reduces numbers originally stored in 16 bits to fewer bits, and dequantization converts them back into a format that can be computed. You will often see notation like "W4A16" in this post. W is the bit width of the weights, and A is the bit width of the activations, the inputs that go into the matrix multiplication. W4A16 means 4-bit weights with 16-bit inputs, and W4A8 means 4-bit weights with 8-bit inputs.
Common kernel libraries: Marlin, DeepGEMM, FlashInfer and Humming
Many different kernels exist for the same matrix multiplication. vLLM keeps Marlin, DeepGEMM, FlashInfer, Triton, CUTLASS and Humming implementations side by side for MoE matrix multiplication alone. It picks one based on the GPU and weight format, or lets you set it with the --moe-backend option. [3] Here is a quick overview of the four that appear in this post.
Marlin: A W4A16-focused kernel that unpacks 4-bit weights to 16 bits as it loads them and multiplies on BF16 tensor cores. It is especially strong when there are few requests. [4] [5]
DeepGEMM: A tensor core kernel library released by DeepSeek in 2025. It started with FP8 matrix multiplication and now provides FP8, FP4 and BF16 matrix multiplication plus grouped matrix multiplication for MoE on Hopper and Blackwell GPUs. Its kernels are JIT-compiled at runtime. [6]
FlashInfer: A kernel library and kernel generator for inference. It centers on attention kernels that read the KV cache and also covers matrix multiplication, MoE, sampling and inter-GPU communication. It is used by vLLM, SGLang, TensorRT-LLM and others, and on Blackwell it offers kernels that multiply MXFP4 directly on FP4 tensor cores. [7]
Humming: A kernel generator that builds kernels on the fly for your weight format, input format and GPU. It provides a W4A8 path that computes 4-bit weights in FP8. Section 2 covers it in detail. [1]
Library | Description | Main operations | Precision | Target GPUs | Kernel preparation |
|---|---|---|---|---|---|
Marlin | Kernel that unpacks 4-bit weights to 16 bits and multiplies | Matrix multiplication (including MoE) | Mainly WnA16 (8-bit inputs on some GPUs) | Ampere and later | Precompiled at build time |
DeepGEMM | DeepSeek's FP8-focused tensor core kernel library | Matrix multiplication, MoE grouped matrix multiplication | FP8, FP4, BF16 | Hopper, Blackwell | JIT |
FlashInfer | Attention-focused inference kernel library | Mainly attention, plus matrix multiplication, MoE, sampling, communication | FP8, FP4 (NVFP4 and MXFP4 on Blackwell) | Turing and later | JIT or prebuilt |
Humming | Generator that builds kernels for each format and GPU | Matrix multiplication (general, MoE) | WnA16, W8A8, W4A8, W4A4 | Turing and later | JIT at server startup |
Table 1. Kernel libraries commonly used in LLM serving (summarized from each project's public description)
This post compares Marlin and Humming, the two kernels that handle 4-bit expert weights. DeepGEMM grew out of FP8 matrix multiplication, and the Humming blog uses it as the baseline for W8A8 performance. [1] FlashInfer's native MXFP4 MoE kernels shine on Blackwell GPUs, which have tensor cores that multiply 4-bit values directly. vLLM's gpt-oss support post shows this well. For the same MXFP4 MoE, Blackwell used FlashInfer kernels on native MXFP4 tensor cores, while the previous Hopper generation used Triton kernels. [8] It is a good example of how the right kernel changes with GPU generation and weight format.
2. What kind of kernel is Humming?
Humming is a kernel library for quantized inference that Ant Group and the vLLM community open-sourced in October 2026. Following the vLLM blog's introduction, let's look at why Humming was built and how it works. [1]
Why it was built: an ever-growing number of combinations
Quantization formats keep multiplying. Weight formats such as INT4, FP4, MXFP4, NVFP4 and FP8 multiply further with how many values share a scale, how many bits the inputs use and which GPU generation runs them. Building and attaching a dedicated kernel for every combination makes maintenance harder and harder. Humming separates "what to compute" (the description of the quantization scheme) from "how to run it" (kernel selection), and solves the problem by assembling kernels from shared building blocks. [1]
How it works
It unifies everything into a standard format. Formats exported by different quantization tools are converted into a single common description (the Humming standard format) that consistently organizes tensors such as weights, scales and zero points. They are then repacked into the layout the target kernel expects. [1]
Three configurations define a kernel. The Layer config (tensor sizes, weight and input data formats, quantization scheme, target GPU) and the Compute config (matrix multiplication type and compute options such as batch invariance) are set by the model's matrices and formats. The Tuning config (tile size, pipeline stages, memory access, matrix multiply instructions, and scheduling such as Stream-K) is kept separately for each input-size range. [1]
Kernels are built at startup and only selected at runtime. During model warmup, kernels are JIT-compiled in parallel. Building kernels for every input size a layer's matrix multiplication needs takes about 2 to 4 seconds, and the results are cached for reuse. At runtime, each step looks at the number of tokens multiplied at once (M) and routes to the matching kernel. In decode, M is close to the number of concurrent requests. In prefill, it can reach the thousands even for a single request. The strategy differs by range. Small M uses a pipeline based on asynchronous copies (cp.async), and large M uses a TMA-based pipeline. [1]
Configurations are chosen by heuristics, not measurement. Default configurations come from per-GPU heuristics that consider the quantization format, matrix shape, supported instructions, SM count, shared memory and register resources. There is no autotune yet that benchmarks candidate configurations on the actual GPU. The team lists it as future work. [1]
There are dedicated paths for MoE. For MoE matrix multiplication, where tokens are unevenly distributed across experts, Humming provides two paths: Indexed and Grouped. [1]
What gets better
You can use FP8 tensor cores. Humming handles W4A16 as well as W8A8, W4A8 and W4A4 in a single framework. Even on GPUs that cannot multiply 4-bit values directly, Humming's W4A8 path unpacks MXFP4 weights as it loads them and multiplies on FP8 tensor cores. The weights move in 4 bits, so less data is transferred, and the math runs in FP8, so it is fast. Marlin on the H100 has no such path. [1]
It can be faster even in a W4A16 vs. W4A16 comparison. In vLLM community microbenchmarks, Humming's MXFP4 MoE W4A16 was about 2x faster than Marlin in many medium and large batch cases on Hopper GPUs. W4A8 was about 4.2x faster than the W8A8 baseline (DeepGEMM) at small and medium batches on the H20. [1]
Kernels are light and fast to build. Compiling a single W4A16 kernel took 23.35 seconds with CUTLASS and NVCC, compared with 1.82 seconds for Humming. [1]
Things to watch out for
Heuristics are not always optimal. The team itself notes that heuristics cannot pick the best configuration in every case. It is safest to measure whether any range runs slower than the existing kernel for your model's shapes. [1]
The first startup needs warmup time. JIT compilation takes about 2 to 4 seconds per layer. In autoscaling environments, it is a good idea to persist the kernel cache. [1]
As a new kernel, it may have shape issues. For example, an issue was reported where W4A8 MoE shapes not divisible by 256 were blocked before the weights were loaded. Keeping a Marlin configuration ready lets you roll back quickly if something goes wrong. [9]
Changing only the backend can also change the precision. By default, Humming follows the input format specified in the checkpoint. If the GPU does not support that format, it falls back to a supported, higher precision. Specify the input format you want, and check the startup log to confirm which format is actually used. [1]
How to turn it on
Humming is included by default in CUDA builds from vLLM 0.29.0. For standalone use, install the humming-kernels package. Select it with --moe-backend humming for MoE matrix multiplication and --linear-backend humming for general matrix multiplication, and set the MoE activation format with --quantization-config.moe.activation. --quantization humming is a compatibility path for formats such as GPTQ INT3. You can use the defaults as they are or tune them for your model and deployment. Because Humming builds kernels on demand, the server needs a CUDA compiler. If it has none, install the compile dependencies for your CUDA version (humming-kernels[cu12] or [cu13]). This is also why the package is only about 500KB: it ships no bundle of precompiled kernels. [1]
3. The baseline, Marlin: a prebuilt W4A16 kernel
Marlin, the kernel we compare against Humming, has long been the go-to choice for serving 4-bit weight models in vLLM. The name stands for Mixed Auto-Regressive Linear kernel, and it is also the name of one of the fastest fish in the ocean. [4] Published by IST Austria researchers in 2024, it unpacks 4-bit weights to 16 bits right inside the registers as it loads them, then multiplies on 16-bit tensor cores (W4A16). [5]
It is strong at small to medium batch sizes. Up to 16 to 32 tokens multiplied at once, it delivers close to the theoretical maximum speedup of about 4x. [4] [5] It is a good fit for services without heavy request volume.
Its numerics are the most conservative. Because inputs are multiplied in BF16 as they are, it stays closest to the original model's computation.
It is ready to use immediately. Kernel code is generated and compiled when vLLM is built and ships inside the package, so no time is spent building kernels when the server starts. [10]
Marlin also makes choices at runtime. vLLM's Marlin picks a usable option from a few tile configurations, split into small-batch and large-batch sets based on the token count. [11] However, these are general-purpose settings fixed in advance without knowing your model's shapes or GPU.
Its limits are also clear. The speedup shrinks as more tokens are multiplied at once. vLLM's Marlin has been extended to support 8-bit inputs on some GPUs (SM89, SM12x). However, the vLLM code notes that the FP8 multiply instruction Marlin uses is emulated with FP16 operations on Hopper GPUs such as the H100 (SM90), so it brings no speedup there. [10] As a result, on the H100, MXFP4 experts are computed with BF16 inputs (W4A16), and the throughput of FP8 tensor cores goes unused. Marlin was hand-tuned for Ampere GPUs, and its original repository states that it is not yet optimized for Hopper. A new kernel also has to be built whenever a new quantization format appears. [4]
4. Where do Marlin and Humming diverge?
Same 4-bit weights, different compute precision
Both kernels read exactly the same 4-bit (MXFP4) expert weights. The difference is what they unpack the weights into and what precision they multiply at. Marlin unpacks 4-bit weights to BF16 and multiplies on BF16 tensor cores. Humming converts the inputs to FP8 as well, unpacks the 4-bit weights to FP8 and multiplies on FP8 tensor cores (Figure 1). This compute precision is exactly where the two kernels' performance diverges.

FP8 has a narrow range of about ±448. So Humming sets a scale for each token based on its largest value (per-token dynamic scaling) to fit the inputs into 8 bits, then multiplies the result by the scale to restore the original magnitude. [1]
How GPU generations differ: Hopper vs. Blackwell
The reason 4-bit weights must be unpacked before multiplication lies in the GPU. The NVIDIA H100 used in our Part 2 experiments is a Hopper GPU. Its tensor cores can multiply formats such as FP8, BF16 and FP16, but not 4-bit (FP4). [2] The next-generation Blackwell tensor cores support new precisions including FP4, which opens a path to multiply 4-bit weights directly without unpacking them. [12] That is why the Marlin vs. Humming comparison matters most on Hopper, while on Blackwell the comparison itself changes (Table 2).
Hopper (H100, etc.) · this experiment | Blackwell | |
4-bit (FP4) tensor cores | No | Yes |
Computing 4-bit expert weights | Unpack (dequantize), then multiply in BF16 or FP8 | Can multiply directly in 4 bits |
Comparison in this post | Marlin (BF16) vs. Humming (FP8) | The comparison itself changes |
Table 2. How 4-bit expert weights are computed by GPU generation
The vLLM blog also explains that because Hopper lacks MXFP4 tensor cores, existing W4A8 kernels can slow down at larger batches due to the extra work of unpacking weights and aligning scales. Humming's W4A8 path reduces this overhead by unpacking weights as it loads them. [1]
Side by side: Marlin and Humming
At runtime, both kernels look at the token count (M) at each step and pick one of their prepared kernels. The difference is who built those kernels, when, and for what. Marlin uses a few general-purpose configurations fixed when vLLM is built. Humming builds kernels for each input-size range at server startup, tailored to your model's shapes and GPU. Figure 2 and Table 3 summarize this difference along with the supported formats, compute precision, execution pipeline and MoE paths.

Marlin | Humming | |
What it is | A W4A16 matrix multiplication kernel precompiled at build time | A kernel generator that takes configurations and builds kernels at server startup |
How kernels are selected | By token count, from a few general-purpose configurations fixed at build time | By token count, from per-input-size-range kernels built at startup (heuristics) |
Origin | IST Austria and others (2024), integrated into vLLM | Ant Group and the vLLM community (Oct 2026), default since vLLM 0.29.0 |
Expert computation on the H100 | 4-bit unpacked to BF16 on BF16 tensor cores (W4A16) | 4-bit unpacked to FP8 on FP8 tensor cores (W4A8), W4A16 also available |
Where it excels | Small to medium batches, services with fewer requests | Compute-heavy ranges such as large batches and prefill |
Startup time | Precompiled, runs immediately | About 2 to 4 seconds of JIT warmup per layer, then cached |
Caveats | Gains shrink at larger batches, no FP8 acceleration on the H100 | Heuristics are not always optimal. Check the input format and validate accuracy |
Table 3. Marlin and Humming at a glance (expert matrix multiplication for DeepSeek-V4.1-Flash-1017 on the H100)
Wrapping up: continued in Part 2
To sum up, Marlin and Humming read exactly the same 4-bit weights. What differs is how many bits they unpack those weights into and what precision they multiply at. On the H100, Marlin multiplies in BF16. Humming W4A8 aligns inputs and weights to FP8 and multiplies on FP8 tensor cores, which offer twice the peak throughput of BF16. Marlin also relies on general-purpose kernels built ahead of time, while Humming builds kernels for your model and GPU when the server starts.
So is Humming always faster in real-world serving? In Part 2, we look at how the gap between the two kernels changes under low and high load. We also share TTFT, TPOT and SLO attainment measured by deploying DeepSeek-V4.1-Flash-1017 on Air Container and switching between Marlin and Humming.
Read Part 2 !!
👉 Read Prat2: Response Speed and SLO on DeepSeek-V4.1-Flash-1017
👉 Get started: Air Container docs
References
[1] vLLM Blog, Announcing Humming: Fast, Flexible Kernels for Quantized Inference (2026)
[5] Frantar et al., MARLIN: Mixed-Precision Auto-Regressive Parallel Inference on Large Language Models (2024)
[10] vLLM source: Marlin kernel generation script (generate_kernels.py)
[11] vLLM source: MoE Marlin configuration selection (marlin_moe_wna16/ops.cu)



