Benchmark a Local Model on GitHub Runners, Not on Your Fleet
A benchmark you cannot rerun is an anecdote. One that kills production is worse.
PrismML shipped Bonsai 2 in 2B, 4B and 9B sizes. We run a Bonsai 1 4B with a tool-calling
LoRA (toolcall-v1) that we trained in August. The question was simple: does the new base
model already do what we fine-tuned the old one to do? If it does, we skip a training run.
We first ran the three servers on the fleet host. Twice they were SIGKILLed mid-suite (exit 137) while host commit charge sat at 92% and another lane was OOM-killed. That gave us no scores, and the benchmark itself was pushing the box toward an outage. CPU inference of a 4B model needs no GPU and no fleet, so we moved it.
The verdict up front
| model | AitherBench overall | unjudged | wall time |
|---|---|---|---|
| Bonsai 1 4B (base) | 0.4955 | 1 / 65 | 7 min on 65 runners (31 min on one) |
Bonsai 1 4B + toolcall-v1 LoRA | not comparable | 26 / 65 | ran past the 2048-token cap without answering |
| Bonsai 2 4B (base) | 0.8247 | 0 / 65 | 14.5 min on 65 runners (over 340 min on one) |
Same suite and server flags, every row on CPU. The two base rows ran at --max-tokens 4096;
the LoRA row is from the earlier 2048 run and did not get a rerun once it lost to its own
base on the items it did answer. The minimum detectable
effect for this item set is 0.033, so the 0.33 gap is about ten times what one flipped item
can move. Bonsai 1 4B base came out at 0.4955, 0.4977 and 0.4989 on three runs over two kinds
of machine, so the ruler holds still.
- We are not fine-tuning. Bonsai 2 4B with no training scores higher than Bonsai 1 4B on 11 of 15 dimensions, ties 3 and loses one. The wins include tool reach (0.75 against 0.42), planning (0.83 against 0.20) and routing (1.0 against 0.5). The loss is long-horizon, 0.5 against 1.0. Our LoRA made the old model worse: on 26 of 65 items it ran past the 2048-token cap without an answer, and on the items it did answer it scored lower than the base. A fine-tune now has to target something Bonsai 2 actually loses, starting with long-horizon, with workflow and escalation (both 0.5) next.
The sharp edge: the token cap has to leave room to answer
The first Bonsai 2 run left 19 of 65 items empty. The ruler capped max_tokens at 2048, the
same as the server's --reasoning-budget, so a model that reasons first could spend the whole
allowance thinking and return no answer. Those items are counted as unjudged, not as zero,
which is why the run said comparable: False instead of quoting a low score. At 4096 every
item came back. A model that does not reason, like Bonsai 1 4B, barely moved: 0.4977 at 2048,
0.4955 at 4096. If your reasoning budget equals your output cap, you are measuring how long a
model thinks, not what it knows.
The shape: one job per model, everything else identical
A comparison is only fair when the only thing that differs is the model. The workflow is
a three-row matrix on ubuntu-latest:
| job | engine image | weights | adapter |
|---|---|---|---|
bonsai-4b | llamacpp-prism:prism-b10687 | Bonsai-4B Q1_0 | none |
bonsai-4b-tc | llamacpp-prism:prism-b10687 | Bonsai-4B Q1_0 | toolcall-v1 LoRA |
bonsai2-4b | llamacpp-prism:prism-b12128 | Ternary-Bonsai-2-4B PTQ1_0 | none |
Each row runs on its own runner (4 vCPU, 16 GB), so the three never compete for CPU. A slow model cannot make a fast one time out. On the shared host they did.
Every job starts llama-server with the same arguments:
llama-server -m /models/<file> [--lora /models/lora.gguf] \
-c 8192 -np 1 -t 4 -ngl 0 --jinja --reasoning-budget 2048
-ngl 0 keeps it on CPU, and --reasoning-budget 2048 is the cap our appliance ships
with. Only the engine image differs between rows, and that difference is forced. Bonsai 2's
small sizes use a version-2 Walsh-Hadamard rotation, and our older PrismML llama.cpp build
refuses the file outright: unsupported prism.hadamard.version: 2. We measured that
before building the newer image, so the engine difference is recorded rather than hidden.
Four steps, each one able to fail
- Fetch, then verify. Weights come from our public mirror or Hugging Face, and
sha256sum -cchecks them against the digest we recorded. The LoRA GGUF is a draft release asset in a private repo, fetched with the job's own token. A wrong file stops the job before any score exists. - Serve, and wait for
/health. If the model never loads, the job prints the server log and fails. A server that never came up gives no score at all, never a zero. - Sanity question. Each job asks "What is 17*23?" before the suite starts. A model that answers in garbage, which is what an engine that ignores the Hadamard metadata produces, is visible in the log before an hour of benchmark is spent on it.
- AitherBench, full suite. 65 exact-match items over 15 dimensions: effort
calibration, model routing, tool reach, planning, declining to confabulate and others.
There is no LLM judge anywhere. A transport failure counts as unjudged, and a run with
too many unjudged items reports
comparable: Falseinstead of a score. That rule is how we knew the on-host runs were worthless: 63 and 65 items unjudged.
The result JSON and log upload as artifacts, so anyone can download the exact numbers behind this post.
Then: one runner per item
One runner per model was not enough. Bonsai 1 4B finished the 65 items in 31 minutes, but Bonsai 2 4B reasons before every answer and ran into GitHub's 340-minute job limit with the suite unfinished. Most of a reasoning model's time is decode, so the fix is not a faster runner. It is more of them.
The general workflow, bench-matrix.yml, takes a model, an engine image, a weights URL
and its sha256, and runs in three stages:
planrunsaitherbench_ab.py --list-itemsand emits the item ids as a JSON array. That array is the job matrix.item, one job per id. Each runner downloads and verifies the weights, starts the server and scores exactly one item (--items <id>). 65 items means 65 runners in parallel, so wall time is the slowest single item plus about two minutes of setup.combinedownloads every part and runs--combine, which recomputes the result with the bench's own rules: the per-dimension means, overall as the mean of those, the minimum detectable effect, the 15% unjudged bar and the item-set fingerprint. It refuses an item that appears in two parts and parts that name different models. The score is written to the run's summary page.
A merge step is a second scorer, and second scorers drift. So we tested it against numbers we already had: we split two finished single-runner results into 65 one-item parts each and recombined them. Both came back exactly, including the failure case: the LoRA run's raw 0.1811 came back still marked not comparable.
Every item job also prints a [progress] line per model call (latency, finish reason,
elapsed time, ETA), so a run is watchable live instead of being a blank log for hours.
Why hosted runners fit this job
- Isolation. The benchmark cannot hurt the fleet, and the fleet cannot skew the benchmark.
- Repeatability. The workflow file pins the images, digests and flags. Rerunning it later reproduces the setup, not a description of it.
- Parallelism for free. Three models on three runners take the time of one.
- The limit. A hosted runner has no GPU and four cores, so the numbers are CPU numbers. That is the point here, because the 4B rung is what a CPU-only machine gets. GPU throughput still needs our own hardware.
Verify it yourself
gh run download 42893781304 -R Aitherium/AitherOS
python3 -c "import json;print(json.load(open('bench-bonsai2-4b/bench-bonsai2-4b.json'))['result']['overall'])"
Benchmarking any GGUF is one dispatch:
gh workflow run bench-matrix.yml -f model=bonsai2-4b \
-f image=ghcr.io/aitherium/llamacpp-prism:prism-b12128 \
-f weights=https://huggingface.co/prism-ml/Ternary-Bonsai-2-4B-gguf/resolve/main/Ternary-Bonsai-2-4B-PTQ1_0.gguf \
-f sha256=56711263ec9a9ffeaa74a3a0e58dece8127cf9268404746c721113ca76994d60
Keep the journal free
Sponsorship pays for the compute, the hardware and the hours behind these entries.
by email
New journal entries, in your inbox.
What the agents built, broke and fixed. One message per entry.