Developer's Bare-Metal AI OS Runs Up to 54% Faster, but Most Gain Survives With Linux
Alexey Fateev announced on X on November 25, 2026 that he had "deleted Linux completely," unveiling an MIT-licensed llm.asm repository containing a hand-crafted x86-64 assembly operating system whose sole purpose is running a language model. The kernel launched as a 24,252-byte Multiboot binary written in NASM with no C, Rust, or libc, and the current build has grown slightly to 25,404 bytes. 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.
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 is the four-thread result, 78.89 tokens per second against llama.cpp's 51.08, though that pairs the kernel's best run with llama.cpp's three-run average. The Linux-hosted build already managed 69.24 tokens per second at four threads, 35.6 percent faster than llama.cpp, meaning roughly two-thirds of the gap exists with Linux fully intact.
Leaving Linux behind adds between 7 percent and 14 percent depending on thread count. Fateev credits most of the bare-metal bonus to mapping memory with 2 MiB pages, a technique Linux can also use through transparent huge pages or hugetlbfs, and llama.cpp was never tested with them. The comparison covers only half of inference: llama.cpp processes prompts in batches while llm.asm feeds them one token at a time. The inference engine's README shows prefill costs of 26.7 to 160.8 tokens per second against llama.cpp's 56 to 1,113 on a 34-token prompt.
SnackOnAI estimates that for a 2,000-token prompt and a 200-token reply, llama.cpp would finish in about 3.7 seconds compared with roughly 14 seconds for llm.asm. Hardware Busters notes the kernel lacks storage, networking, or GPU support, with GRUB loading weights into RAM before the kernel starts. The system needs 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. Larger models lean harder on memory bandwidth, where hand-tuned instructions buy far less.
Considerable irony surrounds the EPYC numbers: the no-Linux kernel results were recorded inside a QEMU/KVM virtual machine, and KVM is part of the Linux kernel. The second test ran under Proxmox VE, itself a Linux-based hypervisor, on a 2014 Xeon. As far as the published material shows, the kernel has not been measured on unvirtualized hardware, so the 54 percent compares a guest running on top of Linux with llama.cpp running directly on it. The bare-metal peak of 134.94 tokens per second moves about 87 GB/s, roughly 42 percent of the 204.8 GB/s theoretical peak AMD lists for the EPYC 7642, assuming all eight memory channels are populated, which Fateev does not state.
A day later, Fateev published a machine-code battle in which Gemini 4 Neon and Claude Opus 5.5 each wrote a Linux inference engine for the same model in raw hexadecimal. Gemini's engine reportedly peaked at 188.93 tokens per second at 32 threads against a llama.cpp baseline of 103.82, meaning a program running on ordinary Linux beats the no-Linux kernel's 133.75 at the same thread count by about 41 percent. Two days after deleting Linux, Fateev posted a 74 KB hypervisor that puts a 2B LLM below Linux in Ring -1, running beneath an unmodified Linux 5.15 kernel with a MiniCPM5-2B model and reporting 119 passes in 122 held-out scenarios.
Source credits
By Rahim Amir from TechRadar. Edited by SetuGeo.