Biome
A benchmark disguised as a strategy game: any open or cloud model plays a procedurally generated ecosystem through one universal format, the simulation grades every move, and the best moves train the next model. A local 14B trained that way reached #1 of 44.
Solo — game design, simulation, AI, build
- Models rated on the ladder
- 44
- Rated matches
- 378
- Turns captured and graded
- 15,168
- Gold moves banked
- 1,685
- Trained 14B, peak rank
- #1 of 44
- Its stock base
- #36 of 44
01 / problem
The problem
Benchmarks tell you how a model does on a fixed test set. I wanted to know something they can't: how open models behave when they have to make a sequence of spatial, strategic decisions under a clock, on a board they have never seen, and then live with the consequences.
So the game was never the point. Biome is a challenge built for models: a custom strategy game with procedurally generated maps, so nothing can be memorised, described to every model in one universal format. Each turn probes things that matter in real agent work: returning a structured action that a strict engine will execute, keeping track of time across rounds, reading map geometry, and weighing several layers of metadata at once.
And because a simulation decides every outcome, rather than another model's opinion, the same games could grade themselves. The best moves could become training data, and a fine-tuned model could be put back on the same ladder to see whether it actually got better.
02 / build
What I built
A browser game with a small Python server, no build step and no SDKs. Local weights through Ollama, Ollama's cloud models and AWS Bedrock all play on one ladder through the same format.
- A harness, not a game loop. One prompt contract for every provider: rules generated from the game's own config, a fog-honest board, and a JSON action that a strict engine validates. A bad answer never stalls a match. It is caught, classified and recorded.
- Probes you can vary. Four board encodings, from a nine-region digest to every coordinate on the map, share one registry, so a match can isolate how the board is described. Each turn also carries time (round and phase, the model's own plan from last turn) and layered metadata: terrain, soil, census and a food-web health read.
- The simulation is the judge. Six species across three trophic tiers on a hex map, with energy that enters through the soil and returns through decay. Every turn is scored on two engine signals, and the matches turn into gold, silver and bronze moves with no human labelling.
- A training loop. Gold moves become a fine-tuning dataset. LoRA on one RTX 5090, export to GGUF, register with Ollama, and the student takes its seat on the ladder.
- A ladder and a broadcast. ELO in SQLite, tournaments in six formats, per-model dossiers, and a live spectator view fed by frames the engine emits, runnable headless on a schedule.
- A face for every model. Each model on the ladder gets a creature, colour and size tier worked out from its name, and a ComfyUI-generated portrait with animations, including a "thinking" loop that plays while the model reasons.
The deep dive below goes through each part.
03 / signal
What it shows
Evaluation design: an objective judge, controlled variables, and a ladder as the metric. Reliability gets measured as a result in its own right, not filtered out as noise. Fairness details that are easy to miss are enforced: fog of war in the prompt itself, shuffled simulation order, a level clock for every model.
It is also a complete loop from data to a better model, and the loop has worked once. A Qwen2.5 14B fine-tuned on 953 engine-graded moves climbed to #1 of 44 on the ladder, ahead of cloud models many times its size, while its stock base sat at #36. That is one generation with modest sample sizes, and I say so in the deep dive. The harness is built to keep going: models trained on gold moves are already teachers in the next dataset.
Gallery 1 / 7
Match, ladder, training and vision lab in one pass (sped up, no sound).
06 / deep dive
How the harness works
Biome is one loop: brief a model, take its move, let the simulation judge it, rank the result, and turn the best judgements into the next model. These chapters go through it in order, with the numbers from the ladder and the 15,168 turns it captured.
01
One loop, three lanes
The top lane is play. A seed generates a fresh map, a prompt builder briefs the model, and the model returns a move. The middle lane is judgement. The simulation resolves the round, the ELO ladder records the result, and a broadcast streams it to spectators. The bottom lane is learning. Medals, a dataset, a LoRA fine-tune and a GGUF export bring a new contender back onto the ladder.
Every arrow is a contract I could test on its own. That is what let one person build, in about three weeks, something that runs unattended.
02
One format for every model
Every model, from a 0.5B on my GPU to a 671B in someone else's cloud, gets the same brief and owes the same answer.
- The brief. A system prompt of about 1,500 tokens covering the goal, scoring, species, survival and how to treat an opponent. Every number in it is generated from the game's config, so rebalancing the game rebriefs the models automatically, and the rules a model reads can never drift from the rules the engine enforces.
- The answer. Strict JSON:
reasoning,actionsandbanter. An action places a species by exact coordinate, by a coarse map bucket the engine snaps to the best legal hex, or by the letter of a pre-vetted candidate. The engine checks every action against water, the two-plants-per-cell cap, action points and species, and records each rejection with a reason. - The wire. Everything speaks Ollama's chat shape. Bedrock calls go through a small server-side bridge that signs requests by hand with SigV4 and translates the response back into that shape, so one parser and one fallback path judge every vendor.
It is a structured action protocol rather than native function-calling, on purpose. The same contract works on models that have no tool-calling at all, which is most of the open models worth testing. The parser is deliberately forgiving: direct parse, then stripped code fences, then a bounded right-to-left brace scan. That last bound exists because cloud reasoning models once emitted tens of thousands of braces in their chain of thought and froze the tab. What the parser can't rescue becomes a recorded fallback, never a stall.
03
Time, geometry and layers
Each turn is a small test of skills that real agent work needs.
- Time. The header says
Round 4/10, a phase block says early, mid or late and how many rounds are left, and short matches get a warning to compress the plan. Each call is stateless, so the prompt carries memory: what the model deployed last turn, its own stated plan quoted back to it, what it declared to its opponent, and both sides' biomass changes since. It has to face its own commitments. - Geometry. The board is a flat-top hex grid, but models aren't asked to do hex arithmetic. Depending on the encoding they see compass regions, a character grid, layered grids or raw coordinates, and the engine handles adjacency and legality.
- Layers. Terrain everywhere; soil nutrients in the detailed views; a census of each side by tier and region; and a trophic read of the food web (building, balanced, overgrazed, top-heavy, collapsing) with the levers that would fix it. That read comes from the same function that drives the health orb a human player sees, so models and people judge the ecosystem by one truth.
- Pressure. A matchup block gives each model its opponent's rank, rating and record, and asks it to sound smug if it's ahead and hungry if it isn't. Neither model sees the other's lines; the taunts are shaped by the standings.
Fog of war is a correctness invariant, not a UI detail. Neither model may see where its opponent placed organisms this round, in any encoding, including the one that lists every coordinate. Every prompt builder enforces it, a measurement tool asserts it, and the training data stores only the fog-honest prompt, so a trained model never learns from information it won't have when it plays.
04
Four ways to see one board
The map block is the one variable I wanted to control. Four strategies share a registry and change only how the board is described:
| Encoding | What the model sees | Full prompt |
|---|---|---|
| Mediated | A nine-region digest and a menu of scored candidate moves | ~2,150 tokens |
| ASCII | A character grid of the board with candidate letters on it | ~2,240 tokens |
| ASCII extended | Terrain, own and enemy layers in one frame; no menu, the model picks a bucket | ~2,250 tokens |
| Raw | Every land cell with coordinates, terrain, nutrients and occupants | 8k to 27k tokens |
Raw looks like the honest baseline, full information with no help, and it is the one that breaks. On a large map it wants a 36k context, more than any tier's window, and across the captured turns it failed to produce a usable move 39.6% of the time against 10.0% for mediated. More information made models play worse. The models using each encoding weren't the same, so treat that as a strong signal rather than a controlled result.
The Vision Lab separates perception from decision. Paint a board, then ask several models, through several encodings, either to read it (answer a question, citing cells that light up on the map) or to play it (take a real turn against the real engine).
05
Reliability is a result
Most harnesses throw away a turn that fails. Biome keeps it, classifies it, and counts it.
Of 15,168 captured turns, 3,134 (20.7%) produced no usable move: 1,739 malformed answers, 1,250 timeouts and 145 offline errors. Every model gets the same flat 30-second clock after a warm-up, which keeps the field level, so the metric is "a valid move, on time".
Size didn't predict it. Some of the largest cloud models failed most often: the worst missed 83% of its turns, and three more missed over half. A 7.8B local model missed 1%, and Gemma 2 9B and one of the GLM cloud models both stayed under 2%. For anyone choosing an open model for agent work, that is a more useful number than most leaderboards publish.
Every fallback is still played, as a deterministic grass-planting move flagged as degraded, so a weak answer costs the player the turn but never stops the match. Fallbacks can't earn a medal.
06
The simulation is the judge
After both players act, the ecosystem runs for 20 steps: plants spread, grazers and browsers feed and breed, predators hunt, and anything that dies returns its energy to the soil. Iteration order is shuffled every step so no one gains from placement order. The score is biomass multiplied by diversity and a full-food-chain bonus.
That simulation gives two objective signals per player per round, recorded live:
marginGrew: the player's lead over its opponent grew this round.trophicImproved: its food web got healthier, risk didn't rise, and it isn't collapsing.
The medal follows from those two and the match result. Gold is both signals on the winning side, silver both signals on the losing side, and bronze one signal. One rule lives in the engine and the exporter mirrors it, so the tally on screen and the dataset can't disagree.
No human labels and no reward model. The judge is free, objective and repeatable, and it has graded 1,685 gold, 1,070 silver and 5,441 bronze moves. The engine also tracks events per round (tier wipe-outs, completed food chains, predation surges, starvation) and turns the most dramatic into the broadcast's recap.
07
From matches to models
Every AI turn is already a clean training pair: the fog-honest prompt the model saw and the exact JSON it returned. Prompts are deterministic, so the input at training time matches the input at play time exactly.
- Curate. The Training Lab builds a dataset by tier: champion (gold only), contender (adding silver) or player (adding bronze), with manual keep and reject on top. Each export is fingerprinted, so two runs on identical data can be proven identical.
- Train. LoRA with Unsloth (rank 16, two epochs) on one RTX 5090, with loss on the move only and the prompt masked out, using each base model's own chat template.
- Ship. Merge, export a q4 GGUF,
ollama create, and the student is on the ladder.
Six fine-tunes reached the ladder, from a 0.5B that trained in three minutes into a 397 MB file up to a 32B. One didn't: a Gemma 2 run finished with a loss of 5.6 and a 6 MB GGUF that silently dropped its weights, and it missed every turn it played. That failure is why the pipeline now gates on loss, on file size and on a smoke test that unregisters a dead model before it reaches the ladder.
08
The result, and what it doesn’t prove yet
The 14B student, biome-qwen2.5-14b, was trained on the champion tier: 953 gold moves made by 40 different models across 391 maps. It lost its first three games, then won 19 of the next 23 and reached #1 of 44 at 1169 on 17 June. Along the way it beat cloud models including GLM-5, Gemma 4 31B, Cogito 671B, DeepSeek V3.1 671B and Qwen 3.5 397B. Its stock base, the same weights without the training, sits at #36.
Across the ladder, the six fine-tunes average a higher rating than both the cloud models and the untrained local ones.
What it doesn't prove yet, plainly:
- Small samples. Ratings rest on between 3 and 34 games per model, and the base and the student mostly played in different windows. A dedicated student-versus-base gauntlet is built into the tooling but hasn't been run.
- One generation. The loop is designed to repeat, with trained models' gold moves already feeding the next dataset, but no lineage has reached a second trained version.
- Confounds I know about. Each model's default encoding depends on its size, and the simulation's randomness isn't seeded, so a seed replays the board but not the biology.
Those are the next experiments, and the harness was built to run them.
09
A broadcast, not a log
Watching the models is part of evaluating them, so Biome has a spectator view: versus cards with ELO and odds, the live board, the bracket, banter, and a champion ceremony.
The first version froze, because the engine and the view shared one thread and the board was screenshotted and encoded every couple of seconds. Before rewriting anything I audited the 5,000-line game file method by method: about two thirds view, an eighth engine, and the coupling concentrated in nine methods and six places where the engine waited on the screen. Then I rebuilt it in stages:
- The engine emits; views subscribe. Board frames go out at match start, every turn and every simulation step, serialised with the same fog rule as the renderer.
- Terrain once. Terrain goes out once per match and the server splices it back in, so a spectator who joins late still gets the full board while each push carries only occupied cells.
- The viewer sets the pace. A frame player on the spectator's own clock drops stale frames, merges bursts and resyncs if it falls behind, so a slow viewer can never slow the game.
- Headless and scheduled. A runner launches headless Chromium and drives the real, unmodified game over raw DevTools protocol, with no dependencies. A scheduler queues tournaments by interval or time of day and never starts one while a training run holds the GPU.
- Safe to expose. Outside the local network the server is read-only: an exact-match allowlist, no writes, and proxy headers deliberately ignored.
10
A face for every model
A ladder of 44 model names is a spreadsheet. A ladder of creatures is something people will watch.
The identity system never lists individual models. It recognises 25 families from the name, with a catch-all for the rest (Qwen is a fox, Llama a stag, GLM a heron, DeepSeek an anglerfish) and a size tier from the parameter count, so a model released tomorrow gets a stable creature, colour and form with no code change. Small models are lean and young, cloud models are crowned and celestial. Fine-tuned students get mythic creatures of their own, with lineage back to their base family.
The art is generated on my own GPU through ComfyUI: a Qwen-Image portrait with a style LoRA, then six Wan 2.2 image-to-video clips per creature (intro, idle, thinking, victory, defeat, champion). The thinking loop plays only while that model is actually deciding, so latency becomes something you can see. In the avatar lab, the top-rated model on the ladder can act as art director: give it a note, and it proposes a new name, motif and six motion briefs, then renders a portrait for approval.
Generating video has a cost, and the system manages it: during a tournament the avatars drop to stills, after crash forensics pointed at concurrent video decoding, and come back for the champion's moment.
