A developer ditched Linux to create a 24 KB AI operating system. The neural network is now 54% faster!
AI operating system, running the Qwen3-0.6B language model, computational optimization, token generation speed increased by 54%
Read in: Русский · Español · Português · Français · Deutsch · Italiano · 日本語 · 中文 · 한국어

No Linux, Windows, Python, PyTorch, C, Rust, or standard system libraries. Just 24,252 bytes of executable code that loads the Qwen3-0.6B language model directly into RAM and launches an interactive chat. Kernel boot time ranges from 74 to 94 milliseconds.
Why does artificial intelligence even need an operating system?
The modern AI software stack consists of multiple layers of abstraction: operating systems, drivers, libraries, computing frameworks, runtimes, and memory management systems.
All these components provide versatility, compatibility, and ease of development.
But if a computer is designed solely to run a single neural network, a logical question arises: how much of this infrastructure is actually necessary?
A specialized kernel that independently switches the processor to 64-bit mode, activates compute cores, manages RAM, and performs the language model's mathematical operations.
Computations are optimized for AVX2, FMA, and F16C instructions.
The model uses Q8_0 eight-bit quantization. Its weights occupy about 614 MiB of RAM.
It is important to note that 24 KB is the size of the operating system and the compute engine, not the neural network itself.
How much faster does AI run without Linux?
On an AMD EPYC 7642 server processor, the author compared their implementation to the popular llama.cpp running on Linux without a GPU.
Using a single thread, generation speed increased from 16.63 to 23.67 tokens per second.
With four threads, performance grew by 54%, reaching nearly 79 tokens per second.
At eight threads, the system generated 118 tokens per second, and at sixteen, it reached approximately 135 tokens per second.
Interestingly, the project even ran successfully on a Proxmox virtual machine with a 2014-era Intel Xeon E5-2670 v3 processor, just two gigabytes of RAM, and no virtual disk.
The system demonstrated a generation speed of about 78 tokens per second.
Not a bad result for hardware that debuted eight years before the launch of ChatGPT.
Is Linux really the problem?
Not exactly. The most interesting part of the experiment is that a significant portion of the speedup came not from eliminating the operating system, but from optimizing the computational algorithms.
An additional advantage of the specialized kernel is related to memory organization, the use of 2 MiB huge pages, and reduced overhead when accessing data.
Furthermore, llama.cpp processes long input prompts significantly faster thanks to batch computations.
Thus, the 54% gain applies to this specific token generation test, rather than all language model use cases.
The birth of a new class of operating systems
The project is part of a broader trend that could be called Bare Metal AI: running artificial intelligence as close to the hardware as possible.
Other experimental projects are already emerging.
ModelOS is developing a specialized operating system for running language models with direct GPU control.
cllm is exploring the Unikernel concept—a minimal, specialized kernel combined with an application to perform a single task.
NightRun is experimenting with running language models directly from the UEFI environment.
Where can this be applied?
The most interesting prospects lie in local AI, industrial automation, robotics, embedded systems, autonomous devices, and specialized inference servers.
Imagine a computer that, upon powering on, immediately launches a local AI assistant without loading a conventional operating system.
Or a fleet of specialized servers, each optimized solely to run a specific neural network.
However, such developments remain experimental for now. They still need to address issues of security, process isolation, networking, support for various models, updates, and hardware compatibility.
Sometimes, the best way to speed up a computer isn't by adding new components, but by removing everything unnecessary.
Translated from Russian. Original on vc.ru: Разработчик удалил Linux и создал операционную систему для ИИ размером 24 КБ. Нейросеть заработала на 54% быстрее!