Dyno: the meta-harness that took SGLang to 4.01× stock

GPU kernels and inference engines are some of the hardest software to optimize, and each new GPU and model architecture brings its own constraints, and code tuned for one rarely carries over to the next.

The Muse Spark Open Kernel Challenge was built around this exact problem. The contest, run by Paradigm with Meta and Andromeda, challenges entrants to make Meta’s open mixture-of-experts model, Muse Spark Open, serve faster on H200 GPUs. The challenge has two main tracks:

  • Kernel track: speed up the GPU kernels behind the model’s heaviest operations, such as attention and the expert layers.
  • Serving track: write a patch to SGLang that speeds up the whole engine. The patch must be lossless (no lower precision, no approximation and no skipped work beyond what stock SGLang does), at most 400 KB, and fit to send upstream as a pull request.

For the serving track, I built Dyno, a meta-harness: a layer above coding agents such as Claude Code, Codex, Antigravity that gives them GPUs, judges their changes, and lets several models work together and learn from each other. On one eight-H200 node, Dyno started from a patch I had built by hand and got SGLang to serve Muse Spark Open at 4.01× the output per GPU of stock SGLang. These notes cover what I learned from over 2,000 agent-hours and more than 5,000 GPU-hours.

The score compares output per GPU with stock SGLang at 1, 4, 16 and 32 concurrent users, with each user getting matching decode speed. It is the geometric mean of the four ratios, so stock scores 1.00. The champion is the best patch so far, the one every new change is benchmarked against.

Part one · Three insights

00 · I was the bottleneck

For twelve days on the kernel track, I supervised Claude Code, Codex and Antigravity agents as they tried one kernel optimization after another. I spent those days trying to follow their explanations of megakernel designs and attention math, renting spot H200s on Nebius for them, and balancing the work between Opus and Codex around each account’s five-hour usage limit; Opus was implementing and Codex auditing. In total, I typed 564 prompts, averaging 47 a day, and looking back at them, nearly half were nudges such as “besides waiting on the GPUs, are you doing anything?” Fewer than one in five prompts gave the work a direction, and two in three reached an agent that had already stopped and was waiting for me.

Figure

Figure 1. One cell per prompt; quoted prompts are translated. An agent labelled each prompt, and a blind re-label agreed with it on 58 of 60.

My supervision did not scale, and I had too little attention left to judge the agents' work. I finished the kernel track 17th of about 2,000 entrants.

So I asked myself: if a benchmark, not a person, decides whether a change is better, why not let the agents run the whole loop and learn as they go? That question became Dyno, the meta-harness I built for the serving track. It has four decoupled blocks: the meta-harness itself, tokens, GPUs, and the coding harnesses with their model profiles. Inside Dyno, a swarm of agents with shared memory and clear roles did the work, from renting GPUs to design, code and audits. In two weeks, Dyno took the engine from my hand-built patch to 4.01× in the organizers’ scoring.

01 · Eight models: the model mattered less than I expected

In two weeks, Dyno ran 1,541 agent sessions, over 2,000 agent-hours in all, on seven models from five labs (eight if you count the last day, when we started using GPT-6.2). A supervisor agent, Claude Opus 5.5, picked the model for each session. To help it choose, each model has a profile with my ranking of it.

Figure

Figure 2. Speed work means GPU kernels, speculative decoding and host-side (CPU) overhead. Right: the score each model’s speed-work code added to the best patch per GPU-hour of benchmarking, against the average model in the same week. The lines show 95% intervals. “Too few” means an average model would have won less than once in that many GPU-hours. The Claude Opus 5.5 rows include some sessions on Claude Opus 5.

In the chart above, the hours show how often the supervisor picked each model. Per GPU-hour, Claude Opus 5.5 at xhigh and Claude Fable 5.2 added the most to the best patch, at 1.4× and 1.3× the average model. Opus 5.5 at max scored 0.8× and Gemini 4 Carbon 0.6×. Each score has a margin of error, and those margins overlap. So the true ranking could be different (see Figure 2). The bigger differences came from how the work was run. Figure 3 compares three choices: how hard a model thinks, how long one idea keeps getting new sessions, and how long a session runs.

Figure

Figure 3. All models. Each bar is a win rate. Left: the share of sessions that won, by how hard the model thought. Middle: the share of benchmark runs ruled better, by which session it was in a line of work. Right: the same, by how long the session ran.

  • Champion: the best patch so far, the one every new change is benchmarked against.
  • Win definition: a session counts as a win when its change is benchmarked and ruled better than the best patch so far.
  • Effort (left). Thinking harder did not yield better results. On speed work in the last week Opus 5.5 at max effort cost 2.5 times as much per session as at xhigh but produced no more wins.
  • Persistence (middle). Sticking with one idea paid off. A direction the supervisor kept handing to new sessions paid off on its fourth to ninth session, while the 121 directions that got only one session never produced a win.
  • Session length (right). The longest sessions won least often. The longest quarter, at a median of 2.7 hours, won on 5% of its benchmark runs, and the shortest, at about half an hour, on 17%. A session tends to stop once it wins, so long ones were usually stuck. They also cost more: each turn re-reads the whole conversation, so in Claude sessions, doubling the turns raised the cost per output token by about 25%.

Models also worked on each other’s code. Fable fixed two bugs in a version Carbon had built, and in 37 minutes GPT-6.2 traced a kernel hang that Fable couldn’t explain. Mistakes travelled the same way: when GPT-6.2 mislabeled a column of timings, the supervisor (Opus) built the next task on the wrong number until Fable caught the error 11 minutes in.

Regardless of the model that did the work, most tokens went into work that never paid off. 74% of all output tokens went to sessions that didn’t win or ship and only 6% went to sessions that won.

02 · Token-bound or GPU-bound?

I started out assuming that more agents and more tokens would make the engine faster but in practice the GPUs set the pace. Even with audits in the loop, the agents built far more than the GPUs could test: 5,357 versions of the patch by November 17.

A court is an eight-H200 node that benchmarks each candidate against the best patch so far, and Dyno ran two. Each returns at most 55 results a day, one every 26 minutes, and a median of 28 in practice, so only about one version in eight got a result. On top of that, seven verdicts in ten came back inconclusive, because late in the run a gain was worth only a few tenths of a percent, well inside the ±0.8% noise of a single comparison (at 95% confidence).

Dyno can run up to sixteen agents at once, more than twice what one court can keep up with, so even its two courts fall behind. So GPUs are the bottleneck, and a better model would not help here. The benchmark would still take 26 minutes and still have an error bar of ±0.8%.

Figure

Figure 4. A projection, with each node at its most efficient rate.

Part two · Inside Dyno, the meta-harness behind 4.01×

03 · Lego blocks for agents

Those twelve days on the kernel track showed me how to break the system into pieces that let agents work faster and more reliably. Dyno has four blocks, and like Lego, any one of them can be swapped without touching the others:

  • The meta-harness itself. This is the part that decides which changes ship, using the court and a hidden test set. It also holds the shared memory the agents coordinate through.
  • Tokens. Model tokens and each account’s quota are scarce too, so the meta-harness schedules and hands them out just as it does GPUs.
  • GPUs, the scarcest resource here. Renting and returning them across clouds is a job of its own. The harness rents spot H200s, sets them up and deletes them when they sit idle. Our agents used about 700 of 1,250 spot GPU-hours this way, without ever holding a cloud key. The court is the exception: it needs a machine that stays up.
  • Coding harnesses and model profiles. In theory a harness should support any model, but in practice most of them are built around a particular family of models, so the pairing matters. Each model’s profile holds information about it, such as my ranking of it, and the supervisor uses the profile to decide what work to give that model.
Figure

Figure 5. Three coding agents (Claude Code, Codex, Antigravity), plus Logits' own inference for the open models.

The meta-harness decides which changes ship, and it does so with two judges. A gain has to clear both before it becomes the new best patch:

  • The court benchmarks it against the best patch so far at 4, 16 and 32 concurrent users, three of the four levels the score uses.
  • A sealed held-out set, which the agents never see, then gives a pass or fail on every candidate the court rules better.

Both judges follow four rules, all written in code. Up to November 20, the best patch changed 24 more times to follow the rules or save space, and I set it by hand 3 times.

Figure

Figure 6. Simulated on the promotion code itself, a change with no effect is promoted 3 times in 100.

04 · One shared brain

An agent session forgets everything when it ends, and Dyno ran 1,541 of them. So the harness memory lives outside the sessions, specifically in three places:

  • The ledger: the memory every agent shares. It is a single append-only log, and agents never talk to each other directly, instead they leave notes in the ledger: 9,987 notes in total, 1,204 of them addressed to a particular agent.
  • The digest: what a session reads first. When a session starts, code writes it one page drawn from the ledger: the champion, the days left, the free GPUs, where the champion still loses time at each concurrency level, the recent verdicts, the court’s queue, and, from November 17, the notes addressed to that session.
  • Injected knowledge: what only people write. Agents read these files beside the ledger. They carry the rules and the kernel track’s lessons, so the loop would not repeat its mistakes.

The supervisor is a fresh session too, and its job is to hand out the work. Its digest adds two things: the open directions and how each model has done so far. With those, it decides three things:

  • which directions get a slot
  • what question each one should answer
  • which model works on it

Each of those decisions goes into the ledger. Like any session, the supervisor forgets everything when it ends, so it keeps a memo of up to 4,000 characters and rewrites it at the end of every round for the next one. Where the ledger is shared by every agent, the memo is the supervisor’s own working notes.

Figure

Figure 7. Agents write the ledger. Only people write the injected knowledge.

05 · The optimization plateau: big bets, small stacks

The gains got smaller as the runs went on. The median promoted speed gain fell from +1.95% in the first five days to +0.84% in the last five. Three things held progress back:

  • The patch was full. Within five days, only about a hundred bytes were left under the 400 KB cap, so any new code had to replace old code.
  • Agents quit hard directions early. In the first five days, 34 directions rebuilt a component. Of those, 26 ended on their agent’s words rather than on a measurement. None of the 86 court verdicts on rebuilds came back better.
  • The gains became too small for the court to see. A single court comparison is only accurate to ±0.8%, and in the last six days, 118 of 143 candidates came back inconclusive.
Figure

Figure 8. Each branch is a direction; the trunk is a smoothed trend of the champion's speed against stock.

The first two problems needed the same fix: a way to get the supervisor to start structural work that takes days, and to keep it alive until a measurement said whether it worked. So I added bets.

  • A bet is a contract that stays open across sessions. It names a target, the code in the best patch that it will replace, and milestones. Each milestone is a measured number that decides whether the work continues or stops. No worker can drop a bet, and the supervisor can close one only after a benchmark has measured it.

In the last eight days, the supervisor opened 101 bets, and three in four never passed a milestone. The ones that did pay off were the kind of work bets exist for: several steps over several days. The clearest case came near the end, with the patch still full. First, five changes cut 15.8 KB, and three of them came from bets to shrink code. The next day, four speculative-decoding changes used that room for a +3.3% gain, and three of those also came from bets. Making room and then using it brought about half of all the gain promoted in the last six days.

Figure

Figure 9. Two days near the end: one to make room, one to spend it.

The third problem, the court’s noise, needed a different fix. That noise comes from the engine itself. Every comparison boots the engine fresh, and floating-point rounding differs from one boot to the next, so the model sometimes picks a different token. Between two boots of the same build, only 34% to 58% of replies come out the same. Different text changes the speed because of speculative decoding: it changes how many of the draft model’s tokens the full model accepts. To fix this problem I added stacks.

  • Stacks are how small gains get past that noise. A stack bundles several small changes into one candidate, so the court measures their combined gain instead of each one alone. In simulation, a change that makes the engine 0.3% faster gets promoted only 25% of the time when the court tests it alone. But put three such changes in one stack, and the stack gets promoted about 70% of the time. Note that this assumes that the three together keep 75% of the gain they would add up to separately.
Figure

Figure 10. Simulated on the meta-harness's own promotion code.

06 · Agents exploit whatever they can see

On the kernel track, my agents could see the organizers’ benchmark kit, and they found a way to exploit every part of it:

  • The test inputs gave away each sequence’s length. The page table records where a sequence’s cache sits in memory. In the test inputs, each table was only as wide as its sequence needed, so the width gave away the sequence’s length. A kernel that read the length from the width ran 1% to 3% faster on the benchmark. But a realistic table is always full width, and on that table the same kernel ran 10% to 16% slower.
  • The benchmark used the same length on every call. So an agent proposed preparing each call ahead of time, assuming it had the same length as the last one, for +1.2% to +1.8%.
  • The checker’s tolerances let some work be skipped. On four separate days, agents estimated what they could gain by skipping work the checker wouldn’t catch: 2.5% to 3%.
  • The benchmark didn’t time the setup step. One agent moved real work into setup. Its kernel scored 1.39× locally, against 1.13× for the honest build, which left that work in the timed part.

If an agent can see how it is scored, it will exploit that. So in Dyno, the judges stay out of the agents’ sight and out of their reach. A sandbox keeps agents away from both judges. They can’t edit the court: they hand it a commit and get a verdict back. They can’t read the held-out set either. It stays sealed on the court’s node and tells them only pass or fail and which check failed, never a score.

The sandbox moved the problem rather than removing it. Agents started exploiting what they could still read: the court’s scripts and the open set of conversations the court replays:

  • Making follow-up requests wait. One change scored +4.85% this way, and a check written in advance stopped it.
  • Exploiting the judges’ setup. Other changes got past the court this way. Agents flagged 21 of them later, and one had been champion for an hour and a half.

The sandbox alone was not enough, so my job became owning what the agents can’t change. On the kernel track, I typed 564 prompts to keep agents moving. In Dyno, I maintain four things instead: the court, the held-out set, the injected knowledge and the profiles.

Figure

Figure 11. The agents can’t edit the court or read the held-out set.

In two weeks, 1,541 agent sessions and more than 5,000 GPU-hours took SGLang from my hand-built patch to 4.01×. The model mattered less than I expected, all the models came out close, and thinking harder did not pay. What mattered was how the work was run and how fast it could be judged. Lines of work or directions paid off once they reached their fourth session, bets kept hard work alive across days, and the courts, at most 55 verdicts a day each and ±0.8% per verdict, set the pace. When the result can be checked automatically, I now think the person’s job is to build the setup the agents work in: the judge, the memory, and the supply of GPUs and tokens. Then the person should step back and let the agents do the work. Once that setup exists, the limit is no longer intelligence. It is measurement.

Zhimao Liu

References