mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2036] [Linux] --calibrate combined with --model silently falls through to plain re-setup (setup.py:4958) #813
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#813
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 @satwareAG-ironMike on GitHub (Oct 12, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2036
Problem
./setup.sh --calibrate --model IQ3_XXS --yesdoes not calibrate.setup.py:4958:The calibrate branch is skipped whenever
--modelis also present; execution falls through to the plain setup path, which re-runs setup and then idles waiting for a browser. No warning is printed that--calibratewas ignored.Reproduction (Linux, RTX 3060 12G, build
7695859)./setup.sh --calibrate --model IQ3_XXS --yes </dev/null-> no calibration runs; setup re-runs (and silently rewrites the engine config, see #388) and idles with a validation server on :8080../setup.sh --calibrate --yes </dev/null(no--model) -> calibration runs normally (15-45 min), writes tuned args into the model config, then serves the model on :8080 as its own validation step - that idle IS the finished state.Impact
The natural invocation (
--calibrate --model <name>, "calibrate this specific model") silently does a different thing: a full re-setup that also rewrites engine config. In an unattended/systemd bootstrap this burns 10+ minutes, occupies the serving port, and the operator believes calibration happened. It cost a full calibration cycle during our switchover before we found the guard clause.Expected
Either accept
--modelas the calibration target, or fail fast with an explicit message:--calibrate cannot be combined with --model; run bare --calibrate.Acceptance criteria
--calibrate --model Xeither calibrates model X or exits with a clear error.--calibratewas requested.@Niko1221 commented on GitHub (Oct 12, 2026):
Confirmed, and the silent fall-through was the worst part. Fixed with your first option:
--calibrate --model X(and--family) now calibrates that installed model; with several matches it asks which. If the model is not installed it stops with a message naming the installed ones instead of re-running setup.--calibratetogether with--setupor--check, or with nothing installed yet, now prints a warning that it does nothing there, instead of being dropped without a word. Bare--calibratebehaves as before. Closing when the fix ships in 0.1.43.1 (out now).