🦙Freshcollected in 5h

DFlash 2 Doubles Qwen Coding Speed

DFlash 2 Doubles Qwen Coding Speed
PostLinkedIn
🦙Read original on Reddit r/LocalLLaMA
#speculative-decoding#livecodebench#throughputdflash-2dflash 2llama.cppqwen 3.8 27binco ai

💡Real coding benchmarks show 2.26x acceleration—and 4.68x with one carefully chosen n-gram drafter.

⚡ 30-Second TL;DR

What Changed

DFlash 2 improved LiveCodeBench throughput from 67.97 to 153.91 tokens per second, a 2.26x gain.

Why It Matters

DFlash 2 could substantially reduce inference latency for local coding assistants without requiring a separate small language model drafter. The results also show that speculative decoding performance is highly workload-dependent, so production teams should benchmark their own prompt distributions rather than rely on synthetic peaks.

What To Do Next

Build llama.cpp PR #27342 and benchmark DFlash 2 with draft width 5 plus a single ngram-map-k4v table on your real coding prompts before deployment.

Who should care:Developers & AI Engineers

Key Points

  • DFlash 2 improved LiveCodeBench throughput from 67.97 to 153.91 tokens per second, a 2.26x gain.
  • DFlash 2 plus one n-gram lookup table reached 4.68x speedup during an 18-turn coding build phase.
  • The setup required approximately 2.7 GB of additional VRAM for DFlash 2.
  • A draft width of 5 outperformed the recommended width of 7 by roughly 11% on 8K coding prompts.
  • Synthetic results as high as 8.47x were attributed to repetitive benchmark artifacts and should not be treated as representative.

🧠 Deep Insight

Background and context from public sources — not the original article. 16 sources cited.

🔑 Enhanced Key Takeaways

  • DFlash 2 utilizes a block-diffusion architecture that generates multiple tokens in a single forward pass, departing from traditional sequential autoregressive drafting.
  • The technique is mathematically lossless, ensuring that the target model verifies every drafted token to maintain output parity with standard decoding.
  • DFlash 2 is compatible with major inference frameworks including SGLang, vLLM, and Apple's MLX, extending its utility beyond llama.cpp.
  • The incremental performance gain of DFlash 2 is significantly reduced to approximately 20-25% when applied to models that already utilize Multi-Token Prediction (MTP).
  • The drafter model itself is lightweight, requiring roughly 1.1 GB of VRAM, with a negligible 1% cycle latency overhead for the drafting process.
📊 Competitor Analysis▸ Show
FeatureDFlash 2Medusa-2Speculative Decoding (Standard)
ArchitectureBlock-DiffusionMulti-Head AttentionSmall Model Drafter
LosslessYesYesYes
VRAM Overhead~1.1 GBLowHigh (requires small model)
Framework SupportvLLM, SGLang, llama.cppvLLM, HuggingFaceBroad

🛠️ Technical Deep Dive

  • Employs a block-diffusion model to predict token sequences in parallel rather than sequentially.
  • Integrates two-tap dynamic convolutions in the backbone to mitigate draft quality decay over longer sequences.
  • Uses a lightweight path selector to trace coherent sequences from top candidates at each position.
  • Optimized for diverse hardware backends including NVIDIA A100/H200 and Apple Silicon via MLX.

🔮 Future ImplicationsAI analysis grounded in cited sources

DFlash 2 will become the standard for local coding assistants.
The combination of high throughput gains and compatibility with consumer hardware like Apple Silicon makes it uniquely suited for local IDE integration.
MTP-enabled models will see diminishing returns from DFlash 2.
The 20-25% incremental gain observed on MTP models suggests that architectural overlap between MTP and block-diffusion limits additive speedups.

Timeline

2026-08
Inco AI releases DFlash 2 for public use.

📎 Sources (16)

Factual claims are grounded in the sources below. Forward-looking analysis is AI-generated interpretation.

  1. reddit.com
  2. digg.com
  3. mindstudio.ai
  4. regolo.ai
  5. arxiv.org
  6. huggingface.co
  7. note.com
  8. github.com
  9. mindstudio.ai
  10. reddit.com
  11. ycombinator.com
  12. youtube.com
  13. youtube.com
  14. youtube.com
  15. reddit.com
  16. reddit.com
📰

Weekly AI Recap

Read this week's curated digest of top AI events →

👉Related Updates

AI-curated news aggregator. All content rights belong to original publishers.
Original source: Reddit r/LocalLLaMA

This is a summary, not the original. Read the source, or get the weekly briefing.

Weekly AI briefing

One email a week. Unsubscribe anytime.