mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3183] [Other] Dflash2 support #1282
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1282
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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:
strata --version).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
@apdogod123321-ops commented on GitHub (Oct 19, 2026):
/reopen
@github-actions[bot] commented on GitHub (Oct 19, 2026):
Thanks, this follows the format now.
@github-actions[bot] commented on GitHub (Oct 19, 2026):
Reopened, thank you. A maintainer will pick it up from here.
@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:
github.com/syv-ai/HyperQwen@f238b9320a/patches/dflash2-lookup-drafting.patch@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).automeans 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
@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
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--mtpfolder--vram-reserve-later-mib 512the start died withthe prompt landing of the DFlash2 taps does not fit in VRAM,--vram-reserve-later-mib 1900fixes it (that card's expert cache drops 3570 -> 3060 slots)Decode (tok/s, median of 10 rounds, 3 prompts)
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
Is there a serve-side knob we are missing (
--draft-mtp-spec? a--draft-confsweep 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.@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:
"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.
@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 ?
@Joe11221 commented on GitHub (Nov 3, 2026):
@microcai
setup doesn't fetch it;
--drafter dflash2in 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):Use whatever
strata-*.jsonsetup wrote for your model. It downloads the pinnedincoai/Qwen3.8-Flash-Next-DFlash2(about 1.2 GB) and packs it intodflash2/inside your model data folder, the one that holdspacks/. You don't need to move anything by hand.drafting planwith the same args tells you whether it's ready.Then set
"drafting": "dflash2"in that json, or start withstrata launch --drafting dflash2. If it worked, the engine log saysDFlash2 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.@Gerporgl commented on GitHub (Nov 3, 2026):
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.
@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_mis 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 becausestrata_control/drafting.pygates 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, sodrafting.apply()returnsDecision("dflash2", "mtp", NOT_SUPPORTED)and a"drafting": "dflash2"in the run config is silently ignored. I confirmed the fallback withdrafting.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.
@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