Skip to content

Dflash: Block Diffusion Speculative Decoding#995

Draft
vjanfaza wants to merge 2 commits into
quic:mainfrom
vjanfaza:DFlash
Draft

Dflash: Block Diffusion Speculative Decoding#995
vjanfaza wants to merge 2 commits into
quic:mainfrom
vjanfaza:DFlash

Conversation

@vjanfaza
Copy link
Copy Markdown
Contributor

In this PR, we are adding the support for DFlash (Block Diffusion for Flash Speculative Decoding) approach that significantly accelerate LLM inference on Qualcomm platforms.
DFlash replaces autoregressive draft models with a diffusion-based block drafter that predicts an entire block of tokens in a single parallel pass, resulting in constant drafting latency independent of block size.

Key benefits:

5–6× lossless speedup over baseline decoding
~2.5× faster than EAGLE-3
Higher acceptance length enabled by KV injection of target hidden states into every draft layer
Improved accelerator utilization and reduced end-to-end latency

Verification is performed by the frozen target model, guaranteeing output identical to standard decoding.

Use-case(s)

High-throughput and low-latency LLM serving
Long chain-of-thought reasoning workloads (e.g., math and planning)
Code generation and agentic inference loops
Platform differentiation via advanced speculative decoding on AI100

#Requirements
DFlash speculative decoding with block diffusion drafting and target verification
Extraction and fusion of hidden states from multiple target layers during prefill
KV cache injection of fused target context into all draft layers
Integration with QEfficient, vLLM, and other applications
Support current architecture:
Target: single QPC for prefill + decode (expandable to DA serving)
Draft: lightweight QPC

Equally Contributors

Co-authored-by: Vahid Janfaza <vjanfaza@qti.qualcomm.com>
Co-authored-by: fannanya <fannanya@qti.qualcomm.com>
Signed-off-by: Vahid Janfaza <vjanfaza@qti.qualcomm.com>
@anujgupt-github anujgupt-github marked this pull request as draft May 19, 2026 10:31
Co-authored-by: Vahid Janfaza <vjanfaza@qti.qualcomm.com>
  Co-authored-by: fannanya <fannanya@qti.qualcomm.com>
Signed-off-by: Vahid Janfaza <vjanfaza@qrc706r8-292-10.qualcomm.com>
@quic-rishinr
Copy link
Copy Markdown
Contributor

Design discussion pending.

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.

2 participants