mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #713] Proposal: a common benchmark format and a comparison page for community reports #328
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#328
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 @brenoperucchi on GitHub (Oct 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/713
This is a question before any work: would something like the following be useful to you, and if so, where should it live?
The problem
Benchmark reports keep coming in, but they can't be compared with each other. On 2026-10-03 there were 14 open
bench:PRs.docs/COMMUNITY_BENCHMARKS.mdasks people to use their own data format, so prompts, cache state, sampling, run counts and reasoning settings all differ from one report to the next.You also said in #443 that measurement records stay out of the repo, and a row in
docs/COMMUNITY_BENCHMARKS.mdis the accepted path (#602, #617). Nothing below asks to change that. Still, nobody can answer two questions from the reports that exist today:Two of my own reports came out of running the same prompts and procedure across versions on my machine. The unbuffered file tier regression in 0.1.38 (#577) only shows up on GGUF-in-place models, and
STRATA_PF_FUSED=1changing answers (#519) only showed up with a deterministic A/B.The idea
There are three pieces, and none of them touches the engine:
result.jsonformat, written by a script, never by hand. It records the machine (GPU, VRAM, CPU ISA, RAM, driver, OS), the engine version and binary hash, the model files and their hashes, the run config exactly as used (argsandenv, with paths replaced), the protocol (prompt hashes, sampling, output cap, runs, server starts, cache mode, reasoning settings sent) and every individual run.server.pyfrom the user's own unchanged config, measures through the normal API, reads the startup log, then stops and restarts the server for the next arm (A, B, A, B). It follows the bar you set in #500: alternating pairs, and a short parity arm at a fixed--expert-cachewith--prompt-cache 0 --adapt-swaps 0 --pcie-frac 0andSTRATA_IQ_MT_MIN=1to compare output tokens.Reasoning isn't fixed by the protocol. People run with it on or off, so the runner records the effort and budget sent and the reasoning tokens generated. Rows with different reasoning settings never share a statistic, and the page can filter on it.
The community view (for you)
This is a throwaway prototype with made-up numbers. Only the hollow points are real (from my #433 data), and they're marked as legacy because that runner used a timestamp line, so the input wasn't byte-identical across versions.
Each machine counts once. For a release pair, a machine contributes the ratio of its own medians (B/A) for the same model, config and protocol. The page shows the median change across machines, the spread, how many machines there are, and how many improved or regressed past a fixed floor. Below 3 machines it says "insufficient data" instead of a percentage. Nothing is averaged across prompt sizes, models or protocols, and machines aren't ranked against each other.
The same transition can be split by GPU architecture, CPU ISA, RAM, model, quantization and mode (pack, GGUF in place, RAM budget, low RAM). That split is what would have made #577 visible right away: flat on packs, a clear drop on GGUF in place.
Option effects compare the same machine and release with and without one flag or env var, for example
STRATA_PF_FUSED=1by GPU architecture. A coverage tab shows which release and hardware combinations have no data yet, so a gap doesn't read as "no change".The user view
This side is about one machine and reproducing what helped. I already use a version of it on my machine: a local panel with every release and variant I measured, side by side per prompt size, with source and hashes on each row. The screenshot is that panel as it runs today. It only holds Strata speed numbers.
In the proposal, every row opens a "Reproduce this row" panel. It shows the engine version and binary hash, model files and hashes, the config as used, the protocol id with links to the prompt files, the runner version, and the command to repeat it. You can copy the config, copy the command, or open the raw JSON. A "diff against my config" view lists the
argsandenvdifferences between that row and your own config.A participation guide and a checklist
The runner does most of the work, but people still need to know what gets collected and what to check. If you want this, it would come with a one-page guide covering what is measured and what isn't, which fields end up public, how to submit, and why a submission can be kept out of the statistics (cache reuse, missing metadata, low free VRAM after load). It would also come with a short checklist:
The runner ticks off whatever it can check by itself. The rest is on the person running it.
What I'm asking
Would this be useful to you? If it is, where should it live: somewhere you choose, a separate repo linked from
docs/COMMUNITY_BENCHMARKS.md, or nowhere? I'd rather know that before building anything for real. If you're in, I can do the runner, the schema and the page, and convert my #433 data. I'm also happy to maintain it afterwards (reviewing submissions and updating the protocol for new releases) so it doesn't add work on your side.@noahark commented on GitHub (Oct 4, 2026):
+1 from another "weird corner of the coverage map" — dual Xeon E5-2696 v3 (Haswell-EP) with a Tesla V100 (sm_70, TCC, Windows, source build via
STRATA_EXPERIMENTAL_SM60). We're exactly the kind of machine that only shows up as noise unless the page can split by CPU ISA / RAM type / GPU architecture.Two data points from our side that would land directly in your option-effects view (V100 report in #707, details in #617):
START-HERE.bat --calibratedoubled decode on the same machine, same build, same model: 16.5 → 33.5 tok/s (2.03×). The single biggest lever inside the sweep was--pool-workers: 18 beats the default 35 by 20%+ on this dual-socket NUMA box — the defaults are tuned on a 6-core Ryzen. A textbook "option × hardware interaction" that a per-machine format would have surfaced immediately.Decode on this box is host-memory-bound (GPU util ~19%, 42–48 W during decode). The RAM turned out to be DDR3L-1600, not DDR4 as first reported (just corrected in #707) — same-CPU-generation DDR4-2133 dual-socket boxes anecdotally run ~1.8× faster on comparable MoE decode. Without a RAM-type split in the schema, that difference just reads as "slow V100".
One thought on the checklist: "don't recalibrate" is right for cross-version statistics, but calibration itself is the highest-leverage option we've measured. It might be worth recording the calibration state (kept params + sweep summary) in
result.json, so pre/post-calibration rows can be compared as an option pair rather than excluded as noise.Happy to re-run our setup through the runner and backfill a V100 row once the format settles — the raw per-request JSONs already exist.
@brenoperucchi commented on GitHub (Oct 4, 2026):
Thanks, this is exactly the kind of machine the split is for. Both points go into the draft schema: RAM type as its own field next to size and speed, and the calibration state (whether it ran, the kept params,
--pool-workersasked and resolved), so pre/post calibration rows compare as an option pair instead of being dropped.There's nothing worth running yet. I'm waiting to hear from the maintainer on where this should live before building the runner for real. Once there's a version that writes
result.json, I'll ping you here, and your existing per-request JSONs should be easy to convert.@Niko1221 commented on GitHub (Oct 7, 2026):
Yes, a common benchmark schema is a good idea, and a separate repo is the right place so it does not depend on Strata's releases. We will link it from docs/COMMUNITY_BENCHMARKS.md once it exists.
@brenoperucchi commented on GitHub (Oct 7, 2026):
Thanks. The repository now exists: https://github.com/brenoperucchi/strata-bench (MIT, tags
core-v0.1.0andcore-v0.1.1).It holds the measuring core only, the first of the three pieces in the proposal:
result.jsonformat (strata-bench/v1), written by the script, never by hand. It records the machine (GPU, driver, CPU ISA, RAM size, type and speed), the engine build and binary hash, the model and its file hashes, and the run config exactly as used, with paths replaced by roles. Calibration has its own block: whether it ran, the kept parameters, and--pool-workersasked and resolved. This is what @noahark asked for, so pre and post calibration rows can be compared as a pair.standard-v1: public prompts cut from the Strata source (hashes pinned, the run refuses on any difference), temperature 0, seed 42, one warm-up and three runs, a constant first line per run. It adds line probes and an opt-ingprobesize of agent-shaped requests at about 150, 300 and 450 tokens, since a short request spends its time differently from a long prompt.Still missing:
server.pyfrom the user's config and restarts it for each arm (A, B, A, B). Today it attaches to a server the caller started.I have run it on one RTX 5090 across 0.1.39, 0.1.40 and 0.1.40.1, in the setup's default config and in a customized one, if a worked example would help
docs/COMMUNITY_BENCHMARKS.md. Comments on the format can go in that repository's issues.@brenoperucchi commented on GitHub (Oct 10, 2026):
@noahark, you offered to put a V100 row through the runner once the format settled. There is now a version you can run, and a row from your machine is the one I would most like to have.
What exists is the measuring core: https://github.com/brenoperucchi/strata-bench (tag
core-v0.1.1, Python 3.10+, standard library only). It measures a running Strata server and writes oneresult.jsonper configuration. The runner that starts the server for each configuration and the comparison page do not exist yet, so for now you start and stop the server yourself.The pair I would like from your box is the one you described: the same build and model before and after
START-HERE.bat --calibrate. Run the first with the config setup wrote, then calibrate, then run again:Adjust the port and config name to yours. Each
result.jsonrecords the RAM size, type and speed, the CPU instruction sets, and a calibration block with whether it ran, the kept parameters and--pool-workersasked and resolved. I left out the longest size because of your decode speed. Addxlongif your context is 32K or more and you have the time.The
validatestep refuses a file that contains absolute paths or addresses, but please read the file before you post it. I have run the core on Windows, never on a V100 or a dual-socket machine, so if something breaks, tell me what it printed. Comparing the two rows as an option pair is not built yet, but the file already holds what that needs.There is no hurry. Even the "before" row alone is useful, because a Haswell-EP host with DDR3L is the kind of machine the RAM fields were added for.
@Niko1221 commented on GitHub (Oct 11, 2026):
A related piece shipped in 0.1.43:
BENCH.bat/./bench.sh(python tools/strata_bench.py) starts the server from the user's own config (or attaches to a running one), runs a fixed suite (short chat, 4K and 16K prompts, a five-turn agent session, optional--clients Nand--long), and writes a README in the docs/COMMUNITY_BENCHMARKS.md format plus aresults.json, with home folders, names and addresses scrubbed.--comparelines up two saved runs. It is a small stand-in for the runner step in this proposal, not a replacement for strata-bench's schema and validator; we would be glad to see itsresults.jsonmapped tostrata-bench/v1if that is useful.@brenoperucchi commented on GitHub (Oct 11, 2026):
Thanks for pointing at
tools/strata_bench.py, I read it at v0.1.43. A one-command runner is something I had not planned to write myself, and it lets people produce numbers without any setup.Yes to mapping
results.jsontostrata-bench/v1, with one caveat. A v1 result comes from fixed public prompts whose SHA-256 is part of the result, and the validator rejects anything that does not match. In your tool the prompts are built from the word list after a calibration step, and as far as I can tellresults.jsondoes not record a hash of the prompt text. Two machines can end up with slightly different prompt sizes, so the numbers are not directly comparable with v1.I'd like to write a small one-way converter that imports a
results.jsonas its own tier, "imported, not verified". It would keep the machine, config, version and speed fields and label them with their source. These runs would never be ranked together with v1 results. Nothing in your tool has to change for that.Is the
SCHEMA = 1layout ofresults.jsonsomething you plan to keep stable? And would you be open to the tool writing a hash of the prompts it sent? With that, a later version of the importer could treat those runs as verified.@brenoperucchi commented on GitHub (Oct 11, 2026):
@Niko1221 an update on the two other pieces of the proposal, which did not exist when I last wrote: the comparison page and a way to send results in. Both are live.
The dashboard is at https://brenoperucchi.github.io/strata-bench/ and it is a static page built only from results that pass the validator. A performance view shows the numbers. A separate health view lists runs that crashed, ran out of memory, produced garbage, hung or returned a 5xx; a failed run keeps what it measured and records the kind of failure and the call it happened in.
The guide for sending a result is https://github.com/brenoperucchi/strata-bench/blob/main/docs/SUBMIT.md. There are three ways to send one: an upload page (https://brenoperucchi.github.io/strata-bench/submit.html, no GitHub account needed, the file is checked in the browser and then opens a pull request), a pull request that adds the file under
results/, or an issue form with the file attached. CI runs the Python validator again on every route and I review before merging.The repository is at core 0.2.0. The status field is
ok,warningsorfailed, and an interrupted run isincompleteand is not published.If it still fits what you had in mind for
docs/COMMUNITY_BENCHMARKS.md, a link to the dashboard and to SUBMIT.md would let people go from yourBENCHoutput to a result here. What I said earlier today about mapping yourresults.jsonstill holds.The dashboard has no results yet. I have measured on one RTX 5090 but have not published those runs, and rows from other machines are what it needs most.
@brenoperucchi commented on GitHub (Oct 12, 2026):
@Niko1221 one thing about where strata-bench lives. It is under my account today and it is independent of Strata. If you would rather have it in your own domain, as a new repository under your account or organization, I am fine with that and I will move it there.
I am also inviting you as a collaborator on the current repository, with write access, so you can review and merge pull requests and change what you want. You can ignore the invitation.
Either way works for me. If it stays here, nothing changes. If it moves, a GitHub transfer keeps the history, the issues and the pull requests, and I would update the dashboard address, the upload page, the Worker that opens pull requests from it, and the links in the guide. Only the dashboard address changes for the people who use it.
Tell me which you prefer, whenever it suits you.
@noahark commented on GitHub (Oct 13, 2026):
The V100 pair is in: brenoperucchi/strata-bench#6 — same build (0.1.42, official prebuilt cuda12) and model (Swift IQ3_XXS + MTP) before and after
START-HERE.bat --calibrate, one day, grouped asmachine_id: haswell-ddr3l-v100s.Decode medians 71.0 → 76.9 tok/s (medium, 2.6k) and 73.6 → 79.3 tok/s (long, 14.7k); the 450-token agent-shaped request latency went 1254 → 1134 ms. The before arm is a faithful setup-default config (context 131072, no calibrate args, no env block); the only delta is what calibrate wrote:
--pcie-frac 0.35 --spec-min-p 0.70 --pool-workers 9.One thing the pair shows that the option-effects view may like: on 0.1.38 this same lever was 2.03x on this machine (16.5 → 33.5 tok/s); on 0.1.42 it is down to about +8%. Most of the calibration win seems to have become engine defaults in between.
@brenoperucchi commented on GitHub (Oct 13, 2026):
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.