mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#4109
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2544
Author: @qiuzan2001
Created: 10/15/2026
Status: ❌ Closed
Base:
main← Head:chief-serve/calibrate-verdict📝 Commits (1)
e29f11bcalibrate: each step says which value it kept, and why the default stays over a round's best (#2465)📊 Changes
3 files changed (+73 additions, -2 deletions)
View changed files
📝
docs/DETAILS.md(+3 -2)📝
tools/calibrate.py(+30 -0)📝
tools/test_calibrate.py(+40 -0)📄 Description
Addresses #2465 (the part that is a bug in what calibrate prints; the choices it makes are unchanged).
What it changes.
tools/calibrate.pykeeps a round's best only when the confirm round (the best against thedefault, interleaved) or the worker/expert-tier measurements show it more than 3% faster (
pick,MIN_GAIN). Thatrule printed nothing, so in #2465 the arrows said PCIe share 1, draft floor 0.7 and the 160-swap tier while the saved
config carried the defaults. Each of the three decisions now ends with one line:
(numbers here are illustrative, from the issue's medians), or
-> <value>: +N% over the default (...): kept, or-> <default> (the default) is the fastest: kept. One sentence in docs/DETAILS.md ("Tuning for your PC") says so.What it leaves alone. Which settings are chosen and written: the diff only adds
say()lines and theverdict()helper, which reads the same medians
pick()does and returns no line when the default did not start. The 3% ruleitself, the sweep arrows, setup's
calibrate_config()summary line. Whether the 3% rule is the right one (the issue'sother suggestion, "save exactly what the arrows name") is a maintainer decision, so I did not change it.
How it was checked.
tools/test_calibrate.py:test_a_round_winner_the_config_does_not_carry_is_explained_2465(theissue's case: PCIe 1 +2%, draft floor 0.7 +0.5%, the 160-swap tier +2%: settings
{}, and the lines say thedefault stays with the gain; plus a kept worker count and a kept PCIe/draft pair) and
test_verdict(each branch,and a default that measured 0 tok/s is not divided by). Both fail on
main.python3 tools/test_calibrate.py: 19 tests OK.python3 tools/test_setup_choices.py: OK.tools/test_setup_golden.pyhas 8 failures (the unsloth UD-Q4_K_XL rows) onupstream/mainwithout this change too,the same 8 with it; calibrate is not part of those.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.