mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-06 08:18:54 +00:00
tools/calibrate.py starts the engine through serve's StrataEngine and measures decode speed with the three settings that depend on the machine: --pcie-frac and --spec-min-p through new per-request GEN keys (pcie_frac=, spec_min_p=; the server forwards a request's "strata_tune"), then 2-3 worker counts (a restart each). A setting is kept only when it beats the product default by more than 3% in an interleaved re-measurement. Setup offers it after an interactive install and runs it with --calibrate; the result is saved per PC + model + context in the settings file and re-applied when a config is written, so updates keep it. The engine's INFO line now says pool_workers, pcie_frac and spec_min_p. tools/test_calibrate.py tests it with a stand-in engine (no GPU). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0154bwiad8gY7wRehCXy27pN