Qwenputer compiles a RISC-V CPU into Qwen3.5
2026-10-30 · GitHub
Qwenputer is a stock Qwen 3.5 4B with one addition: a RISC-V CPU compiled into the weights, using the model's own Gated DeltaNet (a linear RNN attention) layers as RAM. The CPU runs entirely inside the forward pass and can do arithmetic and run C and MicroPython with no external runtime or tools. The author stresses it is not a plugin, tool or sandbox.
The trick: three of every four attention layers in Qwen3-Next and Qwen 3.5 use Gated DeltaNet, each head keeping a state matrix. Setting the gate to 1 (no forgetting), write strength beta to 1, and using one-hot keys makes each write overwrite exactly one row and each query retrieve it exactly, so the state works as addressable RAM. The author notes this is cheaper than attention as RAM because state size does not grow with conversation length, and cites Schlag et al. (2021) on the delta rule as associative memory; the new part is making it exact and addressable in a production model.
The author also tried in-model file storage and wrote two follow-ups: hybrid models hiding reasoning in RNN state to evade chain-of-thought monitoring, and compiled weights acting as built-in monitors the model cannot tamper with. Weights are on Hugging Face and ModelScope; code is on GitHub.
Limits: experimental; the post does not state the license, hardware needs or practical uses, and star counts were not retrieved. Check the terms before use.