24KB pure-assembly OS runs Qwen3-0.6B up to 54% faster than llama.cpp
heyshrutimishra · x · 2026-11-26
A developer built llm.asm: a 24KB bare-metal "OS" in pure x86-64 assembly that exists solely to run an AI model — boot code, multi-core handling, tokenizer and all math for Qwen3-0.6B, with zero C, Rust, or libc.
- Boots in under 100ms straight into a chat; weights live in RAM, so it runs on a VM with no disk
- 79 tokens/s at 4 threads on an AMD EPYC vs 51 for llama.cpp — up to 54% faster
- The author's analysis: the same assembly on Linux is already 18-36% faster than llama.cpp; dropping the OS only adds 10%. Most of the win comes from hand-tuned math kernels, showing small models on CPUs still leave big speed gains on the table
Caveats: decode speed only, on a 0.6B model; llama.cpp handles prompt batching and hundreds of models. MIT-licensed and open source.
Related event: 24KB Pure Assembly OS Runs Qwen3-0.6B, 54% Faster than llama.cpp(5 posts)→
More from coding & agent
- vLLM team launches Semantic Router Labs, an open lab for per-request model routing — vllm_project · 2026-11-26
- Anthropic open-sourced 16 plugins turning Claude into a full work team — ifioknkem · 2026-11-26
- Do AI agents actually resume interrupted tasks, or just take shortcuts? Reddit debates context loss — aruthesa · 2026-11-26
- Python 3.15 REPL suggests names after 'from module import' with type colors — KhuyenTran16 · 2026-11-26
- Weaviate Query Agent ships native MCP server for direct AI data queries — CShorten30 · 2026-11-26
- The LLM is the brain, the harness is the workshop: how agents really work — jonmarkgo · 2026-11-26