Bare Metal Qwen: running an LLM directly on bare metal
alesha-pro (llm.asm project)
A project called llm.asm shows the Qwen language model running on bare hardware with no operating system underneath. It drew 155 points on Hacker News.
Source: github.com ↗ · By CapyLaunch
Quick facts
| Model | Qwen/Qwen3-0.6B |
|---|---|
| Kernel size | 24,252 bytes stripped (FAST_Q8=1 default) |
| Cold boot | 74 to 94 ms to interactive prompt |
| Decode speed (KVM) | 134.9 tok/s on AMD EPYC 7642, 16 vCPUs |
| Decode speed (Proxmox) | 55.4 tok/s on Intel Xeon E5-2670 v3, 12 cores |
| Requirements | x86-64 CPU with AVX2, FMA and F16C |
| Hacker News | 155 points |
What is it
llm.asm is an open source project that runs the Qwen3-0.6B language model directly on x86-64 hardware or KVM, with no Linux, Windows, C, Rust or libc underneath. The whole bootable kernel is a 24,252 byte stripped static Multiboot 1 binary written in assembly. It can be booted from a terminal over serial or packaged as a hybrid BIOS and UEFI ISO.
How it works
The model file is bound zero-copy from physical RAM on 2 MiB huge pages, and an assembly runtime handles the work. The kernel supports multi-turn chat with a persistent KV-cache across turns and brings all SMP cores online. The project reports 100% token-exact parity with its Phase 1 build across 1 to 32 vCPUs.
Why it matters
It shows how far the software stack under a local model can be stripped down. The sources say it boots to an interactive chat prompt in 74 to 94 ms on cold boot and runs with zero dynamic dependencies. That may matter if you are building embedded or edge AI products.
For builders: Shows how far you can strip the software stack under a local model, which may matter if you are building embedded or edge AI products.
Who + how to try
For: Developers and makers who are interested in embedded or edge AI, or who want to study a minimal local LLM stack.
Try:
https://github.com/alesha-pro/llm.asm/tree/main/02-baremetal-os
FAQ
What hardware does it need?
An x86-64 CPU with AVX2, FMA and F16C. The build uses nasm and binutils, and QEMU KVM is used for testing.
How do I try it?
Build with make os FAST_Q8=1, then boot with qemu-system-x86_64 using the kernel build/asm-llm-os.elf and the model file models/qwen3-0.6b-q8_0.asmbin as the initrd. You can also build a hybrid ISO with make os-iso.
Does it run on Linux?
No. The sources say it runs with no Linux, no Windows, no C, no Rust and no libc.
What model file does it need?
An exported models/qwen3-0.6b-q8_0.asmbin file, either the v2 format with FP16 scales (recommended, about 614 MiB) or the legacy v1 format with FP32 scales (about 649 MiB).
Also new this week in Open source
All 2 Open source stories →Rockbox ported to an undocumented $9 MP3 player using LLMs
A developer ported the open-source Rockbox firmware to the YP3, a cheap undocumented MP3 player sold on AliExpress, with help from LLMs. The write-up drew 155 points on Hacker News.
OpenComputer: open source cloud coding agent you can run in your own cloud
OpenComputer is an open source cloud coding agent that runs in your own AWS, GCP or Azure account, using one durable VM per team. The founders report a first commit in 24 seconds versus 53 to 72 seconds for alternatives they benchmarked.
Spotted a mistake? Email hello@capylaunch.com and we will correct it. How we make CapyLaunch TLDR News.
