Description
llm.asm is a unique open-source project hosted on GitHub, distinguished by its implementation entirely in 100% pure x86-64 NASM assembly. This repository provides several distinct components, each showcasing highly optimized and dependency-free code for specific functionalities.
Read More
The project includes a Qwen3-0.6B inference engine, which is remarkably compact at just 12 KB. This component demonstrates efficient large language model inference capabilities within an extremely small footprint, making it suitable for environments with severe memory or resource constraints. Its bare-metal nature ensures maximum performance and control over hardware.
Another core offering is a bare-metal bootable operating system, weighing in at only 22 KB. This OS provides a foundational environment built from scratch, without relying on C, libc, or any external dependencies. It serves as an excellent resource for understanding operating system fundamentals and for developing highly specialized, minimal systems.
Furthermore, llm.asm features a from-scratch Mini-GPT trainer, complete with a live Braille TUI (Text User Interface), all within a 32 KB package. This trainer allows for experimentation with GPT-like models at a fundamental level, offering insights into model training processes and user interaction through a unique Braille interface. The compact size and pure assembly implementation highlight the potential for highly efficient AI development.
The project emphasizes a "zero dependencies" philosophy, meaning it avoids common libraries and frameworks to achieve ultimate control and minimal overhead. This approach is invaluable for embedded systems, security-critical applications, or educational purposes where a deep understanding of every code layer is paramount. The repository is actively maintained, with recent commits indicating ongoing development and feature enhancements, such as the addition of FAST_Q8=1 INT8xINT8 AVX2+F16C kernel and .asmbin v2 FP16 scales.
- CategoryMachine Learning Platforms
- Pricing ModelOpen source
- DeploymentSelf-hosted
- PlatformsLinux
llm.asm's Core Features
Qwen3-0.6B inference engine (12 KB)
Bare-metal bootable OS (22 KB)
From-scratch Mini-GPT trainer (32 KB)
Live Braille TUI for Mini-GPT trainer
100% pure x86-64 NASM assembly implementation
Zero C dependencies
Zero libc dependencies
Zero external dependencies
Compact code footprint for all components
Includes FAST_Q8=1 INT8xINT8 AVX2+F16C kernel
.asmbin v2 FP16 scales support
Open-source project on GitHub
Actively maintained with recent commits
Getting Started with llm.asm
Clone the repository: Use `git clone https://github.com/alesha-pro/llm.asm.git` to get the project files.
Review the Makefile: Examine the `Makefile` to understand the build process and available targets.
Build components: Use `make` commands to compile individual components like the Qwen3 inference or bare-metal OS.
Run inference: Execute the compiled Qwen3 inference binary to perform language model predictions.
Boot the OS: Create a bootable medium and launch the bare-metal OS to explore its functionalities.
Train Mini-GPT: Run the Mini-GPT trainer to experiment with model training and its Braille TUI.
llm.asm's Use Cases
- Low-Level AI Inference
- Bare-Metal OS Development
- Mini-GPT Model Training
- Assembly Language Education
- Embedded Systems AI
- Resource-Constrained Computing







