Fateev's 24KB Assembly OS Runs Qwen3 54% Faster Than llama.cpp
TL;DR
- The project is 24,252 bytes of hand-written NASM x86-64 assembly that boots a Qwen3-0.6B chat prompt in 74 to 94 milliseconds.
- On an AMD EPYC 7642, Fateev clocks 78.89 tokens per second at four threads versus llama.cpp's 51.08, a 54 percent gain.
- Correctness is validated against a PyTorch FP32 reference with 0.99965 cosine similarity on final logits and 64 of 64 greedy tokens matching.
Alexey Fateev's operating system fits in 24,252 bytes. The Multiboot binary, called llm.asm, boots a machine directly into a Qwen3-0.6B chat prompt in 74 to 94 milliseconds, and the project runs, in its own description, "without Linux, Windows, C, C++, Rust, libc, or a single runtime dependency," Tom's Hardware reported.
The claim that drew attention was speed. On an AMD EPYC 7642, Fateev benchmarked his bare-metal OS against llama.cpp running the same Q8_0 weights. At one thread, the assembly code hit 23.67 tokens per second versus llama.cpp's 16.63. At four threads, 78.89 versus 51.08, a 54 percent gain. A separate Linux-hosted ELF build of 14.7KB ran 18 to 36 percent faster than llama.cpp across one to forty threads.
He validated accuracy against a PyTorch FP32 reference. All 64 greedy tokens matched, with cosine similarity of 0.99965 on the final logits.
The comparison carries an asterisk, and Fateev flags it. llama.cpp processes prompts in batches, while llm.asm only runs token-by-token decode, so what the numbers capture is pure generation speed, not an end-to-end inference path. Independent benchmarks had not been published as of November 27. The project is on GitHub under an MIT license, and the ELF binary is roughly 28,000 times smaller than the model it serves.
Originally reported by tomshardware.com
Read the original article →Original headline: Developer's 24KB x86-64 Assembly OS Boots Qwen3 Chat in 74ms, Beats llama.cpp by 54%