This project demonstrates a bootable x86-64 operating system that runs Qwen3-0.6B directly on hardware or in a virtual machine, without Linux, Windows, C, Rust, or a C library. The stripped kernel is about 24 KB; the model weights are supplied separately and loaded into RAM. On supported CPUs with AVX2, FMA, and F16C, it reaches an interactive chat prompt in 74-94 milliseconds. The project provides instructions for building and booting it with QEMU, creating a BIOS-and-UEFI hybrid ISO, or running a diskless Proxmox VM. A VGA-and-keyboard console and serial interface support multi-turn chat, command-line batch prompts, reasoning-mode controls, and clean shutdown.
The implementation reuses the project’s assembly inference and model code, adding boot, memory management, hardware drivers, and SMP support. It enters 64-bit mode, maps memory with huge pages, binds model weights directly from their physical location, and reserves a 449 MiB arena for the KV cache and scratch space. It starts available CPU cores and distributes matrix multiplication and attention work across them. An automated suite reports exact parity with the earlier implementation across five prompts, including Russian text and reasoning mode, with matching prompt tokens, generated tokens, and UTF-8 output. Reported decode performance reaches 134.9 tokens per second on a 16-vCPU KVM setup and 55.4 tokens per second on a 12-core Proxmox VM.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.