mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3182] [Other] setup: say that --kv, --context and --vision are not applied when starting an installed model #4493
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#4493
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/3182
Author: @victoralcazardev
Created: 10/19/2026
Status: 🔄 Open
Base:
main← Head:setup-warn-ignored-start-flags📝 Commits (1)
f957617setup: say that --kv, --context and --vision are not applied when starting an installed model📊 Changes
2 files changed (+37 additions, -0 deletions)
View changed files
📝
setup.py(+6 -0)📝
tools/test_setup_choices.py(+31 -0)📄 Description
Problem and result: with a model already installed,
./setup.sh --kv q4_0(or--context N, or--vision no) starts the model with its saved settings and prints nothing about the flag. The start path passes only host, API key, draft vocab, VRAM reserve and browser tostart();--kv,--contextand--visionare dropped. The user believes the new setting is in use. With this change, setup prints a warning that names the ignored flags and how to apply them, and then starts as before. Behavior is otherwise unchanged.Approach: a warning, following the existing
--calibrate"said, not dropped" pattern (#2036), rather than applying the flags on start. Applying them would change what a plain start does, and the setup path already rewrites them (--setup --model NAME --kv ...). The check covers the two paths that start or tune an installed model without setting it up (the plain start and--calibrate);--setup,--check,--model/--familyand--no-startgo through setup as before.Validation:
Passed:
python -m unittest tools.test_setup_choices(55 tests OK). The newStartIgnoresSetupFlags.test_said_on_a_plain_startfails on main (only the banner is printed) and passes with this change.test_silent_without_themchecks that a plain start with none of these flags prints no warning.Passed:
python -m unittest discover -s tools -p 'test_setup_*.py': 688 tests. The same 50 failures occur on main (3fa1b524) without this change (48 intest_setup_golden, 2 intest_setup_engine_hash); the list of failures is identical with and without it.Not run: a real start on hardware. The reproduction is in the mocked harness only; I found the gap by reading the start dispatch (
setup.py, thehave and not (a.setup ...)branch) and confirmed it with the test. No engine code changed.Limits:
--rope-scaling/--rope-scalemay have the same gap; not checked, not included.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.