AI enthusiast deletes Linux for a 24KB pure assembly OS that boots in 74 milliseconds
An intrepid developer has deleted their Linux OS and coded a tiny assembly-language bare-metal bootable alternative to run LLMs. As well as drastically cutting resource use, it seems to work far faster.
A passionate developer has created a compact assembly-based operating system that outperforms traditional Linux setups when running large language models (LLMs). The new bare-metal OS, developed by Alexey Fateev under the GitHub handle alesha-pro, is an impressive 24KB in size, consisting solely of x86-64 assembly language code. This ultra-lightweight system runs significantly faster than its Linux-based counterpart, achieving up to a 54% boost in LLM performance.
The Bare-Metal Bootable Qwen3-0.6B OS is designed to boot in as little as 74 milliseconds, a considerable improvement over traditional Linux boot times. It enables users to interact with the LLM through a 80x25 character color VGA display, PS/2 keyboard, and serial communication. The system also includes a 614MB Qwen3-0.6B Q8_0 model weight mapping directly from physical RAM, ensuring minimal latency and maximum processing speed.
In rigorous benchmark tests, the assembly-based OS demonstrated a clear advantage over the traditional llama.cpp implementation. On an AMD EPYC 7642 system, the assembly OS outperformed llama.cpp in multi-threaded token generation by up to 54%. Specifically, with 4 threads, the assembly OS achieved 78.89 tokens per second, compared to llama.cpp's 51.08 (+54%). Similar improvements were observed at 8 and 16 threads, with the assembly OS maintaining a consistent performance edge.
Rewritten by urgent.news; may contain errors — check the original.
Source: tomshardware.com