24KB pure-assembly OS runs Qwen3-0.6B 54% faster than llama.cpp

AIFlow_ML · x · 2026-11-26

A developer baked Qwen3-0.6B into a 24,252-byte pure x86-64 assembly OS (no Linux, C, Rust, or libc). It boots in 74-94ms into 64-bit Long Mode, wakes all cores via APIC, maps 614MiB of Q80 weights directly from physical RAM, and serves a multi-turn KV-cache chat over VGA/PS-2/serial. Benchmarks on the same AMD EPYC 7642 vs llama.cpp (Q80, -ngl 0): 23.67 vs 16.63 tok/s single-thread (+42%), 78.89 vs 51.08 tok/s at 4 threads (+54%). Bare-metal LLM inference beats Linux llama.cpp by a wide margin.

Original post →

More from Infra

Infra channel →