AdvertiseDonate
Sunday, December 6, 2026Local news for Whatcom County, Washington.
Whatcom County Tribune · 1415 Commercial Ave, Anacortes, WA 98221
Tech · AI

Bare-Metal Assembly OS Boots Qwen3 in 74ms, Beating Linux by 54%

Developer Alexey Fateev releases a 24KB operating system that runs local LLM inference faster than standard Linux environments.

By Dale Ostrander ·

Illustration for: Bare-Metal Assembly OS Boots Qwen3 in 74ms, Beating Linux by 54%
Illustration generated for this article, not a news photograph.

Alexey Fateev, known on GitHub as alesha-pro, released a bare-metal operating system that runs large language models without a traditional kernel. The project, named asm-llm-os.elf, is a Multiboot binary written entirely in NASM assembly. Fateev built the system to eliminate the overhead of standard operating systems like Linux, Windows, or Rust-based environments. The code uses no C, no libc, and no existing OS foundation.

The total size of the operating system binary is 24,252 bytes. This footprint is smaller than the 20KB ROM found in the Commodore 64, which previously housed a kernel, BASIC interpreter, and character generator. The system supports Symmetric Multiprocessing (SMP) and provides direct interaction through 80x25 color VGA displays, PS/2 keyboards, and serial communications. Fateev wrote the boot sequence to minimize latency, allowing the system to reach its multi-turn chat interface in 74 to 94 milliseconds.

The OS loads the Qwen3-0.6B model in Q8_0 quantization. This model file is 649MB, making it roughly 28,000 times larger than the operating system itself. Despite the size disparity, the assembly-based environment manages the hardware resources efficiently. The setup is designed to run the model directly on the hardware without the abstraction layers typical of modern desktop environments.

Benchmarks show the assembly OS outperforming a standard Linux installation using llama.cpp. On an AMD EPYC 7642 system, the new OS achieved 78.89 tokens per second on four threads. The same hardware running the previous Linux setup produced 51.08 tokens per second. This represents a 54% speed increase. The performance gain remains substantial across different thread counts, with a 31% uplift recorded at 16 threads.

Fateev published the project under the MIT license to allow other developers to modify and test the code. The repository at github.com/alesha-pro/llm.asm includes the full source code, an ISO builder, and a setup guide. Users who do not require bare-metal operation can use a Linux-hosted version of the inference binary. That version is 14KB, saving 10KB by removing the code needed to initialize the processor, keyboard, and monitor I/O during boot.

The release targets enthusiasts and developers looking for minimal system footprints for local AI inference. The project demonstrates that a hand-written assembly language OS can boot quickly and process LLM tokens faster than standard software stacks. Fateev’s work removes the need for a general-purpose operating system to run a specific AI workload.

More Tech · Report a business · Got a Story?

Get Whatcom County Tribune in your inboxLocal news for Whatcom County, Washington. Free, a few times a week, unsubscribe any time.

Get Whatcom County Tribune in your inboxLocal news for Whatcom County, Washington. Free, a few times a week, unsubscribe any time.