A developer deleted Linux and baked an AI model into a 24 KB assembly OS. He says it runs up to 54% faster
First seen on X 5 days ago@superalesha ♥ 2,78230 views
"I deleted Linux completely, baked Qwen3-0.6B into a 24 KB pure x86-64 assembly OS." Developer Alexey Fateev's post on Nov. 25 drew 3,000 likes and 2,500 bookmarks in under a day. He says the OS runs up to 54% faster than llama.cpp on native Linux.
According to the MIT-licensed readme on GitHub, the kernel is 24,252 bytes, written from scratch without Linux, Windows, C, Rust or libc. It boots in 74 to 94 milliseconds straight into a chat prompt, maps the 614 MiB 8-bit quantized model directly from physical RAM without copying, and wakes every CPU core. It decoded about 135 tokens per second on 16 vCPUs of an AMD EPYC server VM and also ran on a VM with a 0 GB disk.
He credits the speed to mapping memory with 2 MiB huge pages, avoiding 4 KiB page-table walks across the model. Outputs on five test prompts matched his earlier build token for token. Replies called it "quality local AI content."
The speed numbers are the developer's own, and 0.6B is a small model that runs on phones. It needs an x86-64 CPU with AVX2 and FMA. The experiment shows how light AI can get once the OS is stripped away, but whether the gains hold for larger models is untested.
Comments 0
Select a sentence in the story (long-press on phones) to comment on it.
“I deleted Linux completely, baked Qwen3-0.6B into a 24 KB pure x86-64 assembly OS, and it runs up to 54% faster than native Linux llama.cpp.”
