[GH-ISSUE #2465] Follow-up to #2378: --calibrate saves values contradicting its own round winners #1006

Closed
opened 2026-11-04 01:47:40 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @MEsfits on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2465

Follow-up to #2378: --calibrate completes on string-gpu duals, but saves values contradicting its own measurements

Found while verifying the #2378/#2380 fix (which works — no more crash, tuning runs to completion on "gpu": "0,1"). The save step writes a config that matches neither the round arrows nor the previous file. Engine 0.1.44.1 + setup 01cb90dc, dual RTX 3090, IQ3_S 262K, strata-iq3_s-dual-iso8.json.

1. PCIe share: arrow says 1, file says auto.
Rounds (median of 3): 0: 125.8 (123.9–129.4), 0.2: 127.2, 0.35: 127.8, 0.55: 127.4, 0.75: 127.5, 0.9: 125.7, 1: 129.5 (126.4–131.7) -> best 1. Every value overlaps; fine. But the file ends up with --pcie-frac removed (→ auto). Either the best should be written, or the verdict should say the race was tied and it kept auto — currently arrow and file disagree.

2. Draft floor: arrow says 0.7, file says 0.5.
0.3: 119.8, 0.5: 129.8, 0.7: 132.1 -> best 0.7, yet the file carries --spec-min-p 0.5. This one is unambiguous: the measured winner was not saved.

3. Expert tier: raw numbers say 1-160, verdict says default.
default 112.5, every-1-80 111.1, every-1-160 114.9 → [ok] default settings are already the fastest, adapt flags stripped. The verdict contradicts its own raw table (114.9 > 112.5). If a margin/significance rule flips this, it should be printed; as-is it reads as a bug.

Impact: after a clean calibrate run the config matches nothing the run measured, and a user comparing arrows to file (as I did) cannot tell which to trust. Suggest either saving exactly what the arrows name, or printing the verdict rule (tie margin, cost preference) whenever it overrides a round winner.

Originally created by @MEsfits on GitHub (Oct 14, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2465 ## Follow-up to #2378: `--calibrate` completes on string-gpu duals, but saves values contradicting its own measurements Found while verifying the #2378/#2380 fix (which works — no more crash, tuning runs to completion on `"gpu": "0,1"`). The save step writes a config that matches neither the round arrows nor the previous file. Engine `0.1.44.1` + setup `01cb90dc`, dual RTX 3090, IQ3_S 262K, `strata-iq3_s-dual-iso8.json`. **1. PCIe share: arrow says 1, file says auto.** Rounds (median of 3): `0: 125.8 (123.9–129.4), 0.2: 127.2, 0.35: 127.8, 0.55: 127.4, 0.75: 127.5, 0.9: 125.7, 1: 129.5 (126.4–131.7) -> best 1`. Every value overlaps; fine. But the file ends up with `--pcie-frac` **removed** (→ auto). Either the best should be written, or the verdict should say the race was tied and it kept auto — currently arrow and file disagree. **2. Draft floor: arrow says 0.7, file says 0.5.** `0.3: 119.8, 0.5: 129.8, 0.7: 132.1 -> best 0.7`, yet the file carries `--spec-min-p 0.5`. This one is unambiguous: the measured winner was not saved. **3. Expert tier: raw numbers say 1-160, verdict says default.** `default 112.5, every-1-80 111.1, every-1-160 114.9` → `[ok] default settings are already the fastest`, adapt flags stripped. The verdict contradicts its own raw table (114.9 > 112.5). If a margin/significance rule flips this, it should be printed; as-is it reads as a bug. **Impact:** after a clean calibrate run the config matches nothing the run measured, and a user comparing arrows to file (as I did) cannot tell which to trust. Suggest either saving exactly what the arrows name, or printing the verdict rule (tie margin, cost preference) whenever it overrides a round winner.
Author
Owner

@MEsfits commented on GitHub (Oct 15, 2026):

Status note: worked around locally — the fleet now carries hand-set 1/0.7 (adapt kept at 1/160/0.97 where the iso evidence supports it, stripped elsewhere per the tier verdict dispute noted above), so nothing here blocks on setup.py. The three contradictions (pcie best-1→auto saved, floor best-0.7→0.5 written, tier raw-best→"default fastest") still stand in the verdict/save path for whoever picks this up; happy to re-verify a fixed build against the same dual config.

<!-- gh-comment-id:6187557710 --> @MEsfits commented on GitHub (Oct 15, 2026): Status note: worked around locally — the fleet now carries hand-set 1/0.7 (adapt kept at 1/160/0.97 where the iso evidence supports it, stripped elsewhere per the tier verdict dispute noted above), so nothing here blocks on setup.py. The three contradictions (pcie best-1→auto saved, floor best-0.7→0.5 written, tier raw-best→"default fastest") still stand in the verdict/save path for whoever picks this up; happy to re-verify a fixed build against the same dual config.
Author
Owner

@MEsfits commented on GitHub (Oct 18, 2026):

Second instance of the save/rounds contradiction, on 0.1.45 (engine 477ac13c, dual 3090 Ti x16 + 3090 x4, IQ3_S, layer split 27, full round data):

PCIe share, median of 3: 0: 132.4 (131.3-135.2), 0.2: 131.9 (130.2-132.3), 0.35: 130.1 (128.7-137.8), 0.55: 133.5 (133.4-136.1), 0.75: 130.6 (128.6-132.8), 0.9: 130.8 (130.3-133.0), 1: 131.6 (131.5-135.1) -> best 0.55
draft floor, median of 3: 0.3: 128.2 (123.8-128.4), 0.5: 133.8 (129.8-134.4), 0.7: 136.2 (134.0-137.5) -> best 0.7
7 workers: 133.4 / 5: 134.6 / 4: 137.8 / 2: 137.1
expert tier (the engine default): 137.4 tok/s
[ok] tuned for this PC: --pcie-frac 0.55, --spec-min-p 0.70, --pool-workers 4 (137.4 tok/s)

Three problems in one save line:

  1. The headline tok/s belongs to a different arm. "(137.4 tok/s)" is the expert-tier-default measurement. The pcie-0.55 arm's own best round median is 133.5. The saved config never measured 137.4.
  2. The pcie-frac pick is inside the noise. Best-vs-second is 133.5 vs 132.4 (0.8%), every value's range overlaps every other's, and within-value spread is larger than between-value: 0.35 ran 128.7 / 130.1 / 137.8 across rounds (7% on the same value). Three rounds cannot resolve a 1-3% difference, yet the sweep commits to a confident "best" and writes it to the config. On this box the whole pcie curve is flat - a standalone A/B of pcie-frac 1 vs 0.00 (same engine, benchy, n=5) moved decode 78.77/65.15 vs 79.77/67.23 tok/s, i.e. nothing.
  3. The prompt-chunk winner is dropped. The chunk sweep measured off: 1721 vs best chunked 1600 tok/s - "off" wins by 7-8% - and the save line contains no prefill setting, so --prefill auto stays.

What the sweep measured cleanly: draft floor 0.7 (won all three rounds: 137.5 / 134.0 / 136.2) and pool-workers 4 (137.8 vs 133.4-137.1). Both are real; both could be said as such. Suggest: the save line print each value with the number that value actually measured (or "within noise of N alternatives, kept current"), skip a sweep whose best-vs-spread is under the round noise, and keep sweep winners the save line does not act on (prompt chunks) out of the sweep or into the save.

<!-- gh-comment-id:6246007504 --> @MEsfits commented on GitHub (Oct 18, 2026): Second instance of the save/rounds contradiction, on 0.1.45 (engine 477ac13c, dual 3090 Ti x16 + 3090 x4, IQ3_S, layer split 27, full round data): ``` PCIe share, median of 3: 0: 132.4 (131.3-135.2), 0.2: 131.9 (130.2-132.3), 0.35: 130.1 (128.7-137.8), 0.55: 133.5 (133.4-136.1), 0.75: 130.6 (128.6-132.8), 0.9: 130.8 (130.3-133.0), 1: 131.6 (131.5-135.1) -> best 0.55 draft floor, median of 3: 0.3: 128.2 (123.8-128.4), 0.5: 133.8 (129.8-134.4), 0.7: 136.2 (134.0-137.5) -> best 0.7 7 workers: 133.4 / 5: 134.6 / 4: 137.8 / 2: 137.1 expert tier (the engine default): 137.4 tok/s [ok] tuned for this PC: --pcie-frac 0.55, --spec-min-p 0.70, --pool-workers 4 (137.4 tok/s) ``` Three problems in one save line: 1. **The headline tok/s belongs to a different arm.** "(137.4 tok/s)" is the expert-tier-default measurement. The pcie-0.55 arm's own best round median is 133.5. The saved config never measured 137.4. 2. **The pcie-frac pick is inside the noise.** Best-vs-second is 133.5 vs 132.4 (0.8%), every value's range overlaps every other's, and within-value spread is larger than between-value: 0.35 ran 128.7 / 130.1 / 137.8 across rounds (7% on the same value). Three rounds cannot resolve a 1-3% difference, yet the sweep commits to a confident "best" and writes it to the config. On this box the whole pcie curve is flat - a standalone A/B of pcie-frac 1 vs 0.00 (same engine, benchy, n=5) moved decode 78.77/65.15 vs 79.77/67.23 tok/s, i.e. nothing. 3. **The prompt-chunk winner is dropped.** The chunk sweep measured off: 1721 vs best chunked 1600 tok/s - "off" wins by 7-8% - and the save line contains no prefill setting, so `--prefill auto` stays. What the sweep measured cleanly: draft floor 0.7 (won all three rounds: 137.5 / 134.0 / 136.2) and pool-workers 4 (137.8 vs 133.4-137.1). Both are real; both could be said as such. Suggest: the save line print each value with the number that value actually measured (or "within noise of N alternatives, kept current"), skip a sweep whose best-vs-spread is under the round noise, and keep sweep winners the save line does not act on (prompt chunks) out of the sweep or into the save.
Author
Owner

@Niko1221 commented on GitHub (Oct 19, 2026):

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6271075808 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
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#1006
No description provided.