mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4325] [TUI] strata bench compare rejects a default standard-v1 run, and the documented tools/strata_bench.py --compare crashes on it #1911
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#1911
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 @XiaoBinGan on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4325
What happens
A folder written by the default
strata bench runsuite (standard-v1) cannot be compared, by either of the two documented comparison paths:strata bench compare BASELINE CANDIDATEprintsstrata: unsupported benchmark reportand exits 5.tools/strata_bench.py --compare BASELINE --compare-only CANDIDATE, which is whatdocs/COMMUNITY_BENCHMARKS.mdnames for comparing two saved runs, dies with a traceback:strata bench report FOLDERon the very same folders works, so the folders are fine.Why
Two report schemas share the file name
results.jsoninside the run folder:strata bench run --suite standard-v1(the default) writesstrata_cli/bench_standard.py's schema: top-levelformat,run,requests,summaries,quality, …strata_cli/bench.py(the serving suites,--suite serving-smoke,parallel-*) writes the older schema with a top-levelresultslist, which is whatbench.load()and both comparison paths read._bench()instrata_cli/cli.pyknows this forreport— it tries the standard loader first:but
comparegoes straight to the old reader with no such branch:So the same asymmetry that was closed for
reportis still open forcompare, andtools/strata_bench.py --comparereads the same file name with its own expectation.Smallest steps or command that reproduce it
With two folders from the default suite (two runs on the same machine are enough), on
0.2.7-cuda13:I hit this with two real
standard-v1runs (2026-10-21 shared card, 2026-10-24 exclusive, RTX 5090, Q2_0) while writing a community report, which is exactly the casedocs/COMMUNITY_BENCHMARKS.mddescribes.Expected
Comparing two
standard-v1runs shows the per-case medians side by side (the same numbersstrata bench reportprints), or, if that is not wanted yet, a sentence that says a standard-v1 report cannot be compared by this command and which command can — not aKeyErrortraceback and notunsupported benchmark reportfor a folder the tool next door reads happily.Reproduction status
Reproduced locally (both paths, 0.2.7-cuda13 image, on the folders of two real standard runs).
Strata version
Terminal 0.2.7 (engine 0.1.52) in the
0.2.7-cuda13image; the run folders are from0.2.2-cuda13(engine 0.1.47).Graphics card, memory and system
RTX 5090 32 GB, PCIe Gen 3 ×16, 2 × Xeon Gold 5218, 125.6 GiB RAM, Ubuntu 20.04 host, Docker 19.03.15. Nothing about the comparison depends on the card.
Model, size and settings
ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUFQ2_0, 32K context, KV int8, one slot — the comparison failure does not depend on the model.Logs
The two outputs are quoted above. I can implement the compare for standard reports (per-case medians over
summaries, the fieldsbench_standard.format_plainalready prints) and add the tests, if that scope is wanted — or just make both paths say what to do instead, if you would rather keep compare limited to the serving suites.@XiaoBinGan commented on GitHub (Oct 27, 2026):
A fix for the traceback is in #4326: load_results() recognises the standard schema and stops with one sentence instead of KeyError: 'results', exit 2 like the argument errors beside it.
ext strata_bench: /runs/shared/results.json is a standard benchmark report (strata bench run, suite standard-v1). This comparison reads the serving-suite reports the tool writes itself; strata bench report /runs/shared shows this one. Comparing two standard runs is #4325.That is deliberately not the comparison itself. If you want one, the shape I would write is a per-case table from summaries — the same medians strata bench report prints, side by side with their deltas — plus the "these are different builds" and "these ran on different machines" guards the serving comparison already has. Say the word and I will add it here; the two real folders I reproduced with are standard-v1 runs from the same machine and model, one with the card shared and one with it exclusive, so they make a good first pair to try it on.
I left strata bench compare BASELINE CANDIDATE alone: it answers unsupported benchmark report for a standard report for the same reason (_bench() in strata_cli/cli.py branches on
eport but not on compare), and that is a CLI error contract I would rather change with your agreement than on my own. It is one extra branch next to the
eport one if you want both.
Verified on the 0.2.7 image with the patched tool mounted over the image's and two real run folders: the traceback became the sentence above (exit 2), a serving-suite report still loads unchanged, and --compare without --compare-only still gives the argparse error.
@XiaoBinGan commented on GitHub (Oct 27, 2026):
The CLI half is in #4329: _bench() now asks ench_standard.load_if_standard() before the serving-suite reader — the same branch the
eport command beside it already had — so
` ext
$ strata bench compare /runs/shared /runs/exclusive
strata: this version cannot compare two standard benchmark results yet (#4325); strata bench report FOLDER shows each one
$ echo True
5
$ strata bench compare
strata: comparing a standard benchmark result with another kind of report is not supported: give two standard results or two serving-suite reports
`
Verified with python -m pytest tests/terminal/test_bench_standard.py -q: 51 failed, 19 passed with the change against 53 failed, 17 passed with cli.py reverted — the two extra passes are the new cases, and the 51 pre-existing failures (real HTTP servers, timing-sensitive suites, this Windows checkout) are identical in both runs.
Together with #4326 both documented comparison surfaces now refuse a standard report in one sentence instead of a traceback or a dead end. The comparison itself is still the open question — say the shape you want and I will write it with tests, next to the existing output formats.
@XiaoBinGan commented on GitHub (Oct 31, 2026):
Scope proposal for the feature half of this issue (per CONTRIBUTING, features agree scope first). If the shape is right I will write it with tests; if you would rather keep
comparefor the serving suites only, say so and I will close this thought here.What it would do.
strata bench compare BASELINE CANDIDATEaccepts twostandard-v1reports and prints one table per phase, one row per case:with
--output jsonreturning the same numbers, and--output markdowna table that can be pasted into a report.What it would refuse, loudly. The serving comparison already has a
workload_matchidea; the standard one needs its own guards, and to me the honest set is:strata-qwen38-thinking-v1against another) → no comparison, one sentence;summariesrow missing for a case) →n/a, never 0.What it would not change. Nothing in the report format, nothing in
strata bench run, no default; a new reader pluscompareaccepting a second kind of folder. The two "readable error" pull requests (#4326, #4329) stay useful either way — they are the ones a reader on today's release sees.Validation I can offer. The two real
standard-v1folders I reproduced this issue with: same machine, same model (RTX 5090, Q2_0), 2026-10-21 with the card shared (5,784 expert slots) and 2026-10-24 exclusive (19,530 slots) — so the comparison has a known-good answer to check against (decode +55% at 4K, +62% at 16K, TTFT −51%/−40%). Plus unit tests over synthetic reports for the guards. No GPU needed for either.Size. One function in
strata_cli/bench_standard.py(acompare(baseline, candidate)oversummaries), the CLI branch next to the one #4329 adds, and tests. I would keep it in one pull request.@XiaoBinGan commented on GitHub (Nov 1, 2026):
The comparison half of this is implemented and ready for review in #4806, now marked ready (no longer a draft).
strata bench compare BASELINE CANDIDATEreads two standard-v1 reports and prints the baseline and candidate medians per case and figure with the change in percent;--output markdownrenders the same table as Markdown (and--out FILEwrites it),--output jsonreturns the same rows. Two serving-suite reports go through the old comparison unchanged; only a mixed pair (one standard, one serving-suite) is refused. A different suite, model, card or engine is a warning line, not a refusal, and a figure one side lacks isn/a, never 0.Measured on the two real standard-v1 folders this issue was reported with (same RTX 5090, Q2_0 machine: 2026-10-21 with the card shared, 2026-10-24 exclusive): decode +55.1% at 4K, +62.0% at 16K, TTFT -51.3% / -40.1% — the same changes #4313 quoted by hand, now printed by the command. No GPU run was made; the numbers are read from the saved
results.jsonfiles.Validation on this Windows checkout (Python 3.11), exact commands and output:
python -m pytest tests/terminal/test_bench_standard.py -q -k StandardComparison→ 4 passed, 69 deselected. A before/after pair computes the medians and the +50.0% change; a different suite/model/card/engine is named in the warnings; a missing figure isNone/n/a, not 0; the Markdown output is a real table.python -m pytest tests/terminal/test_bench_standard.py -q -k compare_reads_two_standard_results→ 1 passed, 72 deselected (human table, Markdown table, Markdown file via--out, JSON with 12 rows).test_a_request_that_never_finishes_times_out, 1 failed / 72 passed). That test also failed with these three files reset to upstreammain(1 failed / 67 passed), and a secondmainrun had 2 failed / 66 passed (...never_finishes_times_outand...a_round_total_is_null_when_a_counted_request_has_no_token_count) — none of the new cases failed in any run.python tools/minimal_cli_smoke.py --report ...(the CI "Portable monitor client" check) →"passed": true.The other documented comparison path,
tools/strata_bench.py --compare, is untouched here; #4326 gives it the readable message. The scope proposal above still stands — if you would rather keepcomparelimited to the serving suites, say so and I will drop the PR.