Fateev reports up to 54% faster Qwen3-0.6B inference in a 24 KB bare-metal OS
state: seedheat: mediumuncertainty: mediumrelevance: mediumbare-metal-inference small-language-models inference-optimizationAlexey Fateev
What is this?
Alexey Fateev reports that he built a 24,252-byte x86-64 assembly operating system that boots directly into a Qwen3-0.6B chat, without Linux or a conventional runtime. In his November 25, 2026 X post, he says it achieved up to 54% more decode throughput than llama.cpp on the same AMD EPYC 7642 CPU, with results varying by thread count (31–54% in the listed comparisons). He also describes a separate Linux build, virtual-machine tests, and other optimizations. The supplied evidence is Fateev’s own account, echoed by an X post and a Hacker News link; no independent reproduction or benchmark methodology is provided.
Why it matters
This is an intriguing systems-engineering result, not evidence that removing Linux generally makes local AI inference faster. If reproducible, the project suggests a small, specialized runtime can trade general-purpose operating-system features for a lean inference path, and it offers a concrete experiment in how much software overhead matters for small models. The claimed advantage could matter for constrained or purpose-built deployments, but the evidence here does not establish the cause, portability, or practical value of the speedup.
Current assessment
New: Fateev’s November 25 post presents a bare-metal x86-64 assembly OS, 24,252 bytes in size, that he says boots into Qwen3-0.6B chat and runs faster than native Linux llama.cpp on an AMD EPYC 7642. His reported decode rates are 23.67 versus 16.63 tokens/s at 1 thread (+42%), 78.89 versus 51.08 at 4 (+54%), 118.08 versus 80.79 at 8 (+46%), and 134.94 versus 103.03 at 16 (+31%; he separately mentions a 136.6 peak). He also claims a 14.7 KB Linux build exceeds llama.cpp by 18–36% across 1–40 threads, and that 2 MiB huge pages add another 10% in a bare-metal test. These are author-reported figures, not independently verified results. The supplied post gives some configuration details (Q8_0, CPU-only llama.cpp, same EPYC CPU) but no full benchmark protocol, code inspection, or independent replication; comparisons may depend on implementation, compiler, threading, memory, and measurement choices. The post links a repository and setup guide, but their contents are not independently substantiated in the supplied evidence. Treat the result as a noteworthy optimization demonstration and a lead for replication, not a general performance claim about Linux or llama.cpp. The web results contain only the original post, so adoption and independent validation remain unknown.
Measured heat
now 0 pts/hpeak 4 pts/hcomments 0/hpeers p34momentum: steady2 platformsage 74h
points/hour across evidence · reading as of 2026-11-28 02:25:52.099640+11:00 · deterministic, not a model opinion
How the heat travelled
pace: p43 vs 2079 stories at the 72h mark (now 74h old) — ahead of adobe-max-ai-agents-creative-tools-mcp (1.5x), behind 42loop-agent-operated-product-experiment (0.8x)
Evidence (2) — ⭐ canonical anchor
| source | object | author | score | comments |
| 🟧 hn | A bare-metal OS running Qwen3-0.6B 54% faster than llama.cppRetrieved article excerptOpen article · Retrieved 2026-11-26T17:21:22.282256+00:00 [@superalesha](https://x.com/superalesha)
[Alexey Fateev](https://x.com/superalesha)[@superalesha](https://x.com/superalesha)
I deleted Linux completely, baked Qwen3-0.6B into a 24 KB pure x86-64 assembly OS, and it runs up to 54% faster than native Linux llama.cpp.
The entire Multiboot OS binary (asm-llm-os.elf) is 24,252 bytes, written from scratch without Linux, Windows, C, Rust, or libc. It boots in 74 to 94 ms straight into 64-bit Long Mode, wakes every CPU core over APIC, maps the 614 MiB Q8\_0 weights directly from physical RAM, and drops you into a live multi-turn KV-cache chat over VGA, PS/2 keyboard, and serial.
I ran head-to-head CPU benchmarks against llama.cpp (Q8\_0, -ngl 0) on the same AMD EPYC 7642:
- 1 thread hits 23.67 tok/s vs 16.63 (+42%)
- 4 threads hit 78.89 tok/s vs 51.08 (+54%)
- 8 threads hit 118.08 tok/s vs 80.79 (+46%)
- 16 threads hit 134.94 tok/s vs 103.03 (+31%, 136.6 peak)
On a diskless 0 GB Proxmox VM (2014 12-core Intel Xeon E5-2670 v3, 2 GiB RAM), it boots straight to the prompt in under 5 seconds (95 ms kernel boot) and runs live out of RAM at 78 tok/s decode and up to 111.5 tok/s prefill, with a hybrid BIOS+UEFI ISO builder included too. Output stays bit-exact across thread counts and matches all 64 greedy tokens against PyTorch FP32 (0.99965 cosine).
The 14.7 KB Linux ELF build (FAST\_Q8=1 INT8xINT8 AVX2+F16C) also beats llama.cpp by 18% to 36% from 1 to 40 threads, and booting bare metal with 2 MiB huge pages squeezes out another 10% on top.
Repo, ISO builder, and Proxmox setup guide are in the reply below.

Video thumbnail
00:00
[8:06 PM · Nov 25, 2026](https://x.com/superalesha/status/2125682626056839259)·[733K
Views](https://x.com/superalesha/status/2125682626056839259)
[600](https://x.com/compose/post?in_reply_to=2125682626056839259)
1.5K
11K
9.8K | ex-aws-dude | 3 | 0 |
| 🟧 echo.x ⭐ | Fateev says his 24 KB assembly bare-metal OS runs Qwen3-0.6B up to 54% faster than native Linux llama.cpp on an AMD EPYC 7642, and describes | Alexey Fateev (@superalesha) | — | — |
Interpretation history
2026-11-27T12:21:01Z
audience grounding: medium — This is an intriguing systems-engineering result, not evidence that removing Linux generally makes local AI inference faster. If reproducible, the project suggests a small, specialized runtime can trade general-purpose operating-system features for a lean inference path, and it offers a concrete experiment in how much software overhead matters for small models. The claimed advantage could matter for constrained or purpose-built deployments, but the evidence here does not establish the cause, portability, or practical value of the speedup.
Decision trace
- 11-27 23:21groundThis is an intriguing systems-engineering result, not evidence that removing Linux generally makes local AI inference faster. If reproducible, the project suggests a small, specialized runtime can tra
- 11-27 04:23attention_candidatecreate
- 11-27 04:21createThe unusual implementation and quantified comparison are noteworthy, but the performance figures are the developer’s own and lack independent verification here.