24KB Pure Assembly OS Runs Qwen3-0.6B, 54% Faster than llama.cpp
开发者 superalesha 从零用纯 x86-64 汇编写了一个仅 24,252 字节的 Multiboot 操作系统 asm-llm-os,不含 Linux、Windows、C、Rust 或 libc,把 Qwen3-0.6B 模型直接跑在该裸机系统上。据帖子转述,其推理速度比 Linux 上运行 llama.cpp 快 54%,单 token 延迟为 74-94ms。项目已以 MIT 协议开源在 GitHub(alesha-pro/llm.asm),获约 1.1k star。
已确认
- 系统镜像 24,252 字节,为纯 x86-64 汇编实现的 Multiboot OS(asm-llm-os.elf),无 Linux/Windows、无 C/Rust/libc
- 实现了引导代码、多核调度、tokenizer 等完整组件
- 推理在 1 到 32 个 vCPU 之间输出 token 级完全一致(bit-exact)
- 仓库含三个项目:Qwen3-0.6B 推理(12KB)、裸机系统(22KB)、训练器(32KB),推理部分含 BPE tokenizer
- 仓库 MIT 协议开源,并附演示视频
尚未确认
- 「比 llama.cpp 快 54%」与 74-94ms 单 token 延迟均来自开发者自述的演示数据,帖子材料中无第三方复测
为什么重要
- 该项目展示了在完全剥离操作系统和运行时开销后,用极小 footprint 的裸机环境承载 LLM 推理的可行性,对边缘设备和嵌入式部署极具参考价值
- 多核 bit-exact 输出说明其确定性调度实现,这在并行推理中并不常见
2026-11-26 ~ 2026-11-26 · 5 related posts
Primary sources
- 24KB pure-assembly OS runs Qwen3-0.6B up to 54% faster than llama.cpp — heyshrutimishra ·
- llm.asm repo: Qwen3 inference, bare-metal OS and GPT trainer, all in NASM — heyshrutimishra ·
- 24KB assembly kernel runs Qwen3-0.6B with token-exact parity from 1 to 32 vCPUs — petrusenko_max ·
- 24KB pure-assembly OS runs Qwen3-0.6B 54% faster than llama.cpp — AIFlow_ML · 2026-11-26
- [source] 24KB assembly kernel runs Qwen3-0.6B with token-exact parity from 1 to 32 vCPUs — petrusenko_max · 2026-11-26
- [source] 24KB pure-assembly OS runs Qwen3-0.6B up to 54% faster than llama.cpp — heyshrutimishra · 2026-11-26
- [source] llm.asm repo: Qwen3 inference, bare-metal OS and GPT trainer, all in NASM — heyshrutimishra · 2026-11-26
1 near-duplicate retellings: Kyrannio