mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3187] [Benchmark] engine calibrate --measure loses the whole sweep when the report directory does not exist #1285
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#1285
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 @IVoyt on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3187
Area
[Benchmark] (measurements and reports)
Desktop app, Terminal or source?
Source (START-HERE.bat, setup.sh or a build)
What happened
strata engine calibrate --measureran the full decode sweep (8 engine starts, 177 measurements, ~19 minutes) and then threw the whole result away with:The output directory is only checked at the very end of the sweep, in
_write_new()(strata_control/calibration.py), which is called after the measurement has finished:calibration.py:303—result = execute(runner_cfg, say=say)— the sweep, ~19 minutescalibration.py:329—_write_new(output, _report_bytes(report))— the writecalibration.py:231-232—if not path.parent.is_dir(): raise ProfileError("report output directory does not exist", 5)The report path's existence check is done up front (
calibration.py:291, "calibration report path already exists"), but the check that the parent directory exists is at the end. A missing directory therefore costs the whole measurement.The measured numbers survive only in the engine log, not in a report; the sweep's own output was on the console.
Smallest steps or command that reproduce it
strata-swift-iq3_s.json.strata: report output directory does not existand no report file.The same happens with a path whose parent exists but is not a directory.
Reproduction status
Reproduced locally.
Strata version
Strata 0.2.0-beta (build 0.1.45.3), git
3fa1b524(v0.2.0-beta-7), source checkout.Graphics card, memory and system
RTX 5090 32 GB - 96 GB RAM - Windows 11 (10.0.26300), i7-12700KF, driver 617.42, CUDA toolkit 13.1 (nvcc 13.1.115), Python 3.13.12.
Model, size and settings
Swift 1.5 Qwen3.8-Flash-Next IQ3_S, 524288 context, pictures off.
Logs
The sweep's console output (it completed; only the write failed):
Expected behavior
The run should refuse before the sweep, the way it already refuses an existing report path:
or write the report where it can.
Suggested fix
Check the output's parent directory in
_measure_locked()next to the existing "report path already exists" check (calibration.py:291), so the refusal happens in a second rather than after 19 minutes of measurement:Additional context
strata-<model>.log), and the console shows them, but there is no report for--review-result/--apply-resultto consume.setup.py --calibrate(it writes its own record, so it does not fail, but it also has no up-front check).--outpath is free text, and nothing checks the directory until the very end.@github-actions[bot] commented on GitHub (Oct 19, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Oct 19, 2026):
Thanks, this follows the format now.