llm.asm

alesha-pro

Three complete LLM projects—Qwen3-0.6B inference, a bootable OS, and a Mini-GPT trainer—written in pure x86-64 NASM assembly.

AssemblyCreated

What is alesha-pro/llm.asm?

llm.asm is a collection of three complete LLM projects written in 100% pure x86-64 NASM assembly with zero C, libc, or external dependencies. It includes a 12 KB Qwen3-0.6B inference engine, a 22 KB bare-metal bootable OS, and a 32 KB Mini-GPT trainer with a live Braille TUI.

Every math kernel—including expf, sincosf, and RMSNorm—is assembled directly with nasm and linked with ld.

Low-level systems programmers and ML enthusiasts can study how transformer inference and training work at the bare-metal instruction level.

assemblyavx2bare-metalllmmachine-learningnasmosdevqwen

Before you startThe README says

Runs on
x86-64 PCs; the bootable OS runs on bare metal or KVM; the eBPF phase targets Linux 6.12
Needs
x86-64 CPU with AVX2, FMA and F16C; nasm and GNU binutils; Python with numpy only for offline weight export
How you get it
Build from source with make all; Phase 6 weights and ISO are on Hugging Face
Not yet
No prebuilt ISO is provided for phase 2; you build it yourself

Facts from GitHub (updated Dec 1, 2026) and the project's README. License summaries are simplified: check the license file. RepoRanking reviews listings for relevance and spam, and doesn't test or vouch for code.