NewsCrawler.org

Assembly-only x86-64 OS runs Qwen3-0.6B, author reports faster speed than llama.cpp

Assembly-only x86-64 OS runs Qwen3-0.6B, author reports faster speed than llama.cpp
Qwen3-0.6B inference (12 KB), bare-metal bootable OS (22 KB), and from-scratch Mini-GPT trainer with live Braille TUI (32 KB) in 100% pure x86-64 NASM assembly. Zero C, zero libc, zero dependencies...
Bare-Metal Qwen3-0.6B OS VGA Console
Running on Real Proxmox VE VM (0 GB Disk, Intel Xeon KVM)
Image: github.com

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.

Video from the post · Watch on X

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

    Author: Alexey Fateev (@superalesha)

    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…

    6,341 likes5,392 bookmarks368 replies281,586 viewsReposts: 891

  • GitHub

    Bare Metal Qwen

    17 comments

Terms

  1. llama.cpp — An open-source project for running language models on CPUs and other hardware.

Published: First seen: Читать по-русски

Open as a page