mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5178] [TUI] strata launch --set draft-conf=… is silently replaced by the DFlash2 auto value (only user_args survives) #3084
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#3084
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 @wangminle on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5178
Area
[TUI] (the Terminal: strata launch, connect, monitor)
Desktop app, Terminal or source?
Terminal (the
stratacommand)What happened
strata launch --set draft-conf=0.35does not reach the engine. The launch state file records the option inargs:There is no
user_args. At every start,serve/server.pycallsstrata_control.drafting.apply(). For DFlash2 it strips every--draft*flag fromargsand re-adds the drafter flags fromdrafting.engine_flags(). That function keeps--draft-confonly fromuser_args(mine = cfg.get("user_args") or [], thenkept_conf = _flag_value(mine, "--draft-conf")); otherwise it callsconf_for(backend, slots_of(base, vram_mib)). On this machine that estimate is about 10k slots, which maps to 0.5, so the engine starts with--draft-conf 0.5.Expected: the value given to
--setreaches the engine, or the launch says it was ignored.Actual: the engine command line contains
--draft-conf 0.5while the state file says 0.35.Adding
"user_args": ["--draft-conf", "0.35"]to the same state file and starting it makes the engine use 0.35, which confirms the code path.This is a different flag and code path from #5027 (
--set mmap-experts=offnever reaches strata-dsv41), but it is the same user-visible class: a--setvalue that the engine does not receive.Smallest steps or command that reproduce it
--set draft-conf=0.35(full command below).argscontains--draft-conf 0.35;user_argsis absent.--draft-conf 0.5instead.Without a GPU or an engine start, using the installed control and the saved launch state:
The actual output from that run:
A possible fix is for
strata launch --setto write drafting flags intouser_args, the existing channel for the person's own options, sodrafting.applykeeps them. I have not changed any code.Reproduction status
Reproduced locally
Strata version
Strata 0.2.10 (build 0.1.56) · engine 0.1.56 (
0.1.56-linux-x86_64-cuda-cuda13) · control 0.1.56Graphics card, memory and system
RTX 4090 48 GB (49,140 MiB, sm_89) · 282.8 GiB RAM · Ubuntu 24.04.5 · driver 595.99.02 · CUDA 13
Model, size and settings
Qwen3.8-Flash-Next ISTA-DASLab GSQ-RCO IQ3_S · 160K context (163840) · KV int8 · DFlash2 ·
--kv-resident 32768Launch command:
Logs
The relevant part of the launch state file after the start (paths shortened):
args_writtendoes not contain--draft-conf;user_argsis absent. The engine command line read from/proc/<pid>/cmdlineduring that start contained--draft-conf 0.5.@Have-Purple commented on GitHub (Nov 4, 2026):
Additional reproduction on 0.1.56, without
--save-preset:The same happens with
--set vram-reserve-mib=2048: the plan shows it, the engine keeps700,which is the value in the preset's
user_args. The precedence isuser_args>--set, but neitherthe plan nor the launch output says so.
A related consequence:
--save-preset "IQ3_S 64K DFlash2 spec4"saved successfully while the launchran
--spec 6, so the preset name was the only record and it was wrong. Workaround used here: putthe flag in
user_args(that survives), and read back thestrata.execommand line beforebenchmarking.
@tskorupka-emiteo commented on GitHub (Nov 5, 2026):
One more detail:
user_argssurvives a server start, but not astrata launch.Seen on Terminal 0.2.10 (engine 0.1.56, Linux HIP):
"user_args": ["--draft-conf", "0.5", ...]and an"env"object by hand to.local/state/strata/launch/<profile>.json.strata launch --family qwen --model iq3_xxs ...with the same choices.user_argsnorenv, and the engine started with--draft-conf 0.7.The documented route (
user_args, strata_control/user_args.py) therefore does not survive the Terminal's own relaunch, and--set draft-conf=is replaced as this issue describes. So from the Terminal there is no way to keep a hand-set--draft-conf.What works today: start the supervisor directly against the saved config,
python -m strata_control.runtime --host launch-<profile>(for example from a systemd unit).serve/server.pythen mergesuser_argsand appliesenvat every start, as intended.@Niko1221 commented on GitHub (Nov 5, 2026):
Hello wangminle,
Thank you for the clear reproduction. In Strata 0.2.11 an explicit
--set draft-conf=...is kept: explicit values now go through one precedence (explicit launch values, then saved overrides, then calibrated values, then Auto), and the DFlash2 policy and the server keep them. On the old code we saw your case exactly (saved 0.35, engine got 0.8). Note that--set X=offremoves an option, and for options the DFlash2 policy owns (--draft-conf,--spec) the policy puts them back unless you use--drafting off. This is described indocs/TERMINAL_LAUNCH.md. If the engine still receives a different value on 0.2.11, please send the run config the launch wrote.The Strata project