llm.asm

12 KB of pure assembly runs Qwen3-0.6B, soldering an LLM into a bare-metal boot image

What it is

alesha-pro’s extreme engineering collection written in 100% pure x86-64 NASM assembly: a 12 KB Qwen3-0.6B inference engine, a 22 KB bare-metal bootable system, and a 32 KB from-scratch Mini-GPT trainer with a live Braille loss-curve UI. Zero C, zero libc, zero dependencies; created November 25, 2026 and past 3400 GitHub stars within a week. The inference engine boots Qwen3-0.6B straight from a boot image with no OS underneath, and the trainer runs backpropagation on bare metal while rendering Braille training curves in real time.

Highlights

  • A 12 KB engine runs Qwen3-0.6B on bare metal with no OS
  • A 22 KB bootable system plus 32 KB from-scratch Mini-GPT trainer close the loop
  • Live Braille loss curves make training visible in real time
  • Zero C, zero libc, zero dependencies, all logic hand-written in assembly

How to use

Follow the README to build the image, flash it to a USB stick, and boot into the inference or training demo; most people read the source to study AVX2 numerics and assembly engineering.

License

Released under MIT. Read the terms before commercial use or redistribution, especially if you plan to offer it as a service.