30B model runs bare-metal on Raspberry Pi 4 in 10KB of assembly at 2.7 tok/s

Obijuan_cube · x · 2026-12-02

A project called 10KILOMIND implements a bare-metal chat terminal in under 10KB of AArch64 assembly, running the 30B-weight Qwen3-30B-A3B model on a Raspberry Pi 4 with no operating system at 2.7 tokens per second — even squeezed into a 1987 Toshiba T1200 case.

The tokenizer, USB keyboard and SD card drivers, screen and font are all hand-written assembly. The key insight is a memory-bandwidth lesson from MoE: only 8 of 128 experts are active per token per layer, so only 3B weights are streamed per token, combined with 2-3 bit GGUF weights multiplied on the fly without dequantizing.

Original post →

More from Infra

Infra channel →