mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5048] [GUI] Missing Drafting control for Qwen3.8 prevents DFlash2 download and forces MTP fallback when MTP files are present #2339
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#2339
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 @arianwen27 on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5048
(Human me before the agent part. Basically, 0.2.10 changed the default drafter to dflash2 instead of MTP, I went to test it, model loaded with MTP. I later realised swift isn't included in the dflash2 list so swapped to normal qwen, started normal qwen, still on MTP. I then realised the setting to select between MTP and dflash2 was missing for whatever reason. Threw a model at it, turns out having the files for MTP installed causes dflash2 to never be downloaded, so MTP is used instead. On a clean install where normal qwen is the first model downloaded, things should work normally. But for existing installs that have MTP and not dflash2, dflash2 will never be installed and used. dflash2 would be downloaded and used if the user manually selected it in the UI, but the UI is broken and that selection is impossible. I know this is sorta 2 issues in one, but they are very closely related so I hope it's fine.)
Area
[GUI] (the desktop app)
Desktop app, Terminal or source?
Desktop app (Windows)
What happened
Auto picked DFlash2 for this model and this card, but the start ran the MTP and the DFlash2 drafter was never fetched. The screen shows only the caption line, and
Draftingis filtered out of the Settings screen (screenshot attached):The engine ran with
--spec 4 --spec-min-p 0.5 --mtp <models folder>\mtp\rtuntil I fetched the drafter from the Terminal.strata drafting plan --config <install folder>\strata-iq2_xs.json --mode autoon this machine, before the fetch:The app's own install job for this size said the choice meant DFlash2 ("Strata set this model to one request at a time" - that line only appears when the choice means DFlash2), yet it downloaded the model files and nothing for drafting, and the start still ran MTP.
decide()falls back to whichever drafter is on disk, so the outcome depended onmtp_here:mtp_herewas true because the MTP was already on disk, from the install of a different size:Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS, a Swift fine-tune, where Auto correctly chose the MTP and the install fetched it into the shared drafter folder (mtp-q2_0.gguf,index.txt,dense.txt).mtp_ready()then looks at the folder named by the--mtpflag that stays in the saved arguments:I ran Control's own functions directly on this machine, with the pack folder empty to reproduce the state before the fetch:
So Auto does not default to MTP for this model. Without the drafter folder left by the Swift size, the same start would have had no drafter at all and the note would have read
no drafter is downloaded yet- which would have been visible, instead of a quiet MTP run.needs_packwasTrue, so the app would have fetched the drafter; it only does so when the Load carries an explicit choice (asked), and that is where the second problem comes in.That second problem: the app only fetches the drafter when the Load carries an explicit choice (
apps/host/server/native-control.mjs):and
buildConfigthen builds the MTP arguments:The control itself is filtered out of the Settings screen. The gate is:
Bis the display family, andlr()hard-codes that group and maps Control's families into it:"qwen3.8"is not in["qwen","gyro","unsloth"], sotgreturnsnull,ssis false, and thedraftingfield is filtered out. This covers every size shown under the "Qwen3.8-Flash-Next" heading, including theqwen,gyroandunslothsizes thatlr()maps into that group. The Models screen uses the other path,tg(Cs?.sourceFamily ?? ce?.family, d?.capabilities?.dflash2), wheresourceFamilyis Control's family (qwen), so the gate passes there - I could not confirm the runtime value ofcapabilities.dflash2, sinceprobeDrafting()is asked once per app process.What fixed it, and what did not: fetching the drafter from the Terminal (
strata drafting fetch --data-dir <models folder> --family qwen), closing and reopening the app and starting the model put it on the right drafter on the unchanged default Auto choice:The Settings screen still shows no Drafting control after the restart, so the app has no way to reach that state on its own. A wipe and reinstall would not have helped either: the gate is in the renderer, and a fresh install would have wanted the DFlash2 drafter (
needs_packTrue) with nothing to carry the choice.Two things, which can be fixed separately:
neededis true) rather than start with whatever other drafter happens to be on disk - at minimum the note should say which drafter was chosen and that the other one is missing, and I would not expect a start to use a drafter fetched for a different model.lr()builds (qwen3.8), or have the Settings screen use the per-sizesourceFamilythat the Models screen already uses.Smallest steps or command that reproduce it
Draftingfield is filtered out of the Settings screen.strata drafting plan --config <the model's run config> --mode autoreportschoice: dflash2andneeded: true, so nothing can be chosen in the app and nothing is downloaded.mtp_here=False) and it returnsoffwithno drafter is downloaded yet- the fallback to MTP is only because that folder is already there.Reproduction status
Reproduced locally for the observed behaviour (no Drafting control; the start ran the MTP; the plan output above).
The
tg()family gate and the runtime value ofcapabilities.dflash2are unconfirmed static analysis - I read them from the app's code and ran Control's decision functions with the pack folder empty, but I did not observe the gate being evaluated at runtime.Strata version
Strata 0.2.10 - engine 0.1.56 (Windows CUDA 13 build)
Graphics card, memory and system
RTX 4070 12 GB - 64 GB RAM - Windows 11
Model, size and settings
Qwen3.8-Flash-Next IQ2_XS - 262144 context - pictures on - Drafting left at its default (nothing chosen). Previously installed on this data folder: Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS (Swift), whose Auto choice is the MTP.
Logs
Before the fetch the same model started with
--spec 4 --spec-min-p 0.5 --mtp <models folder>\mtp\rtand loggedDrafting: MTP (the DFlash2 drafter isn't downloaded yet). After the fetch:@github-actions[bot] commented on GitHub (Nov 3, 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:
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
@github-actions[bot] commented on GitHub (Nov 3, 2026):
Thanks, this follows the format now.
@Arrigi commented on GitHub (Nov 3, 2026):
Pretty sure I got the same issue. Do you happen to know if dflash2 is even supported for swift models?
@arianwen27 commented on GitHub (Nov 3, 2026):
(I have a little extra info that I just accidentally found. Basically, I set the context size to 512k, saw it download MTP before it started. Thought that was a little strange but maybe a giant context doesn't support dflash2 (testing shows it does support it). I deleted the MTP files, set it back to 256k context, it then downloaded 5gb of MTP but started with dflash2. So something very funky is going on with the GUI. From what I gathered from the agent looking into it, with MTP missing, some code decides to use MTP instead of dflash2, downloads MTP, the code runs again but since MTP is installed, it decides to use dflash2 as it's also installed. So it downloads MTP but never uses it. Agent time)
One more finding, added after the report was posted: the download is decided from the raw saved choice, not from what Auto resolves to.
modelstate.mtp_choice()(strata_cli/launch/modelstate.py, Control 0.1.56) decides whether setup fetches the draft layer. Its docstring saysdraftingis the resolved drafter fromresolved_drafting(), but when nothing is stored it receivesNone— Auto is never resolved at that step — so it fetches:Run with the values my settings actually hold (no
draftingkey):The same function also gets the family, not the
model_name, so the display family from the first half applies here too:So the fetch step lands on MTP for a model whose start resolves to DFlash2 through
model_name, and the layer it downloads is never loaded — the start reportedno MTP layer is loaded (--draft-fallback none). What it downloaded, 16:04–16:08 insetup.log:The DFlash2 files were unchanged since the manual fetch, so that 5 GB was not the drafter. I am reporting the code path as unconfirmed static analysis; the download itself is observed. I cannot prove which of the two routes produced my download — the install job recorded
--family qwen, which on its own would have skipped it.Practical note: that folder cannot be deleted to reclaim the space, because the start uses
--mtp-draft-vocab <models folder>\mtp\rt\draft_vocab.bin. With the vocabulary gone,decide()returnsno drafter is downloaded yet— no drafter at all.Expected fix: resolve Auto before deciding what to fetch, and use the catalog
sourceFamilyin that step rather than the display family.@arianwen27 commented on GitHub (Nov 5, 2026):
In 0.2.11 the drafting setting shows up, so that's one part of this fixed
@arianwen27 commented on GitHub (Nov 6, 2026):
I think this is probably worth marking as solved now. Even if the issue isn't exactly fixed, it'd only trigger if you had MTP installed without dflash2 and never thought to manually select dflash2