mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3759] [CLOSED] [TUI] fix auto-tuning budget handling and result reporting #4769
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#4769
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/3759
Author: @enesunal
Created: 10/22/2026
Status: ❌ Closed
Base:
main← Head:main📝 Commits (2)
2a05be4tuning: Fix budget decisions and confirmation reporting989b464tuning: Wait for a measured run before estimating completion📊 Changes
5 files changed (+141 additions, -14 deletions)
View changed files
📝
strata_cli/tune_commands.py(+4 -1)📝
strata_control/autotune.py(+45 -13)📝
strata_control/presets.py(+1 -0)📝
tests/tuning/test_autotune.py(+79 -0)📝
tests/tuning/test_presets.py(+12 -0)📄 Description
Problem and result
A slow baseline could produce “time ran out” while budget remained and label deferred candidates as not worth trying. Per-request gains could also display contradictory results such as “+14%” alongside “51.5 → 51.5 tok/s”.
The tuner now distinguishes insufficient remaining budget from ineligible candidates, reports measured confirmation speeds, and waits for a completed measurement before showing an ETA.
Related discussion
None; focused bug fix.
Approach
Skip completed baseline work before budget checks, check the budget between tuning requests, and reject incomplete confirmation results. Preserve paired confirmation samples in saved presets.
Existing tuning objectives and defaults remain unchanged. No engine, dependency, or model-configuration changes.
Validation
Passed:
989b464a:.venv/bin/python -B -m unittest tests.tuning.test_autotune tests.tuning.test_presets
— Ran 64 tests ... OK.
Failed:
Not run:
Limits
The time budget remains soft: an in-flight measurement may finish after it. Existing saved results are not rewritten. This fixes calibration behavior and reporting; it makes no inference-performance claim.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.