Repository navigation
Ling: unlock thinking speculation, multi-draft MTP ladder, and ragged batched verify - #48
Merged
Merged
Conversation
… 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%).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lifts artificial speculative-decoding and batched-MoE caps on Ling-3.2-air without regressing quality:
verify_bit_exactandbatch_verify_bit_exactfor Ling so speculation stays active inside<think>blocks.--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 raggedksbatched KDA/MLA verify.w4a16_gemv_batch2/batch3dispatch.grouped_a16_prefillthreshold from 128 to 33.Verified on GB10 (
ennspark04): 60/60 Ling unit tests,clippy -D warningsclean,draft_decode.pypass,task_probe.py30/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).