Commit Graph
18 Commits
Author SHA1 Message Date
Claude 7f26fe0f4d AGENTS.md: use a question tool for the three rounds when there is one
With a tool like ask_user_question (Pi) or AskUserQuestion (Claude Code),
each round goes through it, split into calls of the tool's maximum in the
original order with the numbering kept (1-4, 5-8, 9-10). The bracketed
default is the first option, marked recommended; "Other" stays open for
typed answers; free-text questions get the default and "find it". Without a
tool, one numbered message as before. Round 2's table stays a plain
message; only its confirmation may use the tool. A round is one batch,
never spread across turns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EooZ9aTJE7srSQEYUqdQio
2026-11-01 21:13:53 +00:00
Claude 196d97c717 Merge remote-tracking branch 'origin/main' into claude/wizardly-bell-x3yr7w 2026-11-01 20:45:37 +00:00
Claude 6cb02ecc0a Save values in bench.local.env: bench.sh init writes a template
./bench.sh init writes a commented bench.local.env next to bench.sh; fill it
in once and the run is just ./bench.sh (--dry-run, --full). New saved keys:
BENCH_ENDPOINT, BENCH_MODEL, BENCH_SERVER_CMD_FILE, BENCH_ENV_FILE.
--settings FILE picks another file (a second server or model).

The file is now read as KEY=value data instead of being sourced: no code in
it runs, the environment wins over it (flags > environment > file), relative
paths are relative to the file, and BETTERBENCH_API_KEY in it is refused.
Each run says which values came from the file. A missing value's error
points to the file and to init.

AGENTS.md: read the file for round 1 defaults, offer to save the confirmed
values after round 2. 11 new tests (47 in all).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EooZ9aTJE7srSQEYUqdQio
2026-11-01 20:41:55 +00:00
Pascal Linxweiler b925676ae2 Merge pull request #1 from aneinander/claude/wizardly-bell-x3yr7w
bench-standard 0.5.0: fix silent exits and signals, check declared va…
2026-11-01 21:38:48 +01:00
Claude 1c50b7b1fb Agents ask in three numbered rounds; a fill-in command for humans
AGENTS.md: round 1 (setup questions with defaults, before anything runs:
name, address, API key, how the server was started, model, GPUs, power
limit, anything unusual, install permission), round 2 (a table of every
declared value, where it came from, and the dry run's warnings), round 3
(before --full). The API key is never pasted into the chat.

README: the agent prompt asks for the rounds and the guide says what they
are; the quick start has a fill-in block, one commented variable per value,
that runs as is in dash and bash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EooZ9aTJE7srSQEYUqdQio
2026-11-01 20:35:01 +00:00
Claude b36805d1cb bench-standard 0.5.0: fix silent exits and signals, check declared values, hash the model
Fixes:
- A run on a machine without nvidia-smi/xpu-smi (every AMD box) exited
  silently with status 1 after BetterBench: the power sampler had already
  exited, so `kill` failed under set -e. No summary, no post_run, no done.
- Ctrl-C or kill didn't stop the script: the INT/TERM traps cleaned up and
  carried on, so a partial run could print a summary and `done:`. Now
  BetterBench is stopped at once and the folder is renamed .interrupted. The
  one-file bench.sh exec's the real script, so kill PID reaches it.
- Redaction turned --max-num-batched-tokens=8192 into <redacted>, corrupting
  the launch note. Env-style secrets and user:pass@ in URLs are still redacted.
- The --kv check was inverted when only -ctk is set: it warned on the
  correct q8_0/f16 and accepted q8_0.
- Negative flag values (-t -1) were parsed as flags.
- Model sizes in the HF cache counted symlinks, not the weights.
- A failed greedy check was recorded without any message.

Improvements:
- The served model is hashed (cached) and checked against the README's table
  (dev/models.txt), with a --quant cross-check.
- --spec, --thinking and vLLM --tp/--pp are checked against the launch
  command, like --kv; warnings name the value to declare.
- Weights are found through docker -v/--mount for any launch command, not
  only llama-swap's, and vLLM repo ids through the HF cache.
- AMD power and clock are sampled from amdgpu's hwmon sysfs files.
- Warnings are repeated after the summary and in the dry run, and saved in
  meta.json; the summary is saved as summary.txt.
- dev/test.sh: 36 end-to-end tests with a fake server and fake BetterBench,
  no GPU; CI runs them under dash and bash, plus shellcheck and build --check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EooZ9aTJE7srSQEYUqdQio
2026-11-01 20:05:40 +00:00
claudeandClaude Opus 5.5 b892e7b14d README: point the developing section to GitHub
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 13:43:18 +01:00
claudeandClaude Opus 5.5 dba3b6e801 Check --thinking against the greedy replies; one main for both hosts
- the greedy check records whether the replies hold reasoning (a
  reasoning field or think tags); the thinking note shows declared and
  observed, and bench.sh warns when --thinking off meets reasoning or
  on/low/medium/high meets none. Standard 0.4.1
- main now carries the GitHub links, so Gitea and GitHub have the same
  main; Gitea is the source and mirrors to GitHub on push

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 13:30:07 +01:00
claudeandClaude Opus 5.5 1f24db8285 README: agent prompt links to GitHub
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 13:20:11 +01:00
claude 7b3d986d47 Merge branch 'main' into github-main 2026-10-29 13:20:11 +01:00
claudeandClaude Opus 5.5 4eb4dc9c37 README: a copyable prompt to run the benchmark with a coding agent
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 13:20:10 +01:00
claudeandClaude Opus 5.5 c6d410e066 README: download bench.sh from GitHub
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 13:18:38 +01:00
claudeandClaude Opus 5.5 ad4a9018dc README: the full guide for humans; AGENTS.md links to it
The README now has the quick start, the models with hashes, how to find
the declared values, the options, what a run records, the result folder,
the split setup, troubleshooting and how to build. AGENTS.md keeps only
the agent procedure and links to the README's model table, so the
hashes live in one place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 13:00:11 +01:00
claudeandClaude Opus 5.5 1f4ea0b225 One-file bench.sh, sources in dev/, BetterBench 0.6.1 or newer
- bench.sh at the root is generated by dev/build.sh and holds everything;
  people download just that file. It unpacks its helpers to a temp dir;
  results and bench.local.env stay next to it
- collect-env and the power sampler are subcommands (bench.sh collect-env,
  bench.sh power); --help is the manual, --version prints the versions
- BetterBench: minimum 0.6.1 instead of exactly 0.6.1; the version is
  recorded in the run note. Standard bumped to 0.4.0
- each run folder gets a copy of config.json
- AGENTS.md carries the install, the models with hashes and the agent
  procedure; README is a pointer; DETAILS.md moved to dev/

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 12:58:02 +01:00
claudeandClaude Opus 5.5 9400c074bd Slim README, add AGENTS.md and DETAILS.md, pin the standard models
- README: install, run, send in three steps; SUBMIT.md folded in
- AGENTS.md: rules and a step-by-step procedure for coding agents,
  including how to derive the declared values from a launch command
- DETAILS.md: the reference that used to be in the README
- models.md: the four standard models (RedHatAI w4a16 9B/27B, unsloth
  Q4_K_M 9B / UD-Q4_K_M 27B) with SHA256s; directory hash now sorts
  with LC_ALL=C, as other locales gave a different hash

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 12:43:13 +01:00
claudeandClaude Opus 5.5 82b65558ac bench-standard 0.3.0: ReBAR, memory bandwidth, launch flags, greedy check, energy
- collect-env.sh: ReBAR from the GPU's largest BAR (same rule as
  GGZ14/BetterBench#4), weight size of the model, docker image ID,
  memory bandwidth measured with mem-bw.py (torch copy of random data
  inside the server's container; clpeak as fallback)
- bench.sh: notes for mem_bw (measured + declared), launch settings
  (llama.cpp b/ub/fa/ctk/ctv/..., vLLM batching/KV/compilation),
  env_flags and a temp-0 greedy check with output hash
- gpu-power.sh: power, energy counter and clock during the run;
  post-run energy per token, avg clock/watts and % of memory bandwidth
  go to meta.json and a terminal summary
- short output by default, --verbose for BetterBench's full stream;
  full output always in betterbench.log
- cross-check BetterBench#4's own env.gpu.pci against collect-env.sh

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 12:37:22 +01:00
claudeandClaude Opus 5.5 279de33646 Group notes by topic, detect PCIe and power limit, default to quick
- Notes are one per topic (gpu, pcie, power_limit, host, engine, parallel,
  precision, run) instead of 27 flat keys; nothing appears twice. The context
  size is left to BetterBench's own chip. meta.json keeps every raw value.
- collect-env.sh reads the PCIe slot link (through on-card switches) and
  reports unknown inside a VM; --pcie declares it there.
- --power-limit is optional: the GPU's limit is used when omitted.
- --special-notes adds free text for anything unusual about a run.
- Plain bench.sh is now the quick smoke run; --full is the publishable one.
- Standard bumped to 0.2.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 23:28:53 +01:00
claudeandClaude Opus 5.5 1ac7622005 Add bench-standard: standardized BetterBench group benchmark
Thin wrapper around BetterBench 0.6.1 (unmodified): bench.sh enforces the
pinned version and the mandatory server settings, collect-env.sh records
GPU/host/engine details, and every value lands in the results as a note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 23:04:07 +01:00