Home / use case

Booting a local Qwen3.6 35B chat server straight from UEFI on an RTX 3090

At a glance
Hardware
RTX 3090
Models & engines
Qwen3.6-35B-A3B with 64K context, 20.5 GB of GGUF
Key gotcha
It targets one GPU family (Ampere SM86 on the RTX 3090); he mentions porting guidance for 4090, 5090 and AMD cards

What they built

Alexey Fateev deleted Linux, nvidia.ko, CUDA, C and libc from the picture and booted Qwen3.6-35B-A3B with a 64K context directly on an RTX 3090 from a single 528 KB UEFI file written in pure assembly.

In his words, he wrote an LLM inference engine in pure assembly that pushes raw machine code straight into the GPU's memory so the card runs it directly. The same file shows a live nvtop-style GPU HUD and a 1280x800 chat interface.

It also carries its own network stack, so you can open the machine's LAN IP in a browser and chat with the model, or call its OpenAI-compatible API, with no Linux anywhere.

Setup

  • RTX 3090
  • Qwen3.6-35B-A3B with 64K context, 20.5 GB of GGUF
  • A single 528 KB BOOTX64.EFI written in x86-64 NASM with assembled Ampere SM86 SASS
  • No OS, no C compiler, no nvcc, no ptxas, no libcuda

How it works

  1. From cold UEFI boot it parses the VBIOS, boots NVIDIA's signed R610 GSP firmware over BAR0 and maps GMMU v2 page tables
  2. It streams the GGUF weights over UEFI BlockIO
  3. A pure NASM Intel e1000 TCP/IPv4, DHCPv4 and HTTP SSE stack runs in Ring 0 to serve the API and web chat
  4. 19,778 SASS slots were verified with nvdisasm with 0 violations

Results & numbers

  • Chat runs at 204 to 234 tok/s over the LAN
  • Against llama.cpp CUDA on the same RTX 3090 (3-run average): Qwen3.5-35B 224.55 vs 153.51 tg64 (+46%) and 5,610 vs 5,111 pp512 (+9.8%)
  • Qwen3.6-35B: 222.14 vs 154.43 tg64 (+44%) and 5,754 vs 5,273 pp512 (+9.1%)

Gotchas

  • It targets one GPU family (Ampere SM86 on the RTX 3090); he mentions porting guidance for 4090, 5090 and AMD cards
  • The network stack is written for an Intel e1000 network card
“In plain terms, I wrote an LLM inference engine in pure assembly”— Alexey Fateev (@superalesha)

Do it yourself

  1. Read the post and its open MIT code and ISO builder before trying anything
  2. Use a spare machine with an RTX 3090, since it boots from UEFI with no OS
  3. Have the GGUF weights on a disk the UEFI file can read
  4. Boot the EFI file, then open the machine's LAN IP in a browser to chat
Source: X (@superalesha) · Published 2026-12-02 · Added 2026-12-03. This write-up summarizes the original source; see it for full details.

Similar setups

Running Inkling 2 Mini on a 12 GB AMD card for a Twitch AI moderator

An applied AI engineer tuned llama.cpp to run Inkling 2 Mini on an RX 6750 XT for his home Twitch moderator project, and found that a shared-KV loop setting was quietly hurting the model's quality.

Reddit r/LocalLLaMA (u/Izento) · 2026-11-29

Running 80 GB MoE models on two 16 GB GPUs with llama.cpp 1.0

Gancho Stoychev measured five llama.cpp 1.0 settings one at a time on his homelab box with two RTX 5060 Ti 16 GB cards, running Qwen3.8-Flash-Next and DeepSeek V4 Flash, each about 80 GiB.

DEV Community (Gancho Stoychev) · 2026-11-25

Running a 35B MoE model on a laptop with a 4 GB GTX 1650: measured, not guessed

Nabil Doghri ran Qwen3.6-35B-A3B (Q4_K_M) through Ollama on a GTX 1650 Max-Q laptop and measured about 21-22 tokens per second once loaded, with most of the 23 GB model sitting in system RAM.

Nabil Doghri on DEV (in French) · 2026-11-18

Sharing one local model with several users: parallel-stream tests on a 2020 Radeon RX 6900 XT

Amuro Ray measured how total and per-user speed change when 1 to 8 people share a dense 27B or a 35B-A3B MoE model through llama.cpp's llama-server on a single 16 GB Radeon card.

Amuro Ray on DEV · 2026-11-18