llm.asm OS

by Alexey Fateev · Tool · Text & code

A bootable operating system written in x86-64 assembly that starts straight into a chat with a built-in language model, on real hardware or a virtual machine.

unproven

Tiny assembly OS that boots straight into Qwen3-0.6B chat; speed claims untested by others

Latest · Nov 2624,252-byte pure x86-64 assembly Multiboot OS with Qwen3-0.6B baked in; no Linux, C, Rust or libc; live multi-turn KV-cache chat over VGA, PS/2 and serial

AccessOpen codePricefreeRuns onLinuxLicenseMIT

Why we say so

Alexey Fateev, the maker, says the 24,252-byte OS decodes 31-54% faster than llama.cpp at 1 to 16 threads (134.94 vs 103.03 tok/s at 16) on an AMD EPYC 7642, and that output matches PyTorch FP32 on 64 greedy tokens. The only other voice, 劉 尭 (Ryū Takashi), repeats the announcement and its requirements (AVX2/FMA/F16C, about 1.1 GB RAM, 2,048-token context) without testing it. Nobody independent has run or benchmarked it, and the comparison covers only a 0.6B model on CPU.

Seen running on

MachineSpeedHowSeen by
1 run, memory not given: 78 tok/s
Xeon E5-2670 v3
asm-llm-os
78 tok/s
111.5 prompt
0.6B · Q8_0rahlquist · Nov 26

Evidence

  1. Nov 26
    Pure x86-64 assembly OS, kernel about 24KB, boots straight into chat with Qwen3-0.6B
    Reported劉 尭 (Ryū Takashi)viaPC WatchJapaneseMaker's claimAlexey Fateevviarahlquist
  2. Nov 26
    Boots in 74 to 94 ms into 64-bit Long Mode, wakes all cores over APIC, maps 614 MiB Q8_0 weights directly from physical RAM
    Maker's claimAlexey Fateevviarahlquist
  3. Nov 26
    Decode speed 1.31-1.54x that of llama.cpp (CPU, Q8_0) on an AMD EPYC 7642, at 1-16 threads
    Maker's claimAlexey FateevviaPC WatchJapaneserahlquist
  4. Nov 26
    In a 16-vCPU VM on an AMD EPYC 7642, 134.94 tok/s versus llama.cpp's 103.03, 31% higher
    Maker's claimAlexey FateevviaPC WatchJapaneserahlquist
  5. Nov 26
    On a diskless Proxmox VM (12-core Xeon E5-2670 v3, 2 GiB RAM) boots to prompt in under 5 s; 78 tok/s decode, up to 111.5 tok/s prefill
    Maker's claimAlexey Fateevviarahlquist
Show all 9
  1. Nov 26
    Output is bit-exact across thread counts and matches all 64 greedy tokens against PyTorch FP32 (0.99965 cosine)
    Maker's claimAlexey Fateevviarahlquist
  2. Nov 26
    Needs an x86-64 CPU with AVX2/FMA/F16C; model takes 614MiB (FP16 scale) or 649MiB (FP32 scale) plus a 449MiB KV-cache area; runs entirely in RAM.
  3. Nov 26
    No disk driver; OS and model run from RAM, so it boots even in a VM with 0GB disk. Default context 2,048 tokens, KV cache resets near the limit.
  4. Nov 26
    Drivers limited to COM1 serial, 80x25 VGA console, PS/2 keyboard, PIT/RDTSC timing and ACPI power-off; kernel boots to chat prompt in 74-94ms.
    Maker's claimAlexey FateevviaPC WatchJapanese

Everything said about llm.asm OS, on the wire

Cost to run

Alternatives

Works with