[GH-ISSUE #5132] [TUI] launch removes arguments written into the run config (e.g. by engine calibrate --apply-result) #2402

Closed
opened 2026-11-04 01:59:00 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Maxrio9 on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5132

Area

[TUI]

Desktop app, Terminal or source?

Terminal (the strata command).

What happened

Arguments written into the saved run config of a model (<state>/strata/launch/<name>.json, key args) are removed by the next strata launch with the same choices. Launch prints "already installed with these choices" and the engine starts with the default --pcie-frac and --spec-min-p.

This matters for strata engine calibrate --apply-result: its docs say it "writes calibrated args" into the run config and prints "restart the model to use it". On my PC the values were in the run config right after --apply-result, and the next strata launch ... --tune skip started the engine on the defaults (0.55 / 0.50 on 0.2.9).

Reproduced in a throwaway config and state folder on 0.2.10 (below). Cause: unconfirmed static analysis. In runner.py the "already installed with these choices" path seems to skip setup.py, and build_config / derive_config then rebuild launch/<name>.json from the install config. setup_calibration() is only called from setup.py, as far as I can see.

Smallest steps or command that reproduce it

export XDG_CONFIG_HOME=<empty dir>/cfg XDG_STATE_HOME=<empty dir>/state   # throwaway, leaves the real settings alone
strata launch --family qwen --model iq3_xxs --model-path <dir> --context 64k --kv int8 --vision on --parallel 1 --drafting mtp --tune skip --yes --no-tui
strata launch --stop
# add by hand to "args" in <state>/strata/launch/<name>.json:  "--pcie-frac", "0.2"
strata launch <same command as above>
# launch prints "already installed with these choices"
# read args in <state>/strata/launch/<name>.json and GET /metrics .engine.pcie_frac

Result: after the second launch args no longer contains --pcie-frac 0.2; /metrics reports pcie_frac "0.25", spec_min_p "0.50".

Second observation, weaker: with a hand-written calibration entry in settings.json (keys <GPU>|<VRAM>GB|<CPU>|<RAM>GB|<model>|65536|images and ...|text, --pcie-frac / --spec-min-p values different from the defaults), the same launch also started on the defaults (0.25 / 0.50), printed no line about settings tuned earlier, and left both entries in settings.json. I typed the keys by hand from an earlier calibration and did not check that they match what the launcher builds, so this part may only show a wrong key.

Reproduction status

Reproduced locally (the run config losing a hand-written argument), once on a clean 0.2.10 start. The path through --apply-result itself was seen once on 0.2.9 / engine 0.1.55 (values present in the file, then absent after the next launch) and not repeated. The cause is unconfirmed static analysis.

Strata version

Strata 0.2.10 / engine 0.1.56 (reproduction); 0.2.9 / 0.1.55 (the --apply-result observation).

Graphics card, memory and system

RTX PRO 4500 Blackwell 32 GB · 32 GB DDR4 · Ryzen 9 5900X · Linux.

Model, size and settings

Qwen3.8-Flash-Next IQ3_XXS · 64K context · --kv int8 --vision on --parallel 1 --drafting mtp --tune skip.

Logs

Launcher line on the second start: already installed with these choices. Related, closed: #3613 (launch failed once a tune was saved because calibrate.py was missing); related theme, different command: #4102 and #3182.

Originally created by @Maxrio9 on GitHub (Nov 3, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5132 ### Area [TUI] ### Desktop app, Terminal or source? Terminal (the `strata` command). ### What happened Arguments written into the saved run config of a model (`<state>/strata/launch/<name>.json`, key `args`) are removed by the next `strata launch` with the same choices. Launch prints "already installed with these choices" and the engine starts with the default `--pcie-frac` and `--spec-min-p`. This matters for `strata engine calibrate --apply-result`: its docs say it "writes calibrated args" into the run config and prints "restart the model to use it". On my PC the values were in the run config right after `--apply-result`, and the next `strata launch ... --tune skip` started the engine on the defaults (0.55 / 0.50 on 0.2.9). Reproduced in a throwaway config and state folder on 0.2.10 (below). Cause: unconfirmed static analysis. In `runner.py` the "already installed with these choices" path seems to skip `setup.py`, and `build_config` / `derive_config` then rebuild `launch/<name>.json` from the install config. `setup_calibration()` is only called from `setup.py`, as far as I can see. ### Smallest steps or command that reproduce it ```text export XDG_CONFIG_HOME=<empty dir>/cfg XDG_STATE_HOME=<empty dir>/state # throwaway, leaves the real settings alone strata launch --family qwen --model iq3_xxs --model-path <dir> --context 64k --kv int8 --vision on --parallel 1 --drafting mtp --tune skip --yes --no-tui strata launch --stop # add by hand to "args" in <state>/strata/launch/<name>.json: "--pcie-frac", "0.2" strata launch <same command as above> # launch prints "already installed with these choices" # read args in <state>/strata/launch/<name>.json and GET /metrics .engine.pcie_frac ``` Result: after the second launch `args` no longer contains `--pcie-frac 0.2`; `/metrics` reports `pcie_frac "0.25"`, `spec_min_p "0.50"`. Second observation, weaker: with a hand-written `calibration` entry in `settings.json` (keys `<GPU>|<VRAM>GB|<CPU>|<RAM>GB|<model>|65536|images` and `...|text`, `--pcie-frac` / `--spec-min-p` values different from the defaults), the same launch also started on the defaults (0.25 / 0.50), printed no line about settings tuned earlier, and left both entries in `settings.json`. I typed the keys by hand from an earlier calibration and did not check that they match what the launcher builds, so this part may only show a wrong key. ### Reproduction status Reproduced locally (the run config losing a hand-written argument), once on a clean 0.2.10 start. The path through `--apply-result` itself was seen once on 0.2.9 / engine 0.1.55 (values present in the file, then absent after the next launch) and not repeated. The cause is unconfirmed static analysis. ### Strata version Strata 0.2.10 / engine 0.1.56 (reproduction); 0.2.9 / 0.1.55 (the `--apply-result` observation). ### Graphics card, memory and system RTX PRO 4500 Blackwell 32 GB · 32 GB DDR4 · Ryzen 9 5900X · Linux. ### Model, size and settings Qwen3.8-Flash-Next IQ3_XXS · 64K context · `--kv int8 --vision on --parallel 1 --drafting mtp --tune skip`. ### Logs Launcher line on the second start: `already installed with these choices`. Related, closed: #3613 (launch failed once a tune was saved because `calibrate.py` was missing); related theme, different command: #4102 and #3182.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Hello Maxrio9,

Thank you for the report. In Strata 0.2.11 launch no longer drops arguments written into the run config: values from calibrate --apply-result are recorded in a calibrated entry together with the model, context and picture setting they were measured for, and hand edits to the launch file are carried. We did not look at the hand-typed settings.json keys from your second observation; those may simply be keys the launcher does not know. If an argument is still removed on 0.2.11, please tell us which key and which command wrote it.

The Strata project

<!-- gh-comment-id:6658439206 --> @Niko1221 commented on GitHub (Nov 5, 2026): Hello Maxrio9, Thank you for the report. In Strata 0.2.11 `launch` no longer drops arguments written into the run config: values from `calibrate --apply-result` are recorded in a `calibrated` entry together with the model, context and picture setting they were measured for, and hand edits to the launch file are carried. We did not look at the hand-typed `settings.json` keys from your second observation; those may simply be keys the launcher does not know. If an argument is still removed on 0.2.11, please tell us which key and which command wrote it. The Strata project
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#2402
No description provided.