They compiled a working RISC-V CPU into an LLM’s weights

“The AI didn’t call a calculator. It *was* the calculator, compiled into its own neurons.”

The Story

A developer compiled a 32-bit RISC-V CPU (RV32IM) directly into the weights of a stock Qwen 3.5 4B model, using the model’s own Gated DeltaNet layers as exact, addressable RAM. It executes C and MicroPython inside forward passes with no external tools or sandbox, passed official RISC-V tests, matched QEMU, and ran 18 million instructions error-free. Arithmetic benchmarks jump from ~55-72% (base model) to 97.5%+, matching or beating a Python interpreter tool.

Why It Matters

The language model that *is* also a computer. Builders are etching real silicon into the mind; tokens become machine code. Near-future identity of “what even is a model?

Evidence

Divyansh Agrawal’s technical write-up, GitHub/Hugging Face checkpoints, Hacker News (553 pts).

Sources

Daily scan: 2026-10-29