# llm.asm: Run Qwen4 on a Bare-Metal UEFI AI OS

This repository profile is provided by osrepos.com, an open source repository discovery platform.

Source: osrepos.com
Repository profile: https://osrepos.com/repo/alesha-pro-llm.asm
Generated for open source discovery and AI-assisted research.

llm.asm is a bare-metal x86-64 NASM AI operating system and GPU inference engine built around Qwen4-35B-A3B and hand-assembled NVIDIA Ampere SASS. It boots through UEFI on an RTX 3090 without Linux, CUDA, or NVIDIA drivers, and supports live Ring-0 app development.

GitHub: https://github.com/alesha-pro/llm.asm
OSRepos URL: https://osrepos.com/repo/alesha-pro-llm.asm

## Summary

llm.asm is a bare-metal x86-64 NASM AI operating system and GPU inference engine built around Qwen4-35B-A3B and hand-assembled NVIDIA Ampere SASS. It boots through UEFI on an RTX 3090 without Linux, CUDA, or NVIDIA drivers, and supports live Ring-0 app development.

## Topics

- assembly
- llm
- machine-learning
- bare-metal
- uefi-operating-system
- gpu-inference
- nvidia-sass

## Repository Information

Last analyzed by OSRepos: Sat Dec 05 2026 15:20:23 GMT+0000 (Coordinated Universal Time)
Detail views: 0
GitHub clicks: 0

## Safety Notice

OSRepos shares public repositories for knowledge and discovery only. Review source code, dependencies, licenses, and security implications before running or installing anything.

## Content

## Overview

llm.asm is a bare-metal AI operating system and GPU inference engine built around Qwen4-35B-A3B and hand-assembled NVIDIA Ampere SASS. Written in x86-64 NASM, it boots directly through UEFI on an RTX 3090 and aims to run local inference without Linux, CUDA, NVIDIA drivers, or libc.

Alongside inference, the project provides a Ring-0 workspace where the model can create and hot-reload small native apps. The repository also includes Linux GPU engines and separate CPU inference, bare-metal OS, training, hypervisor, and eBPF projects, but its defining focus is the UEFI GPU system.

## Key Features

- Boots as a UEFI Ring-0 system and initializes NVIDIA Ampere GPU hardware without a Linux host or CUDA runtime.
- Runs Qwen4-35B-A3B with a 64K context on a single RTX 3090, according to the project’s reported measurements.
- Uses custom hand-assembled SM86 SASS kernels for inference workloads including MoE, attention, and tensor-core prefill.
- Includes a small C-subset compiler and RAM-based app filesystem for compiling and hot-reloading sandboxed apps.
- Provides a framebuffer interface with chat, GPU telemetry, an app launcher, and a live app pane.
- Offers a pure-assembly Intel e1000/e1000e network stack with an OpenAI-compatible HTTP/SSE API.
- Includes other low-level AI projects, including a pure-assembly CPU inference engine and a from-scratch Mini-GPT trainer.

## Use Cases

- GPU and OS developers exploring UEFI boot, NVIDIA Ampere initialization, or GPU inference without a conventional driver stack.
- Researchers and performance engineers studying custom SASS kernels and low-level inference execution on an RTX 3090.
- Developers experimenting with AI-assisted native app creation in a constrained Ring-0 environment.
- Assembly enthusiasts looking for examples spanning inference, operating systems, training, hypervisors, and eBPF.

## Our Take

This is an unusually ambitious, rapidly changing low-level project, best treated as an experimental system rather than a turnkey alternative to a conventional inference stack.

**Good fit if:**
- You have compatible UEFI hardware and an RTX 3090, and want to investigate bare-metal GPU inference.
- You are comfortable building from NASM and working with GPU firmware, PCIe, and low-level system code.
- You want to study a broad assembly-focused repository with active contributions and reported verification results.

**Look elsewhere if:**
- You need an inference service that runs on ordinary Linux or across a broad range of GPUs without hardware-specific setup.
- Your project depends on stable, versioned releases. The repository is new and fast-moving, with no release in the measured period.
- You need a conventional supported application stack rather than a low-level experimental OS and engine.

## Project Health

| Signal | Value |
|---|---|
| Status | **New**: less than six months old and changing fast |
| Last commit | 2026-12-05 (today) |
| Commits, last 90 days | 100+ |
| Releases, last 12 months | 0 |
| Contributors | 29 (top contributor: 58% of commits) |
| Issues closed, last 90 days | 24+ (typically closed in 1 day) |
| Pull requests merged, last 90 days | 66 (typically merged in 1 day) |
| Project age | 10 days |

Checked on 2026-12-05 with the GitHub API.

## Project Facts

- Language: Assembly
- License: MIT
- Stars: 6k
- Forks: 880
- Topics: assembly, avx2, bare-metal, gpu, llm, machine-learning, nasm, nvidia
- Archived: no

## What You Need

Detected in the repository:

- Assembly (main language on GitHub)
- A test suite and automated checks on GitHub Actions

## Getting Started

Install the host build tools and build a UEFI ISO with a model file:

```bash
sudo apt-get install nasm binutils dosfstools mtools xorriso python3
git clone https://github.com/alesha-pro/llm.asm.git && cd llm.asm
make -C 00-engine/baremetal iso GGUF=/path/to/model.gguf TARGET=nvidia-ga10x ISO_OUT=llm-asm.iso
```

See the [README](https://github.com/alesha-pro/llm.asm#quick-start) for model-specific build instructions, hardware setup, and other repository modules.

## License in Plain Words

**MIT** (permissive).

- Commercial use: yes
- Modify and redistribute: yes
- You must keep: the copyright and license notice
- Share your changes: no

A summary, not legal advice: the LICENSE file is what applies.

## Alternatives

- [TensorRT-LLM](https://osrepos.com/repo/nvidia-tensorrt-llm): TensorRT-LLM runs optimized inference on NVIDIA GPUs through software frameworks, while llm.asm targets bare-metal execution with hand-assembled SASS.
- [llama-cpp-python](https://osrepos.com/repo/abetlen-llama-cpp-python): llama-cpp-python runs GGUF models through llama.cpp with Python APIs and supported hardware backends, rather than booting a bare-metal inference OS.

| Project | Language | License | Stars | Status |
|---|---|---|---|---|
| **llm.asm** | Assembly | MIT | 6k | New |
| [TensorRT-LLM](https://osrepos.com/repo/nvidia-tensorrt-llm) | Python | – | 15.2k | Active |
| [llama-cpp-python](https://osrepos.com/repo/abetlen-llama-cpp-python) | Python | MIT | 10.6k | Active |

## Considerations

- The flagship UEFI path is hardware-specific: it targets NVIDIA Ampere, with the README’s primary setup centered on a single RTX 3090. The project also documents Linux static GPU builds and other modules, but these are distinct from the bare-metal path.
- Building requires host tools and model files; booting requires suitable UEFI and GPU setup. The README describes using an attached Intel e1000/e1000e NIC for its network API.
- The project is marked new and changing fast. It has recent commit and contribution activity, but no releases in the measured period, so interfaces and build steps may evolve.
- The measured contributor base is not concentrated around one person, which reduces single-maintainer dependence, but does not replace the need to assess compatibility and verification for your own hardware.
- The repository is MIT-licensed. Review the license and any model-weight licensing separately before redistribution or deployment.