mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#5003
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4317
Author: @XiaoBinGan
Created: 10/27/2026
Status: ❌ Closed
Base:
main← Head:fix/preset-model-tag📝 Commits (1)
2f9f877Fix #4209: a saved preset's lower-case model tag reaches setup as its key📊 Changes
2 files changed (+36 additions, -0 deletions)
View changed files
📝
strata_cli/launch/runner.py(+4 -0)📝
tests/terminal/test_launch.py(+32 -0)📄 Description
Problem and result
Starting a saved preset with any choice that differs from the installed config (
--vision off,--kv,--context) rerunssetup.py, which then stops:Two halves disagree about a model's name.
strata_cli/launch/settings.pywrites the choice into the presetas a lower-case tag (
--model iq3_xxs),LaunchRunner.setup_args()forwards it unchanged, andsetup.py's--modelchoices are theMODELStable's own keys, which are case-sensitive. Typing--model iq3_xxson the command line works, becausecmd.pynormalises it throughCatalog.resolve();the preset path never reaches that.
After this change the preset path uses the same resolver, so
setup_args()carries--model IQ3_XXSand there-run installs instead of stopping.
Related discussion: #4209 — the report, including the setup log line and the two lines it points at.
Approach
Catalog.resolve()is the resolver the command line already uses, so a preset and a typed command nowagree. It also normalises the family when a family-free name is ambiguous.
and its own "did you mean" list. Nothing is refused here that was not refused before.
the neighbours).
Validation
Passed:
py -m pytest tests/terminal/test_launch.py -q(Python 3.11.16, from a source checkout):5 failed, 110 passed, 1 skipped. The five failures are pre-existing on this Windows checkout: with
strata_cli/launch/runner.pyreverted, the same file is 6 failed, 109 passed, 1 skipped — the sixth isthe new test, and it fails with the reported symptom:
Passed: the new cases: a lower-case tag for
qwen(iq3_xxs→IQ3_XXS),coder(iq1_m→IQ1_M),gyro(gyro-s→Gyro-S), a name already in the table's spelling (IQ3_S) and the family the presetcarries; and an unknown name (
not-a-model) still reaching setup unchanged.Failed: none of the new cases.
Not run: a real preset start on Windows as in the report: that needs a model installed on this host and a
GPU the checkout can drive, and the report already shows the failure. I did not repeat the end-to-end start
and am not claiming I did.
Not run:
pytest tests/terminalas a whole: only the file this change touches and its neighbours were run(
test_launch.py), plus the other suites listed in #4314/#4315 work, which do not import this method.Limits
offers still reaches setup, which reports it, as before.
picks rather than the family as saved. That is the same answer the command line gives for the same name.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.