docs(design): PD-dflash-MoE serving design doc - #132
Merged
Conversation
drunkcoding
marked this pull request as ready for review
August 4, 2026 16:43
Contributor
Author
|
Ready for review. Full design doc landed in |
added 2 commits
August 4, 2026 16:52
…head expert prefetch; sm_120/RTX PRO 6000 target; Qwen+GPT-OSS generalization
…mentation investigation (benchmark-gated)
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.
docs(design): DFlash-on-MoE-Infinity serving design doc
Design/architecture proposal — docs-only. Adds
docs/design/pd-dflash-moe-serving.md.What "DFlash" is
DFlash = Chen, Liang, Liu, "DFlash: Block Diffusion for Flash Speculative
Decoding" (Z Lab, z-lab.ai, arXiv:2602.06036):
a lightweight (~0.8 B) block-diffusion draft model proposes a whole block of
Btokens in one parallel forward; the large target verifies them in parallel
(lossless).
z-labships ready draft/target pairs on HuggingFace.Thesis (why DFlash × expert-offloading is synergistic)
For an offloaded-MoE target, the bottleneck is fetching the target's experts for
each verification step. A DFlash draft proposes the entire candidate block before
the target verifies it, so we can run the target router on the draft tokens,
obtain the exact expert set the width-
Bverify will read, and prefetch thoseexperts during the draft forward — a route-ahead prefetch (near-exact, not a
speculative guess). DFlash turns MoE-Infinity's hardest problem (hiding target expert
transfer) into a scheduled, near-exact prefetch.
Extends the existing
spec_decode/dflash.py(DFlashSpeculator) seed — are-composition, not a rewrite.
Scope / target
experts FP4-offloaded to host RAM (
moe_infinity._v4_fp4); DFlash draft resident.MoE-Infinity supports and have
z-labDFlash drafts —Qwen3-Coder-30B-A3B,Qwen3.5-35B-A3B,gpt-oss-20b,gpt-oss-120b(DeepSeek-V4-Flash when its draftlands). Route-ahead prefetch is architecture-agnostic at the MoE level.
The doc covers
Verification kernels (width-
Btarget forward), draft/verify PD scheduling (2-Ddeficit over {tokens, expert-bytes}), route-ahead expert prefetch (the
differentiator), an analytical cost model (route-ahead hiding inequality), and an
evaluation plan on the RTX PRO 6000. 3 Mermaid diagrams; 19-row symbol table.
Honesty notes (preserved)
waste vs. acceptance
a; if coverage is high / waste low, the thesis holds.cold-cache) regime; honest elsewhere. Cost-model numbers are labeled illustrative.
Not in scope
No implementation, no training, no measured benchmark numbers. Draft; not for merge
until reviewed.