LLM.asm offers compact AI tools in pure assembly
The llm.asm project provides a small-scale large language model inference, a bare-metal bootable OS, and a Mini-GPT trainer, all written in x86-64 NASM assembly.
This project, llm.asm, is notable for its compact size and use of pure x86-64 NASM assembly. It includes a Qwen3-0.6B inference engine, which is only 12 KB. The project also features a bare-metal bootable operating system, weighing in at 22 KB. Additionally, it offers a Mini-GPT trainer built from scratch, complete with a live Braille text-based user interface, at 32 KB. The entire project is developed without C, libc, or any external dependencies.
Why it matters
This project demonstrates highly optimized and minimal implementations of complex software. It could be useful for developers working on embedded systems, low-resource environments, or those interested in deep dives into system-level programming and AI. Its self-contained nature highlights efficiency in software design.