The Aither Swarm: One Small Model per Runner, One Big Model Deciding
Sixty-five small models on sixty-five hosted runners, one model each, finished a 65-item benchmark in 15
minutes 3 seconds. That is our bench-matrix run 43508433641 of November 13: 65 jobs,
each serving Bonsai 2 4B on a GitHub-hosted runner's CPU, no GPU anywhere (the run sits in
our private monorepo; the same fan-out is written up, with its workflow, in
the benchmark post).
The fan-out speed was already measured. What is new today is an agent on every runner: a
loop with read-only tools and a step budget, in a public workflow,
bonsai-swarm.yml
in Aitherium/awrun. Twelve of those agents did 49 minutes of agent-loop work in 11 minutes
5 seconds (run 43759256460).
We checked every answer by hand against the repositories: 9 of 12 were correct. Read it,
rerun it, check our numbers.
The whole idea fits in one sentence. A platform agent cuts a job into narrow tasks, every task gets its own runner and its own small model, and a larger model reads the merged report and decides what to do. We love this thing.
Separately, our record of November 14 reads "64 agents in 15 minutes on GitHub runners on awnix"; that swarm ran on our awnix hosts with its inference routed through MicroScheduler, our own scheduler, which is a different configuration from the Bonsai-on-CPU runs above, and no run log is linked to it yet.
Why it is fast
A small model on a CPU is slow: these runners generated between 5.78 and 13.99 tokens per second, 7.68 on average. That does not matter, because nothing runs in a row. The twelve agent loops add up to 2,965.2 seconds, a little over 49 minutes. The run took 665 seconds, 11 minutes 5 seconds, because wall time is the slowest single task plus setup, not the sum. GitHub-hosted runners cost nothing for a public repository, so the fan-out is free.
A task list becomes a job matrix
The input is JSON. Two of the twelve tasks, from the run's swarm-tasks artifact:
{"tasks": [
{"id": "awgit-version",
"repo": "Aitherium/awgit",
"goal": "Read the file pyproject.toml at the repository root. What is the value of `version` in the [project] table? Answer with the version only.",
"check": "\\b1\\.14\\.1\\b",
"max_steps": 6},
{"id": "wesyn-issue-triage",
"repo": "Aitherium/wesyn",
"fetch": ["issues"],
"goal": "Read .swarm/issues.md. Produce a triage table of the open issues: number | one-line summary | type (bug, feature, question, chore) | priority (high, medium, low). Use only what the file says.",
"max_steps": 6}
]}
A plan job validates the list and prints the ids as a JSON array. That array is the matrix:
task:
needs: plan
runs-on: ubuntu-latest
timeout-minutes: 45
strategy:
fail-fast: false
max-parallel: 20
matrix:
id: ${{ fromJSON(needs.plan.outputs.ids) }}
One id, one job, one runner. fail-fast: false means one bad task never cancels the others.
What each runner does
- Clone. It clones the one repository its task names. If the task asks for
fetch, the open issues or merged pull requests are written into.swarm/as Markdown first, because a model with file tools cannot call an API. - Verify. It downloads a Bonsai 2 GGUF (2B, 4B or 9B) at a pinned revision, and a pinned release of PrismML's llama.cpp fork. Both are checked against a sha256 written in the workflow. A mismatch fails the job.
- Serve.
llama-serverstarts on127.0.0.1with every core and a 16,384-token context. - Loop.
awrun/swarm.py, standard library only, runs the agent. The model gets the task and a listing of the repository root. Every reply must be one JSON object: a tool call (list_dir,read_file,grep) or{"final": "<answer>"}. Tool output goes back as an observation, cut at 4,000 characters. A reply that is not JSON costs a step. The budget is 12 turns by default and 20 at most, 2,048 tokens per turn. - Report. It writes one result file: the answer, a verdict, the trace of every step, and tokens per second as the model server measured it.
How an answer is graded
| verdict | meaning |
|---|---|
PASS / FAIL | the answer was matched against the task's check regex |
ANSWERED | an answer with no check; nobody has verified it |
UNGROUNDED | the model answered without one successful tool call, so it is never graded |
BUDGET_EXHAUSTED | no usable answer inside the step budget |
ERROR | the model server failed; the task still reports |
The grader got stricter this afternoon, and the first run is why. That run was two tasks on
the 2B model, dispatch to report in 3 minutes 5 seconds (run 43746857617). The pipeline
worked end to end. The grading did not: a version-shaped regex gave PASS to a version the
model had not read. So UNGROUNDED now exists, and a check loose enough to match a
placeholder such as 0.0.0 is rejected before dispatch. Pin the value you expect.
The combine job merges every result into swarm-report.json and a Markdown table, and
names any task that reported nothing. The code comment says why: "nine answers out of ten
read exactly like ten out of ten."
The run you can check
Bonsai 2 4B, twelve tasks, nine public repositories, 6,252 tokens written.
| task | verdict | turns | tokens/s | loop |
|---|---|---|---|---|
awgit-version | PASS | 2 | 6.5 | 131.0 s |
awdesk-version | PASS | 2 | 13.99 | 95.2 s |
awdesk-package-name | PASS | 2 | 5.78 | 236.6 s |
awgit-console-script | PASS | 2 | 6.26 | 139.1 s |
awrelay-console-script | PASS | 2 | 13.82 | 64.8 s |
awdk-console-scripts | PASS | 4 | 5.92 | 502.5 s |
awtunnel-python-floor | PASS | 3 | 7.84 | 192.9 s |
awrun-license-agrees | FAIL | 3 | 6.45 | 161.6 s |
wesyn-issue-triage | ANSWERED | 2 | 6.09 | 169.2 s |
awdesk-changelog-draft | ANSWERED | 2 | 7.57 | 368.3 s |
awrtifact-readme-links | ANSWERED | 2 | 6.03 | 294.3 s |
awskills-readme-commands | ANSWERED | 7 | 5.93 | 609.7 s |
Every row is from swarm-report.json. The grader passed 7 of the 8 checked answers. Then a
second agent on our side checked all twelve by hand against the repositories: 9 of 12 are
correct. The seven PASS answers are all true. The FAIL answered agree where the task
asked for Apache-2.0: agree; the fact was right and the form was not, and a strict check
says so. Of the four ANSWERED drafts, which no check grades, two were right and two were
wrong. That is the case for the larger model on top.
What comes back, and who decides
The jobs hold no secret and never call back. The caller pulls the swarm-report artifact
with its own GitHub login. The platform agent that wrote the task list reads it, on a larger
model, and decides what happens next. The small models never do. awrun swarm submit, which
dispatches, waits and collects in one command, is rolling out with the next awrun release.
What bounds it
- Read-only tools, confined to the clone. No shell, no write, no tool that takes a URL.
Paths outside the clone are rejected and no tool follows a symlink. The
planjob runsswarm.py --self-teston every run to prove it. - No secrets.
permissions: contents: read. The run's read-only token is used in the clone step and is not present where the model runs. - Pinned and verified. Every action is pinned to a commit SHA. Model and runtime are sha256-checked.
- A hard cap. 32 tasks per dispatch, 20 in parallel, 45 minutes per job. A bigger job is several dispatches.
- An owner allowlist that fails closed. A task may only name a repository of the owner the workflow runs under. With no owner named, no repository is allowed.
Verify it, then run your own
gh run view 43759256460 -R Aitherium/awrun
gh run download 43759256460 -R Aitherium/awrun -n swarm-report
To run a swarm over your own repositories, call the workflow from one of them:
jobs:
swarm:
uses: Aitherium/awrun/.github/workflows/bonsai-swarm.yml@main
with:
tasks_json: ${{ vars.SWARM_TASKS }}
model_size: 4B
What it is not
A small model on a CPU is slow per token and narrow. One of them is not an agent you hand a job to. Dozens of them at once, each holding one question it can answer by reading files, with a stronger model judging what comes back, is a different machine. It needs no GPU and none of our hardware. That is what we are excited about.
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.