Developer achieves 54% faster LLM inference by bypassing Linux
Software developer Alexey Fateev has created a custom x86-64 assembly kernel designed to run language models, bypassing traditional operating systems to boost performance.
💻Laptops & PCsPhoto: techradar.com
Key points
- Custom 25 KB assembly kernel boots directly to an AI chat interface.
- Achieved 54% faster token generation compared to standard llama.cpp.
- Performance gains are largely attributed to 2 MiB memory page mapping.
- Significant limitations include lack of storage, networking, and slower prompt prefill.
Developer Alexey Fateev has introduced llm.asm, a specialized operating system written entirely in hand-crafted x86-64 assembly. Designed to run Alibaba's Qwen3-0.6B language model, the project aims to eliminate the overhead of traditional operating systems. The kernel, which measures approximately 25 KB, boots directly into a chat interface without relying on C, Rust, or standard libraries.
Testing on an AMD EPYC 7642 processor showed that the custom kernel achieved 78.89 tokens per second, a 54% increase over the 51.08 tokens per second recorded by llama.cpp running on Linux. However, the performance gap narrows significantly when accounting for specific memory optimizations. When the inference engine was run as a standard Linux program using 2 MiB memory pages, it achieved 69.24 tokens per second, suggesting that much of the speed gain is due to memory management rather than the removal of the OS itself.
The project faces significant practical limitations, as the kernel lacks support for networking, storage, and GPU acceleration. Furthermore, while the system shows gains in token generation, it is significantly slower than llama.cpp at prompt prefill. Because token generation is largely memory-bound, the benefits of hand-tuned assembly instructions diminish as model sizes increase, making this approach currently unsuitable for larger, more complex AI applications.
Source techradar.com — techradar.com/pro/developer-deletes-linux-to-make-ai-run-up-to-54-p… ↗
Read next
📰Tech NewsKawasaki Ninja H2R: The Track Motorcycle That Outpaces Elite Hypercars
Discover how the supercharged Kawasaki Ninja H2R motorcycle compares in speed against multi-million dollar hypercars like the McLaren P1 and Pininfarina Battista.
🏷️DealsSamsung UK Launches Cashback Promotion of Up to £350 on Select Galaxy Devices via Amazon
Samsung UK has introduced a limited-time cashback promotion offering buyers up to £350 back on eligible Galaxy hardware purchases made through Amazon UK.
🏷️DealsBaseus U2 Pro Outdoor Security Camera Review: Twin 3K Lenses and Solar Power
The Baseus U2 Pro outdoor security camera combines dual 3K lenses, motion-tracking spotlights, and solar power into a competitively priced system.
🎮Gaming TechTop Picks from the 2026 Automotive Awards: From Mazda to Audi
The 2026 Automotive Awards highlight standout vehicles ranging from the affordable Mazda MX-5 Miata to the high-performance Audi RS e-tron GT.
🎮Gaming TechSony Inzone H9 II Gaming Headset Launches for $349 with 30-Hour Battery and Esports Tuning
Sony has introduced the Inzone H9 II gaming headset for $349, tailored for competitive PC and PS5 players with a lightweight build and spatial audio.
⌚WearablesCitizen Cuts Zenshin Chrono Super Titanium to $506 in Holiday Sale
Citizen has reduced the price of its light-powered Zenshin Chrono Super Titanium watch by 25 percent on its US online store.