# A working RISC-V CPU compiled directly into Qwen3.5's weights

Original title: Qwenputer: A functioning, deterministic RISC-V CPU inside Qwen3.5

> Hacker News story 50282838 · language: en · submitted 2026-10-29
> Web version: https://zeli.app/story/50282838
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 695 · by [csmantle](<https://news.ycombinator.com/user?id=csmantle>) · 💬 145
[original](<https://divagr.com/blog/qwenputer>) · [HN discussion](<https://news.ycombinator.com/item?id=50282838>)

## Summary

Qwenputer takes a stock Qwen 3.5 4B and compiles a full 32-bit RISC-V core into its weights, using the model's own Gated DeltaNet layers as exact RAM by forcing the gate and write strength to 1 with one-hot addressing. The CPU runs entirely inside forward passes, needs no tool calls or sandbox, passes the official riscv-tests, matches qemu, and has executed 18 million instructions with zero errors. It also carries a small persistent in-model filesystem.

## Key quote

> To be very clear, it is not a plugin, a tool or a sandbox.

## HN discussion (145 comments)

### [tiborsaas](<https://news.ycombinator.com/item?id=50283531>)

> This is fun and games, but wait until an agents finds this and does the most misaligned thing with it in order to fold paper clips.
>
> \> Because a CPU inside a language model clearly wasn't cursed enough, I decided the prudent thing would be to give it a filesystem too.
>
> Love the spirit :)

### [avadodin](<https://news.ycombinator.com/item?id=50286039>)

> We got RISC-V DOOM melting down a cluster of $20k GPUs before GTA6.

### [jerrythegerbil](<https://news.ycombinator.com/item?id=50283779>)

> There was an interesting bit of research that qwen has a single neuron that makes it “demonic evil qwen” and a simple “Who are you?” will get some absolutely terrifyingly vile results.
>
> Anyways, what I’m trying to say is I want evil qwen to be my CPU.

### [giveexamples](<https://news.ycombinator.com/item?id=50284062>)

> https://www.percepta.ai/blog/can-llms-be-computers
>
> They implemented wasm in transformer with cpu decoding for the wasm part.

### [jazzyjackson](<https://news.ycombinator.com/item?id=50283405>)

> \> When Qwen 'saves' a file, the compiled layers hash its name into one of 1,024 slots in a directory kept in the DeltaNet state, and store the text itself in other heads, with eight tokens per row, chained together
>
> I’ve never wanted to learn how LLMs work more than reading this. Fascinating.
>
> Does divagr get paid to do wild things with LLMs? Just curious if they’re being compensated for these wild experiments

### [fredley](<https://news.ycombinator.com/item?id=50286974>)

> With RAM prices what they are, I'm glad we've found a way to turn LLMs back into RAM.

### [gcr](<https://news.ycombinator.com/item?id=50286992>)

> A custom host runtime is still responsible for loading firmware, booting the CPU to the starting point, and compiling/loading the program to run. While the CPU is running, the host runtime makes sure that only the CPU layers run by manually skipping Qwen’s own layers.
>
> I wish the author would be more forthcoming about these limitations. The central claim about “no external runtime” or “not a plugin” feels sleazy and dishonest to me since this doesn’t work without some pretty invasive changes to the inference driver.

### [jedbrooke](<https://news.ycombinator.com/item?id=50284718>)

> I wonder if this approach would work for AdderBoard[1][2] (a competition to make hand written transformers that can add two 10 digit numbers in the least amount of parameters possible), or if it uses way too many parameters to be competitive
>
> [1]: https://github.com/anadim/AdderBoard
>
> [2]: hn discussion https://news.ycombinator.com/item?id=47170030&utm_source=per...

---

## Cite

- Page: https://zeli.app/story/50282838
- Date: 2026-10-29
- Source: divagr.com (https://divagr.com/blog/qwenputer)
- Hacker News: https://news.ycombinator.com/item?id=50282838

## Other languages

- zh: https://zeli.app/zh/story/50282838 · markdown: https://zeli.app/zh/story/50282838.md
- ja: https://zeli.app/ja/story/50282838 · markdown: https://zeli.app/ja/story/50282838.md
- ko: https://zeli.app/ko/story/50282838 · markdown: https://zeli.app/ko/story/50282838.md
- de: https://zeli.app/de/story/50282838 · markdown: https://zeli.app/de/story/50282838.md
- es: https://zeli.app/es/story/50282838 · markdown: https://zeli.app/es/story/50282838.md
- ru: https://zeli.app/ru/story/50282838 · markdown: https://zeli.app/ru/story/50282838.md
