llm.asm boots Qwen3 in 24KB assembly OS
Alexey Fateev released llm.asm, a 24 KB bare-metal x86-64 assembly operating system that boots in 80 milliseconds straight into a Qwen3-0.6B chat session. By eliminating Linux, libc, and runtime abstractions, it maps model weights directly from RAM to run CPU inference up to 54% faster than llama.cpp.
Stripping the entire operating system stack for LLM inference exposes just how much overhead conventional kernels impose on small-model execution. While writing pure NASM assembly is extreme, it highlights the efficiency potential of bare-metal unikernels for edge inference.
- –Eliminates Linux, libc, and runtime abstractions by executing custom AVX2, FMA, and F16C instructions directly against physical memory.
- –Stripped 24 KB Multiboot 1 kernel boots on bare metal or QEMU in 80 ms without any host OS.
- –Achieves up to 54% faster token generation compared to llama.cpp on equivalent CPU hardware.
- –Points toward a future of ultra-minimal, purpose-built bare-metal runtimes for low-power edge devices and micro-appliances.
DISCOVERED
32m ago
2026-11-27
PUBLISHED
1h ago
2026-11-27
RELEVANCE
AUTHOR
0x0SojalSec