feat(deepseek4): add DSpark speculative runtime#496
Conversation
|
Validation update (2026-07-09): the converter/loader bridge in this PR was validated on lucebox2 with the converted DSpark drafter artifact. In the follow-on DeepSeek4 runtime worktree, DSpark loads successfully, prefill feature capture and generation are wired, the batched-verify causality bug is fixed, and causal batched output matched exact sequential verification in paired probes. Adaptive EWMA width and fused batched verify are working; fused verify reached approximately 20 tok/s (peak 20.1 tok/s), versus roughly 13–15 tok/s for the earlier dynamic causal path. Exact sequential verification measured 1.78–1.91 accepted candidates per 4-candidate step. These runtime changes are follow-on work in the hub-494 experiment worktree and are not claimed as already included in PR 496. |
|
Updated DSpark adaptive width in
Validation on lucebox2 / gfx1151 with the exact committed source:
The confidence policy therefore retains essentially all high-acceptance throughput while adapting verification width on harder prompts. |
Return confidence scores from the fused Markov graph in the existing token-id synchronization, then select q=2/q=3/q=4 from cumulative prefix confidence. Compatible DSpark artifacts enable the policy automatically; artifacts without a confidence head retain the existing EWMA controller. No new deployment configuration is introduced.\n\nValidated on gfx1151: GSM+Math 10/10 at 29.25 tok/s weighted, within 0.8% of fixed q=4, with adaptive behavior retained on low-acceptance prompts.
1fc4f00 to
867c9b8
Compare
Stack
Depends on #503, which depends on #502:
#502 ROCmFPX ggml -> #503 DeepSeek4 target -> #496 DSpark runtimeThis branch was rebuilt directly on #503 so it does not carry or conflict with older copies of the target and fused-decode changes.
Summary
DFLASH_DS4_SPECis enabledValidation
gfx1151;gfx1201DFLASH_DS4_FUSED_DECODE=1git diff --checkFollow-up
Remote DSpark execution and shared transport are isolated in #505.