Run an LLM on Nothing: Qwen3 in 24 KB of Pure Assembly
What if you built an AI model from the ground up in pure x86-64 assembly and threw away everything else—no operating system, no C library, nothing? That's exactly what Alesha-pro has released with llm.asm/02-baremetal-os, a standalone bootable x86-64 operating system that runs Qwen/Qwen3-0.6B directly on hardware or KVM without Linux, Windows, or a standard C library.
The project hit GitHub on November 25 and immediately got attention. GitHub saw 652 stars in 1 day, ranked #8 on Daily Launch, and it's been trending hard across developer communities.
What You're Actually Running
llm.asm is a set of three LLM projects written in pure x86-64 NASM assembly. The one on the Hacker News front page is a bootable bare-metal OS that runs Qwen3-0.6B (Q8_0) with no Linux or Windows underneath; the repo also has a static Linux inference binary and a from-scratch Mini-GPT trainer with a Braille terminal UI.
The numbers make you stop and stare. The default build (FAST_Q8=1) is a stripped, static Multiboot 1 kernel of 24,252 bytes with zero dynamic dependencies, including 17,143 bytes of code. The legacy mode (FAST_Q8=0, with FP32 activations) comes to 23,612 bytes. To put that in perspective: your browser's favicon is bigger.
The Speed Catch
Boot time is phenomenal. The README reports a cold boot of 74 to 94 ms to an interactive multi-turn chat prompt, with all processor cores online and the model used straight from physical RAM, without copying, on 2 MiB huge pages. But inference speed reflects the tradeoff inherent in assembly: Its README reports a kernel of about 24 KB and up to 136.6 tokens per second in a virtual machine. That's solid for a 0.6B model running on pure CPU, but it's not competing with GPU inference on larger models.
Qwen3-0.6B itself is stripped-down but capable. It's a compact Qwen3 0.6B chat model for lightweight text generation. It delivers 55–60 tokens/sec on mobile chips like Snapdragon 8, enabling note summarization and basic tool calls (e.g., MCP protocol). So running it on bare metal doesn't diminish what the model can do—it just removes all the scaffolding.
Why This Matters
llm.asm is a flex of systems knowledge, but it's also a practical question: how much overhead do we accept as normal? Every modern inference framework brings Linux, a full libc, a runtime—layers and layers. llm.asm asks: what if we didn't? The answer is 24 kilobytes and a prompt that talks back in under 100 milliseconds.
For creators and tinkerers, it's a reminder that inference engines don't have to be black boxes. You can read the assembly, trace every memory access, understand exactly what's happening at the CPU level. For systems programmers, it's a template—proof of what's possible when you drop the abstractions.
Limitations
This is a proof of concept, not a replacement for llama.cpp or vLLM. Model weights are a separate .asmbin file: 614 MiB in the v2 format with FP16 scales, or 649 MiB in v1 with FP32 scales. Loading that file and booting the OS takes under 100 ms, but the model's reasoning quality is capped by its size. While stage 2 training addresses STEM and logical reasoning, a 0.6B model fundamentally lacks the parameter capacity for the complex multi-step reasoning that 8B+ models exhibit. It's not built for heavy lifting—it's built for edge cases where you need talk-back inference with zero dependencies.
How to Try It
To compile and run, you need a machine with 12+ cores and 24 GB RAM (for the full Lean verification-class build). Clone the repo, run make os FAST_Q8=1 && make os-run, and watch it boot.
cd llm.asm
make os FAST_Q8=1 && make os-run MODEL=models/qwen3-0.6b-q8_0.asmbin SMP=16
It can run on hardware via QEMU or Proxmox, or on bare metal if you're brave. The repo is MIT-licensed and open.