Skip to content
HN On Hacker News ↗

DFlash 2: Keep Drafting Parallel

▲ 99 points 18 comments by mike-the-brain 4d ago HN discussion ↗

Pangram verdict · v3.3

We believe that this text is a mix of AI, AI-assisted, and human-written content.

34 %

AI likelihood · overall

Mixed
68% human-written 31% AI-generated
SEGMENTS · HUMAN 4 of 15
SEGMENTS · AI 4 of 15
WORD COUNT 1,386
PEAK AI % 92% · §5
Analyzed
Aug 19
backend: pangram/v3.3
Segments scanned
15 windows
avg 92 words each
Distribution
68 / 31%
human / AI fraction
Verdict
Mixed
Pangram v3.3

Article text · 1,386 words · 15 segments analyzed

Human AI-generated
§1 Mixed · 61%

August 18, 2026Inference is the bottleneck of the agent era. Agents read, plan, and call tools, often for hours or days. They consume tokens at a rate chat never approached. Every one of those tokens takes a full forward pass over the model. At Inco AI, we are building the inference stack scaled to the token economics of tomorrow.

§2 Mixed · 34%

This post is a sneak peek. Our team released DFlash in January; it now runs in SGLang, vLLM, TensorRT-LLM, and llama.cpp. NVIDIA measured up to 15× throughput with it on Blackwell GPUs; Google reported 3× more tokens per second on TPUs; CoreWeave's production Kimi K2.7 Code endpoint, the fastest for that model on Artificial Analysis, runs DFlash by default. The ecosystem now builds on it: NVIDIA, Red Hat, and Modal have all published DFlash drafters; Meta (Muse Glimmer), Poolside (Laguna), Xiaomi (MiMo-V2.5-Pro), and NVIDIA (Nemotron 3.5 Lightning) ship official drafters with their own models. On Hugging Face, DFlash models have been downloaded more than 3.5 million times (as of August 2026).

§3 Mixed · 68%

Speculative decoding is a core piece of the modern inference stack.1 A small draft model guesses a block of tokens, and the target model verifies the whole block in one forward pass. Good guesses turn one pass into several tokens; bad ones just get thrown away. For years, though, the draft itself stayed autoregressive: one token at a time. DFlash made it one-pass too: the entire block, every position, predicted in parallel. DFlash 2 drafting for Qwen3.8-27B on an Apple M5 Max with oMLX, side by side with autoregressive decoding. DFlash 2 pushes parallel drafting one step further: over 20% more output from every verification pass, for around 1% added cycle latency, with the output provably unchanged. Across benchmarks the gain runs 16–25%.

§4 Mixed · 42%

With the Qwen3.8-27B drafter released today, SGLang serves at 2.7–3.4× the throughput of autoregressive decoding at batch size 1.

§5 AI · 92%

Predicting every position independently leaves headroom in two places: choosing the right tokens and holding accuracy to the end of the block. DFlash 2 recovers both without giving up the one-pass design.

§6 Human · 5%

Run It Now DFlash 2 already runs in the mainstream inference engines: pip install "sglang[all] @ git+https://github.com/sgl-project/sglang.git#subdirectory=python" python -m sglang.launch_server \ --model-path Qwen/Qwen3.8-27B \ --speculative-algorithm DFLASH \ --speculative-draft-model-path incoai/Qwen3.8-27B-DFlash2 \ --speculative-num-draft-tokens 8pip install -U "vllm @ git+https://github.com/vllm-project/vllm.git@refs/pull/52816/head" vllm serve Qwen/Qwen3.8-27B \ --speculative-config '{ "method": "dflash", "model": "incoai/Qwen3.8-27B-DFlash2", "num_speculative_tokens": 7 }'git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp git fetch origin pull/27342/head:pr-27342 git switch pr-27342 # NVIDIA CUDA cmake -B build -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=ON cmake --build build -j # Apple Silicon cmake -B build -DCMAKE_BUILD_TYPE=Release -DGGML_METAL=ON cmake --build build -j ./build/bin/llama-server \ -hf ggml-org/Qwen3.8-27B-GGUF:Q4_K_M \ -hfd incoai/Qwen3.8-27B-DFlash2-GGUF:Q4_K_M \ --spec-type draft-dflash \ --spec-draft-n-max 7Download and install the prebuilt oMLX with DFlash 2 support.To run Qwen3.8-27B with DFlash 2: Open the oMLX Model Downloader and download: mlx-community/Qwen3.8-27B-4bit incoai/Qwen3.8-27B-DFlash2 Open the Model Manager and edit mlx-community/Qwen3.8-27B-4bit. Configure DFlash with the following settings: DFlash: enabled Draft model: incoai/Qwen3.8-27B-DFlash2 Draft quantization: enabled Runtime block size: 5 Verify mode: dflash Save the settings and load the target model. The Right Tokens Are Already There DFlash predicts every position independently, in parallel.

§7 Mixed · 64%

Each pick is plausible on its own. Yet nothing makes them fit together, and an incoherent block is cut short at verification. Recent methods such as Domino and DSpark buy coherence with sequential heads that rewrite each position's full-vocabulary distribution. But is that costly autoregressive correction really necessary? No. The evidence is already in DFlash's own candidate lists.

§8 Human · 14%

Take the first position: DFlash's top pick is right 85.4% of the time, but the right token is in its top 16 candidates 99.5% of the time. Even when the top pick is wrong, the right token is usually on the list. Metric0123456Acceptance lengthRecall@185.4%80.3%79.4%78.3%77.5%75.9%72.9%4.27Recall@1699.5%97.3%94.8%92.6%90.8%89.4%87.8%6.79Table 1.

§9 Mixed · 61%

Recall@1 (how often the top pick is right) and Recall@16 (how often the right token is in the top 16) at each draft position, conditioned on every earlier position being right. Five-layer Qwen3-4B DFlash on GSM8K. Acceptance length includes the verifier's next token. An oracle that always picks the right candidate from the top 16 would lift the acceptance length from 4.27 to 6.79. That gap is pure selection headroom. We just need to select the right path through the candidates.

§10 Human · 7%

Diffusionisgood⟨mask⟩⟨mask⟩⟨mask⟩Independent Top-1 Picksfor✗same word, twiceposition 1decodingspeculativeslow⋮position 2decodingthinkingmodels⋮position 3⟨eos⟩again…⋮all adjacent pairs scored at once → one path keptaccepted outputfortarget-decoded tokenmask tokenaccepted draftselected pathFigure 1.

§11 AI · 80%

The selector in one cycle. With DFlash alone, each position keeps its top pick; here two neighbors both pick the same word, and the stutter dies at verification. DFlash 2 keeps each position's top candidates, and the selector traces one coherent path through them; here, the whole block survives. A Lightweight Path Selector Coherence is mostly local: a candidate's fit depends mainly on the token just before it, so scoring neighboring pairs should be enough.

§12 Mixed · 30%

DFlash 2 keeps the top 16 candidates at each position and scores every adjacent pair: for predecessor aa and current candidate bb, St(a,b)=Ut(b)+⟨A(a)⊙H(ht),B(b)⟩.S_t(a,b)=U_t(b)+\langle A(a)\odot H(h_t),B(b)\rangle.

§13 AI · 78%

The score has two parts. The first, Ut(b)U_t(b), is DFlash's own logit: how much the drafter already liked bb on its own. The second asks how well bb follows aa: AA and BB give each token a compact 256-dimensional embedding, and the two embeddings are matched under a context gate H(ht)H(h_t) that decides which parts of the match count. In essence, this is a low-rank bilinear attention over adjacent candidates. Scoring stays fully parallel. Every adjacent pair at every position is scored in one shot, with no extra backbone or LM-head pass. The only sequential work is the final walk over precomputed scores: starting from the last verified token, greedy follows the best successor at each step, sampling draws from the same scores, and rejection sampling restores the exact target distribution.

§14 Human · 20%

MethodParamsLatencyT = 0T = 1DFlash——4.273.78+ DSpark correction+77.8M+9.6%4.494.08+ path selection (ours)+2.0M+0.6%4.614.25Table 2. Acceptance length with path selection alone (no convolution), for five-layer Qwen3-4B on GSM8K. Overheads are relative to plain DFlash: parameters added to the drafter, and added draft–verify cycle latency. The selector improves DFlash by 0.34 tokens at T=0T=0 and 0.47 at T=1T=1. It beats the DSpark correction in both settings with roughly 40× fewer parameters and 16× lower latency overhead. Choosing is cheaper than predicting. And there is still room: the oracle reaches 6.79. Pairwise scoring is the simplest selector we could think of, and we believe there is plenty to explore. Suffix Decay Is a Local Problem We also noticed both recall rows above decline toward the end of the block. Even the oracle decays: with perfect selection, accuracy still falls from 99.5% at the first position to 87.8% by the last. No selector can fix that, because the candidates themselves are running out. We call this suffix decay, and it is a backbone problem. One suspect is capacity: a five-layer backbone may be too small to preserve dependencies across the block. If that is right, depth should help most at later positions. And it does! 3-, 5-, and 15-layer DFlash models are almost identical at the first position, and fan apart down the block. But depth is indiscriminate: ten extra attention blocks add capacity everywhere, even at the early positions that had little left to gain, and erase much of the efficiency that makes DFlash attractive. Figure 2. Qwen3-4B Recall@1 on GSM8K at T=0, conditioned on every earlier position being right. All drafters are trained under the same setup; the convolutional model is evaluated without the selector. Its convolutions add 3% parameters and 0.7% cycle latency; the ten extra layers of 15L add 15.2%.Draft position0123456DFlash 3L85.21%79.26%77.18%75.75%73.96%70.4%64.97%DFlash 5L85.39%80.31%79.39%78.27%77.39%76.03%72.86%DFlash 15L (3× more params)86.42%81.61%80.68%80.34%80.59%79.66%78.73%DFlash 5L + conv (+3% params)85.83%80.94%79.98%79.68%79.73%79.43%77.61%Figure 2. Qwen3-4B Recall@1 on GSM8K at T=0, conditioned on every earlier position being right. All drafters are trained under the same setup; the convolutional model is evaluated without the selector. Its convolutions add 3% parameters and 0.7% cycle latency; the ten extra layers of 15L add 15.2%.

§15 AI · 86%

We want a targeted fix, and DFlash's attention shows where. It has two jobs: read the context before the block, and model the dependencies inside. But it spends less and less on the second: the block's share of attention falls from 30% in Layer 1 to 8% in Layer 5, and what remains concentrates in a shrinking handful of heads. So we split the jobs: a dedicated module takes the within-block work, and attention keeps reading the context.