Claude Opus 5.5 and Gemini 4 Neon each wrote a working x86-64 inference engine for Qwen3-0.6B entirely in raw machine code, and both ran faster than llama.cpp. Neither model had a compiler, an assembler or a linker. Each typed hexadecimal bytes into a file and converted it with the command xxd -r -p.
The setup was strict. Both models worked in isolated sandboxes aimed at a 48-core AMD EPYC 7642, with no gcc, nasm or ld, and no script to turn mnemonics into bytes. Every ELF64 header, VEX prefix, ModR/M byte and jump offset went into engine.hex by hand.
How Claude Opus 5.5 did it
Claude Opus 5.5, running at xhigh effort in Claude Code, finished first in 65 minutes. Its result is a static ELF64 binary of 7,331 bytes. It used f32 activations, transparent hugepages and CCX pinning, which keeps threads on cores that share a cache complex.
Speed ranged from 21.44 to 125.13 tokens per second depending on thread count. Against llama.cpp, that was between 10.4% and 28.9% faster across 1 to 40 threads. The run took 175 turns and cost $21.40.
How Gemini 4 Neon did it
Gemini 4 Neon, running at xhigh in Antigravity, took longer: 103 minutes. Its binary is 10,752 bytes, and it went much deeper into the processor’s design.
The first problem was accuracy. Int8 activations missed one token by a logit margin of 0.0005, so Neon wrote its own per-block Q15 (int16) AVX2 dot kernel instead. It then pinned 15 weight layers, 239.2 MiB in total, inside the 256 MiB victim L3 cache, using a mix of prefetcht0 and prefetchnta instructions. It also routed threads around an offline CPU core in the CCX map.
Throughput averaged 22.27 to 188.35 tokens per second across 1 to 40 threads. The peak was 188.93 tokens per second at 32 threads, against 103.82 for llama.cpp at its best. That is 81.4% faster than llama.cpp and about 50% faster than Opus. The job took 90 turns and cost $16.72.
The numbers side by side
- Opus 5.5: 65 minutes, 7,331 bytes, 175 turns, $21.40, peak 125.13 tokens per second.
- Gemini 4 Neon: 103 minutes, 10,752 bytes, 90 turns, $16.72, peak 188.93 tokens per second.
Opus was quicker to finish and smaller. Neon cost less, used fewer turns and ran far faster once built. Both binaries are smaller than a compiled Hello World program.
What the results do and don’t show
The test used one small model, Qwen3-0.6B, on one specific server chip. Much of Neon’s lead comes from tuning for the EPYC 7642’s cache layout, such as fitting 239.2 MiB of weights into the 256 MiB L3 cache. Those tricks won’t carry over to a different processor without rework.
llama.cpp is built to run on a wide range of hardware, so a hand-tuned engine for one machine isn’t a like-for-like contest. Still, the cost is the surprising part. A tuned x86-64 inference engine that beats a widely used open-source runtime came in under $22 per model, with no compiler in sight.
Qwen3-0.6B is a small model, which matters for how far the result stretches. At around 0.6 billion parameters, its weights fit largely inside the processor’s cache, and that is exactly what Neon exploited. A model many times larger would spill out to main memory, where raw bandwidth rather than clever instruction scheduling sets the limit.
The models were given very little. They had a target machine, a model to run and a sandbox. Everything else, from file headers to the placement of each jump, came from the models themselves. Getting one byte wrong typically means the program simply won’t run, so the fact that both finished with correct output is the real engineering result here.
What to watch next
The obvious follow-up tests are bigger models and other chips. A larger model would stress memory bandwidth more than a 0.6-billion-parameter one, which could shrink the cache tricks’ advantage. Running the same task on Intel or Arm hardware would show how much of the result depends on this one AMD part.
For developers, the practical takeaway is narrower. Hand-tuning a kernel for a known machine is now a job that costs tens of dollars and a couple of hours of model time, and that changes who can afford to try it.
Source: X (formerly Twitter)