Key Takeaways
- Open-source builders are compiling deterministic hardware and software architectures directly into transformer layers, bypassing external Python interpreters entirely.
- DeepMind explored this path between 2021 and 2023 with Tracer, which compiled code written in the RASP transformer language directly into model weights.
- Divyansh Agrawal expanded this concept with Qwenputer by embedding an entire RISC-V CPU into extra layers of the open-source Qwen model.
- Vixhal Baraiya built qwenFS, creating an in-weight file system that runs deterministic read and write operations through attention mechanisms like Gated DeltaNet.
- Embedding deterministic compute directly into weights allows autonomous loops like BabyAGI to execute control logic and maintain state without API calls or tool-use latency.
Compilers Moved from Python Runtime to Model Weights
Most autonomous agents rely on a fragile loop: a model emits text tokens, an external runtime catches them, executes Python code on a server, and passes the output back into the prompt context. That loop adds latency, introduces failure points, and eats token budget.
Yohei Nakajima points out that theoretical foundations for removing this external machinery date back several years. “The idea of compiling kind of code into weights itself is not brand new,” (play from 7:32) Nakajima explained. “And people have done this from like a research perspective and it's been going on for a while, but especially since like 21 23.” (play from 7:37) DeepMind pursued this route with Tracer, which translated deterministic programs written in RASP into static weights. For years, however, those models remained narrow research artifacts disconnected from general reasoning engines.
Qwenputer Put a RISC-V Architecture Inside an LLM
The shift toward practical applications happened when open-source researchers attached these compiled architectures directly to broad reasoning models. Divyansh Agrawal took the core mechanism behind weight compilation and attached it to Qwen.
Nakajima highlighted why this architecture matters: “What's new with Quenputer was doing it in extra layers of an LLM like of a general LLM, which allowed it to basically act like a computer, a tool for that LLM.” (play from 8:02) Instead of delegating arithmetic, branching, or register operations to a cloud sandbox, the base model passes tokens directly to specialized transformer layers that emulate a RISC-V CPU. The LLM retains its generative language capabilities while gaining a deterministic coprocessor operating directly in the forward pass.
qwenFS Turns Attention Mechanisms into Storage
Software needs storage as much as compute. After Agrawal proved that CPU layers could live inside a model, Vixhal Baraiya applied the same logic to structured state management with qwenFS.
Baraiya turned the attention layers of the model into a deterministic file system. As Nakajima described: “He took an idea of of Quenputer and basically just turned it into a file system. So it's extra layers that it can read and write into. And it's just looking for the tokens and if it finds the you know, instructions in the tokens, it basically takes over and runs deterministic file write and reads.” (play from 8:47)
By applying linear attention structures such as Gated DeltaNet, qwenFS stores and updates data without polluting the context window. “It's so it's holding it in the attention of the model itself,” (play from 15:03) Nakajima observed. When an agent loops through repetitive tasks, like Nakajima's BabyAGI task orchestration loops, it can store status flags, file edits, and memory states inside internal activations. It no longer needs to serialize and deserialize JSON objects over an external network connection.
What to Do With This
Audit your current agent workflows and benchmark how many roundtrips spend time on basic deterministic tasks like JSON formatting, counter updates, or state persistence. Test open-source models like Qwen with custom linear attention or deterministic weight extensions to see if you can pull high-frequency state updates inside the forward pass rather than paying network latency to external tool-use APIs.