← News

Technology updates

NVIDIA Details Three MoE Inference Optimizations for Ling-3.0-flash on DGX Spark

An NVIDIA developer post shows Humming MXFP4 MoE kernels, online FP8 LM-head quantization and NEXTN speculative decoding lifting Ling-3.0-flash decode throughput 42.5% on GSM8K.

Published: 2026-11-18 13:25 UTCUpdated: 2026-11-18 13:25 UTCSource date: 2026-10-27

An NVIDIA developer blog post dated October 27 uses Inclusion AI's Ling-3.0-flash to walk through three techniques for speeding up mixture-of-experts inference on DGX Spark. The model has roughly 124 billion total parameters and about 5.1 billion active per token across 42 layers: 35 Kimi Delta Attention linear-attention layers and seven MLA layers. Each MoE layer routes a token to eight of 512 experts plus one shared expert. The post says the model ships with a native 256K-token context window that can extend to 1M.

Profiling at batch size 1 showed decoding was memory-bound, with weight reads driving execution time. Two operations stood out: the MoE computation and the output-layer projection over the vocabulary. That diagnosis frames all three optimizations as ways to cut per-step weight traffic or reduce the number of steps, and it also implies the results are specific to single-request, bandwidth-limited edge deployment.

The first change swaps the FlashInfer MXFP4 MoE backend for the independent Humming kernel library, installed via humming-kernels. Humming uses NVRTC to generate and compile CUBINs at runtime for the actual M/N/K dimensions, data types and GPU architecture, caching them under ~/.humming/cache. That specialization suits Ling's narrow moe_intermediate_size of 768, and compilation is finer-grained: individual kernels finish in seconds, versus the FlashInfer CUTLASS path compiling 97 targets with ninja over tens of minutes. The author reports time per output token falling from 27.71 ms to 25.35 ms, a 9.3% throughput gain.

The second change applies dynamic FP8 quantization only when constructing the LM head. That layer projects a 2,560-dimensional hidden state onto a 157,184-token vocabulary, so its full weight block must be read for every generated token. Moving it from BF16 to FP8 halves the read volume. Stacked on Humming, it adds 11.4% and reaches 21.7% over baseline. The setting is mutually exclusive with the baseline FP32 LM-head option.

The third is speculative decoding. Ling-3.0-flash includes a NEXTN prediction layer usable directly as a draft model without extra training or downloads; the configuration uses three draft steps and a four-token verification window. The author measures a verification-cost ratio of about 2.26, attributed not to attention reads but to expert activation: a normal decode activates eight experts for one token, while verifying four tokens can activate up to 32. On the synthetic workload the accept length reached 3.90 tokens per round and throughput hit 185.1% of baseline.

The post flags an integration pitfall. With FP8 LM-head quantization and speculative decoding both enabled, the draft must share the entire LM-head module, not just its weight tensor. The original NEXTN implementation did not expose that interface, so the framework silently fell back, read FP8 weights as BF16, dropped accept length to 1.00 and ran slower than an unoptimized baseline. The author advises verifying each optimization at startup rather than inferring configuration from later performance numbers.

Because synthetic workloads with repetitive outputs and greedy sampling overstate speculative gains, the author also ran a full GSM8K comparison across all 1,319 test questions with five-shot prompting and temperature 0.6. Together the three changes cut time per output token by 29.8%, raised decode throughput from 37.81 to 53.89 tokens per second (+42.5%) and lowered mean latency from 15.21 s to 11.49 s (-24.5%), while GSM8K accuracy moved from 96.89% to 96.82%, a difference the author describes as not statistically detectable. Accept length on real data was only 2.68 versus 3.90 synthetic, and the post states plainly that the 185.1% figure does not establish gains on other workloads.

From an engineering standpoint the mechanisms do not overlap: Humming and the FP8 LM head lower the cost of each step while MTP reduces the number of steps, so they compose. Composition is not automatic, though, and the shared-module requirement is a prerequisite rather than an optimization. Set against NVIDIA's previously announced DGX Spark HPC Developer Kit, this kind of single-node tuning matters most to developers who want to run large MoE models on desktop hardware.


Related articles