Skip to content
/ airelien.dev
Go back
Aurélien AMSELLEM

DFlash unblocked on 24GB consumer Blackwell — 80 t/s, 4 days after the "impossible" post

Four days ago I wrote that DFlash on 24GB consumer Blackwell didn't fit. On April 28, a dev publishes a quantized drafter. On April 30, I build, I test, I get 0.97 t/s. On May 1, after my issue, the dev fixes it in 24h. Tonight: 80 t/s. The story of a thesis that lasted 72 hours.

Hi there.

A week ago, I would have sworn it was impossible.

It was even the title of my April 28 post: Why DFlash on Qwen3.6-27B doesn’t fit on a 24GB single GPU. I’d pulled out the VRAM calculator and added up the target (17 GB), the drafter (6 GB), the buffers (3 GB) and the KV cache (2 GB). Total: 28 GB, with 24 available. Dry conclusion: “impossible with the current public paths (Q1 2026)”. I’d even listed the conditions for that to change one day.

All of those conditions fell in four days. Today my Olares One does 80 t/s on average on Qwen3.6-27B with DFlash active. Here’s how.

Quick recap for newcomers

DFlash is a speculative decoding technique. An LLM generates one token (a piece of a word) at a time, and each token costs a full pass of the big model. With DFlash, a small separate model, the drafter, proposes a block of tokens ahead of time, and the big model (the target) checks them all in one pass and keeps the ones it would have written itself. When the drafter guesses well (that’s the acceptance rate), speed goes up 2-3×. The technique was published by z-lab at ICLR 2026 and has a reputation for speed: Lucebox hits 134 t/s with it on an RTX 3090.

Except that to run it, you need the drafter in VRAM on top of the target, and that’s where my 24 GB give out: the z-lab drafter weighs 6 GB in BF16 (16 bits per weight), too much. The April 28 post concluded you’d need either a quantized drafter, meaning one stored in fewer bits (nobody had made one), or a llama.cpp fork with DFlash support (it existed, but hadn’t been tested on consumer mobile Blackwell). The full math is in that post.

I’d ended it with “if anyone ships a quantized drafter, give me a shout.”

April 28, evening

No comment, no tweet. But while digging through HuggingFace that evening, I ran into a recent repo: spiritbuun/Qwen3.6-27B-DFlash-GGUF, published that very morning. Two files:

GGUF is the file format llama.cpp loads, and Q8_0 means 8 bits per weight. The Q8_0 drafter is three times smaller than the z-lab BF16. I redid the VRAM math in the corner of a page:

ComponentSize
Target Qwen3.6-27B Q4_K_M16.8 GB
Drafter Q8_01.75 GB
KV cache @ 32K~2 GB
Buffers + cudagraph~1.7 GB
Total~22.3 GB → fits in 24

This time the target is Q4_K_M (about 4 bits per weight) and the KV cache is sized for 32K tokens of context. The row that matters is the last one: about 22.3 GB, under the 24 GB line.

First ingredient found. Now I needed an inference engine that knows how to do DFlash.

The same spiritbuun maintains a llama.cpp fork (buun-llama-cpp) that adds exactly that: --spec-type dflash with the Q8_0 GGUF drafter. A fork is a copy of a project where someone adds features before they land (or don’t) in the main version. Second ingredient. If I built that fork for my hardware (consumer mobile Blackwell, sm_120, which spiritbuun had never tested), I might have both halves of the puzzle.

I cloned it, wrote a Dockerfile, started buildx in amd64 emulation on the Mac, and went to bed.

April 29, 2h30 of compiling later

Image aamsellem/buun-llama-cpp-dflash:0.1.0, 2.4 GB. Pushed to Docker Hub, deployed on Olares.

The pod boots. The target loads, then the drafter. llama-server (llama.cpp’s OpenAI-compatible HTTP server) says it’s ready on port 8000. No CUDA crash, no architecture mismatch. On paper, all good.

I ran my standard bench: three Space Invaders prompts in HTML, max_tokens=800.

Run 1: 800 tok in 235s = 3.40 t/s
Run 2: 800 tok in 525s = 1.52 t/s
Run 3: 800 tok in 824s = 0.97 t/s

Ouch. 3.4 t/s sliding down to 0.97: that’s twenty-five times slower than my vLLM Turbo (88 t/s) on exactly the same hardware. The drafter is supposed to speed things up, and here it was choking everything. The drop from one run to the next smelled like a memory leak or a cache slowly getting corrupted.

The detailed logs showed that a DFlash cycle took 1860 ms per batch, 1521 ms of it in the verify phase. On Lucebox the same step takes 15-25 ms: three orders of magnitude apart. DFlash’s custom CUDA kernels (the functions that run on the GPU) were clearly written for Ampere and Ada Lovelace, and not for consumer Blackwell SMs.

No config change could fix that; it was a runtime bug. I filed a clean issue on spiritbuun’s repo (issue #35) with the three runs, detailed logs, the exact command and the hardware. Then I let it go.

May 1, late afternoon

GitHub notification. Spiritbuun replies:

“I think this may be fixed now - can you repull and give it another try?”

In the meantime, 8 commits had landed on master. I read the messages:

The first one caught my eye: a minimum confidence threshold (“p_min”) and an adaptive draft length. On consumer Blackwell, the drafter probably needs to reach a minimum confidence before proposing tokens, otherwise the custom kernels wander into exotic compute paths that degrade. A plausible hypothesis.

I started buildx again. Another two hours of compiling on OrbStack. Tag: aamsellem/buun-llama-cpp-dflash:0.2.0. Push, redeploy, pod ready. I reran the three Space Invaders runs:

Run 1: 800 tok in 10.82s = 73.94 t/s
Run 2: 800 tok in  9.96s = 80.31 t/s
Run 3: 800 tok in  9.41s = 85.06 t/s

Average: 80 t/s. No degradation between runs, if anything the opposite: it climbs a little as the KV cache settles in.

Compared with v0.1.0, that’s +2300% over its first run (3.40 t/s) and eighty times its worst one (0.97 t/s), in four days. The jump from 0.97 to 85 t/s comes down to a single upstream commit (the p_min confidence threshold). Open source in 2026 moves on a weekly clock.

Olares One comparison

To place that 80 t/s, here are the other stacks I’ve measured on Qwen3.6-27B on the same machine. The last column is the average generation speed:

StackModelt/s avg
llama.cpp standardUD-Q4_K_XL, no spec decoding33-36
buun-llama-cpp DFlashQ8_0 GGUF drafter80
vLLM Turbo (Genesis)Qwen3.6-27B int4 + MTP n=388
Lucebox DFlash v1.4.4Qwen3.6-27B Q4_K_M88.5

vLLM Turbo uses MTP, a prediction head built into the model that plays the drafter’s role (details in the Genesis post). DFlash joins the leaders without taking first place: vLLM Turbo and Lucebox stay slightly ahead. But it’s the first public demonstration on consumer mobile Blackwell (sm_120, RTX 5090M), with a quantized drafter that fits in VRAM, which is exactly the problem I’d called unsolvable four days earlier.

As far as I know, Lucebox PR #86 reports 218 t/s on a 32 GB desktop RTX 5090 through their custom path, but their HTTP server isn’t wired up yet and their engine doesn’t load the spiritbuun GGUF drafter. For now the two paths move forward in parallel.

The config that works

Image: aamsellem/buun-llama-cpp-dflash:0.2.0 (CUDA 13.1, native sm_120, NO_VMM, libcuda stub link).

llama-server args. --model-draft and --spec-type dflash wire in the drafter, --n-gpu-layers 99 and --n-gpu-layers-draft 99 put every layer of both models on the GPU, and --ctx-size 32000 sets the context:

--model Qwen3.6-27B-Q4_K_M.gguf
--model-draft dflash-draft-3.6-q8_0.gguf
--spec-type dflash
--n-gpu-layers 99
--n-gpu-layers-draft 99
--ctx-size 32000
--ctx-size-draft 256
--batch-size 256 --ubatch-size 64
--parallel 1 --flash-attn on --jinja
--chat-template-kwargs '{"enable_thinking": false}'

One important detail: disable thinking, the mode where Qwen reasons out loud between <think> tags before answering. The spiritbuun drafter wasn’t trained on outputs with those tags, so acceptance collapses when the model emits them. According to spiritbuun, that’s worth about 1.8× extra.

What I take away from it

Four days ago I’d titled the post “impossible”. I was right at that moment: with the public paths of April 28, it didn’t fit. But in 2026, an open-source “impossible” has a half-life of about 72 hours. Someone somewhere has the time to publish a quantized drafter overnight, fix a kernel bug on hardware they don’t even own, and push the commits to master without even announcing it.

The lesson I want to keep, and should have applied earlier: before writing “impossible”, wait a week. I’m not disowning my honest negatives; they’re still useful for mapping where things stand at a given time. But their expiry date should be written down: “impossible on the April 28 public paths”, and not just “impossible”.

My April 28 post, updated tonight, now points to this one. The negative and the positive both stay in the archive, which is more honest than rewriting history.

What we haven’t tested yet

A few leads to push past 80:

To reproduce

Credits

That’s it! If you run a 24GB 5090M, 4080M, 3090 or 4090 and reproduce these 80 t/s, or beat them by tuning the DDTree budget, send me your numbers. See you next time!


Disclosure — All the benchmarks in this post run on my own Olares One. If the content was useful and you’re considering one, ordering through this referral link gets you $300 off ($4,699 instead of $4,999), stackable with the $300 Black Friday discount starting November 17: $600 off in total ($4,399). I’m mentioning this out of transparency — and yes, incidentally, it helps keep the blog alive (hosting, domain, and the time I spend writing here).

Share this post on:

Comments