A developer known as Alexey Fateev has demonstrated LLM inference running directly on an RTX 3090 from a 528 KB pure assembly UEFI binary, bypassing Linux, CUDA, and every system library in between. The achievement matters because it removes the entire software stack traditionally required to run GPU-accelerated AI, potentially lowering the hardware and energy cost of inference workloads.
The post, shared on X, describes a cold UEFI boot where BOOTX64.EFI parses the VBIOS, boots NVIDIA's signed R610 GSP firmware over BAR0, maps GMMU v2 page tables, and streams 20.5 GB of GGUF over BlockIO. The result is a live 1280x800 chat TUI with an nvtop HUD, plus an OpenAI API–compatible web server reachable from any device on the LAN—all with zero Linux anywhere in the stack.
Removing the stack between model and GPU
Conventional LLM inference on NVIDIA hardware relies on a chain: an operating system, the NVIDIA kernel module (nvidia.ko), the CUDA runtime, the ptxas assembler, and the C standard library. Each layer introduces overhead—context switches, driver translations, and memory management friction. Fateev's approach strips everything away. The inference engine is written in pure x86-64 NASM, and the resulting machine code is pushed directly into the GPU's memory. The card executes the code without an OS, without a C compiler, without nvcc or ptxas. The binary that starts the whole process is 528 KB.
The post includes side‑by‑side benchmarks comparing the home‑grown engine against llama.cpp with CUDA on the same RTX 3090. For Qwen3.5‑35B, the assembly‑driven run achieved 224.55 tokens/generation versus 153.51 for llama.cpp CUDA, a 46 percent improvement. Qwen3.6‑35B saw 222.14 versus 154.43 tg64, also a 44 percent lift. Prompt‑per‑fifth token throughput (pp512) improved by single‑digit percentages, from 5,111 to 5,610 for the 35B model and from 5,273 to 5,754 for the 36B model.
How the engine works
From a UEFI cold start, the 528 KB file first parses the VBIOS and brings up NVIDIA's signed R610 GSP firmware over the Base Address Register 0 interface. It then maps GMMU v2 page tables, which give the CPU virtual addresses permission to write into GPU memory. The GGUF model weights—20.5 GB in the reported run—are streamed over BlockIO, a lightweight block‑device interface exposed by the firmware. Once the weights are in GPU memory, the NASM‑written inference loop accesses the tensor buffers directly, dispatching matrix multiplications and attention computations through hand‑coded SM86 SASS instructions for Ampere‑class GPUs. The post notes 19,778 instruction slots were verified with nvdisasm and produced zero violations.
On the networking side, the same 528 KB binary contains a pure NASM Intel e1000 TCP/IPv4 + DHCPv4 + HTTP SSE stack running in Ring 0. This stack serves an OpenAI‑compatible API over the LAN, allowing a browser‑based chat interface at 204 to 234 tokens per second. No kernel, no systemd, no DHCP client daemon—just the CPU executing network drivers directly.
What this changes for developers
For teams building or operating inference services, the primary cost drivers are typically GPU hardware, electricity, and the engineering time spent managing the software stack. Removing the OS and driver layers can reduce boot time from minutes to seconds, eliminate the need for CUDA toolkit maintenance, and potentially improve achieved token per second rates by cutting the latency introduced by each translation layer. The post's author provides an MIT repository, an ISO builder, and porting guides for RTX 4090, 5090, and AMD hardware, suggesting the approach is not tied to a single card generation.
The benchmarks were run with zero-libc ELF binaries, meaning the code does not link against glibc or any other C library. This further reduces binary size and eliminates potential sources of non‑determinism from libc internals. The entire setup fits on a single 528 KB UEFI executable that does everything from model loading to HTTP serving.
Remaining constraints and open questions
The approach requires intimate knowledge of the GPU's instruction set—SM86 SASS for Ampere—and the firmware interfaces that expose memory-mapped registers and block I/O. It also depends on NVIDIA's signed GSP firmware, which may not be available or permissible in all environments. The post mentions that the same binary runs a chat UI and API server, but does not detail how prompt tokenization, caching, or multi‑user session management are handled outside of a conventional OS. These are the kinds of engineering questions that would need answering before the method could be productized at scale.
Fateev's work is a proof of concept that the lowest‑level GPU access is possible without the traditional stack. Whether the model can be sustained for production workloads, integrated into existing serving frameworks, or ported to other hardware remains to be seen. The post's GitHub links and ISO builder give the community a starting point for experimentation.
The achievement leans into a growing interest in bare‑metal AI execution, driven by the high cost of cloud inference and the desire for privacy‑preserving, on‑premise deployments. By demonstrating a 46 percent speed advantage on a single card, the post shows that the software stack above the GPU is, for at least some workloads, more overhead than necessity.