Humming 0.1.18 Brings JIT-Compiled Low-Bit Kernels to SGLang MoE Serving
Summary:Ant Group's Venus and SCT teams and the SGLang team expanded Humming 0.1.18 into a JIT-compiled backend for quantized dense and mixture-of-experts inference. Weight preparation happens at load time, while the runtime specializes GEMM kernels for the target GPU, quantization format, tensor layout, and workload. The Hopper path retains compact MXFP4 weight storage while reconstructing FP8 operands in registers for Tensor Core computation; Blackwell support adds eligible UMMA and MXMMA paths. SGLa
Core update: low-bit execution becomes a runtime-compiled backend
Ant Group's Venus and SCT teams and the SGLang team used Humming 0.1.18 to turn quantized dense and mixture-of-experts execution into a backend that can specialize GEMMs for the GPU architecture, numeric representation, tensor layout, and active workload. Checkpoints do not have to be expanded into uniform FP8 or BF16 tensors. Compact MXFP4, FP4, INT8, and other supported representations can remain in their packed form until the runtime decides how to unpack, dequantize, and feed the Tensor Core pipeline.
The important contribution is not a new model. It is a way to control the combinatorial growth of low-bit kernels and format combinations. SGLang continues to own expert routing, dispatch, token alignment, output reduction, and token-order restoration. Humming supplies compatible input processing and GEMM execution for quantized linear layers or MoE runners.
Decoupling representation from execution
Humming separates a checkpoint's storage representation from the strategy used to execute it. Compatible formats can share data movement, dequantization, matrix multiplication, and output-processing components, while the valid combination remains constrained by the GPU, scale format, and tensor layout.
The runtime exposes three explicit configuration layers:
LayerConfigdefines shapes, numeric formats, quantization, and storage layouts.ComputeConfigdefines dense, indexed, or grouped execution and accumulation semantics.TuningConfigselects tile shapes, data transfers, pipeline stages, and scheduling.
At model-load time, supported checkpoint tensors and metadata are converted into common weight and input schemas. Padding, transposition, interleaving, and scale rearrangement occur outside the request hot path. This avoids repeating weight preparation for every request, although the conversion time, temporary storage requirements, and cost of changing formats still have to be included in deployment planning.
At inference time, the unified process_input interface composes activation evaluation, Hadamard transforms, layout processing, and quantization. It supports static tensor scales, dynamic token or group scales, and selected secondary-scale combinations. Some scale calculations require multiple passes. Humming then assembles and JIT-compiles the selected GEMM, caching binaries for subsequent calls and avoiding the need to precompile every format and serving shape.
That design removes a large precompilation matrix, but it does not make compilation free. A new shape, layout, or GPU path can still trigger a first-use compilation delay. Production deployments need explicit warmup and compilation-cache monitoring.
Hopper: compact MXFP4 storage with FP8 computation
A representative Hopper path combines MXFP4 weights with per-token FP8 activations. The weights remain packed at four bits in global and shared memory. Humming reconstructs FP8 operands in registers immediately before Tensor Core computation.
During loading, scale factors are decomposed as:
s_g = s_base × 2^Δg
Each expert and sublayer retains a base scale, while every group stores a residual exponent and the metadata needed to reconstruct it. If the exponent span exceeds the representable FP8 range, preparation adjusts the affected scales and requantizes the corresponding FP4 values.
The execution path has three stages:
- FP4 nibbles and residual exponents are rebuilt into E4M3 weight operands.
- A transposed mapping places weight registers in WGMMA's A operand and the shared-memory activation tile in its B operand, avoiding a materialized 8-bit weight tensor in memory.
- FP8 WGMMA accumulates into FP32, while the epilogue applies the activation scale and the remaining factored base scale.
For group scales [1, 2, 4, 8] with a base scale of one, the residual exponents are [0, 1, 2, 3]. An FP4 value of 1.5 in the scale-four group is first reconstructed as the E4M3 operand 0.1875. The remaining factor of 32, including the fixed FP4-to-FP8 exponent-bias adjustment, restores the value to 6.
The path supports an exponent span of 11 for E4M3. A larger span raises the minimum scale to max_scale / 2^11; affected weights are divided by the corresponding power of two and rounded back to FP4, which can introduce rounding error or underflow. A TP8/EP1 load-time check found scale-range adjustment in 0% of valid target groups but 11.27% of valid draft groups. Padding in the scale selection caused most of the discrepancy. Humming PR #193 fixes the issue upstream, but the dependency used for the reported test does not yet include that fix.
The published AFP8 results use dynamic per-token E4M3 scales with group_size=0. They should not be conflated with the FP8_BLOCK grouped-contiguous or indexed MoE paths, which use a different scale model.
Blackwell: native paths without published performance data
Humming also extends to Blackwell. Supported SM10x configurations can use UMMA, while supported SM12x block-scaled configurations can use MXMMA. The architecture covers BF16 UMMA and eligible FP8, FP4, and INT8 UMMA paths, subject to device and scale-layout constraints.
This does not mean that every Blackwell SKU exposes identical functionality. INT8 UMMA is not available on every device, and the scale layout must match the selected instruction path. Tile size, pipeline depth, and parallelism still vary with model shape and whether the workload is in prefill or decode.
All reported performance measurements in the article come from H20-3e Hopper systems. The Blackwell section describes architecture support rather than measured results, so the Hopper speedup cannot be extrapolated to Blackwell.
Division of responsibility between SGLang and Humming
The original integration arrived through SGLang PR #23754, and PR #46018 updated it for Humming 0.1.18. The boundary between the two systems remains explicit:
- SGLang reads checkpoint metadata, preserves the input scales required by the selected quantization scheme, and manages expert routing, dispatch, token alignment, output reduction, and token order.
- Humming provides input processing and GEMM execution for compatible quantized linear layers and MoE runners.
- A deployment can use Humming for its MoE runner while retaining another native path for dense layers.
This makes mixed execution strategies possible, but it also makes format and scale compatibility a first-class deployment concern. Checkpoint metadata and scale semantics must remain consistent across runners.
Reading the reported 1.07–1.23× prefill gain
In long-context tests on DeepSeek-V4.1-Flash-1017, the team reported that Humming delivered a 1.07–1.23× prefill speedup over Marlin at the stated A16 precision. The result supports the premise that keeping weights packed and reconstructing FP8 operands in registers can reduce memory traffic or improve GEMM efficiency on Hopper.
That number should not be converted directly into an end-to-end service claim. MoE serving is also constrained by expert-load imbalance, all-to-all communication, KV Cache, batch scheduling, and output length. If prefill accounts for only a small portion of total latency, a 7% to 23% kernel-level gain may have a limited effect on end-to-end time-to-first-token.
The available material does not fully disclose absolute prefill latency, tokens per second, TPOT, peak memory, batch size, concurrency, TP/EP settings, or run-to-run variance. FP8 expert activations were also evaluated separately as a deployment option with quality and speculative-decoding acceptance tests. Faster prefill alone does not establish lossless quality or equivalent decode acceleration.
Engineering trade-offs
| Dimension | Engineering benefit | Cost and boundary | | --- | --- | --- | | Weight storage and bandwidth | Four-bit weights substantially reduce raw payload size and memory traffic | Scales, padding, and metadata reduce the real compression ratio from the naive 2× estimate | | Prefill and decode | Tile and pipeline strategies can be specialized for compute- or bandwidth-bound phases | One optimized kernel does not imply optimal performance in both phases | | JIT compilation | Avoids precompiling every quantization, layout, and shape combination | First-use compilation, cache invalidation, and upgrades add cold-start and operational cost | | Numeric precision | Low-bit representations reduce memory and bandwidth pressure | Scale factoring, exponent-range adjustment, and FP4 requantization can introduce rounding or underflow | | MoE execution | Grouped and indexed GEMM paths accommodate dynamic expert-token counts | Expert hotspots, capacity limits, and communication can still dominate end-to-end performance | | GPU coverage | Hopper has measured results, while Blackwell gains eligible UMMA and MXMMA paths | No equivalent Blackwell benchmark is available yet |
Deployment guidance
- Pin Humming, SGLang, CUDA, and driver versions, and confirm whether the deployment includes the draft-padding fix from PR #193. Recheck scale ranges and quantization error after the dependency upgrade.
- Convert checkpoints during model loading and separately track preparation time, temporary disk usage, and failed artifacts instead of hiding these costs inside service-startup timeouts.
- Warm the JIT cache with representative prefill and decode shapes, then monitor compilation misses, cache size, first-request latency, and compilation failures.
- Compare Humming with Marlin on the same hardware across context lengths, batch sizes, concurrency levels, output lengths, and TP/EP configurations. Record TTFT, TPOT, end-to-end latency, throughput, peak memory, memory bandwidth, and expert-load distribution.
- Run task-level regression tests and track speculative-decoding acceptance separately. Low-bit speed gains do not replace accuracy and stability validation.
- Start with a canary rollout on Hopper. Do not make Blackwell performance commitments until equivalent model, precision, and shape tests are available.
Humming 0.1.18's real contribution is to turn low-bit MoE serving from a collection of hard-coded kernels and format branches into a composable execution layer that can be compiled for the active hardware and workload. Current evidence supports a modest but credible Hopper prefill improvement. A broader end-to-end production advantage still requires absolute measurements, cross-shape stability tests, and independent reproduction.
— END —Source: LMSYS / SGLang Blog (2026-11-18)
Tags: #Humming #SGLang #MoE Inference #MXFP4 #Low-Bit Quantization
Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.
Community Comments