24KB assembly OS boots straight into Qwen3
2026-11-28 · Tom's Hardware
Developer Alexey Fateev (GitHub: alesha-pro) deleted Linux and hand-wrote a roughly 24KB (24,252-byte) Multiboot OS in NASM assembly that boots directly into Qwen3-0.6B (Q8_0, about 649MB) for multi-turn chat. The project, llm.asm, was covered by Tom's Hardware on November 28.
It uses no Linux, Windows, C, Rust or libc. The author says it boots into 64-bit long mode in 74-94 ms, wakes all cores over APIC and maps weights straight from physical RAM; users interact via VGA text, PS/2 keyboard or serial.
On an AMD EPYC 7642 against Linux llama.cpp (Q8_0, CPU only), he reports 23.67 vs 16.63 tok/s at 1 thread (+42%), 78.89 vs 51.08 at 4 threads (+54%) and 134.94 vs 103.03 at 16 (+31%), with output matching PyTorch FP32 on 64 greedy tokens. These are the author's own, unreplicated tests.
A ~14KB Linux-hosted build is available for those not needing bare metal. The project is MIT-licensed with an ISO builder and Proxmox guide. Limits are clear: only a 0.6B model, no filesystem or network; it is a technical demo of how lean an inference engine can be rather than a daily-use system. Check the license before use.