Skip to content

v0.6.24 — Qwen3.6 prompt processing ~10% faster; serving level with vLLM at c16

Choose a tag to compare

@skyrocket2026 skyrocket2026 released this 05 Oct 05:32
· 45 commits to main since this release
92cabbb

Qwen3.6 prompt processing is ~10% faster. Serving now matches vLLM at 16 concurrent requests and is within 1% on 8K-token prompts.

When a prompt is processed, each expert's weights multiply many tokens at once. The kernel that did this for 3K+ token batches read a block of weights, waited for it, then multiplied, so memory reads and tensor-core work never overlapped. It also used an older, less efficient matrix instruction. That batch size includes the 4,096-token steps a busy server mixes into decoding.

The new kernel takes the design of our dense prefill kernel. It fetches the next weight block while the current one multiplies, and it uses the faster m16n8k32 tensor-core instruction. It also scatters the down projection's results with 4-wide atomic adds, so it issues a quarter as many atomic operations. Per layer at 4,096 tokens:

  • each of gate and up: 395 → 279 µs;
  • down: 493 → 401 µs.

The gate/up output is bit-identical to before. The down sums the same values, in atomic order as before.

Measured

RTX 5090, AIPerf streaming chat with 1,024-token prompts, 256 output tokens (ignore_eos), and a distinct prompt set per cell. Output tok/s:

Qwen3.6-35B-A3B UD-Q4_K_M 0.6.23 0.6.24 vLLM 0.30.0 (nvidia NVFP4)
4 requests 903 911 666
16 requests 1,666 1,688 1,686
32 requests 2,193 2,224 2,367
8K prompts, 4 requests 503 520 450
8K prompts, 16 requests 619 646 652

Single-prompt prefill:

  • 4K tokens: 32.3K → 36.3K tok/s.
  • 8K tokens: 34.0K → 37.0K tok/s.

Qwen3.8 is unchanged (dense model).

Settings:

  • SPARKINFER_PREFILL_MOE_K32=0 restores the previous kernel.
  • SPARKINFER_PREFILL_MOE_BM64_MAX moves the 64-to-128-row tile crossover, which is now at 2,048 tokens.

New GPU test: moe_qi8_k32_gpu_test.

What's Changed

  • perf(kernels): the routed MoE prefill GEMM is pipelined and on m16n8k32 (Qwen3.6 served c32 2,162 -> 2,231, 8K c16 619 -> 646 tok/s) by @skyrocket2026 in #1308
  • docs: 0.6.24 — Qwen3.6 prompt processing ~10% faster; serving level with vLLM at c16 by @skyrocket2026 in #1309

Full Changelog: v0.6.23...v0.6.24