[GH-ISSUE #3183] [Other] Dflash2 support #1282

Open
opened 2026-11-04 01:50:00 +07:00 by bsakaguchi · 13 comments
Owner

Originally created by @apdogod123321-ops on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3183

https://huggingface.co/incoai/Qwen3.8-Flash-Next-DFlash2
maybe this could be very useful and potentially a new default?
I use a 2080ti 11gb, 12700kf, 128gb ddr4 on the latest strata version: Strata 0.2.0-beta

Originally created by @apdogod123321-ops on GitHub (Oct 19, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3183 https://huggingface.co/incoai/Qwen3.8-Flash-Next-DFlash2 maybe this could be very useful and potentially a new default? I use a 2080ti 11gb, 12700kf, 128gb ddr4 on the latest strata version: [Strata 0.2.0-beta](https://github.com/Niko1221/Strata/releases/tag/v0.2.0-beta)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 19, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".
  • Add the Strata version (Settings > About, or strata --version).
  • Add your graphics card with its VRAM, your RAM and your operating system.

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6270887895 --> @github-actions[bot] commented on GitHub (Oct 19, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". - [ ] Add the Strata version (Settings > About, or `strata --version`). - [ ] Add your graphics card with its VRAM, your RAM and your operating system. Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@apdogod123321-ops commented on GitHub (Oct 19, 2026):

/reopen

<!-- gh-comment-id:6271054769 --> @apdogod123321-ops commented on GitHub (Oct 19, 2026): /reopen
Author
Owner

@github-actions[bot] commented on GitHub (Oct 19, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6271055726 --> @github-actions[bot] commented on GitHub (Oct 19, 2026): Thanks, this follows the format now.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 19, 2026):

Reopened, thank you. A maintainer will pick it up from here.

<!-- gh-comment-id:6271057458 --> @github-actions[bot] commented on GitHub (Oct 19, 2026): Reopened, thank you. A maintainer will pick it up from here.
Author
Owner

@Meetsch commented on GitHub (Oct 19, 2026):

Being a 7 token drafter, DFlash2 will bring a great speed bump.

Another significant speed bump can be obtained with "lookup augmented block drafter" which combined with DFlash2 further brings the draft up to 16 token and greatly increases speed up to 380tok/s on a RTX3090 when the answer quotes its own prompt (quoting a document, applying an edit), here is the documentations on it:

<!-- gh-comment-id:6275350607 --> @Meetsch commented on GitHub (Oct 19, 2026): Being a 7 token drafter, DFlash2 will bring a great speed bump. Another significant speed bump can be obtained with "lookup augmented block drafter" which combined with DFlash2 further brings the draft up to 16 token and greatly increases speed up to 380tok/s on a RTX3090 when the answer quotes its own prompt (quoting a document, applying an edit), here is the documentations on it: * Article describing the project: https://wccftech.com/rtx-3090-4-6x-token-generation-27b-llm-inference-optimizations/ * Project: https://github.com/syv-ai/HyperQwen * Implementation (vllm patch): https://github.com/syv-ai/HyperQwen/blob/f238b9320a2ef1a48cfe47c4c2db3b0ef89d93b1/patches/dflash2-lookup-drafting.patch
Author
Owner

@Niko1221 commented on GitHub (Oct 29, 2026):

DFlash2 has been available since 0.2.3 as an opt-in in the Terminal: strata launch --drafting dflash2 (it downloads the 1.2 GB drafter once). auto means MTP, because no card has shown DFlash2 winning everywhere; for example #3965 measured it 3.3% slower on an RTX 4060 Ti. If you try it on your 2080 Ti, the speed against MTP on your model would help.

Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.3

<!-- gh-comment-id:6491965403 --> @Niko1221 commented on GitHub (Oct 29, 2026): DFlash2 has been available since 0.2.3 as an opt-in in the Terminal: `strata launch --drafting dflash2` (it downloads the 1.2 GB drafter once). `auto` means MTP, because no card has shown DFlash2 winning everywhere; for example #3965 measured it 3.3% slower on an RTX 4060 Ti. If you try it on your 2080 Ti, the speed against MTP on your model would help. Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.3
Author
Owner

@wszhoho commented on GitHub (Nov 3, 2026):

Measured DFlash2 on 3x RTX 2080 Ti (11 GB each, 3-way layer split), Qwen3.8-Flash-Next AP-IQ4_XS, 256K context, kv int8, engine 0.1.56 in serve mode.

Short version: it works and drafts correctly, but it is 25-40% slower than the MTP here — consistent with "no card has shown DFlash2 winning everywhere".

Setup

  • q8 pack packed by 0.2.9 (qwen3.8-flash-next-dflash2.q8.pack, 760 MB, Q8_0 weights, 106299-token head) — the 0.1.56 engine accepts it as is
  • --draft dflash2 --draft-model <pack> --draft-fallback none, draft vocabulary supplied via the --mtp folder
  • the drafter lands on the last card by default; with --vram-reserve-later-mib 512 the start died with the prompt landing of the DFlash2 taps does not fit in VRAM, --vram-reserve-later-mib 1900 fixes it (that card's expert cache drops 3570 -> 3060 slots)
  • acceptance was healthy: 2506/3033 drafts (82.6%), so the drafter is not the problem

Decode (tok/s, median of 10 rounds, 3 prompts)

drafter short medium code
MTP baseline (spec 3, pipeline-windows 2) 60.4 67.6 78.0
DFlash2, spec 3 (no draft-conf) 44.4 45.2 49.2
DFlash2, spec 6 + draft-conf 0.5 42.6 45.9 55.4

The engine's own start-up warning was right: on a 12 GB NVIDIA card the MTP drafter was faster in most measurements (code prompts at a window of 6 gained 3%).

Caveats

  • Turing has no tensor cores for the draft head, and every drafted row must be verified on a 640 GB/s card
  • the ~1.2 GiB drafter + landing eats expert-cache slots, and on 11 GB cards those slots are what keeps decode fast
  • a Q4_0-selector pack would save ~175 MiB (drafter 800 -> 625 MiB); it might help at the margin but looks unlikely to close a 30% gap

Is there a serve-side knob we are missing (--draft-mtp-spec? a --draft-conf sweep tuned differently for small cards? --draft-cap?), or is sm_75 simply not worth it? We reverted to MTP for now — happy to run more numbers if useful.

<!-- gh-comment-id:6593705867 --> @wszhoho commented on GitHub (Nov 3, 2026): Measured DFlash2 on **3x RTX 2080 Ti (11 GB each, 3-way layer split)**, Qwen3.8-Flash-Next AP-IQ4_XS, 256K context, kv int8, engine 0.1.56 in serve mode. Short version: it works and drafts correctly, but it is **25-40% slower than the MTP** here — consistent with "no card has shown DFlash2 winning everywhere". **Setup** - q8 pack packed by 0.2.9 (`qwen3.8-flash-next-dflash2.q8.pack`, 760 MB, Q8_0 weights, 106299-token head) — the 0.1.56 engine accepts it as is - `--draft dflash2 --draft-model <pack> --draft-fallback none`, draft vocabulary supplied via the `--mtp` folder - the drafter lands on the last card by default; with `--vram-reserve-later-mib 512` the start died with `the prompt landing of the DFlash2 taps does not fit in VRAM`, `--vram-reserve-later-mib 1900` fixes it (that card's expert cache drops 3570 -> 3060 slots) - acceptance was healthy: **2506/3033 drafts (82.6%)**, so the drafter is not the problem **Decode (tok/s, median of 10 rounds, 3 prompts)** | drafter | short | medium | code | |---|---|---|---| | MTP baseline (spec 3, pipeline-windows 2) | 60.4 | 67.6 | 78.0 | | DFlash2, spec 3 (no draft-conf) | 44.4 | 45.2 | 49.2 | | DFlash2, spec 6 + draft-conf 0.5 | 42.6 | 45.9 | 55.4 | The engine's own start-up warning was right: `on a 12 GB NVIDIA card the MTP drafter was faster in most measurements (code prompts at a window of 6 gained 3%)`. **Caveats** - Turing has no tensor cores for the draft head, and every drafted row must be verified on a 640 GB/s card - the ~1.2 GiB drafter + landing eats expert-cache slots, and on 11 GB cards those slots are what keeps decode fast - a Q4_0-selector pack would save ~175 MiB (drafter 800 -> 625 MiB); it might help at the margin but looks unlikely to close a 30% gap Is there a serve-side knob we are missing (`--draft-mtp-spec`? a `--draft-conf` sweep tuned differently for small cards? `--draft-cap`?), or is sm_75 simply not worth it? We reverted to MTP for now — happy to run more numbers if useful.
Author
Owner

@Joe11221 commented on GitHub (Nov 3, 2026):

Two findings on 0.2.10 (engine 0.1.56), six-card layer split with the drafter on an RTX 3060, two fresh runs per configuration:

  • Swift 1.5 accepts DFlash2's drafts as well as the original weights do: 61.4% against 61.1%, decode 48.3 against 47.9 tok/s. #5117 lets Swift run DFlash2 when it is named; Auto stays with the MTP.
  • DFlash2 named on a layer split works with "parallel": 2. A request running alone drafts with it, and two slots cost lone requests about as much as they cost the MTP (-8.2% and -9.3%). #5118 lifts the Terminal's refusal for that case only.

On these cards the MTP was still 6 to 8% faster. Full numbers: #5125.

<!-- gh-comment-id:6606216030 --> @Joe11221 commented on GitHub (Nov 3, 2026): Two findings on 0.2.10 (engine 0.1.56), six-card layer split with the drafter on an RTX 3060, two fresh runs per configuration: - Swift 1.5 accepts DFlash2's drafts as well as the original weights do: 61.4% against 61.1%, decode 48.3 against 47.9 tok/s. #5117 lets Swift run DFlash2 when it is named; Auto stays with the MTP. - DFlash2 named on a layer split works with `"parallel": 2`. A request running alone drafts with it, and two slots cost lone requests about as much as they cost the MTP (-8.2% and -9.3%). #5118 lifts the Terminal's refusal for that case only. On these cards the MTP was still 6 to 8% faster. Full numbers: #5125.
Author
Owner

@microcai commented on GitHub (Nov 3, 2026):

setup.py won't auto download DFlash2 drafter. how to download dflash2 drafter model and place it at where ?

<!-- gh-comment-id:6606538680 --> @microcai commented on GitHub (Nov 3, 2026): setup.py won't auto download DFlash2 drafter. how to download dflash2 drafter model and place it at where ?
Author
Owner

@Joe11221 commented on GitHub (Nov 3, 2026):

@microcai

setup doesn't fetch it; --drafter dflash2 in setup just skips the MTP download.

To get the drafter, run this from your checkout (or use strata drafting ... if you have the Terminal installed):

python strata.py drafting fetch --config strata-iq3_s.json --mode dflash2

Use whatever strata-*.json setup wrote for your model. It downloads the pinned incoai/Qwen3.8-Flash-Next-DFlash2 (about 1.2 GB) and packs it into dflash2/ inside your model data folder, the one that holds packs/. You don't need to move anything by hand. drafting plan with the same args tells you whether it's ready.

Then set "drafting": "dflash2" in that json, or start with strata launch --drafting dflash2. If it worked, the engine log says DFlash2 drafter on. If it falls back to MTP, the start line tells you why. On 0.2.10 that happens for Swift weights and for "parallel" above 1.

<!-- gh-comment-id:6606894171 --> @Joe11221 commented on GitHub (Nov 3, 2026): @microcai setup doesn't fetch it; `--drafter dflash2` in setup just skips the MTP download. To get the drafter, run this from your checkout (or use `strata drafting ...` if you have the Terminal installed): ```sh python strata.py drafting fetch --config strata-iq3_s.json --mode dflash2 ``` Use whatever `strata-*.json` setup wrote for your model. It downloads the pinned `incoai/Qwen3.8-Flash-Next-DFlash2` (about 1.2 GB) and packs it into `dflash2/` inside your model data folder, the one that holds `packs/`. You don't need to move anything by hand. `drafting plan` with the same args tells you whether it's ready. Then set `"drafting": "dflash2"` in that json, or start with `strata launch --drafting dflash2`. If it worked, the engine log says `DFlash2 drafter on`. If it falls back to MTP, the start line tells you why. On 0.2.10 that happens for Swift weights and for `"parallel"` above 1.
Author
Owner

@Gerporgl commented on GitHub (Nov 3, 2026):

16. @microcai
python strata.py drafting fetch --config strata-iq3_s.json --mode dflash2

Thanks, I had to do that.

The default "standard" (on linux) ./update.sh and ./setup.sh didn't do anything by default so this was confusing (although it re-downloads the MTP if needed). The startup kept saying "dflash is not downloaded yet..."

This is starting to be confusing with the new supposed user friendly install methods never mentioning anything about the update.sh and setup.sh anymore and talking about other "fake terminal" modes and other commands that I don't even know where you find this.

Release notes of 0.2.10 made it sound like dflash2 was default and working out of the box but that is not the case.
Personally, on linux, I want to be able to clone a repo and build from source. I don't like the magical install.sh that is bundled from nowhere. I understand there are instructions now to build from source and this is great, but perhaps they need to mention in release notes that something else needs to be done for other install methods.

<!-- gh-comment-id:6617108568 --> @Gerporgl commented on GitHub (Nov 3, 2026): > 16\. [@microcai](https://github.com/microcai) > python strata.py drafting fetch --config strata-iq3_s.json --mode dflash2 Thanks, I had to do that. The default "standard" (on linux) ./update.sh and ./setup.sh didn't do anything by default so this was confusing (although it re-downloads the MTP if needed). The startup kept saying "dflash is not downloaded yet..." This is starting to be confusing with the new supposed user friendly install methods never mentioning anything about the update.sh and setup.sh anymore and talking about other "fake terminal" modes and other commands that I don't even know where you find this. Release notes of 0.2.10 made it sound like dflash2 was default and working out of the box but that is not the case. Personally, on linux, I want to be able to clone a repo and build from source. I don't like the magical install.sh that is bundled from nowhere. I understand there are instructions now to build from source and this is great, but perhaps they need to mention in release notes that something else needs to be done for other install methods.
Author
Owner

@sdroege commented on GitHub (Nov 4, 2026):

A related gap, if useful for this issue: the "Uncensored" fine-tune is excluded from DFlash2 by name.

qwen3.8-flash-next-uncensored-orca-q4_k_m is a fine-tune of the same Qwen3.8-Flash-Next base and already runs the upstream MTP drafter on this machine. It cannot use the upstream DFlash2 drafter because strata_control/drafting.py gates on the model name:

  • SUPPORTED_FAMILIES = ("qwen", "gyro", "unsloth")
  • _SUPPORTED_NAME = ^qwen3\.8-flash-next(-gyro-[...]|-unsloth-[...]|-(q|iq|tq)\d[...])?$

qwen3.8-flash-next-uncensored-orca-* matches neither, so drafting.apply() returns Decision("dflash2", "mtp", NOT_SUPPORTED) and a "drafting": "dflash2" in the run config is silently ignored. I confirmed the fallback with drafting.apply() on the config; I have not run a DFlash2 A/B on this fine-tune yet.

Since the MTP drafter already works on it, the DFlash2 drafter should work equally well. If you agree, adding the fine-tune to the supported names (or giving it a family) would let it opt in. I can measure DFlash2 against MTP on it on an R9700 (gfx1201, 32 GB) and report the numbers.

Hardware for that test: Radeon AI PRO R9700 32 GB, 121.5 GiB RAM, Fedora 44, Strata 0.2.10 / engine 0.1.56.

<!-- gh-comment-id:6631299122 --> @sdroege commented on GitHub (Nov 4, 2026): A related gap, if useful for this issue: the "Uncensored" fine-tune is excluded from DFlash2 by name. `qwen3.8-flash-next-uncensored-orca-q4_k_m` is a fine-tune of the same Qwen3.8-Flash-Next base and already runs the upstream MTP drafter on this machine. It cannot use the upstream DFlash2 drafter because `strata_control/drafting.py` gates on the model name: - `SUPPORTED_FAMILIES = ("qwen", "gyro", "unsloth")` - `_SUPPORTED_NAME = ^qwen3\.8-flash-next(-gyro-[...]|-unsloth-[...]|-(q|iq|tq)\d[...])?$` `qwen3.8-flash-next-uncensored-orca-*` matches neither, so `drafting.apply()` returns `Decision("dflash2", "mtp", NOT_SUPPORTED)` and a `"drafting": "dflash2"` in the run config is silently ignored. I confirmed the fallback with `drafting.apply()` on the config; I have not run a DFlash2 A/B on this fine-tune yet. Since the MTP drafter already works on it, the DFlash2 drafter should work equally well. If you agree, adding the fine-tune to the supported names (or giving it a family) would let it opt in. I can measure DFlash2 against MTP on it on an R9700 (gfx1201, 32 GB) and report the numbers. Hardware for that test: Radeon AI PRO R9700 32 GB, 121.5 GiB RAM, Fedora 44, Strata 0.2.10 / engine 0.1.56.
Author
Owner

@Joe11221 commented on GitHub (Nov 4, 2026):

@sdroege
Fully agree with you- I have a PR open for Swift Flash Next which greatly reduces thinking tokens.Testing showed 0 degradation in performance.

https://github.com/Niko1221/Strata/pull/5117

<!-- gh-comment-id:6632361517 --> @Joe11221 commented on GitHub (Nov 4, 2026): @sdroege Fully agree with you- I have a PR open for Swift Flash Next which greatly reduces thinking tokens.Testing showed 0 degradation in performance. https://github.com/Niko1221/Strata/pull/5117
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1282
No description provided.