← All news

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

ModelQwen/Qwen3-0.6B
Kernel size24,252 bytes stripped (FAST_Q8=1 default)
Cold boot74 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
Requirementsx86-64 CPU with AVX2, FMA and F16C
Hacker News155 points

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.

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.

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.

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

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).

All 2 Open source stories →

Spotted a mistake? Email hello@capylaunch.com and we will correct it. How we make CapyLaunch TLDR News.

Get CapyLaunch Weekly

New indie launches and the week in AI tools and models, every Monday. Free, and you can unsubscribe anytime.

We send a confirm link first. Privacy