Developer creates 24KB assembly OS to run LLMs with 54% higher performance
A developer has replaced Linux with a custom 24KB assembly language operating system designed specifically to run large language models. The project achieves significant speed improvements by stripping away all non-essential overhead.
🖥️PC GamingPhoto: Tom's Hardware
Key points
- Custom 24KB assembly OS boots in under 100ms
- Achieves up to 54% faster LLM inference than Linux
- Built from scratch without C, Rust, or libc dependencies
Developer Alexey Fateev has introduced a bare-metal operating system written entirely in x86-64 assembly language, designed to run the Qwen3-0.6B large language model. The entire system, titled asm-llm-os.elf, occupies just 24,252 bytes and was developed without the use of C, Rust, or existing kernel foundations like Linux or Windows.
By bypassing traditional operating system layers, the project achieves boot times between 74 and 94 milliseconds. The system interacts with hardware directly, utilizing VGA output, PS/2 keyboard support, and serial communication. It maps model weights directly from physical RAM, allowing for a streamlined execution environment.
Performance benchmarks conducted on an AMD EPYC 7642 processor show that the assembly-based system outperforms the standard llama.cpp implementation on Linux. In tests using four threads, the custom OS reached 78.89 tokens per second, representing a 54% increase in speed compared to the 51.08 tokens per second achieved under a standard Linux environment.
What it means for players
While this project is currently a technical demonstration for enthusiasts and developers, it highlights the potential for extreme optimization in hardware-level software. PC users and developers interested in low-level systems programming or maximizing AI model inference speeds on limited hardware may find this approach useful for future performance-focused applications.
Quick facts
- Platform: PC (x86-64)
- Release status: Available via GitHub
- Price: Free/Open Source
Source Tom's Hardware — tomshardware.com/tech-industry/artificial-intelligence/ai-enthusias… ↗
Read next
🎮Game NewsRockstar Releases Official GTA 6 Leonida Map Poster for Under a Dollar
Rockstar Games is now selling the official physical map for Grand Theft Auto 6 for $0.99 on its online store, though international shipping costs may vary significantly.
💼IndustryStephen Gillett Named as New Twitch CEO Following Dan Clancy's Departure
Twitch has appointed Stephen Gillett as its new Chief Executive Officer following Dan Clancy's stepping down from the live-streaming platform.
🕹️Indie & RetroNightdive Studios Announces Alien Trilogy: Definitive Edition Remaster
Nightdive Studios has officially revealed a new remaster of the classic 1990s first-person shooter Alien Trilogy.
🔴NintendoMouse: P.I. For Hire Announces The Invincible Trio Prequel DLC
Fumi Games and PlaySide have unveiled a new prequel expansion for Mouse: P.I. For Hire, introducing three new playable characters and a 1917-era military campaign.
💼IndustryTwitch Names Longtime Gamer Stephen Gillett as New CEO Effective January 2027
Twitch has confirmed that Stephen Gillett will succeed Dan Clancy as CEO in January 2027, following Clancy's departure after nearly four years in the role.
🟢XboxForza Horizon 6 Players Get Guide for Horizon Holidays Summer Season Photo Challenge
Forza Horizon 6 players looking to complete the Horizon Holidays Summer Season Photo Challenge can earn rewards by photographing the 1984 Opel Manta 400 at Narai-Juku.