Developer 'deletes Linux' to make AI run up to 54% faster — but most of the speed boost never needed Linux gone
About two-thirds of that gain shows up with Linux still running
- Alexey Fateev's llm.asm boots a 24 KB assembly kernel straight into a Qwen3-0.6B chat in under 100 ms
- The bare-metal numbers were measured inside KVM, a Linux hypervisor, and prompt processing is far slower than llama.cpp's
- A Linux engine written in raw hex by Gemini 4 Neon reportedly beat the bare-metal OS by 41%, pointing at llama.cpp's baseline rather than Linux
A developer has written a complete operating system in hand-crafted x86-64 assembly whose only job is to run a language model, and says it generates text up to 54% faster than llama.cpp running on Linux.
Alexey Fateev announced the project on X on November 25 2026 with the line "I deleted Linux completely."
The kernel, part of his MIT-licensed llm.asm repository, was a 24,252-byte Multiboot binary at launch (the current build has grown slightly, to 25,404 bytes), 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.
A 24 KB kernel with a 614 MiB passenger
Tom's Hardware framed the project around size, observing that the model is "roughly 28,000 times bigger than the OS that references it." That holds for the older 649 MiB weight format, but the framing tends to ignore speed.
As SnackOnAI points out, every generated token streams the full weight file through the processor, so the kernel's footprint is a rounding error next to the data it moves.
What the 24 KB leaves out matters more: Hardware Busters notes there is no storage, networking, or GPU support; GRUB loads the 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.
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, its own 14.7 KB inference engine running as an ordinary Linux program, and the bootable kernel.
Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed!
The 54% figure is the four-thread result, 78.89 tokens per second against llama.cpp's 51.08, although 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% faster than llama.cpp. This means roughly two-thirds of the gap exists with Linux fully intact, and leaving Linux behind adds between 7% and 14%, depending on thread count.
Fateev says as much in his own post, crediting most of the bare-metal bonus to mapping memory with 2 MiB pages. Linux can use 2 MiB pages too, through transparent huge pages or hugetlbfs, and as Blackmoreops notes, llama.cpp was never tested with them.
There is considerable irony here: The EPYC numbers for the "no Linux" kernel 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% compares a guest running on top of Linux with llama.cpp running directly on it.
A fast-talking, slow-listening approach to a problem
The comparison also covers only half of inference: llama.cpp processes prompts in batches, while llm.asm feeds them in one token at a time, and the inference engine's README shows the cost: 26.7 to 160.8 tokens per second of prefill, against llama.cpp's 56 to 1,113, measured on a prompt of just 34 tokens.
Extrapolating from those figures, 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 puts it best here, highlighting the limitation: "Larger models lean harder on memory bandwidth, where hand-tuned instructions buy you far less." Token generation is usually memory-bound, since every token requires a pass over the weights.
The bare-metal peak of 134.94 tokens per second moves about 87 GB/s, roughly 42% 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. At this tiny model size, therefore, the plateau seems to owe as much to threading and synchronization as to raw bandwidth.
Fateev's next experiment supports that reading. A day later, he 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, with no compiler or assembler.
Gemini's engine reportedly peaked at 188.93 tokens per second at 32 threads, against a llama.cpp baseline of 103.82, identical to the one in the llm.asm tables. If that holds, a program running on ordinary Linux beats the "no Linux" kernel's 133.75 at the same thread count by about 41%, while Claude's 125.13 lands close to Fateev's own Linux build.
Two days after deleting Linux, Fateev went the other way, posting a 74 KB hypervisor that "puts a 2B LLM BELOW Linux in Ring -1."
Per the project's README, it runs beneath an unmodified Linux 5.15 kernel with a MiniCPM5-2B model; when the kernel faults, it freezes the guest, has the model propose a machine-code patch, validates it, writes it into memory, and resumes. Fateev reports 119 passes in 122 held-out scenarios, including cases where the right call was not to patch.
The faults were deliberately triggered by his own test module, and the demonstrated fix overwrites the faulting instruction with NOPs, keeping the machine running but simply skipping whatever that write was meant to do.
Fateev's achievement is real. Writing a BPE tokenizer, multicore bring-up, and an INT8 matrix engine in raw assembly, with output that stays bit-exact across thread counts and matches a PyTorch reference on all 64 greedy test tokens, is serious work, and the README documents its limits openly.
The trouble is the framing here: The team behind NightRun, a similar project that boots a model from UEFI firmware, avoids calling it bare metal because "precision matters more than a cooler-sounding claim."
llm.asm deserved the same treatment in my opinion; Linux itself began as "just a hobby" 35 years ago, and hand-tuned kernels like these are how mainstream tools get faster. Anyone running small models on a local AI mini PC stands to gain more when these tricks reach llama.cpp than from wiping their operating system, at least for now.
Follow TechRadar on Google News and add us as a preferred source to get our expert news, reviews, and opinion in your feeds.
Rahim Amir is a UAE-based tech writer who enjoys building PCs as much as he enjoys writing about them. He has been professionally writing about PC hardware since 2023, focusing on buyer’s guides, hardware reviews, and sponsored content and features related to tech.
Having built hundreds of gaming PCs and being an avid gamer in his spare time, Rahim tends to have stronger opinions about hardware than most. This is particularly on display when he gets his way with powerful, but minimalistic RGB builds even as Small Form Factor (SFF) PCs come a close second.
You must confirm your public display name before commenting
Please logout and then login again, you will then be prompted to enter your display name.