docs(dflash): plan for gpt-oss-120b DFlash speculative decoding support - #131
Merged
Conversation
added 2 commits
July 28, 2026 21:51
Phased, de-risked RFC to add DFlash block-diffusion speculative decoding for openai/gpt-oss-120b using the z-lab/gpt-oss-120b-DFlash 0.8B drafter (arXiv 2602.06036). Phase 0 validates the SGLang reference (fully resident) as a go/no-go gate; native integration targets the synchronous generate path first; resident-only for v1 (expert-offload + async serving deferred). Includes the verified DFlash runtime contract, MoE-Infinity integration anchors, a risk table, and executable per-phase QA gates.
…y gate Phase 0 (SGLang reference on SM120 Blackwell) is complete: GO. Adds section 0.1 with the validated results (DFlash worker init, acceptance length 3.66, single-stream 1.18-1.32x speedup, concurrency-8 0.65x regression) and two findings that refine the plan: (1) TP=4 is infeasible on SM120 for gpt-oss MXFP4 in current sglang main (all MoE backends fail; ran TP=2+Marlin); (2) strict token-identity is unattainable on this MXFP4 stack due to FP near-tie argmax flips (baseline is not self-identical) -- so the QA-3.1 parity gate now uses a same-process token agreement-rate metric instead of string identity. Also resolves open questions Q1/Q4 and updates the Definition of Done.
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.
What
Adds a phased, de-risked design doc (RFC) for supporting DFlash speculative decoding on
openai/gpt-oss-120bin MoE-Infinity, using thez-lab/gpt-oss-120b-DFlash0.8B block-diffusion drafter (arXiv 2602.06036).Doc:
docs/plans/gpt-oss-dflash-support.md(doc-only PR — no code changes).Why
gpt-oss-120b is already a supported target, but MoE-Infinity has no speculative-decoding scaffolding today. DFlash is a lightweight, distribution-lossless way to speed up decode. This RFC captures the verified integration contract and a staged, low-risk path before any code lands.
Approach (summary)
engine/generation_loop.pypath first — structurally the closest fit (HFpast_key_valuesrollback), greedy first.Contents
block_size=10→ 9 draft tokens,mask_token_id=200000, target layers[1,9,17,25,33], target-hidden-state KV injection, accept rule).Status
RFC for review. Phase 0 reference validation is being run separately; results will inform the go/no-go on native integration.