mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #840] --calibrate on Windows + AMD (HIP prebuilt 0.1.39) measures decode ~18x slower than the same engine through server.py, so the tuning is meaningless #372
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#372
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 @The-Dude-2020 on GitHub (Oct 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/840
Setup
strata-windows-x64-hip.zip(ROCm 10.2.0a20260930),--backend hip--pool-workers 9(setup's hybrid-CPU rule), KV streaming off (48 GB)Also a data point for #325: the Windows HIP zip does run a model on a discrete card. Through the server it is fast and correct (numbers below).
What happens
START-HERE.bat --calibrate→ model 1 (IQ2_XS). Every measurement comes out at ~4 tok/s:The engine log (
strata-iq2_xs.log) for the calibration requests. Note that prompt reading is also slow (7 tok/s for 22-34 tokens), not only decode:The same config and engine args, started through
serve/server.py --engine strata --config strata-iq2_xs.json(asrun-iq2_xs.batdoes), a few minutes earlier, written to the same log:So the calibration path runs at ~1/18 of the server path's decode speed and ~1/14 of its prompt speed. Draft acceptance is normal, so MTP is not the cause.
Ruled out
strata.exewas running during the calibration.Expected
The calibration measures the speed the server delivers (~74 tok/s here). Otherwise it should refuse to save: as it stands, any "winner" it picks is chosen from noise in a different regime and would be written into the config.
Possibly relevant
tools/calibrate.pystartsStrataEnginefrom the setup process (START-HERE.bat→setup.py→calibrate.run), not fromserver.py. I have not found what differs between the two launches (env fromchild_env(cfg), priority, console/job object, power throttling of a child of the setup console?). The README's Task Scheduler note shows Windows can throttle the engine depending on how it is started. This may be another case of that, hitting compute rather than the expert load.A sanity check could catch it: compare the calibration's default-settings rate with a short server-path measurement, or warn when the rate is far below the published figure for the GPU.
Workaround
Skip
--calibrate. I tune with A/B runs through the server (--pcie-frac,--spec-min-p,--pool-workersappended to the config's args, one server per arm). Happy to post those results here if useful.@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.