cd /news/machine-learning/run-ai-in-pure-assembly-llm-asm-open… · home › topics › machine-learning › article
[ARTICLE · art-177751] src=dev.to ↗ pub= topic=machine-learning verified=true sentiment=↑ positive

Run AI in Pure Assembly - llm.asm Open Source

A developer released llm.asm, an open-source repository written entirely in x86-64 NASM assembly that implements full machine learning workflows without C, libc, or external dependencies. The project includes Qwen3-0.6B inference, a bare-metal bootable OS, and a Mini-GPT training loop, built on custom AVX2, FMA, and F16C accelerated GEMM/GEMV kernels, tokenizers, and thread pools. It has drawn roughly 2,225 stars and 338 forks under an MIT license.

key takeaway

llm.asm shows Qwen3-0.6B inference and a Mini-GPT training loop can run from pure x86-64 NASM with hand-written AVX2/FMA/F16C GEMM and GEMV kernels, no libc, producing tiny static binaries that boot on bare metal.

by read1 min views7 publishedNov 28, 2026

TL;DR: This repository implements complete machine learning workflows directly in x86-64 assembly language using NASM. It bypasses conventional runtimes, C libraries, and interpreters by implementing custom AVX2 kernels, tokenizers, thread pools, and training logic from scratch.

Best for: Systems programmers and low-level engineers interested in bare-metal architecture and custom assembly optimization.

Repository snapshot: ⭐ 2 225 stars · 🍴 338 forks · Assembly · MIT

Daily picks: Follow GitHub Open Source on Telegram

llm.asm is an open-source repository written entirely in 100% pure x86-64 NASM assembly. It implements complete machine learning workflows—including Qwen3-0.6B inference, a bare-metal bootable OS, and a Mini-GPT training loop—without relying on C, libc, or any external dependencies.

Traditional machine learning stacks rely on heavy runtimes, Python, and C/C++ libraries. This project bypasses all conventional layers by implementing custom AVX2, FMA, and F16C accelerated GEMM/GEMV math kernels, tokenizers, thread pools, and training logic directly from scratch. The code compiles down to tiny static binaries that run on Linux or boot straight onto bare metal.

Clone the repository and use NASM to assemble the binaries:

git clone https://github.com/alesha-pro/llm.asm.git
cd llm.asm

This project is an extraordinary tour de force for systems hackers and assembly enthusiasts, but it is obviously impractical for standard production application development.

Would you ever drop down to assembly to optimize model inference speed?

Curated from the repository README and metadata. No hands-on test is claimed; evaluate it in a sandbox before production use.

── more in #machine-learning 4 stories · sorted by recency
── more on @llm.asm 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/run-ai-in-pure-assem…] indexed:0 read:1min 2026-11-28 · —