mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4209] [TUI] strata launch with a saved preset cannot re-install: setup.py refuses the lower-case model tag #1850
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#1850
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 @lsxxbcz on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4209
What happens
Starting a saved preset with any choice that differs from the installed config (I used
--vision off;--contextand--kvdo the same) makes launch run setup.py again. Setup stops at once:The setup log ends with:
Why
strata_cli/launch/settings.pysaves the model into the choices as a lower-case tag (f"--model {s.model.lower()}"), so a preset/choices file carries"model": "iq3_xxs".LaunchRunner.setup_args()instrata_cli/launch/runner.pyforwards it unchanged:fam, model = s.family, s.model→["--yes", "--no-start", "--family", "qwen", "--model", "iq3_xxs"].--modelchoices are theMODELStable's own keys (IQ3_XXS,Gyro-S, ...), case-sensitive, so argparse rejects it.--model iq3_xxstyped on the command line works, becausecmd.pynormalises throughCatalog.resolve()(n.lower() == model.lower()); the preset/choices path never goes through it.Fix that works here (in
setup_args)Checked on 0.2.6
The same lines are on
mainat4b9e05a2(v0.2.6), so it is not fixed there yet.Where
Windows 11, Terminal 0.2.4.2, engine 0.1.49.2 built locally, RTX 5070 Laptop (8 GB), Qwen3.8-Flash-Next IQ3_XXS from own files:
The same preset with
--vision cpustarts fine: it matches the installed config, so setup is skipped.@github-actions[bot] commented on GitHub (Oct 26, 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 (Oct 26, 2026):
Thanks, this follows the format now.
@XiaoBinGan commented on GitHub (Oct 27, 2026):
A fix for this is in #4317, along the lines you proposed: setup_args() resolves the pair through Catalog.resolve() first and keeps the old value when it cannot, so an unknown name is still setup's to report.
Verified by reverting the change: pytest tests/terminal/test_launch.py -q is 6 failed, 109 passed, 1 skipped without it (the sixth is the new case, failing with AssertionError: 'iq3_xxs' != 'IQ3_XXS') and 5 failed, 110 passed, 1 skipped with it. The remaining five fail on this Windows checkout without the change too.
The new cases cover iq3_xxs → IQ3_XXS, coder/iq1_m → IQ1_M, gyro/gyro-s → Gyro-S, an already-correct IQ3_S, and an unknown
ot-a-model that still reaches setup unchanged.
Not run: a real preset start on Windows like yours, which needs an installed model and a card this checkout can drive. The report already shows that failure; I did not repeat it end to end.
@Niko1221 commented on GitHub (Oct 29, 2026):
Thank you for the report and the pointer to the two lines, and thanks to XiaoBinGan for PR #4317. Fixed on our side; the fix ships in the next update (0.2.8).
strata launchnow resolves the saved model name through the same catalog lookup as the command line, soiq3_xxsreaches setup asIQ3_XXS. An unknown name still goes to setup unchanged, so setup reports it in its own words. The commit keeps the contributor's authorship.@Niko1221 commented on GitHub (Oct 29, 2026):
Thanks for the report and the pointer to the two lines, and thanks to XiaoBinGan for PR #4317. This is in 0.2.8: a saved model tag such as
iq3_xxsnow reaches setup asIQ3_XXS, with the contributor kept as the author. Runstrata update.