A developer has written a complete operating system in hand-crafted x86-64 assembly whose only job is to run a language model, generating text up to 54 percent faster than llama.cpp running on Linux. Alexey Fateev announced the project on X on November 25, 2026, using the phrase "I deleted Linux completely." The kernel, part of his MIT-licensed llm.asm repository, started as a 24,252-byte Multiboot binary written in NASM with no C, Rust, or libc. It boots in 74 to 94 milliseconds into 64-bit long mode, wakes every CPU core, and drops straight into a multi-turn chat with Alibaba's Qwen3-0.6B over a VGA console, PS/2 keyboard, and serial port.
Hardware Busters observed that the model is roughly 28,000 times bigger than the operating system referencing it. However, every generated token streams the full weight file through the processor, meaning the kernel's footprint is a rounding error next to the data it moves. The 24 KB size leaves out storage, networking, and GPU support, requiring GRUB to load the weights into RAM before the kernel starts. The system requires AVX2, FMA, and F16C instruction sets, relies on a Python script to convert the checkpoint, and runs exactly one model, the smallest dense member of the Qwen3 family Alibaba released in April 2025.
Key takeaways
- Alexey Fateev created llm.asm, a 24 KB assembly kernel that boots directly into a Qwen3-0.6B language model.
- The bare-metal setup achieved 78.89 tokens per second, representing a 54 percent speed increase over baseline llama.cpp.
- Roughly two-thirds of the performance gain is accessible with Linux fully intact by mapping memory with 2 MiB pages.
- The project's benchmarks were measured inside virtual machines running on top of Linux hypervisors like KVM and Proxmox.
Fateev benchmarked three setups on an AMD EPYC 7642, a 48-core Zen 2 chip from the 2019 Rome generation: llama.cpp forced onto the CPU, his own 14.7 KB inference engine running as an ordinary Linux program, and the bootable kernel. The 54 percent figure represents the four-thread result of 78.89 tokens per second against llama.cpp's 51.08, though that pairs the kernel's best run with a three-run average. The Linux-hosted build already managed 69.24 tokens per second at four threads, which is 35.6 percent faster than llama.cpp. This indicates that about two-thirds of the gap exists with Linux fully intact, while leaving Linux behind adds between 7 and 14 percent depending on thread count.
Fateev credited most of the bare-metal bonus to mapping memory with 2 MiB pages. Linux can utilize 2 MiB pages through transparent huge pages or hugetlbfs, and llama.cpp had never been tested with them. An irony of the benchmark is that the EPYC numbers for the no-Linux kernel were recorded inside a QEMU/KVM virtual machine, with KVM being part of the Linux kernel. A second test ran under Proxmox VE, a Linux-based hypervisor, on a 2014 Xeon. The comparison also covers only half of inference because llama.cpp processes prompts in batches, whereas llm.asm feeds them in one token at a time, resulting in significantly slower prefill speeds for the assembly kernel.
Comments