Developer Alexey Fatif (GitHub: alesha-pro) wrote a 24,252-byte operating system in assembly that boots in 74 to 94 milliseconds and, in tests, runs the Qwen3-0.6B language model up to 54 percent faster than Linux.
Assembly-built 24 KB operating system and supported hardware
Fatif implemented the entire operating system in assembly to minimize OS overhead and give more CPU cycles to the language model. The compiled executable is exactly 24,252 bytes. The system is self-contained and does not depend on Linux, Windows, the C or Rust programming languages, or the C standard library. Booting takes between 74 and 94 milliseconds, after which the machine drops directly into an interactive chat with the AI.
- Multi-core processing
- Color VGA text output
- PS/2 keyboard support
- Serial communication
The OS is designed specifically to run the Qwen3-0.6B model, a lightweight language model with roughly 600 million parameters. The model file used in the tests occupies about 649 megabytes, making the model tens of thousands of times larger than the operating system that runs it.

Benchmark results compared with Linux
Fatif benchmarked the OS on a system with an AMD EPYC 7642 processor and compared performance against running the same model on Linux via the llama.cpp tool. In a four-thread test, the assembly OS produced 78.89 tokens per second versus 51.08 tokens per second on Linux, a measured improvement of 54 percent. In a 16-thread test, the assembly OS remained faster, with a 31 percent advantage over Linux.
The project is narrowly focused on model execution and is not intended as a general-purpose replacement for full-featured operating systems such as Linux or Windows.
Source code, licensing and alternative build
Fatif has published the full source code, ISO build tools and a setup guide on GitHub under the MIT license. He also provides an alternate build targeted for running inside a Linux environment; that variant omits hardware initialization code and is approximately 14 kilobytes in size.




Leave a Comment
Comments
No comments yet. Be the first.