alesha-pro

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

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.

View on GitHub Compare
Stars
6k
Forks
880
Last commit
today
Contributors
29
Releases, 12 months
0

Our take

Newless than six months old and changing fast

Health score

62/100

How it is scored
Activity
52
Community
58
Issues
80
Pull requests
57
  • Merges more pull requests than 79% of the projects we track

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.
All health signals
Last commit2026-12-05 (today)
Commits, last 90 days100+
Releases, last 12 months0
Contributors29 (top contributor: 58% of commits)
Issues closed, last 90 days24+ (typically closed in 1 day)
Pull requests merged, last 90 days66 (typically merged in 1 day)
Project age10 days

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

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.

What you need

Detected in the repository

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

License in plain words

MITpermissive

  • 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.

Getting Started

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

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 for model-specific build instructions, hardware setup, and other repository modules.

Alternatives

  • 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: llama-cpp-python runs GGUF models through llama.cpp with Python APIs and supported hardware backends, rather than booting a bare-metal inference OS.
ProjectLanguageLicenseStarsStatus
llm.asmAssemblyMIT6kNew
TensorRT-LLMPython–15.2kActive
llama-cpp-pythonPythonMIT10.6kActive

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.

Found this useful?

Share it with someone who would like llm.asm.