Skip to content
trendoviz

AI Opportunities & Ideas · Industry

Tiny OS Runs LLMs up to 54% Faster

A developer built a 24KB OS that boots in milliseconds and runs large language models more efficiently than Linux.

Published

Summary

Alexey Fateev built a 24KB bare-metal operating system written entirely in assembly language to run the Qwen3-0.6B large language model. The system boots in under 100 milliseconds and benchmarks show it can run the model up to 54% faster than the same model running on Linux via llama.cpp.

Key facts

  • Developer: Alexey Fateev (alesha-pro on GitHub)
  • Project: Bare-Metal Bootable Qwen3-0.6B OS in pure x86-64 assembly
  • Size: 24,252 bytes (asm-llm-os.elf) written without Linux, Windows, C, Rust, or libc
  • Boot Time: 74 to 94 milliseconds
  • LLM: Qwen3-0.6B (Q8_0 weights, 649MB)
  • License: MIT
  • Benchmarks on AMD EPYC 7642 show up to 54% speedup over Linux + llama.cpp

Details

The system, called asm-llm-os.elf, is a multiboot binary that boots straight into 64-bit long mode and wakes every CPU core via APIC. It maps the 614 MiB of model weights directly from physical RAM and provides a live multi-turn chat interface using VGA, PS/2 keyboard, and serial. Fateev shared the full source code, an ISO builder, and a setup guide on GitHub. A Linux-hosted version of the inference binary is also available, which is just 14.7KB because it does not include the code required for booting, initializing the processor, and handling I/O.

Why it matters

This project demonstrates that removing the overhead of a full operating system can significantly improve the performance of AI workloads. For developers and researchers working with large language models, a bare-metal approach could reduce latency and free up system resources. The open-source nature of the project allows others to study the efficient assembly code and potentially adapt the techniques for other embedded or performance-critical AI applications.

What's next

Fateev has made the project available for others to code-tweak and test. The sources do not mention specific future plans, but they note that further performance improvements could be achieved by using 2 MiB huge pages for bare-metal operation.

Sources

Original source: Hacker News — AI security stories (30+ points)

Industry ·

AI’s Role in Democracy: Choices and Risks

An essay argues that AI can either strengthen or undermine human agency and democratic institutions, depending on design choices and economic structures, and outlines policy actions to steer outcomes.

1 source

Industry ·

Scott Aaronson on AI's New Frontier

A leading computer scientist compares the emergence of large language models to the invention of the telescope and microscope.

1 source

Found an error? Report it.