mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #447] --calibrate silently leaves the machine uncalibrated when the config uses --expert-cache-deviceN #206
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#206
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 @DaRealDaHoodie on GitHub (Oct 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/447
Environment
Engine 0.1.31, repo HEAD
9259cad(2026-10-01). Measured 2026-10-01 on:qwen3.8-flash-next-ud-q4_k_xl(Unsloth UD-Q4_K_XL split GGUF, 71.73 GiB routed expertsloaded into the RAM arena),
--max-context 262144 --kv int8 --spec 4 --mtp --expert-cache auto--calibratecannot calibrate a config that uses the helper-GPU expert tierSymptom.
./setup.sh --calibrateon a config that uses--expert-cache-device1prints onewarning and then starts the model as if nothing happened:
No calibration record is written, the config keeps its old flags, and a user who is not watching
the two lines above has an uncalibrated machine and no way to know it.
Cause.
tools/calibrate.py:123reads "the config has agpulist" as "this model splitslayers across several cards":
A
gpulist does not imply a split.serve/server.py:engine_args()uses the correct test(
len(gpu_list(cfg)) > 1), and the helper-tier feature documented indocs/SECOND_GPU.mdworksthe other way round: the tier needs a card that runs no stage, so the config is one stage plus
a second visible card:
The tuner's appended
--layer-split autoputs both visible cards into stages, and the enginerejects that combination before reading any weights (
src/program/generate.cpp):Amplifier.
setup.py:1663-1667turns that into a single!line and continues, by design("never stops an install"). Given that the whole point of the step is to leave the machine tuned,
it is worth printing the engine's own error (it is in the log, one line above the next start) or
repeating the warning in the
All set.summary.Suggested fix. Mirror
engine_args():Workaround (no source change, and it also documents the intent in the config): pass the split
as empty, which is the engine's "no split" value — the parse block is gated on
if (!o.layer_split.empty())(src/program/generate.cpp:1232), and--layer-split noneisrejected while
--layer-split ""parses and moves on:Evidence. Same command, before and after the workaround — model loads recorded in the config's
log (opened in append mode,
serve/server.py:173), so a sweep that never started an engine leavesno loads:
--calibrate, before--calibrate, after…|32GB|…qwen3.8-flash-next-ud-q4_k_xl|262144|textThe sweep then chose
--pcie-frac 0.00 --spec-min-p 0.70(102.4 tok/s), which is the result thisreport is about: with the tier present the tuner can now measure the topology that actually runs.
@Niko1221 commented on GitHub (Oct 2, 2026):
Fixed in 0.1.35:
--calibratebuilds the engine's arguments the same way the server does (a layer split only with more than one GPU in the list,--expert-cache-device1kept). When tuning fails, setup prints the engine's last error and repeats the warning in its summary. Thanks!