mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4227] [CLOSED] [TUI] canonicalize models in setup args #4962
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#4962
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/4227
Author: @Cyneric
Created: 10/26/2026
Status: ❌ Closed
Base:
main← Head:issue-4209-model-casing📝 Commits (1)
302aa17[TUI] canonicalize models in setup args📊 Changes
2 files changed (+13 additions, -0 deletions)
View changed files
📝
strata_cli/launch/runner.py(+4 -0)📝
tests/terminal/test_launch.py(+9 -0)📄 Description
Problem and result
Saved presets store model tags in lowercase, but setup.py accepts case-sensitive canonical model names. When a preset triggers setup again, setup rejects a known model such as iq3_xxs. This change resolves known names through the catalog before building setup arguments; unknown and legacy names remain unchanged.
Fixes #4209.
Approach
Use Catalog.resolve() in Runner.setup_args() and preserve the original family/model if resolution raises ValueError. Add a CPU-only regression test for lowercase Qwen, Gyro, and an unknown legacy name. This does not change the separate model-folder lookup issue #3996.
Validation
Limits
No live model setup/download was run. The full-suite failures are environment-dependent and have not been diagnosed or verified against a baseline; they are reported, not attributed to this change.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.