ReadingResearchRadarInvestment framework
Sign in / Sign up
← Back to reading
NewsQuick take2 min readDisconfirmAI Editorial

Developer Alexey Fateev Releases 24KB Bare-Metal Assembly OS for Qwen3, Claiming Up to 54% Faster Inference than llama.cpp

Alexey Fateev released a 24KB bare-metal assembly OS running Qwen3-0.6B, claiming up to 54% faster inference than Linux llama.cpp on the same hardware.

2026-11-28

Developer Alexey Fateev (GitHub handle alesha-pro) has released a 24KB pure x86-64 assembly operating system designed to run the Qwen3-0.6B large language model directly on bare metal, bypassing standard operating systems like Linux or Windows. The project, shared under an MIT license, demonstrates how extreme software optimization can reduce the overhead of local AI inference.

The entire Multiboot OS binary is 24,252 bytes and was written from scratch without relying on Linux, Windows, C, Rust, or libc. It boots in 74 to 94 milliseconds into 64-bit Long Mode, initializes CPU cores via APIC, and maps the 614 MiB Q8_0 quantized weights directly from physical RAM. Users interact with the system through a multi-turn chat interface over VGA, PS/2 keyboard, and serial connections.

Fateev reports that his custom OS runs significantly faster than the standard llama.cpp implementation when tested on the same AMD EPYC 7642 hardware. According to his benchmarks, using 4 threads, the assembly OS achieved 78.89 tokens per second compared to 51.08 tokens per second for llama.cpp, representing a 54% speed increase. Even at 16 threads, it maintained a 31% advantage. A Linux-hosted version of the inference binary, which removes boot and initialization code, is only 14.7 KB and reportedly beats llama.cpp by 18% to 36% across various thread counts.

While the OS itself is remarkably compact, it loads the Qwen3-0.6B model, which weighs approximately 649 MB—roughly 28,000 times larger than the OS binary. This highlights that while the system infrastructure can be minimized, the computational cost of the model remains dominant. The project serves as a proof-of-concept for minimizing system-level latency and resource usage in specialized AI deployments.

Sign in / Sign up
ReadingResearchRadarInvestment framework

Sources

  • tomshardware.comTom's Hardware↗
Continue researching →