[PR #3182] [Other] setup: say that --kv, --context and --vision are not applied when starting an installed model #4493

Open
opened 2026-11-07 15:36:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • f957617 setup: 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 to start(); --kv, --context and --vision are 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.

  [!]  --kv, --context, --vision only apply when a model is set up: this start keeps its saved settings. To change them: ./setup.sh --setup --model NAME --kv --context --vision ...

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/--family and --no-start go through setup as before.

Validation:
Passed: python -m unittest tools.test_setup_choices (55 tests OK). The new StartIgnoresSetupFlags.test_said_on_a_plain_start fails on main (only the banner is printed) and passes with this change. test_silent_without_them checks 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 in test_setup_golden, 2 in test_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, the have and not (a.setup ...) branch) and confirmed it with the test. No engine code changed.
Limits: --rope-scaling/--rope-scale may 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/3182 **Author:** [@victoralcazardev](https://github.com/victoralcazardev) **Created:** 10/19/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `setup-warn-ignored-start-flags` --- ### 📝 Commits (1) - [`f957617`](https://github.com/Niko1221/Strata/commit/f957617f9a88948160bd81fc1d55810552af7125) setup: say that --kv, --context and --vision are not applied when starting an installed model ### 📊 Changes **2 files changed** (+37 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `setup.py` (+6 -0) 📝 `tools/test_setup_choices.py` (+31 -0) </details> ### 📄 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 to `start()`; `--kv`, `--context` and `--vision` are 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. ``` [!] --kv, --context, --vision only apply when a model is set up: this start keeps its saved settings. To change them: ./setup.sh --setup --model NAME --kv --context --vision ... ``` 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`/`--family` and `--no-start` go through setup as before. Validation: Passed: `python -m unittest tools.test_setup_choices` (55 tests OK). The new `StartIgnoresSetupFlags.test_said_on_a_plain_start` fails on main (only the banner is printed) and passes with this change. `test_silent_without_them` checks 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 in `test_setup_golden`, 2 in `test_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`, the `have and not (a.setup ...)` branch) and confirmed it with the test. No engine code changed. Limits: `--rope-scaling`/`--rope-scale` may have the same gap; not checked, not included. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#4493
No description provided.