[GH-ISSUE #2036] [Linux] --calibrate combined with --model silently falls through to plain re-setup (setup.py:4958) #813

Closed
opened 2026-11-04 01:46:09 +07:00 by bsakaguchi · 1 comment
Owner

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 --yes does not calibrate. setup.py:4958:

if have and a.calibrate and not (a.setup or a.model or a.family or a.check):

The calibrate branch is skipped whenever --model is 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 --calibrate was ignored.

Reproduction (Linux, RTX 3060 12G, build 7695859)

  1. ./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.
  2. ./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 --model as the calibration target, or fail fast with an explicit message: --calibrate cannot be combined with --model; run bare --calibrate.

Acceptance criteria

  • --calibrate --model X either calibrates model X or exits with a clear error.
  • No silent fall-through to plain setup when --calibrate was requested.
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 --yes` does **not** calibrate. `setup.py:4958`: ```python if have and a.calibrate and not (a.setup or a.model or a.family or a.check): ``` The calibrate branch is skipped whenever `--model` is 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 `--calibrate` was ignored. ## Reproduction (Linux, RTX 3060 12G, build `7695859`) 1. `./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. 2. `./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 `--model` as the calibration target, or fail fast with an explicit message: `--calibrate cannot be combined with --model; run bare --calibrate`. ## Acceptance criteria - `--calibrate --model X` either calibrates model X or exits with a clear error. - No silent fall-through to plain setup when `--calibrate` was requested.
Author
Owner

@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. --calibrate together with --setup or --check, or with nothing installed yet, now prints a warning that it does nothing there, instead of being dropped without a word. Bare --calibrate behaves as before. Closing when the fix ships in 0.1.43.1 (out now).

<!-- gh-comment-id:6129331210 --> @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. `--calibrate` together with `--setup` or `--check`, or with nothing installed yet, now prints a warning that it does nothing there, instead of being dropped without a word. Bare `--calibrate` behaves as before. Closing when the fix ships in 0.1.43.1 (out now).
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#813
No description provided.