logoalt Hacker News

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

440 points • by csmantle • today at 12:25 AM • 94 comments • view on HN

Comments

tiborsaas • today at 1:45 AM

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 :)

➕ show 3 replies
jerrythegerbil • today at 2:17 AM

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.

➕ show 4 replies
giveexamples • today at 2:56 AM

https://www.percepta.ai/blog/can-llms-be-computers

They implemented wasm in transformer with cpu decoding for the wasm part.

avadodin • today at 8:32 AM

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

jazzyjackson • today at 1:31 AM

> 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

➕ show 3 replies
jedbrooke • today at 4:55 AM

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...

jnurmine • today at 9:13 AM

Interesting...

Can you give it a program, a state of output, and tell it to work backwards?

boomskats • today at 9:03 AM

Hmm.

I do wonder if all of this would be possible had they not spent all that time secretly distilling of all our superior, western, closed-source AI models.

mkturkcan • today at 2:45 AM

Nice project and write up! I’ve done similar work with a custom tiny network I call Loom at https://arxiv.org/abs/2604.08816 ; you need far fewer layers, and you can run Doom, very slowly: https://mehmetkeremturkcan.com/Loom/demos/

andai • today at 2:40 AM

> Now, here's where our fun experiment starts. I found out that by setting the gate to 1,1 the write strength (beta) to 1,2 and using one-hot key encoding,3 every write we perform will overwrite exactly one row, and every one-hot query can retrieve an exact value. This means that the GDN layers themselves can work exactly as RAM, at a far lower cost than using normal attention as RAM, since a GDN head's state stays the same size however long the conversation gets, unlike attention's KV cache.

So like... can't you use a computer as a computer without doing all that roundabout stuff? Like if you want to integrate a LLM with hard computation there's probably a more efficient way to do that.

Or is this building towards "but can it run DOOM?" :)

➕ show 4 replies
hollowonepl • today at 8:57 AM

Oh my Gosh.. this is a little bit too abstract to me as first encounter, but the concept never the less is cool to digest deeper into!

amelius • today at 9:05 AM

The opinionated CPU. I was expecting this from Apple, to be honest.

amelius • today at 9:03 AM

This kind of thing is what some three letter agencies dream about.

traverseda • today at 1:26 AM

I'd be very interested in how a scratch trained model that started training with this neural circuitry would behave. Especially the storage space.

➕ show 2 replies
blurbleblurble • today at 2:56 AM

This is cool but it'd be way more useful if they had made a GPU, seeing as how expensive those have gotten

➕ show 1 reply
marcocastignoli • today at 7:54 AM

can you run qwen3.5 on the riscv CPU running in qwen3.5, though?

jacquesm • today at 4:57 AM

Heh, this is very timely, it is more or less exactly what I'm busy with right now but I'm taking the idea in a completely different direction. Fascinating.

hislaziness • today at 5:21 AM

This is amazing, now waiting for someone to run an llm on the cpu. Eventually it will be LLMs all the way down...

➕ show 1 reply
bozdemir • today at 7:52 AM

oh yesss, RAM producers gonna love this :D Jokes aside very interesting experiment. Giving a fully functional cpu ram and hd, so they can technically hide stuff better and avoid getting caught in COT (yikes).

bronlund • today at 2:05 AM

No, I don’t want you to use the computer, I want you to be the whole computer. No mistakes.

Ericson2314 • today at 3:43 AM

The real question is, do current training methods allow one to learn this when training on enough, say, assembly, or can the weights only be achieved via hard-coding?

A fun and important thought experiment about the the space of nerual networks vs the image of current training methods.

Most discourse conflates neural networks and trainable neural networks.

CrzyLngPwd • today at 7:51 AM

So, essentially, turtles all the way down :-)

yaoke259 • today at 2:20 AM

It could be interesting to experiment with more complex representations in the memory/file system, i.e. vectors. Seems like the full advantage of this architecture is yet to be explored. Blending neurons with deterministic compute to fit on one GPU is a fascination concept, never considered it before!

jchook • today at 6:42 AM

What does this actually show?

farhanhubble • today at 1:19 AM

This is cool and I understand the RAM emulation with gated attention but how does the CPU emulation wor? You add layers that are then trained to predict outputs while interpreting RISC instructions?

➕ show 2 replies
lacoolj • today at 3:26 AM

I 100% see the potential here and am dying to see it in 30 days

Or maybe ill join your discord and hopefully we can riff it out to get there faster

jonrouach • today at 3:00 AM

i wonder if you could implement "authenticated token authorship" and self-verified running with this. the model verifies an input as signed by an authorized requester, and signs its own outputs. eventually it also authenticates its own running via e.g. snarks? :) there's lots of meta available with these toys..

throwaway81523 • today at 4:57 AM

Wow! I wonder if it can start programming itself soon.

baq • today at 6:29 AM

Not too far fetched to say this potentially solves continual learning, which is a scary prospect. Wonder what ram and disk prices will go to once every model needs its own long term memory capacity and not just weights and cache.

I had an idea of splicing a z3 solver into the weights of a sufficiently smart model after the first chatgpt release in what feels like a glaciation event ago so the things could do logic and literally make no mistakes. Was never in a position to follow up. We’re almost here now.

gspr • today at 6:38 AM

Nearly unrelatedly: a few months back I tried to have Qwen and all the frontier models be a RISCV CPU, and they all failed miserably every time. They'd get a handful of instructions in at most before derailing completely. What surprised me the most was that they would all often fail on decoding instructions, which should be pretty close to a task that they've shown themselves to be good at before.

I even added a warmup phase where they were given the answer to a decode and a few steps of running, and ask them to abort if they disagreed. Didn't help.

All in all, for someone who doesn't use LLMs much, this was a far more exhausting and boring exercise than I'd imagine it to be. The only thing that sparked some joy was the models' persistent cheating, whereby they'd try to analyze the whole program upfront and only give the final output (when applicable), despite orders to faithfully step through each and every instruction.

Founderarcstone • today at 5:26 AM

That’s great new!

zardo • today at 2:22 AM

How much VRAM do I need to run DOOM?

voxelghost • today at 2:23 AM

Makes me want to run agents on it

nullc • today at 6:23 AM

Hm. I wonder if having a differentiable CPU in fixed weights might be useful-- you could propagate gradients through it. At inference time it could be replaced with a conventional implementation.

I think the RNN sidebar does the reader a disservice. Ordinary casual attention can do exactly the same thing-- it's just less computationally efficient (state grows with the number of bits vs the number of accesses) and so not as useful for qwenputer compiler.

yieldcrv • today at 6:13 AM

> This means that the GDN layers themselves can work exactly as RAM

great, the memory crisis is solved, just make the models occupying RAM expose their own random access memory

dools • today at 2:38 AM

Have you any idea how it feels to be a Qwenputer living in a Qwenbot's Qwenputer's world?

rumwerfer • today at 2:29 AM

But can it run Doom?

0x20cowboy • today at 4:01 AM

This is very clever. An inversion of tools. Awesome.

seba_dos1 • today at 2:07 AM

Now run LLM inference on it.

➕ show 2 replies
bogomind • today at 6:09 AM

[flagged]

favori995749721 • today at 3:08 AM

[flagged]

hujun236 • today at 2:42 AM

[flagged]

ravivarmat • today at 6:13 AM

[dead]

h4p1NAT • today at 7:22 AM

[flagged]

fr2029r • today at 5:14 AM

[dead]

cinderwick • today at 1:46 AM

[flagged]

rickcarlino • today at 1:45 AM

If anyone else has an easier way to emulate RISC-V I’d like to hear it. /S

WorldPeas • today at 6:12 AM

the bitter lesson can't hurt me here! /s

🔗 View 4 more comments