Developer Creates 24KB Assembly Operating System to Run LLMs Faster

Developer Alexey Fateev, known as alesha-pro on GitHub, has released a bare-metal, bootable operating system written in pure NASM assembly language designed specifically to run large language models. The 24KB Multiboot OS, titled asm-llm-os.elf, boots directly to a multi-turn chat interface in between 74 and 94 milliseconds. The system supports modern symmetric multiprocessing, 80×25 character color VGA displays, PS/2 keyboards, and serial communications.

Fateev reported that the operating system was written from scratch without the use of Linux, Windows, C, Rust, or libc. While the OS itself is extremely compact, it is designed to load the Qwen3-0.6B Q8_0 model, which has a file size of 649MB. This model is approximately 28,000 times larger than the operating system that references it.

Performance benchmarks indicate that the standalone assembly OS outperforms standard Linux installations when running the same model via llama.cpp. On an AMD EPYC 7642 system, the assembly-coded OS achieved 78.89 tokens per second across four threads, representing a 54% increase over the 51.08 tokens per second recorded on Linux. Even when utilizing 16 threads, the developer noted a performance uplift of at least 31%.

"4 threads hit 78.89 tok/s vs 51.08 (+54%)."

The project is available under the MIT license on GitHub and includes the full source code, an ISO builder, and a setup guide. For users who do not require bare-metal operation, Fateev also provided a Linux-hosted version of the inference binary, which measures 14KB.

FI Journal
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.