Field noteNov 27, 20265 min read1 source

llm.asm/02-baremetal-os at main: alesha-pro/llm.asm

In one minute

A GitHub project boots Qwen3-0.6B in a 24,252-byte x86-64 assembly kernel, without Linux or a conventional runtime. Its detailed implementation and parity tests make it a useful systems experiment, while the reported speedups remain results from the author’s specific hardware and test setup.

What changed: Qwen3-0.6B now runs in a 24-KB operating system written entirely in x86-64 assembly, extending the project beyond its 14-KB Linux ELF implementation.

What happened

The llm.asm repository describes Phase 2 of a bootable bare-metal operating system for running Qwen/Qwen3-0.6B. The project says its stripped Multiboot 1 kernel is 24,252 bytes with FAST_Q8 enabled by default, or 23,612 bytes in the legacy configuration. The kernel is written in assembly and has no dynamic dependencies. It boots into 64-bit Long Mode and runs without Linux, Windows, C, Rust or libc. The stated prerequisites include an x86-64 CPU with AVX2, FMA and F16C.

The system binds a model file in the project’s .asmbin format directly from physical RAM, without copying the weights. The README identifies a v2 format with FP16 scales and a v1 format with FP32 scales; the v2 model is listed as 614 MiB and the v1 as 649 MiB. A 449 MiB arena is reserved for the KV-cache and scratch space. The kernel supports SMP, serial and VGA output, PS/2 keyboard input, and interactive multi-turn chat with persistent KV-cache. It can run under QEMU KVM or as a hybrid BIOS-and-UEFI ISO; the documented Proxmox setup uses a diskless VM with 2 GiB of RAM.

For an AMD EPYC 7642 under QEMU KVM, the README reports 134.94 tokens per second decoding with 16 vCPUs, with a peak of 136.63. It lists 23.46 tokens per second at one vCPU and 118.97 at eight. A separate live Proxmox VE virtual machine on an Intel Xeon E5-2670 v3, with 12 cores and 2 GiB RAM, is reported at 55.43 tokens per second decoding. The repository also says its five verification prompts match Phase 1 exactly in prompt tokens, generated tokens and raw UTF-8 bytes, across configurations from one to 32 vCPUs.

The project’s instructions cover building the kernel, booting it with QEMU, creating an ISO and setting up the diskless Proxmox VM. Its built-in controls include context length, thread count, temperature and reasoning mode. The repository says the source is licensed under MIT. These details make the work inspectable and reproducible in principle, but reproducing it still requires compatible hardware or virtualization, a separately exported model file and the stated build dependencies.

What the archive adds

New Runtime’s earlier coverage includes Qwen3.5-0.8B CPU inference implemented entirely in x86-64 assembly, published November 8, 2026. This is a new event on a related engineering thread: the earlier note described an assembly inference engine, while this project adds a bootable bare-metal OS around Qwen3-0.6B.

Trend signal

This is a narrow example of harness architecture outliving model choice: the project’s boot path, memory handling and SMP runtime are substantial engineering boundaries around a small model. The repository does not establish that this architecture is a practical production choice, but it illustrates how much the runtime can shape a model’s operating environment.

Connections to other events

New Runtime’s November 8, 2026 note on Qwen3.5-0.8B CPU inference in x86-64 assembly is a close technical connection. Both projects focus on low-level, CPU-based inference for Qwen models; this one goes further by describing a complete bootable OS and direct binding of model weights from RAM.

Why it matters

For teams building AI systems, the headline is not that a 24 KB OS makes a large model small: the model file still occupies hundreds of megabytes, and the documented VM uses 2 GiB of RAM. The useful signal is the separation between the inference workload and a conventional host operating system, together with explicit treatment of memory mapping, cache space, parallelism and hardware capabilities.

That may matter to engineers investigating embedded or tightly controlled inference environments, or to systems researchers trying to understand performance below the framework layer. The repository offers concrete implementation details to inspect, but the reported throughput does not establish a general advantage over mainstream inference stacks. Teams would need comparable hardware, model formats and decode settings before treating these numbers as a basis for deployment decisions.

Limits and uncertainty

The performance figures are reported by the project author and are not independently verified here. They apply to named configurations, including QEMU KVM on an EPYC 7642 and a Proxmox VM on a Xeon E5-2670 v3; results may change with host settings, workload, compiler or model-file choices. The README reports parity on five prompts and exact outputs against Phase 1, but that is not a broad evaluation of model quality or correctness. The repository does not establish production reliability, energy use, operational maintenance cost or suitability beyond the demonstrated environment.

Reader takeaway

The kernel’s 24 KB size is a striking systems result, not the memory footprint of the model or a turnkey deployment recipe. The reusable lesson is to examine the whole inference path—weights, cache, memory mapping, CPU features and parallelism—when testing performance claims. Treat the throughput as a project-specific benchmark until it is reproduced under your own workload.

Open question

Can independent testers reproduce the reported advantage over llama.cpp on comparable hardware while matching model format, quantization and decode settings?

How this was made

First seen
Nov 27, 2026, 11:00 UTC in our intake.
Sources
1 source carried the story when we picked it up; we cite the original.
Written by
An AI model; the exact model was not recorded.
Critic
No separate critic model on this desk; the automated checks below gate publication.
Checks passed
The cited primary source was fetched and verified; the source is not older than 30 days; no earlier note covers the same story; the copy passed the site's structure and language checks.
Confidence
Novelty judgement: a new fact, high confidence. Editorial value: medium.
Human review
Published without a per-item human sign-off. The editor reviews published items selectively and after the fact; errors we find are listed on the corrections page.

Corrections and error statistics

Evidence / sources

  1. 1github.com/alesha-pro/llm.asm/tree/main/02-baremetal-os
All Field Notes

Next reads

Read next

Open the graph
  1. 01topicGithubExplore the github topic hub.
  2. 02archiveField NotesOpen the latest editorial analysis.
  3. 03sourcesSourcesSee the original sources this archive cites.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract