When Qwenputer is given the prompt “48213 × 9917 =”, it writes back “478128321”, digit by digit. The system has produced no wrong answer across tests ranging from 3-digit sums to 20-digit products.
That calculation comes from a 32-bit RISC-V processor embedded in the weights of a language model. Agrawal, an AI engineer, created Qwenputer by modifying the stock Qwen 3.5 4B model and compiling a CPU directly into it.
The processor sits in 11 transformer layers placed ahead of Qwen’s original layers. Every weight in those added layers was calculated by a compiler rather than learned through training.
Agrawal’s starting point was Qwen’s Gated DeltaNet, or GDN, state: a fixed-size recurrent matrix used by the model’s linear-attention mechanism. He repurposed its rows as memory cells for registers, random-access memory and the program counter.
He then designed an RV32IM processor with Zba instructions and a custom big-number arithmetic unit as a sequence of transformer-layer calculations.
The resulting CPU runs arithmetic operations as well as C and MicroPython programs during the model’s forward passes.
Agrawal said Qwenputer passed the official riscv-tests suites and ran 18 million instructions without a single error. In validation, about 230,000 output positions matched a reference CPU model with zero mismatches.
The engineering comes at a substantial hardware cost. Qwenputer has doubled the size of the underlying Qwen 3.5 4B model to almost 19GB, and Agrawal recommends using a workstation with 24GB of VRAM or more to test it.
On an L4 graphics processor, a batched executor runs about 3,200 CPU tokens a second.
The added processor has so far left the language model’s benchmark score largely unchanged. On MMLU, Qwenputer scored 71.9, compared with 71.7 for base Qwen3.5-4B, while maintaining 99% identical answers and a KL divergence of 7e-4.
Agrawal also tested a filesystem approach for facts that change between chats. Qwen answered such questions correctly 90% of the time using the filesystem, compared with 30% when older chats were pasted back into the prompt.
An extended version, QwenPU, adds a vector unit. It runs Andrej Karpathy’s stories260K, a 260K-parameter Llama from llama2.c, as a complete C program inside the model’s forward passes.
With that vector unit reducing trace tokens for each story token from 225,000 to 53,000, a story token takes about 16 seconds on an L4.
The more theatrical demonstration came from developer Aditya Narayana, who rendered a frame of Doom inside Qwenputer.
He used Artur Bieniek’s DMC100-Doom, a version designed for tiny microcontrollers that draws the display in 25 strips so that E1M1 fits in 64 KiB of RAM.
The frame required 6,342,933 trace tokens and 50 minutes on an RTX 5070 Ti. Its final 320x240 image was read back, strip by strip, from the circuit’s recurrent state.
Agrawal announced the project on 29 October 2026. Qwenputer’s code is MIT-licensed and available on GitHub.







Comments (0)