Projects run Doom and NES games using CPUs encoded in Qwen model weights
Reported by r/LocalLLaMA, Startup Fortune, Hacker News and 4 more outlets17 sources ↓
Divyansh Agrawal’s Qwenputer adds a RISC-V CPU to Qwen3.5 weights and can run Doom. A separate project, nesformer, runs an NES 6502 CPU inside a standard Qwen3.5 checkpoint.
Key points
- Qwenputer can execute C and MicroPython code without an external runtime
- Qwenputer is nearly 19GB; its developer recommends at least 24GB of VRAM
- nesformer runs NES games using a 6502 CPU, 2KB of RAM and cartridge ROM encoded in model weights
- nesformer takes about 1–6 seconds per frame and runs 150–290 times slower than a real NES
- nesformer supports NROM games such as Super Mario Bros.; it is released under the MIT License
Sources
- r/LocalLLaMARead ↗Someone built a 32-bit RISC-V CPU directly inside Qwen's model weights so it can execute instructions internaly!
- Startup FortuneRead ↗A developer compiled a working RISC-V CPU into a 4B parameter model's weights
- r/LocalLLaMARead ↗I ran Doom inside the Qwen model weights!
- Hacker NewsRead ↗A Working Nintendo in ~1GB of Qwen Weights
- r/LocalLLaMARead ↗An LLM inside an LLM - Same guy who put a RISK-V CPU inside Qwen has now made Karpathy's stories260k run on an NPU compiled inside Qwen 3.5-4B's weights
Details
Tom’s Hardware reports that engineer Divyansh Agrawal built Qwenputer by inserting a 32-bit RISC-V CPU into Qwen3.5-4B weights. The CPU can perform arithmetic and execute C or MicroPython code; it has also run Doom, slowly. Agrawal says the CPU passes official RISC-V tests and has run 18 million instructions without an error.
Qwenputer uses Qwen’s Gated DeltaNet state as memory for the CPU and a filesystem. The project’s expanded model is nearly 19GB, and Agrawal recommends a workstation with at least 24GB of VRAM. The project is available on Hugging Face, and its code is MIT-licensed, according to Tom’s Hardware.
A separate project, nesformer, encodes an NES 6502 CPU, 2KB of work RAM and cartridge program ROM in a standard Qwen3.5 checkpoint. The project description says its model-generated execution traces match a conventional emulator for the tested games; its host program handles graphics, controller input and interrupts.
nesformer supports games using the NROM board, including Super Mario Bros., Donkey Kong and Excitebike. Its project description estimates 1–6 seconds per frame after an initial compilation step, and says runs are 150–290 times slower than a real NES. It supplies three freely licensed test ROMs; users provide other game ROMs.
Written from coverage as of
Images
- Tom's Hardware
- The Register
- The Decoder
- Hacker News
Stocks in this story
Change since open: 20 Nov to 21 Nov 2026
Last refresh