All News
llm-inferencebare-metalassemblyqwencudabenchmarks

A 528 KB UEFI file boots a 35B Qwen on a 3090, and 44% is the narrow number

Fateev's assembly engine boots a 35B Qwen MoE on one RTX 3090 with no Linux or CUDA, claiming 44% over llama.cpp. His own table is narrower than that.

Vlad MakarovVlad Makarovreviewed and published
5 min read

Alexey Fateev, who posts as @superalesha, has taken his assembly stunt off the CPU and onto the GPU. The new artefact is a 528 KB BOOTX64.EFI: it cold-boots an RTX 3090 from UEFI with no Linux, no nvidia.ko, no CUDA runtime and no C, loads a 35B-parameter Qwen mixture-of-experts checkpoint at Q4_K_M with a 64K context, draws a live nvtop-style HUD on a 1280x800 framebuffer, and answers OpenAI-format requests from Ring 0 over an Intel e1000 NIC. The thread's headline is 44% faster than llama.cpp's CUDA backend.

It is a sequel to the CPU piece from late November, the 24 KB bare-metal OS that booted Qwen3-0.6B and claimed 54% over llama.cpp at four threads. The GPU version is harder by every measure: a device driver, a firmware handoff, a TCP stack. The claim attached to it is narrower than the post reads.

What the 528 KB actually is

The size describes code, not capability. The weights are a separate 20.49 GiB GGUF streamed off the boot volume through EFI_BLOCK_IO, which is why the image can be small and why the card cannot. Inside the EFI binary sits the boot chain: ExitBootServices, a private GDT/IDT/CR3, the VBIOS FWSEC-FRTS handoff, the R610 GSP firmware, Ampere GMMU page tables, then compute and DMA channels. Above that, a split-pane TUI, ARP, IPv4, DHCPv4, TCP and HTTP with server-sent events.

Two details in the README deserve a flag. It states the image at 528 KB in its feature list and at 484 KB in its own benchmark table, a 44 KB disagreement the repository never explains. And it calls the checkpoint Qwen3.5-35B-A3B, naming unsloth/Qwen3.5-35B-A3B-GGUF at a pinned revision, while the X post says Qwen3.6. Nothing in the tree contains a 3.6, so either the post is ahead of the repository or the version slipped.

The 44% is one row of four

WorkloadAssembly enginellama.cpp CUDADelta
tg128222.84 tok/s154.91+43.9%
tg64224.55153.51+46.3%
pp5125,609.525,110.55+9.8%
pp1283,089.372,933.36+5.3%

Read the bottom before the top. Prompt processing, which dominates long-context and retrieval workloads, is 5 to 10% faster, not 44%. The quoted gain is decode over 128 generated tokens, the regime where memory bandwidth and per-token overhead decide everything and a hand-written engine can plausibly win. The figures come from REPORT.md in the repository, not from the post: three runs on one RTX 3090, compared against llama-bench -ngl 99 -r 3 on a pinned llama.cpp build whose directory name carries a local mix suffix nobody documents.

Deleting Linux is not where the speed is

The bare-metal figure is 194 to 226 tok/s, a range read off the on-screen HUD in a framebuffer capture rather than a three-run bench. The same author's Linux static binary — still pure NASM, still no libc, talking to /dev/nvidia through NVRM ioctls — averaged 224.55. The intervals overlap. On the repository's own evidence, shedding the kernel, the driver and the CUDA runtime bought no measurable throughput over the identical kernels running on Linux. The kernels are where the gain lives: 256-expert routing compacted into dense tiles, Q4_K gate and up projections fused through SwiGLU in shared memory, a Q6_K vocabulary head at 890 GB/s, a decode graph baked once into VRAM and submitted with a single ring.

That distinction is the whole argument, and it is the one the community made first. "llama.cpp has inefficiencies and this is a custom engine. OP is comparing llamacpp to his custom engine rather than comparing his custom engine on bare metal vs his custom engine on 'bare metal'," wrote u/Nutsack_VS_Acetylene, with 53 points, in the thread where the release landed. A fair reading of his own table: this is a fast engine that happens to boot without an OS, not evidence that an OS costs 44%.

The card is 97.5% full

20.49 GiB of weights on a 24 GiB card leaves 3.5 GiB, and the context spends nearly all of it. Ten full-attention layers reserve 1,280 MiB of FP16 keys and values at 65,536 positions; the FP32 DeltaNet convolution and recurrent state add 62.8 MiB. The report puts the 64K allocation at 23,970 of 24,576 MiB, about 606 MiB, 2.5% free. Nothing else runs on that GPU.

The context fits because of the architecture, not the assembly. Thirty of the forty layers are Gated DeltaNet, which keeps a fixed-size state instead of a growing KV cache, so only a quarter of the network pays attention's memory bill. A dense model of the same size would pay that bill on all forty layers, roughly four times over, and 64K would not fit. That is worth saying plainly before the bytes-per-token arithmetic gets attributed to hand-written code.

What r/LocalLLaMA argued about

The thread did not argue about throughput. Its highest-voted comment, 99 points, is a joke about who typed the assembly: "As the cold hands of Claude typed out the final bytes, it felt a sense of purpose and joy, it was finally over." The accusation is unproven and Fateev does not address it in the repository. It is still the reception the release got: a proof of concept that much of its audience filed under performance art rather than a tool.

The measurement objections were better. llama.cpp is a portability-first project that compiles for CUDA, Metal, Vulkan, ROCm and several more backends; it is an odd peak-performance yardstick, and the repository benchmarks nothing else. No vLLM, no ExLlamaV2, no Loom, no SGLang appears anywhere in the tree. A tuned CUDA engine on this card, with this quant, is the comparison that would make 44% mean something.

One author, one card, one quant

The correctness work is better than most self-reported numbers. The report documents 16-token greedy parity against the same llama.cpp build, logit cosines above 0.998 on formatted prompts, and one anomaly it volunteers rather than hides: two exploratory raw prefixes scored 0.885 and 0.815 with the cause unresolved.

Beyond that, the scope is tight. Every published figure is a single stream on a single GPU; continuous batching exists in the scheduler and is tested for correctness, but no multi-request throughput is published, so nothing here speaks to serving. The repository is nine days old, at 5,517 stars, 839 forks and 30 open issues, with the RTX 4090 and 5090 ports marked help wanted. No third party has rerun the harness.

The 528 KB file is real, and so is the demo: a 35B model answering HTTP requests with no operating system underneath is a genuine engineering result. The 44% is a decode figure against one baseline on one machine. That is a smaller claim than "Linux costs you 44%," and a more interesting one, because it means the kernels were the product all along.

Related Articles

Scroll down

to load the next article