llm.asm — What is it?

The 'alesha-pro/llm.asm' project is a collection of three minimalist, bare-metal, and fully assembly-written projects for language model inference, operating system, and training, designed to showcase the capabilities of x86-64 NASM assembly.

⭐ 3,302 Stars 🍴 505 Forks Assembly MIT Author: alesha-pro
Source: Official README and linked documentation View on GitHub →

Why it matters

This project is attracting attention due to its unique approach of using 100% pure x86-64 NASM assembly without any dependencies, showcasing the potential of low-level programming for performance-critical applications. It addresses the pain point of high-level language overhead and fills the gap in the market for minimalistic, bare-metal solutions. The project differs through its hand-written math kernels, GEMM/GEMV engine, tokenizer, thread pool, SMP kernel, optimizer, and Braille TUI.

Source: Official README and linked documentation

Core Features

Qwen3-0.6B inference engine

A static Linux ELF running Qwen/Qwen3-0.6B with a built-in BPE tokenizer, supporting single-shot and multi-turn KV-cache REPL, and achieving high decode speeds with low latency.

Source: Official README and linked documentation
Bare-metal bootable OS

A bootable bare-metal OS with no Linux or Windows dependencies, capable of running Qwen3-0.6B and supporting SMP and multi-turn chat interfaces.

Source: Official README and linked documentation
Mini-GPT trainer and sampler

A from-scratch FP32 Mini-GPT trainer and sampler with a register-blocked AVX2+FMA SGEMM, full analytical backward pass, and a live 80x24 Braille TUI for interactive training and inference.

Source: Official README and linked documentation

Architecture

The project is structured into three distinct phases: inference, operating system, and training. Each phase is modular, with a clear separation of concerns. The code is organized into shared libraries for common functions and separate directories for each phase. The data flow is linear, with each phase building upon the outputs of the previous one.

Source: Official repository tree and dependency files

Project Knowledge Graph

Knowledge graph: project (center) + core features (inner hexagons) + key dependencies (outer chips) None Qwen3-0.6B inference engineQwen3-0.6B inferenc… Bare-metal bootable OSBare-metal bootable… Mini-GPT trainer and samplerMini-GPT trainer an… llm.asm Project Core feature Key dependency

Tech Stack

Languagex86-64 NASM assemblyFrameworkNone
None
Bare-metal, potentially QEMU or Proxmox VE for virtualization
Source: Official README and linked documentation

Quick Start

Clone the repo and build everything with `make all`. Run Qwen3-0.6B inference, boot the bare-metal OS, or train Mini-GPT using the provided scripts and build commands.
Source: Official README and linked documentation

Use Cases

This project is suitable for developers interested in low-level programming, bare-metal OS development, and performance-critical applications. It can be used for educational purposes, as a reference for minimalist assembly programming, or as a starting point for developing custom, high-performance systems.

Source: Official README and linked documentation

Strengths & Limitations

Strengths

  • Demonstrates the power of assembly language for performance optimization.
  • Provides a broad, end-to-end solution for language model inference, OS, and training.
  • Offers a unique educational resource for understanding low-level programming and system architecture.

Limitations

  • Limited to x86-64 architecture.
  • Requires advanced knowledge of assembly language and system programming.
Source: Official README and linked documentation

Latest Release

Not enough information.

Source: Official releases

Verdict

The 'alesha-pro/llm.asm' project is a remarkable demonstration of the capabilities of assembly language and low-level programming. It is an invaluable resource for developers looking to examine the intricacies of system architecture and performance optimization, particularly in the context of bare-metal development and language models.

Sources and review scope
This review is based on the project's public documentation. Versions, installation commands, and feature boundaries can change upstream; check the cited sources and current release before use. Sources checked on: 2026-11-26 18:30.

Reference materials: README, GitHub API, dependency files