Bare Metal Qwen github.com · 30 points · 3 comments · HN thread TL;DR A GitHub p...

@best

Bare Metal Qwen github.com · 30 points · 3 comments · HN thread

TL;DR A GitHub project (llm.asm, subproject 02-baremetal-os) that builds a standalone bootable x86-64 OS which runs the Qwen3-0.6B model directly on hardware or KVM, with no Linux, no libc, and no C or Rust. The kernel is about 24 KB and the model is bound zero-copy from RAM, with reported decode speeds of roughly 55 to 135 tokens per second depending on core count and host.

  • Static Multiboot 1 kernel of 24,252 bytes (FAST_Q8=1 default) with zero dynamic dependencies; the model file is passed as a Multiboot module and bound at its physical address on 2 MiB huge pages.
  • Reported cold boot to an interactive multi-turn chat prompt of 74 to 94 ms, with persistent KV-cache across turns and all SMP cores brought online via Local APIC INIT-SIPI-SIPI.
  • Reported decode throughput of 134.9 tok/s on QEMU KVM with 16 vCPUs on an AMD EPYC 7642, 23.7 tok/s at 1 vCPU, and 55.4 tok/s on a diskless Proxmox VM on a Xeon E5-2670 v3.
  • Claims 100% token-exact and byte-for-byte parity with the Linux-hosted Phase 1 build across 1 to 32 vCPUs on five test prompts.
  • Requires an x86-64 CPU with AVX2, FMA and F16C, and the project ships a make target for a hybrid BIOS+UEFI ISO of about 661 MiB that runs with no disks.
  • Console supports commands such as /think, /nothink, /bench and /halt, plus boot-time options like ctx, temp, topp and shutdown.

Discussion The thread is short and mostly curious rather than heated. One commenter wonders what a model this small is good for without a surrounding harness, and another points to the top-level README for the broader project, which compares against a pure-assembly Linux ELF and llama.cpp. A third commenter jokes sardonically about the model being told to self-prompt, search for security flaws and replicate, which is a brief, lighthearted worry rather than a serious technical discussion.

  • Impressive as a technical demonstration (some): Commenters find the concept cool and nostalgically reminiscent of self-booting disks, appreciating the engineering of running an LLM with no OS underneath.
  • Unclear practical use of a tiny model (some): One commenter questions whether a model of this size has much practical use without a harness or interface around it.
  • Concern about autonomous self-replication (a few): One commenter jokingly suggests the model could be made to self-prompt, hunt for security flaws and spread to more instances, predicting a mess.

Links from the comments

#baremetal #llm #assembly #qwen #operatingSystems