On the Cleveland

Part of On the record
Technology

Developer Deletes Linux to Run AI 54% Faster, But Most of the Gain Never Needed Linux Gone

·

Add On the record as a preferred source on Google
Developer Deletes Linux to Run AI 54% Faster, But Most of the Gain Never Needed Linux Gone
LINUX - word on Computer keyboard keys. Photo: TechRadar

Key facts

  • The kernel, part of his MIT-licensed llm.asm repository.1
  • Linux already ran the model 69.24 tokens per second at four threads, 35.6% faster than llama.cpp, and the 54% figure pairs the kernel’s best run with llama.cpp’s three-run average1
  • A 24 KB kernel with a 614 MiB passenger.1

Alexey Fateev deleted Linux from his AI kernel to run Alibaba’s Qwen3-0.6B model up to 54% faster on an AMD EPYC 7642, though most of the gain came without Linux gone.1

Fateev announced the project on X on November 25 2026 with the line “I deleted Linux completely.”1

The kernel, part of his MIT-licensed llm.asm repository, was a 24,252-byte Multiboot binary at launch, written in NASM with no C, Rust, or libc..1 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 Qwen3-0.6B over a VGA console, PS/2 keyboard, and serial port.1

A 24 KB kernel with a 614 MiB passenger

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.1

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.1

Linux was already 35.6% faster

The Linux-hosted build already managed 69.24 tokens per second at four threads, 35.6% faster than llama.cpp.1

Fateev says as much in his own post, crediting most of the bare-metal bonus to mapping memory with 2 MiB pages..1 Linux can use 2 MiB pages too, through transparent huge pages or hugetlbfs, and as Blackmoreops notes, llama.cpp was never tested with them.1

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..1 The second test ran under Proxmox VE, itself a Linux-based hypervisor, on a 2014 Xeon.1

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.1

The comparison covers only half of inference

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.1

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.1

What the 24 KB leaves out matters more

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.1

Hardware Busters notes there is no storage, networking, or GPU support; GRUB loads the weights into RAM before the kernel starts..1 That holds for the older 649 MiB weight format, but the framing tends to ignore speed.1

Report an error in this story

Sources

The numbers in the story point here. Each one links to the original article.

    See a sentence its source doesn’t back up?

    Tell us the source number and what’s wrong. We check every report. If we change the story, the fix goes on the corrections page with the old wording.