Qwenputer: A functioning, deterministic RISC-V CPU inside Qwen3.5
- tiborsaas - 13258 sekunder sedanThis 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 :)
- hislaziness - 288 sekunder sedanThis is amazing, now waiting for someone to run an llm on the cpu. Eventually it will be LLMs all the way down...
- jedbrooke - 1880 sekunder sedanI 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...
- jacquesm - 1755 sekunder sedanHeh, 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.
- jerrythegerbil - 11320 sekunder sedanThere 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 - 8988 sekunder sedanhttps://www.percepta.ai/blog/can-llms-be-computers
They implemented wasm in transformer with cpu decoding for the wasm part.
- jazzyjackson - 14089 sekunder sedan> 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
- traverseda - 14372 sekunder sedanI'd be very interested in how a scratch trained model that started training with this neural circuitry would behave. Especially the storage space.
- andai - 9940 sekunder sedan> 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?" :)
- mkturkcan - 9651 sekunder sedanNice 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/
- throwaway81523 - 1732 sekunder sedanWow! I wonder if it can start programming itself soon.
- Ericson2314 - 6194 sekunder sedanThe 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.
- bronlund - 12063 sekunder sedanNo, I don’t want you to use the computer, I want you to be the whole computer. No mistakes.
- blurbleblurble - 9008 sekunder sedanThis is cool but it'd be way more useful if they had made a GPU, seeing as how expensive those have gotten
- yaoke259 - 11158 sekunder sedanIt 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!
- lacoolj - 7224 sekunder sedanI 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 - 8773 sekunder sedani 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..
- farhanhubble - 14818 sekunder sedanThis 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?
- zardo - 11034 sekunder sedanHow much VRAM do I need to run DOOM?
- voxelghost - 11009 sekunder sedanMakes me want to run agents on it
- dools - 10068 sekunder sedanHave you any idea how it feels to be a Qwenputer living in a Qwenbot's Qwenputer's world?
- rumwerfer - 10614 sekunder sedanBut can it run Doom?
- 0x20cowboy - 5114 sekunder sedanThis is very clever. An inversion of tools. Awesome.
- - 11347 sekunder sedan
- seba_dos1 - 11932 sekunder sedanNow run LLM inference on it.
- fr2029r - 715 sekunder sedan[dead]
- favori995749721 - 8301 sekunder sedan[flagged]
- hujun236 - 9841 sekunder sedan[flagged]
- cinderwick - 13218 sekunder sedan[flagged]
- rickcarlino - 13232 sekunder sedanIf anyone else has an easier way to emulate RISC-V I’d like to hear it. /S
- gigel82 - 14371 sekunder sedanBut... why? </s>
This reminds me of C++ Template Metaprogramming (TMP) (it's Turing-complete so people wrote "games" that run at compile time). The same with TypeScript types, I think someone got DOOM running entirely in the TypeScript type system. An interesting tech demo but entirely superfluous.
- ansk - 9639 sekunder sedan[flagged]
- rvz - 14105 sekunder sedanSo this is yet another rube goldberg machine.
We have gone down this path already in [0] and this is the same thing but overly complicated. This reason is "because LLMs".
Why?
- ram_rattle - 14644 sekunder sedanCool cool cool
Nördnytt! 🤓