Ranked #14 of 30 on Thursday, November 26
Bare-metal Qwen: a 24 KB assembly OS that boots straight into Qwen3-0.6B
The open-source llm.asm project has built a bootable x86-64 operating system, written entirely in assembly with no Linux, C or libc, that runs Qwen3-0.6B directly on hardware or KVM. The kernel is about 24 KB, boots in under 100 ms into a multi-turn chat with…
Ranked #14 of 30 on Thursday, November 26
Why it matters
It shows how little software small-LLM inference actually needs, and is a useful study resource for anyone working on low-level or embedded inference.
What happened
1 min readThe open-source llm.asm project has built a bootable x86-64 operating system, written entirely in assembly with no Linux, C or libc, that runs Qwen3-0.6B directly on hardware or KVM. The kernel is about 24 KB, boots in under 100 ms into a multi-turn chat with a persistent KV-cache, and decodes around 135 tokens/s on 16 AMD EPYC vCPUs. The model loads from an ISO entirely into RAM, so the VM needs no disk at all.
Our analysis
This is an engineering stunt and teaching artifact more than a practical tool: a 0.6B model has limited capability, and I/O is serial, VGA and PS/2 only. The interesting part is a complete assembly implementation of SMP bring-up, huge-page identity mapping and AVX2 Q8 matmul that stays token-exact with the project's Linux build. The throughput figures are the author's own KVM measurements and are not compared against llama.cpp on the same hardware. For real deployments llama.cpp and similar runtimes remain the sensible choice; this is worth reading for anyone who wants to understand inference down to the metal.