Skip to content

Ling: unlock thinking speculation, multi-draft MTP ladder, and ragged batched verify - #48

Merged
data-angel merged 1 commit into
ling/3.2-airfrom
claude/ling-unlock-perf
Nov 28, 2026
Merged

data-angel merged 1 commit into
ling/3.2-airfrom
claude/ling-unlock-perf

Conversation

@data-angel

Copy link
Copy Markdown

Lifts artificial speculative-decoding and batched-MoE caps on Ling-3.2-air without regressing quality:

  • Implement verify_bit_exact and batch_verify_bit_exact for Ling so speculation stays active inside <think> blocks.
  • Support chained multi-step MTP (--num-drafts=1..=3, K=2..4) with post-norm hidden chaining, speculative row rollback, multi-window private MTP KV, K=3 verify Prometheus counters, and ragged ks batched KDA/MLA verify.
  • Fix 7-arg vs 8-arg ABI mismatch in batched MTP w4a16_gemv_batch2/batch3 dispatch.
  • Restore 9-32 row NVFP4 decode/verify tiers (keeping cuBLASLt BF16 GEMM above 8 rows) and lower grouped_a16_prefill threshold from 128 to 33.

Verified on GB10 (ennspark04): 60/60 Ling unit tests, clippy -D warnings clean, draft_decode.py pass, task_probe.py 30/30 math & 10/10 tools, SparkModelBench 15/15 decode gates (code 66.15 vs 49.80 tok/s, prose 57.10 vs 49.02, structured 67.14 vs 54.28; C1/C2/C4 concurrency 56.5 / 84.4 / 125.8 vs 41.9 / 64.7 / 97.1 tok/s).

… batched verify

Lift artificial speculative-decoding and batched-MoE limits on Ling-3.2-air
while preserving bit-exact greedy parity and zero quality regression:

- Unlock speculation inside <think> blocks by implementing verify_bit_exact
  and batch_verify_bit_exact for Ling.
- Support chained multi-step MTP drafting (num_drafts=1..=3, K=2..4) with
  post-norm hidden chaining, speculative row rollback, multi-window private
  MTP KV cache, K=3 Prometheus accept/reject counters, and ragged ks
  batched KDA/MLA verify (eliminating serial fallbacks on ragged batches).
- Fix 7-arg vs 8-arg ABI mismatch in batched MTP w4a16_gemv_batch2/batch3
  dispatch.
- Restore 9-32 row NVFP4 decode/verify projection tiers (keeping cuBLASLt
  BF16 GEMM above 8 rows) and lower grouped_a16_prefill threshold from 128
  to 33 to close the 33-127 row MoE dead zone.

Verified on GB10 (ennspark04): 60/60 Ling unit tests, clippy -D warnings
clean, draft_decode.py pass, task_probe.py 30/30 math & 10/10 tools,
SparkModelBench 15/15 decode gates (code 66.15 vs 49.80 tok/s, prose 57.10
vs 49.02, structured 67.14 vs 54.28; C1/C2/C4 concurrency +35%/+30%/+30%).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant