Putting a CPU Inside Qwen: How Qwenputer Runs RISC-V Within the Model

On October 22, a researcher named Divyansh Agrawal published a fascinating technical write-up: Qwenputer: a fully functioning, deterministic RISC-V CPU inside Qwen3.5.
The author did something that sounds almost impossible: embedded a complete 32-bit RISC-V CPU inside the neural network of Qwen3.5-4B.
This CPU can execute integer arithmetic and C programs, and its underlying compute core can even run MicroPython. It doesn’t call an external Python interpreter or any calculation tool; the CPU instructions themselves are executed by the model’s forward pass.




