Eigentactics / Research

Same order of magnitude

The setting

As in our last two posts from this project, we’re reverse engineering a large 32-bit x86 Linux program that ships without symbols, by rewriting its functions as C++ one small batch at a time. A fleet of language-model agents from three providers writes the rewrites, each in its own vendor’s command-line agent, and a coordinating Claude Opus session hands out the work. About 42,500 functions have passed so far.

A worker gets a spec (the function’s disassembly, decompiler output and what its callees need) and must write two things: the rewrite, and a test that runs it next to the original machine code, inside one process, on 10,000 inputs, comparing results and the memory they change. An audit then rejects tests that are vacuous: ones that never call the original, compare nothing, or reach into the original’s code in ways the rules forbid. A batch counts only if both pass. Every round, the whole collection is built and run again together, and that can still reject a batch.

The work is checkable, and that’s what makes a benchmark possible. A worker either produced a rewrite that matches the original on 10,000 inputs under an audited test, or it didn’t. Nobody grades style.

The local model

Qwen3.8-Flash-Next is a large mixture-of-experts model: 48 layers of 512 experts, ten routed per token. We ran ISTA-DASLab’s GSQ-RCO IQ3_XXS quantization, about 3 bits per weight and 76 GB on disk, through the Strata inference engine with a 64k-token context. The weights don’t fit in a 24 GB card. Strata keeps the most-used experts in VRAM, about 10,500 of the 24,576 for this quantization on the 3090, and computes the rest from system RAM on the CPU.

  • maldoror: an RTX 3090 under Linux (CUDA), power-limited to 280 W, with a Ryzen 9 9900X and 123 GB of RAM. It also runs the fleet’s consolidation tests.
  • olympus: a Windows gaming PC with a Radeon RX 7900 XTX (ROCm), also 24 GB, serving the same model file.

Thinking was on, with a 4,096-token reasoning budget per response. Unbounded, the model spends whole responses reasoning and never acts.

Getting it to work at all

On a fixed set of eight batches Haiku had solved, the first runs of the 3-bit model passed three or four. Most of the gain since came from the harness rather than the model:

  • Show the errors, not the noise. A failed compile prints hundreds of lines of notes and include chains. A 64k context fills with them in a few rounds. The harness now keeps the first errors and the last lines, and filters the rest.
  • Don’t let it stop early. The fleet’s prompt allowed three fix rounds and then deleting what still failed. The small model took that as leave to quit, and deleted functions it had nearly finished. Its own prompt says to keep going, and the harness answers a premature stop with the verifier’s exit status and the number of tool calls left.
  • But secure what passes. Told to persist, it once spent its whole budget on one function that crashes inside an import stub and lost two that had passed. Eight calls before the end, it’s now told to delete what still fails and keep the rest.
  • Remember earlier attempts. Every worker that fails a function now records what it tried, what the verifier said (labelled as fact) and what it suspects (labelled as a guess). The next worker on those functions sees these “ghosts” in its prompt. Between two otherwise identical runs, the model went from three of the eight batches to six. Part of that was reuse: a ghost carries the earlier attempt’s whole header, and several held code that had already passed but was rejected for something else.

In production, given only small batches of at most three functions, smallest spec first, the two local workers then had 31 of 32 batches accepted. That record was too good to take at face value, so we audited it. No functions had been dropped, the tests were real, with randomized inputs and full comparisons, and 24 of 25 covered every line. But 22 of the 25 batches on one machine were single functions of 7 to 223 bytes. It was doing the easiest work in the pool, reliably.

The showdown

So we ran a fair fight. For 6.6 hours, the fleet was cut to six workers with fixed slots and no rate limits: two instances of the local model (one per machine), two Claude Haiku 5.5 and two GPT-6 Luna. Every worker took a random spec from the same queue, with no size rules for anyone. Each worker’s time includes its own test runs.

workerbatchesacceptedfunctions accepted / offeredminutes / batchfunctions / worker-hour
Claude Haiku 5.5 (×2)11071 (65%)107 / 1875.710.2
GPT-6 Luna (×2)17438 (22%)52 / 2823.94.6
Qwen3.8-Flash-Next IQ3, RTX 30901411 (79%)21 / 2926.03.5
Qwen3.8-Flash-Next IQ3, RX 7900 XTX74 (57%)4 / 949.50.7

Each batch counts once, by its final verdict: one Luna batch accepted and then rejected by the combined test counts as rejected.

  • Haiku wins on yield, about three times the 3090’s output per worker.
  • The local model’s acceptance rate is competitive, but on 14 batches that’s a wide interval, anything from mediocre to excellent. The yield figure is firmer: at 26 minutes a batch, even a perfect record would give about three functions an hour.
  • Luna fails fast. Most of its rejections came in one to seven minutes. It read a large spec, judged it unbounded (“the batch spec did not give me a bounded end-to-end test setup”) and deleted the function without writing any. That’s why the fleet normally gives it small specs only. Speed still puts its yield above the 3090’s.
  • The two local machines differ by a factor of five on the same model file. Over the run, the 3090 under Linux generated 78 tokens a second and the 7900 XTX under Windows 47, and the slower one also used more tokens per batch.

Some differences are the harness’s, not the models’. The local model had its own prompt, tuned to keep it working. Every worker saw the same records of earlier attempts. The hosted models ran with their providers’ own agents (Claude Code and Codex), and the local one through a minimal tool loop.

Still: 3.5, 4.6 and 10.2 accepted functions an hour. A 3-bit model on a card from 2020 lands in the same order of magnitude as two hosted frontier-lab models, on real work with an objective check.

What it costs

A sampler recorded the 3090’s draw every ten seconds. Over the run it averaged 194 W, against 43 W idle with the model loaded, and peaked at 275 W, under its 280 W limit. That’s 1.3 kWh for 21 accepted functions, about 0.06 kWh each. At our marginal rate of $0.0916 per kWh, the GPU’s share is about half a cent per accepted function. The CPU’s share isn’t in that: its energy counters need root, and it was also running the fleet’s test builds. A share for it might bring the total to around a cent.

For comparison, $102 of Anthropic API credit bought 1,118 accepted Haiku functions, about 9 cents each, over a different mix of batches. The subscription workers aren’t billed per call, but they’re rate-limited, and that limit is what normally sets the fleet’s pace. A local worker adds output no plan limits.

On Tacoma Power’s supply, mostly hydro (see Generate remotely, read locally for the accounting), 0.06 kWh is a couple of grams of CO₂ at the average intensity and about 25 g if the marginal load is met by gas. And for now the rest isn’t entirely waste: the house hasn’t needed its furnace this fall. The cost the meter doesn’t show is noise. Under load, the fans give the house what was described to us as a banshee infestation.

What didn’t help

We tried to buy speed from the inference engine with 30 replayed fleet conversations, by recording which experts the router chose. Routing is broad: the experts that fit in VRAM carry 62% of uses at best. The cache hit rate climbs from about 30% on a short reply to about 80% on a long one, and decode speed follows it, from about 28 to 54 tokens a second for the 5-bit quant we tested this with. On held-out conversations, three engine settings made no measurable difference:

  • an expert profile built from our own traffic;
  • a smaller resident KV cache, which freed only 39 expert slots;
  • batching two requests, which was slower, because batched requests lose their cached prompts.

A smaller quantization helped instead, because more experts fit. The 3-bit model’s experts take 43 GB against the 5-bit one’s 98 GB, so about 10,500 of them stay in VRAM instead of 4,300. A simulation of the cache from our routing data puts the hit rate at that size above 90%. Over the whole showdown, the 3-bit model generated 78 tokens a second on the 3090, prompt processing and all; the 5-bit one decoded at 28 to 54. Their acceptance rates on our fixed eight-batch set were about the same. On our tasks, the harness mattered more than the extra bits.

If you want to try this

  • Give a small model checkable work and a harness built for it: errors it can read, a reason not to quit, a deadline to secure what passes, and memory of earlier attempts.
  • Audit a record that looks too good. Ours came from being handed the easiest work.
  • Benchmark by giving every worker random draws from the same queue, and measure yield per hour as well as acceptance. Fast failure and slow accuracy can end up close.
  • On a 24 GB card, a smaller quantization can be faster without being worse, because more of the model stays in VRAM.