In one line: In one blog post with released code and weights, a compiler sets the weights of 11 extra layers (about 1M nonzero weights) in front of an unchanged Qwen3.5-4B so that Gated DeltaNet heads, with gate 1, write strength 1 and one-hot keys, act as exact RAM for a RISC-V (RV32IM) CPU. Qwen calls it through its tool-call format; on four 40-problem DeepMind arithmetic sets (greedy, one run each) it lands within one problem of base Qwen given the same tool answered on the host, and above base Qwen without tools (mul_big 97.5% against 55%). It runs through a custom driver, not plain generate(), and the post's NUPA 100% figure is from the earlier CHIP-8 version.
How far to trust it: Believe the mechanism and its exactness: the RAM trick is plain linear algebra, and the released code checks the circuit against riscv-tests, qemu and a reference machine over millions of instructions. Read the benchmarks as parity with a host-side tool on small sets, with one bar from a different model, and read "no runtime" as "nothing outside the weights computes the answer": a custom driver boots the CPU, routes its trace tokens past Qwen and, in the measured runs, executes the compiled layers with a Triton re-implementation checked bit-equal to them. The evidence, judged.
The idea in one sentence: a Gated DeltaNet head whose gate is held at 1, whose write strength is 1 and whose keys are one-hot stores and returns values exactly, like a RAM, so a compiler can write a whole RISC-V CPU into 11 extra layers in front of an unchanged Qwen3.5-4B, and Qwen can hand it arithmetic through its usual tool-call format.
What the post is. A short build report (9 minutes) by an independent developer, with the code, both checkpoints and a long design log released. Its claims are about one artefact: what the compiled layers do, how exactly, and what they add to Qwen on arithmetic. This page follows the post in its order, runs the RAM trick live in section 2, and then checks the claims against the released design log and the repository's history: most hold, one chart bar comes from a different model, and "no runtime" needs a qualifier.
You need: the delta rule and its gate (Beyond attention, sections 3 and 6: the update this post pins to 1); residual stream, attention and MLP sublayers (The transformer from zero); Qwen3.5's 3:1 hybrid of Gated DeltaNet and attention (Alibaba: Qwen).
New terms: one-hot key (all zeros except a single 1: it picks one row of the state, like an address); compiled weights (weights computed by a program from a circuit description, not learned); RV32IM (the 32-bit RISC-V base integer instruction set plus multiply and divide); trace token (a token the CPU generates for itself, one record per instruction, which is how its writes reach memory); free-running (the CPU continues on its own generated tokens with no reference machine correcting it); RvChat (the author's decoding driver that boots the CPU and keeps its trace tokens out of Qwen's layers).
</tool_call> the CPU runs: a burst of about 1,300 to 3,000 trace tokens per call, which the driver passes through the 11 compiled layers only. The response digits are ordinary Qwen tokens whose prediction the compiled layers decide (they "own" those positions); then Qwen continues. Source: the post and docs/rv32.md, P3, read 27 November 2026; product computed here, 123,456,789 × 987,654,321 = 121,932,631,112,635,269 (the post's own example call).The claim is an artefact, not a method: a stock Qwen3.5-4B with a RISC-V CPU embedded within the weights, which keeps its memory in Gated DeltaNet state and runs arithmetic, C and MicroPython without any external runtime or tool usage whatsoever; the post insists it is not a plugin, a tool or a sandbox. Everything is released: the code (MIT), the checkpoint on Hugging Face and ModelScope (Apache-2.0, as a modified Qwen), and a design log with every measurement. Two of those words need care, and sections 5 and "How much of this to believe" come back to them: "own" (the RAM is in new layers of Qwen's layer type, not in Qwen's pretrained ones) and "runtime" (a driver is needed).
src/recompute.py.Qwen3.5 already carries the memory hardware. 3 out of 4 attention layers are Gated DeltaNet: in Qwen3.5-4B, 24 of 32 layers, each with 16 key heads and 32 value heads, every value head keeping a 128 × 128 state matrix that does not grow with the context (config, read 27 November). Our owner page teaches the update (Beyond attention, section 3). In the row convention of the post's own figure, with state S, key k, value v, gate α and write strength β:
S ← α S, then S ← S + β k (v − STk)T; a read is o = STq.
Pin three things and the update becomes a memory write. With α = 1 nothing fades (the post: by setting the gate to 1); with k = er one-hot, STk is exactly row r, so the correction v − STk removes the old row and, at β = 1, writes v in its place; every other row is multiplied by a zero entry of k and untouched. So every write we perform will overwrite exactly one row, and a one-hot query returns that row. The steps on the right run a small program through it:
Predict before you move anything: with β = 0.9 instead of 1, what does address 3 return after the overwrite with 0x71? (Drag β once the steps have played; the readout at the last step gives the answer, and the closed block below explains it.)
How Qwenputer pins them in real weights. β is a sigmoid of a projection, so the circuit sets it to sigmoid(256g − 128) with g ∈ {0, 1}, which rounds to exactly 0 or 1; α stays 1, except that α = 0 for one token wipes a head and α = ½ turns a head into a counter. The post is right that default Qwen 3.5 does not keep exact values in the GDN: trained gates and write strengths sit below 1 and trained keys overlap (switch the toy to overlapping keys: the last-written address still reads exactly, the other one does not). It credits the idea of the delta rule as associative memory to Schlag et al. 2021 and claims as new making it exact and addressable, inside a production model, which is a fair line.
"Far cheaper than attention" is about memory, not possibility. The post says GDN works as RAM at a far lower cost than using normal attention as RAM. Attention can store and look up exact values too (a Hacker News reader made the point, section on responses); its KV cache grows with every write, while a head's state stays 128 × 128. The CPU's memories (code ROM 256 KB, read-only data 128 KB, RAM 32 KB, registers, program counter) fit in a few dozen such heads: the low bits of an address pick the head, the rest the row, and each key head drives two value heads.
β = 0.9. The overwrite writes only 90% of the difference, so row 3 becomes 0.9 × 0x71's bits + 0.1 × 0x2A's bits: bits where both bytes have a 1 read 0.99, bits only the new byte has read 0.9, bits only the old byte had read 0.09, and the other write (0xC5 into an empty row) reads 0.9 everywhere it should read 1. The byte still decodes correctly at a 0.5 threshold, but it is a blend, and a CPU reading the same cell millions of times cannot afford one: errors would compound through every instruction that uses it.
Numerics, from the design log (docs/rv32.md, P0.2, on an NVIDIA L4 with flash-linear-attention 0.5.2): in bf16, the model's dtype, every circuit dimension matched the reference at every position in 18 runs, through both the chunked prefill kernel and the token-by-token one. In fp32 the tokens were still all right, but 70 to 400 dimensions per run were off by one unit in the last place, from the kernels' 1/√128 query scale and the chunk kernel's exponentiated cumulative decays; the circuit's thresholds absorb that. A first design that read 8 rows at once left residues of 2 × 10−8 through the kernels, so every read is now one-hot or two-hot (the code ROM's).
No weight is learned. there's no training involved: a compiler sets every weight directly. The CPU is written as a circuit of small steps (read a register, add two numbers, jump if zero); the compiler places each step in a sublayer: DeltaNet heads for every lookup and memory, SwiGLU MLP units for the arithmetic, as exact threshold and lookup tables. All 11 compiled layers are Qwen3.5's linear-attention layer type (the merged config lists 14 linear layers before the first full-attention layer: the 11 compiled ones and Qwen's first three), so the post's "attention heads that look things up" are DeltaNet heads too. The table on the right is where each part of the CPU sits.
The CPU writes its own memory through the tokens it generates. Each instruction becomes a few generated tokens: each generated trace token is one write into the DeltaNet RAM, so the trace is the execution log, and the CPU runs while the model decodes. The post's ADDR, VAL, STEP picture is a simplification: the real format packs one record per instruction (a 1 to 3 token value record for a register write, one token for a jump or a not-taken branch, a store token), with the program counter implied, for 1.0 to 1.55 tokens per instruction on compiled C (design log, P1 and P2). Information only flows down the layers through tokens, which is why the counter is implied rather than written.
A full 32-bit integer RISC-V core in 11 layers. it takes up 11 layers in front of Qwen's 32: RV32IM with hardware divide, the Zba address extension and a custom digit-file unit for numbers up to 128 decimal digits, in 2,679 dimensions, 99 heads, 42,012 MLP units and 1,040,595 nonzero weights (design log, P2). Eleven is the depth of the longest dependency chain (divide's comparison signs at layer 10, the output at 11), so rescheduling cannot remove a layer.
The checks are a CPU designer's, and the post understates them. it passes the official riscv-tests, its programs match qemu: rv32ui (38 tests), rv32um (8) and rv32uzba (3) pass; 61 compiled programs give qemu's exit code and output; and the core has run programs free-running on the GPU (generating every token itself, each required to equal the reference trace): 4.05 million instructions in phase 1 and 15.3 million in phase 2, including 10,000 random calc cases (8.95 million instructions in 19 minutes). The repository rounds this to "about 18M", the post to 18 million.
MicroPython ran on the core, not yet inside Qwen. The post says the CPU runs run C and MicroPython code in the forward passes. The design log's MicroPython runs (print(2**100) in 39,888 instructions, an 18-line script in 492,526) are on the standalone core and its executor; its list of what phase 3 did not do says MicroPython "has run on the standalone core and executor (P2), not yet inside the merged model". In the released Qwenputer, the firmware is calc, written in C.
| Layer | DeltaNet heads (memory, lookups) | MLP (units) |
|---|---|---|
| 1 | program counter, counters | thermometers (306) |
| 2 | none | instruction address, link (1,376) |
| 3, 4 | code ROM, 256 KB (32 key heads) | decode (4,138) |
| 5 | registers (3 read ports), quotient digits | adder stage 1, multiply and divide products (7,876) |
| 6 | digit file (2 read ports) | adder stage 2, shifter, logic (6,621) |
| 7, 8 | RAM, 32 KB (32 key heads) | multiplier, loads, branch target (3,751; 7,923) |
| 9 | read-only data, 128 KB | multiplier, divide lookahead (8,149) |
| 10 | none | 15 divide comparison signs, result select (1,074) |
| 11 | none | the output token's code (798) |
experimental/riscv/docs/rv32.md, P2 circuit table, commit 0cab570; the merged config.json, read 27 November 2026.No fine-tuning: the CPU borrows a format Qwen already knows. Qwen uses it without any post-training required, by piggybacking on the tool call format: the prompt lists a calc tool, Qwen writes a normal tool call, and nothing on the host executes it. The compiled "bridge" copies the call's tokens into memory at 0x8000 (up to 80 tokens), </tool_call> starts the program, and every byte the firmware prints comes out as the matching Qwen token, so the <tool_response> is predicted by the model itself (the figure at the top). The firmware evaluates integers and decimals up to 62 digits, exact fractions since its second version, and returns "error (too complex: split it)" or "error (too long: split it)" past its limits. Qwen's original weights stay exactly as they are: the CPU's weights sit in the extra layers and extra dimensions.
"No runtime" means no host computes the answer, not "plain generate()". The post says No external tool calls or runtime are used and, in the next breath, We use a small driver called RvChat. The driver does three things the design log describes: it injects a snapshot (firmware, RAM, registers) into the compiled layers' DeltaNet states after the prompt; it sends each trace token through the 11 compiled layers only, so Qwen's layers never see it; and, in the benchmark runs, it replaces those layers' Hugging Face modules with a Triton "executor" that computes the same circuit in fp32, 13 times faster (3,200 trace tokens a second on an L4), checked bit-for-bit equal to the modules on 6 records. The answer is still computed by the compiled circuit, not by Python on the host; the earlier CHIP-8 version, by contrast, ran under stock generate() with a boot record prepended.
On DeepMind's arithmetic sets Qwenputer matches the host tool and beats base Qwen where arithmetic is hard. The post reports four sets, 40 problems each, greedy decoding, one run: mul_big: Qwenputer scores 97.5% against 55% for base Qwen (22/40) and 100% for Qwen with a tool; div_big: Qwenputer scores 97.5% against 72.5% and 95%; 100% on mul_div_multiple_longer against 90% and 97.5%; 97.5% on add_or_sub_big against 87.5% and 97.5%. The "Python tool" is base Qwen with the same calc tool answered on the host in the firmware's exact format (Python, or for the re-run sets the firmware itself on a reference machine), which makes it a like-for-like control. Against it, Qwenputer is never more than one problem away, and the chart's 95% intervals show 40 problems cannot separate them; against base Qwen, the gap is clear on mul_big and div_big and within noise on add_or_sub_big.
The NUPA bar is from a different model. On NUPA's long-integer arithmetic, Qwenputer goes from 48.6% to 100%: that is the CHIP-8 version's result on 576 problems, whose table also says its numbers are "the best mode per benchmark across our development checkpoints". The repository's commit of 22 October labelled the bar "NUPA from the CHIP-8 version", and the next commit removed the label; the RISC-V table has a synthetic integer set instead (75% to 97.5%, the same as the tool), which the post leaves out.
Its misses are Qwen's, and "exact" means the circuit matches its reference. I replayed about 230,000 of its output positions: every position the circuit owns, re-run in the reference evaluator, with zero wrong predictions. The misses in the table are Qwen's: re-checking a correct result, dropping a sign, a 44-call loop. Normal text is unchanged within noise (KL 6e-4, against a noise floor of 5e-4; 6.1 × 10−4 against 5.1 × 10−4 on 16 prompts, the floor being base Qwen's own two attention kernels; greedy text identical on 10 of the 16).
mul_div_multiple_longer first went the other way. With the first firmware, which allowed a fraction only as the final value, 610 of Qwen's 1,040 calls returned an error and Qwen retried in loops: Qwenputer 20/40, the host tool 19/40, base Qwen 36/40. The second firmware (exact fractions throughout) fixed the tool, and the re-run gives 40/40 and 39/40. The fix is legitimate; the post's chart shows only the re-run. One more DeepMind set the log ran, add_sub_multiple_longer (40, 40 and 39 of 40), shows no gain and is not in the post.
The base column moved. On 19 October the README's base column read 65.0, 80.0 and 95.0 for mul_big, div_big and add_or_sub_big, with a McNemar p of 1.0 for the last; the column was dropped the same day, and on 21 October the base runs were redone on the same problems with a 4,096-token budget and a "do every step exactly" system line, giving 55.0, 72.5 and 87.5 (synthetic arithmetic rose from 70.0 to 75.0). A matched re-run is the right comparison; the shift of 3 to 4 problems per set between two base runs is also a fair measure of how much one 40-problem run can move.
Speed. On an L4 at batch 1, a calc call is 1,300 to 3,000 trace tokens, about 0.5 to 1 s on the executor; Qwen's own text tokens (about 68 ms each) take most of the time; a mul_div problem took a median of 242 s. On an A10G at batch 8: 109 mul_div problems an hour. A host tool answers in milliseconds.
docs/rv32.md P3 gate results and calc v2 re-run (div_big and mul_div_multiple_longer); the README's base column of 21 October; intervals derived here (src/recompute.py).Files persist across chats by saving the DeltaNet state. A second checkpoint adds five more tool names (put, append, get, list, delete) that the compiled layers answer: they hash its name into one of 1,024 slots of a directory in DeltaNet state (probing the next slot on a collision, two or three trace tokens a lookup) and store the text eight tokens to a row; it holds up to 512 files, about 53,000 tokens. Save those heads at the end of a session and load them at the start of the next, and the files are there. On the model card's synthetic LongMemEval-style test (four past sessions mention eight facts about the user and change two), Qwen gets facts that changed between chats right 90% of the time (27 of 30) against 30.0% for base Qwen with the old chats pasted back in (which scores 76.7% on all facts) and 83.3% with the same tools on the host; on all 90 questions, 83.3% against 78.9% for the host tools. It is 12 compiled layers, hidden size 4,608, 22.3 GB, and its code is on a separate branch.
The post states its costs plainly. The widened layers make the checkpoint 18.8 GB, roughly double base Qwen (mostly zeros, since a standard checkpoint gives every layer the same width); the driver means it doesn't run with a plain generate() call yet; and every instruction costs decoded tokens, so the benchmark executor runs about 3,200 CPU tokens a second on an L4. Next on its list: Qwen writing Python for the MicroPython inside its weights, and a faster CPU (the repository has since moved on both; the dated block below).
Exact control of recurrent state is the reusable part. The post closes by calling the model a really nice testbed for AI safety research and links two follow-ups published the same day (Further reading): one shows a hybrid model fine-tuned to answer with no visible reasoning can learn to track state silently in its recurrent layers when its write strength may exceed 1 (OLMo-Hybrid, up to 2) but not when it is capped at 1 (Qwen3.5); the other compiles a lie-probe trigger and a tamper-proof log into the weights. To try the model, the post says the model runs on a single 24 GB GPU, with three commands in its last section.
The mechanism and its exactness hold up, and the evidence is unusually good for a blog post. The RAM claim is three lines of linear algebra (section 2, and the toy reproduces it). The CPU is checked the way processors are: the official compliance suites, a diff of 61 programs against qemu, random-program fuzzing, and more than 19 million instructions run free on the GPU with every generated token required to equal the reference trace. During the benchmark runs a lockstep check compares every circuit token with a reference machine and stops at the first difference (it checks; it does not correct), and it never fired. Code, weights and the design log with every measurement are public, and the post's own limits paragraph names the size, the driver and the speed.
Where the post says more than its evidence:
mul_div_multiple_longer after a firmware fix (before it, base Qwen led 36 to 20) and leaves out the synthetic set and add_sub_multiple_longer, where it adds nothing. The fix is fair; showing the rows with no gain would have been fairer.Verdict. Believe the mechanism and the exactness: they are demonstrated, reproducible and checked far beyond what the post shows. Read the benchmarks as "an exact calculator in the weights works as well as the same calculator on the host, on small sets", with the NUPA bar set aside, and read "no runtime" as "nothing outside the weights computes the answer". As a practical way to do arithmetic it is slower and twice the size of a model with a tool, which the post does not dispute; its value is as a demonstration and a testbed.
The Hacker News thread drew 709 points and 147 comments (read 27 November 2026; submitted 29 October). Most comments are delight or jokes; three substantive points recur, below, along with the one careful outside analysis found, in Korean. No replication of the benchmarks and no reply from the author to the critiques were found (his two comments in the thread do not address them). Claims that it "runs Doom" come from later coverage and links in the thread, not from the post, and are not checked here.
The host loads the firmware, boots the CPU and, while it runs, skips Qwen's own layers by hand; calls the "no external runtime" and "not a plugin" claims a little dishonest for that reason. The code confirms the description (RvChat), and the post itself lists the driver under its limits.
The RAM does not need a recurrent layer: attention can store and look up exact values too, at a memory cost that grows with the number of accesses instead of staying fixed. Correct, and the post's own claim is only that the recurrent version is cheaper.
Reads the repository's history: the chart's NUPA bar is the CHIP-8 version's 576-problem result (the commit of 22 October says so, the next one removes the label); a McNemar column, with p = 1.0 for add_or_sub_big, was added and dropped on 19 October; the base column was re-run on 21 October; a firmware bug was fixed and the "never printed a wrong result" line dropped on 20 October. Each point checked here against the commits.
A news write-up, not a rebuttal: its takeaways repeat "no external runtime" and the NUPA 100% figure, while its body says the prototype "requires a custom runtime" and a driver that loads firmware and hides the trace. Shows how the post's two framings travel side by side.
Where they are right: the runtime critique (section 5 and above) and the NUPA provenance (section 6), both confirmed against the code and the commits. The attention point is correct and does not touch the post's claim, which is about cost.
The author's later releases, from his repositories (his own claims, not checked here):
Every link opens in a new tab; links checked 27 November 2026. Reading time of the resources below: 5h 26m.
Divyansh Agrawal (independent): The post itself (Divyansh Agrawal's blog (divagr.com), published 22 October 2026). Part 1 of 3 in the author's Qwenputer series; unchanged between the first archived copy (28 October) and 27 November. Its Try it section has the three commands that run the model.
(9 min)
the authors: The compiler, the RISC-V core, the RvChat driver, the evaluation scripts and the design log (experimental/riscv/docs/rv32.md: every measurement, phase by phase). Code MIT; weights Apache-2.0 on Hugging Face (divagr1925/Qwen3.5-4B-Qwenputer, 18.8 GB) and ModelScope. Read at commit 0cab570 (9 November).
(1h)
709 points, 147 comments (read 27 November 2026), submitted 29 October 2026.
(40 min)
gcr (Hacker News), 29 October 2026, critique: The host loads the firmware, boots the CPU and, while it runs, skips Qwen's own layers by hand; calls the "no external runtime" and "not a plugin" claims a little dishonest for that reason. The code confirms the description (RvChat), and the post itself lists the driver under its limits.
(1 min)
nullc (Hacker News), 29 October 2026, comment: The RAM does not need a recurrent layer: attention can store and look up exact values too, at a memory cost that grows with the number of accesses instead of staying fixed. Correct, and the post's own claim is only that the recurrent version is cheaper.
(1 min)
9bow (PyTorch Korea user group forum), 1 November 2026, analysis: Reads the repository's history: the chart's NUPA bar is the CHIP-8 version's 576-problem result (the commit of 22 October says so, the next one removes the label); a McNemar column, with p = 1.0 for add_or_sub_big, was added and dropped on 19 October; the base column was re-run on 21 October; a firmware bug was fixed and the "never printed a wrong result" line dropped on 20 October. Each point checked here against the commits.
(15 min)
AlphaSignal newsroom, 2 November 2026, coverage: A news write-up, not a rebuttal: its takeaways repeat "no external runtime" and the NUPA 100% figure, while its body says the prototype "requires a custom runtime" and a driver that loads firmware and hides the trace. Shows how the post's two framings travel side by side.
(4 min)
8 November 2026: Vercel's fx coding agent, compiled unmodified, runs on the in-weights CPU with Qwen3.5-4B as its model: 15 of 15 small repository tasks, a new executor at about 24,000 trace tokens a second on an L4, the computer as a 125 MB chip file beside base Qwen. The host still renders the chat template, keeps the files and does the git work (the author's README, read 27 November).
(10 min)
30 October 2026: Three added instructions (int8-by-int4 dot products) let Karpathy's 260K-parameter stories260K Llama run as a C program on the CPU, about 41 s a story token on an L4; QwenPU's vector unit cuts that to about 16 s, with a 26.7 GB checkpoint (the repository README, read 27 November).
(10 min)
Divyansh Agrawal, 22 October 2026 (the author; Part 2 of the series): The first follow-up: fine-tuned to answer with no visible reasoning, OLMo-Hybrid (write strength allowed up to 2) learns to track a flipping switch silently and generalises to 256 flips; Qwen3.5 (write strength capped at 1 by a sigmoid) does not. Uses the same compiler for its probes.
(9 min)
Divyansh Agrawal, 22 October 2026 (the author; Part 3 of the series): The second follow-up: a linear lie probe whose trigger and log are compiled into the weights (91% of lies flagged, no false flags in 28,000 tokens of chat and GSM8K, the log kept in DeltaNet state), and a planted mechanism as an answer key for interpretability tools.
(7 min)
Schlag, Irie and Schmidhuber, ICML 2021 (third-party): The paper the post cites for the delta rule as an associative memory; our owner page teaches the rule from it.
(45 min)
Yang, Kautz and Hatamizadeh, 2024 (third-party): The layer Qwen3.5 uses three times in every four, with the gate and write strength this post pins to 1.
(45 min)
Christos Tzamos and others, Percepta, 11 March 2026 (third-party; linked in the Hacker News thread): Earlier work on executing programs inside transformer weights (a WebAssembly interpreter), with its own fast decoding; Qwenputer's difference is that it sits beside an unchanged pretrained model that calls it.
(20 min)
Lindner et al., 2023 (third-party): The best-known earlier compiler from a program to transformer weights (RASP programs); background for the compiler in section 3, which the post does not cite.
(40 min)
Qwen team (maker): The base model: 32 layers, 24 of them Gated DeltaNet (16 key heads, 32 value heads, 128 x 128 states).
(10 min)
Owns the delta rule, the gate and Gated DeltaNet (sections 3 and 6): the update this post pins to an exact RAM write.
Owns the Qwen line and its 3:1 hybrid of Gated DeltaNet and gated attention; Qwen3.5-4B is the base model here.
Residual stream, attention and MLP sublayers: the parts the compiler writes a CPU into.
How a tool call normally runs on the host: what Qwenputer replaces with layers that write the tool response themselves.
The other direction: an LLM reading and editing trained weights, where Qwenputer compiles new ones by hand.
The issue that linked the post among the week's reads.
This page is one of the Articles: articles worth a page of their own, each with its argument, its evidence judged and what others replied.