@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 na…

X AI KOLs Timeline Tools

Summary

A developer built a 24 KB pure x86-64 assembly OS from scratch with no Linux or C toolchain, running Qwen3-0.6B directly from RAM and outperforming native Linux llama.cpp by up to 54% on the same hardware. The project includes an ISO builder, Proxmox setup guide, and bit-exact output matching PyTorch FP32.

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 bytes, written from scratch without Linux, Windows, C, Rust, or libc. It boots in 74 to 94 ms straight into 64-bit Long Mode, wakes every CPU core over APIC, maps the 614 MiB Q8_0 weights directly from physical RAM, and drops you into a live multi-turn KV-cache chat over VGA, PS/2 keyboard, and serial. I ran head-to-head CPU benchmarks against llama.cpp (Q8_0, -ngl 0) on the same AMD EPYC 7642: - 1 thread hits 23.67 tok/s vs 16.63 (+42%) - 4 threads hit 78.89 tok/s vs 51.08 (+54%) - 8 threads hit 118.08 tok/s vs 80.79 (+46%) - 16 threads hit 134.94 tok/s vs 103.03 (+31%, 136.6 peak) On a diskless 0 GB Proxmox VM (2014 12-core Intel Xeon E5-2670 v3, 2 GiB RAM), it boots straight to the prompt in under 5 seconds (95 ms kernel boot) and runs live out of RAM at 78 tok/s decode and up to 111.5 tok/s prefill, with a hybrid BIOS+UEFI ISO builder included too. Output stays bit-exact across thread counts and matches all 64 greedy tokens against PyTorch FP32 (0.99965 cosine). The 14.7 KB Linux ELF build (FAST_Q8=1 INT8xINT8 AVX2+F16C) also beats llama.cpp by 18% to 36% from 1 to 40 threads, and booting bare metal with 2 MiB huge pages squeezes out another 10% on top. Repo, ISO builder, and Proxmox setup guide are in the reply below.
Original Article
View Cached Full Text

Cached at: 11/25/26, 11:52 PM

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 bytes, written from scratch without Linux, Windows, C, Rust, or libc. It boots in 74 to 94 ms straight into 64-bit Long Mode, wakes every CPU core over APIC, maps the 614 MiB Q8_0 weights directly from physical RAM, and drops you into a live multi-turn KV-cache chat over VGA, PS/2 keyboard, and serial.

I ran head-to-head CPU benchmarks against llama.cpp (Q8_0, -ngl 0) on the same AMD EPYC 7642:

  • 1 thread hits 23.67 tok/s vs 16.63 (+42%)
  • 4 threads hit 78.89 tok/s vs 51.08 (+54%)
  • 8 threads hit 118.08 tok/s vs 80.79 (+46%)
  • 16 threads hit 134.94 tok/s vs 103.03 (+31%, 136.6 peak)

On a diskless 0 GB Proxmox VM (2014 12-core Intel Xeon E5-2670 v3, 2 GiB RAM), it boots straight to the prompt in under 5 seconds (95 ms kernel boot) and runs live out of RAM at 78 tok/s decode and up to 111.5 tok/s prefill, with a hybrid BIOS+UEFI ISO builder included too. Output stays bit-exact across thread counts and matches all 64 greedy tokens against PyTorch FP32 (0.99965 cosine).

The 14.7 KB Linux ELF build (FAST_Q8=1 INT8xINT8 AVX2+F16C) also beats llama.cpp by 18% to 36% from 1 to 40 threads, and booting bare metal with 2 MiB huge pages squeezes out another 10% on top.

Repo, ISO builder, and Proxmox setup guide are in the reply below.

Similar Articles

A 24 KB kernel runs Qwen3-0.6B without Linux or Windows

Reddit r/LocalLLaMA

Alexey Fateev released llm.asm, a 17,252-line pure x86-64 assembly project whose 24 KB kernel boots a bare-metal OS with no Linux or Windows and runs Qwen3-0.6B, with benchmarks claiming text generation faster than llama.cpp.

Bare Metal Qwen

Hacker News Top

llm.asm 提供三个纯 x86-64 NASM 汇编编写的完整 LLM 项目,零依赖地运行 Qwen3-0.6B 推理、裸机操作系统和 Mini-GPT 训练,CPU 解码性能比 llama.cpp 快 18% 到 36%。

A Linux desktop in x86_64 Assembly

Lobsters Hottest

A developer rebuilt their entire Linux desktop stack—from shell to terminal, window manager, and utilities—in pure x86_64 Assembly using Claude Code, achieving microsecond startup times and hours of extra battery life.