{"slug": "bare-metal-assembly-llm-on-rtx-3090-without-os", "title": "Bare-Metal Assembly LLM on RTX 3090 Without OS", "summary": "A developer booted Qwen3.6-35B-A3B with a 64K context directly on an RTX 3090 from a single 528 KB pure-assembly UEFI file, with no Linux, CUDA, C compiler, libc or nvidia.ko, serving an OpenAI-compatible API and web chat over the LAN at 204 to 234 tok/s. In three-run averages against llama.cpp CUDA, the assembly engine reached 222.14 vs 154.43 tok/s for Qwen3.6-35B at tg64 (+44%) and 5,754 vs 5,273 pp512 (+9.1%), and 224.55 vs 153.51 tg64 (+46%) and 5,610 vs 5,111 pp512 (+9.8%) for Qwen3.5-35B. The 528 KB BOOTX64.EFI parses the VBIOS, boots NVIDIA's signed R610 GSP firmware over BAR0, maps GMMU v2 page tables, streams a 20.5 GB GGUF over BlockIO, and runs a NASM e1000 TCP/IPv4 stack in Ring 0, with an MIT repo, ISO builder and 4090/5090/AMD porting guide released.", "body_md": "I deleted Linux, nvidia.ko, CUDA, C, and libc and booted Qwen3.6-35B-A3B (64K context) directly on an RTX 3090 from a single 528 KB pure assembly UEFI file that runs a live nvtop HUD and serves an OpenAI API + Web Chat on your LAN from Ring 0, beating llama.cpp CUDA by up to 46%.\nIn plain terms, I wrote an LLM inference engine in pure assembly: we push raw machine code straight into the GPU's memory, and the card runs our code directly.\n0 GB of disk space, 0 OS, 0 C compiler, 0 nvcc, 0 ptxas, 0 libcuda. Just pure x86-64 NASM and assembled 128-bit Ampere SM86 SASS (19,778 slots verified with nvdisasm, 0 violations).\nFrom cold UEFI boot, BOOTX64.EFI parses the VBIOS, boots NVIDIA's signed R610 GSP firmware over BAR0, maps GMMU v2 page tables, streams 20.5 GB of GGUF over BlockIO, and brings up a 1280x800 chat TUI + live GPU HUD.\nThe same 528 KB file also runs a pure NASM Intel e1000 TCP/IPv4 + DHCPv4 + HTTP SSE stack in Ring 0. Open the LAN IP in your browser and chat at 204 to 234 tok/s with zero Linux anywhere.\nSame RTX 3090 vs llama.cpp CUDA (3-run avg, zero-libc ELF):\nQwen3.5-35B: 224.55 vs 153.51 tg64 (+46%), 5,610 vs 5,111 pp512 (+9.8%).\nQwen3.6-35B: 222.14 vs 154.43 tg64 (+44%), 5,754 vs 5,273 pp512 (+9.1%).\nMIT repo, ISO builder, and 4090/5090/AMD porting guide below.", "url": "https://wpnews.pro/news/bare-metal-assembly-llm-on-rtx-3090-without-os", "canonical_source": "https://twitter.com/superalesha/status/2128183560922444243", "published_at": "2026-12-03 22:44:25+00:00", "updated_at": "2026-12-03 22:46:15.802609+00:00", "lang": "en", "topics": ["large-language-models", "ai-infrastructure", "ai-tools", "developer-tools"], "entities": ["RTX 3090", "Qwen3.6-35B-A3B", "Qwen3.5-35B", "NVIDIA", "llama.cpp", "CUDA", "NASM", "GSP R610"], "also_reported_by": [], "takeaway": "A pure-assembly Ring 0 engine running Qwen3.6-35B on an RTX 3090 hit 222.14 tok/s at tg64 versus llama.cpp CUDA's 154.43 (+44%) and 5,754 vs 5,273 pp512 (+9.1%), by pushing raw SASS to the GPU with no OS, CUDA or libc.", "recommendation": {"advice": "If you control the hardware, bypass the OS and CUDA stack: hand-written SASS plus direct GSP firmware boot measured +44% tg64 over llama.cpp CUDA on the same RTX 3090.", "playbook": "inference-serving", "playbook_url": "https://wpnews.pro/playbooks/inference-serving"}, "alternates": {"html": "https://wpnews.pro/news/bare-metal-assembly-llm-on-rtx-3090-without-os", "markdown": "https://wpnews.pro/news/bare-metal-assembly-llm-on-rtx-3090-without-os.md", "text": "https://wpnews.pro/news/bare-metal-assembly-llm-on-rtx-3090-without-os.txt", "jsonld": "https://wpnews.pro/news/bare-metal-assembly-llm-on-rtx-3090-without-os.jsonld"}}