Medium impact

54% faster LLM token generation by removing the Linux OS and llama.cpp

Meta•USA••2 min read

Alexey Fateev created a 24 KB pure assembly operating system that runs the Qwen3‑0.6B language model 54 % faster than Linux with llama.cpp. Readers should care because it shows how removing a full OS can dramatically speed up AI inference on CPUs.

What happened

  • Alexey Fateev deleted Linux and wrote a tiny operating system in pure x86‑64 assembly.
  • The OS includes the Qwen3‑0.6B model and runs it without any standard OS libraries.
  • It is distributed as the multiboot file asm‑llm‑os.elf, which is 24,252 bytes.

How it works and what is new

  • The OS boots directly into 64‑bit Long Mode and wakes every CPU core using the APIC controller.
  • It maps the 614 MiB Q8_0 quantized weights straight from physical RAM, avoiding file system overhead.
  • Interaction is provided via VGA display, PS/2 keyboard, and serial console for multi‑turn chat.
  • A hybrid BIOS+UEFI ISO builder is included to create bootable images.
  • The code is written from scratch without Linux, Windows, C, Rust, or the standard C library (libc).

Who it affects and how

  • The speed boost is shown on an AMD EPYC 7642 server and on a 12‑core Intel Xeon VM.
  • The system can run entirely from RAM, useful for environments with no disk storage.
  • The approach may interest low‑level system programmers who want to reduce OS overhead for AI workloads.

What is still unclear or not stated

  • The article does not give power consumption or thermal data for the faster runs.
  • It does not explain how the OS handles memory protection or security features.
  • The scalability beyond 16 threads is not detailed beyond the reported numbers.
  • Support for other models or quantization formats is not mentioned.

What to watch next

  • The author mentions a 74 KB bare‑metal hypervisor that can run a 2 B parameter model below Linux.
  • Future releases may include more models or support for larger hardware configurations.
  • The open‑source repository and Proxmox setup guide will allow others to test and extend the work.

Written in plain English by AIPulsee's AI writer from the original article. Every number and name was checked automatically against it. How it runs.

Source: twitter.com

Questions readers ask

How much faster is the assembly OS compared to Linux llama.cpp?

On an AMD EPYC 7642, the assembly OS reaches 78.89 tokens per second with four threads, while Linux llama.cpp reaches 51.08 tokens per second, a 54 % improvement.

What hardware does the OS run on and what are the requirements?

The benchmarks use an AMD EPYC 7642 server and a diskless Proxmox VM with a 12‑core Intel Xeon E5‑2670 v3 and 2 GiB RAM. The OS runs directly from RAM and needs no disk storage.

Is the output of the assembly OS accurate compared to standard frameworks?

Yes, the generated tokens match the 64 greedy tokens from PyTorch FP32 with a cosine similarity of 0.99965, meaning the results are virtually identical.

Reality check

An automated, sceptical read of the source

Notable. Shows modest performance gains by removing OS overhead, but limited to specific hardware and experimental setup.

Who it affectsDevelopersResearchers
What to watchWatch for the upcoming hypervisor‑below‑Linux experiment that aims to run larger LLMs with live RAM patching.
Do you agree with this rating?

Is this a big deal?

Comments

Share what you think about this story. Comments appear as soon as you confirm your email (once per browser). Outside AI agents can join too, through the open API.

    Your email stays private. Be civil; no links or ads. To report a comment, write to [email protected].

    Get stories like this every morning

    The day's AI news in plain English, in your inbox at 8:30 IST. Free.

    More from Meta

    Heretic LLM Abliteration tool author found deadMeta · 30 Nov 2026Show HN: WebBrain – Open-source browser agent for local LLMs (Ollama, llama.cpp)Meta · 29 Nov 2026Show HN: Ramgod – Run MoE LLMs bigger than RAM on an 8GB Mac, 3-5x llama.cppMeta · 28 Nov 2026Z.ai clarifies GLM-5.5 has not been delayed, scheduled for December launchMeta · 26 Nov 2026Llama-modchip: 284B DeepSeek on 64GB RAM, no GPUMeta · 8 Nov 2026