llm.asm
llm.asm is three LLM projects written entirely in x86-64 NASM assembly with no libc: a 14 KB Linux binary that runs Qwen3-0.6B, a 24 KB bootable bare-metal OS that chats with the same model, and a 32 KB Mini-GPT trainer.
Why it matters
For systems programmers and people learning how transformer inference works at the lowest level. Every kernel, the tokenizer, thread pool and optimizer are written by hand, so the code shows what an inference engine actually does.
Highlights
- Qwen3-0.6B inference (Q8_0) as a static Linux ELF of about 14.7 KB with a built-in BPE tokenizer and a --chat mode that keeps the KV cache across turns.
- A bare-metal OS that boots via Multiboot into long mode, brings up SMP cores and chats over VGA, PS/2 and serial, with no Linux or Windows underneath; it can be built as a BIOS+UEFI ISO.
- A from-scratch FP32 Mini-GPT trainer with an analytical backward pass, AdamW and a live Braille terminal UI; the author reports gradients matching PyTorch.
- The author reports 1.18x to 1.36x faster CPU decode than llama.cpp on the same Qwen3-0.6B Q8_0 model on an AMD EPYC 7642.unverified
Taken from the project's own README, docs or launch page. Claims about speed or accuracy are the maker's unless stated otherwise.
Worth knowing: A technical showcase rather than a general inference server: it targets one small model and x86-64 CPUs with AVX2. Benchmark numbers are the author's own, from one machine.
Quick facts
| Pricing | Free |
|---|---|
| Free or paid | Free (open source) |
| License | MIT |
| Language | x86-64 NASM assembly (build with nasm and ld; Python script to export model weights) |
| Platform | x86-64 CPUs with AVX2, FMA and F16C; Linux for the CLI tools, QEMU/KVM or Proxmox for the bare-metal OS. |
| GitHub stars | ★ 1,861 (as of 2026-11-27) |
| Maker | alesha-pro (GitHub) |
Links
- Repository: https://github.com/alesha-pro/llm.asm
Related ranking
See how established tools compare in Best Research & Cited Answers. New releases aren't scored until we review them against the rubric.
What we couldn't verify
- highlights[3] (benchmark is the author's; not reproduced)
Checked 2026-11-27 from the tool's own pages. Prices and star counts change, so confirm on the official site. Listing here is not a ranking or an endorsement.
One email a week on AI that saves business owners time
Every Friday: one tool pick with the business use case, what changed in tools you already use, and the week's AI news in plain English. No spam.
Free. Unsubscribe any time. See our privacy policy.