LLM token generation speeds up 54% after removing Linux OS and llama.cpp
llama
| Source: HN | Original article
Researchers achieve 54% faster LLM token generation by eliminating the Linux OS and the llama.cpp library.
An AI hobbyist has taken the “strip‑down” approach to an extreme, building a 24 KB pure‑assembly operating system that boots in just 74 ms and runs a bare‑metal Qwen‑3 model that is roughly 28 000 times smaller than a conventional deployment. In tests the setup generated tokens up to 54 % faster than the same model run through the high‑level llama.cpp wrapper, confirming earlier benchmarks that removing the Linux stack and llama.cpp can yield sizable speed gains.
The new configuration mirrors a recent benchmark that measured token‑throughput before and after stripping both the Linux OS and the llama.cpp inference layer on a standard hardware platform. That experiment reported a similar 54 % boost in tokens per second, attributing the improvement to reduced latency and the elimination of overhead from a full operating system and a high‑level wrapper.
Both findings underscore how much of the latency budget in real‑time AI applications—chat assistants, code‑completion tools, and edge‑deployed models—is consumed by software layers rather than raw compute. By bypassing Linux and llama.cpp, developers can address the hardware more directly, squeezing out performance that traditional stacks leave on the table. The hobbyist’s 24 KB OS demonstrates that such minimalism is technically feasible even for modern large‑language models, albeit with a dramatically reduced model footprint.
The implications are two‑fold. For edge and low‑power devices, every percentage point of efficiency translates into longer battery life or lower operating costs, while the dramatic size reduction of the Qwen‑3 deployment hints at new possibilities for on‑device AI. At the same time, the community will need to weigh stability, security and development‑ease trade‑offs that come with abandoning a conventional OS and inference library. Hardware vendors may also be prompted to expose firmware or driver hooks that cater to ultra‑lean, bare‑metal pipelines.
If the performance gains hold across a broader range of models and hardware, we could see a shift toward minimalist inference stacks that reshape how AI services are delivered at scale.
Sources
Back to AIPULSEN