presentofai

Qwenputer embeds functional RISC-V CPU inside AI model

TL;DR

Developer Divyansh Agrawal has embedded a fully functional 32-bit RISC-V CPU inside Alibaba's Qwen3.5-4B language model, achieving deterministic computation without any external tool calls.

What happened

  • On October 22, 2026, independent developer Divyansh Agrawal released Qwenputer, an AI model with a working CPU baked into its weights.
  • The CPU implements RV32IM RISC-V architecture, capable of running programs written in C and MicroPython entirely inside the neural network.
  • Gated DeltaNet, a state-management mechanism in Qwen3.5, is repurposed as RAM: Agrawal encodes read/write circuits directly as neural network weights without touching the base model weights.
  • The CPU passed official RISC-V compliance tests and executed approximately 18 million consecutive instructions with zero errors.
  • The model and source code are publicly available on Hugging Face and GitHub, runnable on a single 24GB GPU.

Why it matters

  • Accuracy gap is dramatic: Qwenputer hits 97.5% on large-integer multiplication versus 55% for standard Qwen3.5-4B, and 100% versus 48.6% on the NUPA long-integer arithmetic benchmark.
  • It matches or beats Qwen3.5-4B with Python tool use across all five tested benchmarks, meaning external tool scaffolding may no longer be the only path to reliable arithmetic.
  • The file-saving mechanism stores up to 512 files (roughly 53,000 tokens) inside the model's internal state, enabling cross-conversation memory with 90% recall accuracy versus 30% for raw context replay.
  • This is a proof-of-concept that model weights can encode deterministic logic circuits, not just probabilistic text patterns, opening a new design space for hybrid neural-symbolic systems.
  • The approach is open and reproducible, lowering the barrier for others to extend or replicate the technique on different base models.

What to watch next

  • Model size and speed tradeoffs: the current build weighs 18.8GB (roughly double the base model) and CPU instructions take seconds rather than milliseconds. Watch for optimizations that close this gap.
  • MicroPython self-execution: Agrawal has flagged plans to let the model write and run its own Python code internally. If realized, that would make the model a self-contained programmable environment.
  • Adoption by larger labs: if Alibaba or other frontier teams integrate similar weight-encoded compute into production models, the external tool-call paradigm could be partially displaced.

Originally published on Present of AI, a daily source-linked AI news timeline. Read the full timeline or browse the open dataset.