Assembly-only x86-64 OS runs Qwen3-0.6B, author reports faster speed than llama.cpp
Alexey Fateev (@superalesha) wrote on X that he built a bootable x86-64 operating system that runs the Qwen3-0.6B model without Linux, Windows, C, Rust or libc, and shared the project's README on GitHub. The kernel is a 24,252-byte static Multiboot 1[1] binary written in assembly; it enters 64-bit Long Mode[2] and boots in 74–94 ms to a multi-turn chat with a persistent KV-cache[3].
The Q8_0 model weights, 614 MiB with FP16 scales, are bound directly from physical RAM on 2 MiB huge pages, and all SMP cores are brought online. The README reports 134.9 tok/s decode on QEMU KVM with 16 vCPUs on an AMD EPYC 7642, 23.7 tok/s at 1 vCPU, and 55.4 tok/s on a diskless Proxmox VE VM with an Intel Xeon E5-2670 v3 and 12 cores.
According to the README, the output matches the Phase 1 build across 1 to 32 vCPUs, and the kernel outperforms llama.cpp CPU Q8_0 at every thread count tested. The repository includes build commands, a BIOS+UEFI ISO builder and a Proxmox setup guide. It requires an x86-64 CPU with AVX2, FMA and F16C, and a model file exported with the Phase 1 setup.
Read the original github.comDiscussion on GitHub
Discussion
Most commenters are impressed and some call it quality local AI content. One asks how to reach the VM over Tailscale, and another says they had a similar idea for a headless, low-RAM version of macOS for local AI.
Sources
-
GitHub
I deleted Linux completely, baked Qwen3-0.6B into a 24 KB pure x86-64 assembly OS, and it runs up to 54% faster than native Linux llama.cpp. The entire Multiboot OS binary (asm-llm-os.elf) is 24,252 b…
-
GitHub
Bare Metal Qwen
Terms
- llama.cpp — An open-source project for running language models on CPUs and other hardware.







