A 24 KB Assembly OS Boots Qwen3-0.6B in 74 ms With No Linux, No C, No libc

Bare Metal Qwen

A standalone x86-64 kernel written entirely in assembly boots Qwen3-0.6B on bare metal or KVM in 74–94 ms, with no Linux, Windows, C, Rust, or libc. The stripped Multiboot kernel is just 24,252 bytes; the 614 MiB model binds zero-copy from physical RAM on 2 MiB huge pages. It hits 134.9 tok/s on 16 vCPUs and 55.4 tok/s on a diskless Proxmox VM, with token-exact parity to the earlier Linux-based inference phase.

Because boot.asm identity-maps guest RAM with 2 MiB huge pages, the bare-metal kernel avoids 4 KiB page-table walks across the 614 MiB model and outperforms both Linux mmap() Phase 1 and llama.cpp CPU Q8_0 at every thread count.
  1. swatcoder

    It looks like this is one subproject in a larger exercise and the top-level README presents the benchmarks that peg this against a pure-assembly Linux ELF (also in this repo) and llama.cpp:

    https://github.com/alesha-pro/llm.asm/blob/main/README.md

  2. george_max

    For smaller models on scarce compute, this could be useful for optimizing speed. But for frontier models, the additional layer -- that is, Linux or other management tools to host it -- is incredibly minimal in terms of resource allocation relative to the resources used by the frontier model.

    Apart from this, I really don't think there is a benefit or use case. Maybe an ASIC instead of a GPU would be more beneficial to LLMs in terms of efficiency.

  3. electroglyph

    this is hilarious, i jokingly proposed this a week ago or so in the LocalLLM discord and here it is

  4. Revanche1367

    I was just ruminating as a sort of joke on HN a couple of days ago that LLMs could in the near future be the “OS” in a sense, directly running on metal and launch other programs, perhaps even generate them from scratch on the fly. People weren’t very appreciative it seemed, but nice to see others have been going farther ahead with a similar thought process.

  5. bhouston

    If this works well, I could imagine this is how LLMs would be served in the data center. just need a network stack and some type of isolation? I guess the isolation requires a hypervisor or OS of some sort and then we may be back into the same issue that we need an OS.

More from this day

2026-11-25