Dev boots Qwen3.6-35B bare-metal on RTX 3090 from 528KB pure-assembly UEFI file, beats llama.cpp CUDA by 44%

awfulalexey · reddit · 2026-12-03

A developer released llm.asm, an LLM inference engine written entirely in x86-64 NASM assembly — no Linux, no nvidia.ko, no CUDA, no C/libc. A single 528 KB BOOTX64.EFI parses the VBIOS, boots NVIDIA's signed R610 GSP firmware over BAR0, maps Ampere GMMU v2 page tables, streams 20.5 GB of GGUF over BlockIO, and renders a 1280x800 chat TUI with a live GPU HUD. It includes hand-assembled 128-bit Ampere SM86 SASS (19,778 instruction slots, 0 scheduler violations) and built-in Ring-0 networking: pure NASM e1000 TCP/IPv4 + DHCPv4 + OpenAI-compatible SSE + web chat on port 8080 at 204-234 tok/s. On an RTX 3090 it hits 222.14 tg64 on Qwen3.6-35B-A3B Q4KM vs 154.43 for llama.cpp CUDA (+44%), prefill +9.1%. MIT-licensed on GitHub with porting guides for RTX 4090/5090, AMD RDNA3 and Intel Arc.

Related event: 528KB Assembly UEFI File Runs Qwen3.6-35B Without an OS, Beating llama.cpp(3 posts)→

Original post →

More from Infra

Infra channel →