# Bare Metal Qwen

- HackerByte page: <https://hackerbyte.net/en/stories/running-the-qwen-large-language-model-independently-on-bare-metal-hardware-50648365>
- Original source: <https://github.com/alesha-pro/llm.asm/tree/main/02-baremetal-os>
- Hacker News discussion: <https://news.ycombinator.com/item?id=50648365>
- Submitted to Hacker News: 2026-11-25T22:15:34.000Z

Running the Qwen large language model independently on bare metal hardware.

## AI-generated summary

This project presents three LLM implementations entirely in x86\-64 NASM assembly, without any external C or libc dependencies. It includes a 14 KB Qwen3\-0.6B inference engine, a 24 KB bare\-metal OS capable of running the LLM, and a 32 KB from\-scratch Mini\-GPT trainer with a Braille TUI. All projects are designed for maximum performance and minimal size.

## Key points

- Three LLM projects \(inference, bare\-metal OS, trainer\) written in 100% pure x86\-64 NASM assembly.
- Zero C, C\+\+, Rust, libc, or other runtime dependencies.
- Highly optimized for size and speed, with the inference engine at just 14 KB.
- Performance benchmarks show significant speedups over llama.cpp CPU inference.
- Includes a bootable bare\-metal OS for LLM execution and a trainer with a Braille TUI.
