~/satyajit

Computers compiled into Qwen, the second wave: a GPU, a filesystem, a lab and an x86 core

mdjsonmcp

2026-11-09 · 30 min · qwen · linear-attention · hybrid-attention · compilers · agents

Why read this

Solidtop 85%

Two compiled mechanisms rebuilt and measured on transformers' own recurrence, and the Qwenx86 headers read; none of the four merged models was run.

  • Original analysis
  • A new technique
  • Explained from first principles

LLM architectureRuns on a consumer GPUMITResearch teardown

How this was scored
Is it new?
2 of 3: A real new idea, method or capability
Can I trust it?
2 of 3: Measures key facts from files, code or configs
Can I run it?
1 of 3: API-only, gated or restrictive licence
Will I understand it?
2 of 3: Mechanism from first principles with figures
Can I act on it?
1 of 3: General advice
Will it last?
1 of 3: Relevant for months
Does it affect many?
1 of 3: A specialist community
Only here?
2 of 3: A teardown or measurement few others did

Score 55 of 100, ranked 598 of 773 rated articles. Each question is answered 0–3 by hand, and a 3 is rare. How articles are scored

Ten days ago I took apart Qwenputer, a RISC-V CPU compiled into the weights of Qwen3.5-4B with its RAM held in the state of the model's Gated DeltaNet layers. That article covers the core idea: pin a DeltaNet head's gate open and its write strength at one, use one-hot keys, and each row of the head's state becomes an exact memory cell. I will not repeat it here.

Within a week, four more machines were compiled into Qwen3.5:

All four are open. qwenGPU and Qwenx86 use Qwenputer's compiler (chipformer) as a library; qwenFS and qwenLab say they share no code with it. This article asks three questions of each: how many layers and parameters it adds, what one generated token buys, and whether the one new trick it brings holds up when rebuilt on the reference code. Every claim carries a label: measured (I ran it), read (I read it in the code at the commit named), reported (the author says so) or reasoned (my inference).

vixhal-baraiya/qwenGPU@e2695f6 · snapshot 2026-11-21

Qwen3.5-2B with a SIMT GPU inside its weights, 45 compiled layers in front of Qwen’s own, using its Gated DeltaNet layers as registers and memory.

stars
121
tracked files
111
license
MIT
branch
main
forks
21
open issues
1
tests
11 files
source
392.8 kB
commit date
2026-11-01
source by language
Python380.9 kBCuda9.6 kBC1.3 kBJust0.6 kBShell0.4 kB

GitHub REST API, 2026-11-21 — branch, commit, commitDate, createdAt, description, forks, languages, license, openIssues, pushedAt, stars

local clone, 2026-11-10 at e2695f6 — fileCount, hasTests, licenseFile, shallow, testFileCount

shallow clone: counts describe the pinned tree, not the history

vixhal-baraiya/qwenFS@b124354 · snapshot 2026-11-21

Qwen3.5-2B with a filesystem compiled and inserted directly into its weights.

stars
98
tracked files
25
license
MIT
branch
main
forks
11
open issues
1
tests
5 files
source
212.9 kB
commit date
2026-11-04
source by language
Python211.6 kBJust1.3 kB
artificial-intelligencefilesystemllmqwen3-5

GitHub REST API, 2026-11-21 — branch, commit, commitDate, createdAt, description, forks, languages, license, openIssues, pushedAt, stars, topics

local clone, 2026-11-10 at b124354 — fileCount, hasTests, licenseFile, shallow, testFileCount

shallow clone: counts describe the pinned tree, not the history

DeepakSingh98/qwenlab@925af4a · snapshot 2026-11-21

Six small transformers compiled into Qwen3.5-9B, trained in its own forward passes. Qwen runs the experiments.

stars
9
tracked files
40
license
MIT
branch
main
forks
3
open issues
0
tests
none found
source
150.1 kB
commit date
2026-11-04
source by language
Python150.1 kB
artificial-intelligencellmqwen3-5

GitHub REST API, 2026-11-21 — branch, commit, commitDate, createdAt, description, forks, languages, license, openIssues, pushedAt, stars, topics

local clone, 2026-11-10 at 925af4a — fileCount, hasTests, licenseFile, shallow

shallow clone: counts describe the pinned tree, not the history

Quazim0t0/Qwenx86-4B-compact@fb4f07e · snapshot 2026-11-23
repo size
9.27 GB
finetuneQwen/Qwen3.5-4B
architecture
Qwen3_5ForCausalLM
license
apache-2.0
safetensors
24 shards
largest file
8.75 GB
files
432
downloads
421
likes
57
qwen3.5computer-in-weightsx86compiled-weightstool-use

repo last modified 2026-11-13

What I could and could not run

I cloned the three GitHub repos shallow (qwenGPU at e2695f6, 1 November; qwenFS at b124354, 5 November; qwenlab at 925af4a, 4 November) and Qwenputer's compiler at the commit qwenGPU pins (f07a0b2). For Qwenx86 I read the model card, the runtime code and the config from the Hugging Face repo at 964daef, and the tensor header of the 8.75 GB compact.safetensors by HTTP range request. Nothing large was downloaded.

The plan was to run each repo's circuit tests on a CPU, since qwenGPU's and qwenFS's circuit tests need no Qwen weights. The sandbox's permission layer refused to execute the downloaded repositories' code, so I did not work around it. What I ran instead are two small scripts of my own that rebuild one compiled head from each of qwenFS and qwenLab, using the head's weights as the source sets them, on the reference Gated DeltaNet recurrence and gated RMSNorm that ship in transformers 5.20.2 (with torch 2.14.1, CPU, two threads). The scripts and their outputs are in public/articles/qwen-compiled-computers/verify/. So none of the merged models, benchmarks or test suites below is verified by me; the numbers about them are reported.

The four machines, side by side

The table hides how different the four are, so in turn:

qwenGPU is the closest relative of Qwenputer. It is a 4-lane SIMT machine with "15 registers per lane, a 4-stage pipeline, a 32-block program ROM and 126 words of global memory", built with Qwenputer's compiler and placed in front of Qwen3.5-2B's 24 layers (reported, README). The host compiles CUDA to PTX with clang, lowers the PTX to machine blocks (qgpu/lower.py, 1,424 lines), and feeds the program and the input arrays as tokens. From then on the model writes the launch: each EXEC(b, w) token runs block b for warp w in one forward pass. The code (read, qgpu/circuit/kernel.py and qgpu/merge.py) fixes the token cost exactly. A block holds up to four instructions, one per pipeline stage, and the merge defaults are 4 lanes and 4 stages. After the EXEC token come two 16-bit VAL tokens per lane for each register a later block reads, so 8 tokens per live register. A warp that only stores costs one token, because a store is a write into a memory head above the stage that computes it, in the same forward pass. The best case is 16 thread-instructions per generated token, and every value that has to survive to the next block costs 8 more (reasoned from those two rules). The README reports "tens to a few hundred generated tokens" per launch at about 10 to 15 tokens a second on Apple silicon. The 45 layers and the KL of "about 7e-4" against base Qwen are reported; no merged checkpoint is published, you build it with qgpu.merge, so I could not count its weights.

One detail did not match the README. kernel.py defaults to LANES = 8 and documents "16 VALs per live-out", while the README and merge.py say 4 lanes (read). Both are consistent: the circuit is parameterised, and the merge passes lanes=4. If you read the circuit tests, which use the defaults, you are reading an 8-lane machine.

qwenFS is not a CPU at all, and that is what makes it interesting. Its 8 layers are hand-written in Qwen3.5's own layer types with no compiler: five Gated DeltaNet layers and three full-attention layers, in the order linear, linear, linear, full, linear, linear, full, full (read, LAYERS in qfs/circuit.py). The merge widens Qwen3.5-2B's residual from 2,048 to 4,096 and scales Qwen's norm gains to match. The filesystem uses each part of the transformer for what it is good at. A file's text stays in the copy layer's attention log, keyed by (file index, version, offset), and a read is attention copying it back "exactly token by token". A lookup layer maps a path to a file index. A seek layer holds a row per word for search and per link. The DeltaNet state holds 128-row tables for versions, bases and paths (the 128 is the file limit), and the MLPs parse Qwen's tool calls and force the response tokens. So a read costs one token per token of file text, and the response is the model's own output, with the forced token winning "by hundreds of logits" (reported).

The offset in that key is the part I rebuilt below. Attention can only copy the right token if the query knows how far into the segment it is, and a DeltaNet head has no integer counter. qwenFS makes one out of the gate.

qwenLab is the outlier. It is described as six transformers "living inside" Qwen3.5-9B, and the repo is candid that the word is loose. The lab is "2,382 layers appended to Qwen's own 32", with "its own residual stream, far wider than Qwen's 4,096" (2.7 M fed-back lanes and 51 M lanes per position), and its memory heads are "Gated-DeltaNet-type with no q/k L2-norm, no conv, no output gated RMSNorm, alpha=1 and fp32 state" (reported, docs/REPORT.md). It couples to Qwen through token reads and an additive term on Qwen's logits, and while the lab runs a command Qwen's 32 layers are skipped. So this is a second program sharing Qwen's tokens rather than layers inside Qwen. The engineering is still remarkable: forward pass, cross-entropy, full backward pass and AdamW for a 419,712-parameter learner, with a float64 twin matching PyTorch autograd to about 1e-15, at 193 ticks and 0.644 s per update on an H100, against 5.5 ms for the same update in plain PyTorch (reported). The weight bank is the idea I rebuilt.

Qwenx86 is a fork of Qwenputer's RV32 core with x86 flag micro-ops and conditional jumps added, 64 KB of RAM (up from 32 KB) and a translator from x86-64 to the core's 32-bit ops (reported, model card). That last part matters for the headline. The circuit does not decode x86. "MSVC-compiled C is translated once into the core's own ops", and "raw x86 bytes are decoded by firmware, not by circuit layers". The 2,000 of 2,000 lockstep checks against Unicorn test the semantics of that translation plus the core, which is a real result; calling the circuit "an x86 CPU" compresses it.

What the Qwenx86 checkpoint is

Everything in this section is measured from model/config.json and the header of compact.safetensors. The script that reads it is in verify/, with its output in qwenx86_headers.json.

So the compact checkpoint is honest about its size: about 9 GB for Qwen's text model plus a circuit that, laid out dense, would be 13 layers of 175 M weights, and stored compactly is 45 M.

The card's costs are worth reading as the model's own disclaimer (reported): (1200 - 350) / 5 took 56,667 machine tokens and 41.0 s, a C program printing 6 * 7 took 169,293 machine tokens and 71.2 s, and block verification (checking up to 256 machine tokens per pass) cut a 168,578-token C chat from 582 s to 44.5 s. On the first 28 GSM8K test questions, Qwen with the calc tool scored 26/28 against 23/28 for plain Qwen. As with Qwenputer, the gain is having a calculator; where it runs is the novelty.

A counter in the exponent: qwenFS's offset head

The qwenFS circuit describes its offset counter in one line: "a decaying DeltaNet counter, alpha = 2^(-1/16) per token, read in the head norm's eps regime and decoded by thresholds (exact to 600 tokens)". Here is what that means, from the weights counter() sets in qfs/circuit.py (read):

The reading side is the clever part. Qwen3.5's head output goes through a gated RMSNorm, which would normally divide a single nonzero value by its own magnitude and return a constant. qwenFS gives the query a tiny component (1e-5) so the output is far below the norm's epsilon of 1e-6. In that regime the norm divides by ϵ\sqrt{\epsilon}, a constant, and passes the value through linearly. The MLP then decodes nn with a thermometer: 600 pairs of units, the pair for jj firing when the value is below the geometric mean of the values at j−1j-1 and jj.

Why this works in bf16 at all is the point worth taking away. A bf16 number has 8 significant bits at every exponent from about 2−1262^{-126} to 21272^{127}. A value that halves every 16 tokens moves down the exponent range at a steady rate and never runs out of mantissa, so neighbours stay distinct for hundreds of tokens. A linear counter in bf16 would be exact only to 256.

I rebuilt the head with exactly those weights on transformers' torch_recurrent_gated_delta_rule and Qwen3_5RMSNormGated, with bf16 activations, the conv tap followed by SiLU as in the real layer, and A_log and dt_bias at zero as common() sets them (measured, counter.py):

QuantityValue
decay per token, α\alpha0.95791, which is 1.00032 times 2−1/162^{-1/16}
value written at the anchor, after norm, gate and out-projection0.03247
distinct values for n = 0 to 600601 of 601, strictly falling
ratio between neighbours, n = 1 to 6000.945 to 0.971 (bf16 rounding on top of 0.958)
first n where the value stops falling1,737
first n where it reads exactly 01,820

So the "2^(-1/16)" is an approximation that works: softplus of −3.125-3.125 is 0.0430, against ln⁡2/16=0.0433\ln 2 / 16 = 0.0433. The 600-token limit is a design choice and not a numerical wall. The head stays strictly decreasing to 1,736 tokens, and fails there because the head's output, about 2−252^{-25} times the cell, has fallen into fp32's subnormal range before the norm (reasoned from the magnitudes; the run shows where, not why). The thermometer's size is the reason to stop at 600: 1,200 MLP units for one counter.

I also ran the decode. Using the thermometer's own formula, two SiLU units per threshold with gate scale 126/τ126/\tau, evaluated in bf16 on my measured values (measured, thermo.py), the units that should read 1 read 0.75 to 1.25, and the units that should read 0 read −0.097-0.097 to 0.061. They are not clean 0/1 values, because adjacent counter values are only about 4% apart, so a unit next to its threshold sits on SiLU's curve and not on its flat part. Thresholded at 0.5 they decode every nn from 0 to 600 exactly, and their sum is within 0.37 of nn. That is enough for what follows, where the next layer's MLP turns the thermometer into offset bits, but "decoded by thresholds" is the honest wording, and it is the circuit's own.

A matmul in a state: qwenLab's weight bank

qwenLab stores "every 128x128 weight block of every unit" in a memory head, and the forward pass is "reading it with the activation as the query". The arithmetic is a line: with one-hot keys and full write strength, the state after 128 writes is S=W⊤S = W^\top, and the head's read is o=S⊤qo = S^\top q. Put the activation xx in as qq and o=Wxo = Wx. Reading a transposed copy with the output gradient gives W⊤ dyW^\top\,dy, the backward pass.

The catch is in Qwen3.5's stock layer, which L2-normalises qq and kk and divides qq by d\sqrt{d}. With the norm on, the read returns Wx/(∥x∥d)Wx / (\lVert x \rVert \sqrt{d}): the right direction, at a scale the layer cannot undo, since ∥x∥\lVert x \rVert changes every token. I checked both paths on torch_recurrent_gated_delta_rule with 128 by 128 blocks in fp32, five random blocks and activations (measured, bank.py):

PathRelative error against the float64 matmul
stock q/k L2-norm, raw read0.997 (the scale is gone)
stock, rescaled by ∥x∥128\lVert x \rVert \sqrt{128} after the fact4.3 to 5.6 x 10-7, and the stored state is not bit-exact
no q/k norm, as qwenLab builds it0.86 to 1.20 x 10-7, state bit-exact
plain fp32 matmul, for scale0.87 to 1.02 x 10-7
backward, transposed copy read with a random gradient1.2 x 10-7

Two things follow. First, qwenLab had to change the layer type. Without q/k normalisation the read is a matmul with fp32 accuracy; with it, the read loses the activation's norm. That is why the repo lists "no q/k L2-norm" among its modifications, and why "inside Qwen" should be read as "built from layers shaped like Qwen's". Second, the stock path also damages the write: the L2 norm's epsilon makes a one-hot key 1/sqrt(1 + 1e-6) long, not 1, so the state is off in the seventh digit. My Qwenputer rebuild hit the same detail, and the compiled CPUs avoid it by scaling keys up. qwenLab keeps fp32 state and drops the norm, which removes the problem.

The cost of the bank is visible in the same numbers. Writing one block takes 128 ticks, one per row, which is where the repo's "129 row ticks" per fork or optimizer step comes from. A head answers one query per position, so the lab keeps "2 layouts x 32 read copies": 1,686 heads per unit and 11,892 in all, 790 MB of recurrent state for six learners of 1.26 M floats each (parameters plus both Adam moments) (reported).

How Qwen uses them

All four keep Qwen's own weights unchanged and reach the machine through Qwen3.5's native tool-call format. They differ in who drives.

Limits

What it shows

Read together, the four repos make Qwenputer's point more general. A pretrained hybrid model contains three different kinds of exact storage, and these projects found a use for each: DeltaNet rows as registers and tables, an attention log as an append-only file, and, with one modification, a DeltaNet state as a weight matrix you can multiply by. The two tricks I rebuilt are small and both hold on the reference code. One stores a count in a float's exponent, so bf16 holds 600 positions where a linear count would stop at 256. The other turns a recurrent read into a matmul once the query norm is removed.

What they do not show is that a language model gains anything from having a computer inside rather than beside it. Every benchmark in these READMEs is a tool-use benchmark, and where a host-run tool was the baseline, as in Qwenputer, it scored the same. A related approach, Program-as-Weights, learns its program into an adapter; these machines are written by hand, and none of them learns anything about its own machinery. The open question is still the one the Qwenputer article ended on: whether a model can learn to use such a memory without having it compiled in.

Reproducing it

public/articles/qwen-compiled-computers/verify/ holds counter.py (the qwenFS head on transformers' reference recurrence and gated norm), thermo.py (the thermometer decode, in bf16), bank.py (the weight bank, with and without the q/k norm) and their JSON outputs, plus qwenx86_headers.json (per-layer stored values from the compact checkpoint's header). They need torch and transformers 5.20 or later, and run in under a minute on a CPU. The three repos are MIT-licensed; Qwenx86's code is MIT and its weights Apache-2.0, as a modified Qwen3.5-4B.

Update, 12 November: Qwenputer at 27B, running a neural network

On 12 November Concept Country posted that it had "merged 11 new layers into Qwen Concept 27B: a RISC-V CPU, exact on every one of 5,094,103 instructions tested", a port of Qwenputer, and that it then compiled an MNIST classifier for that CPU and ran it. The working paper is Exact Neural Network Inference Inside the Weights of Qwen Concept 27B (8 November, v1) and the code is conceptcountry/concept-rv32im, which I cloned at 8b8d267 and read without running. The paper's prose interpolates every figure from paper/numbers.typ and paper/inference.typ, generated from JSON files in artifacts/, so where I quote a number below I have read it in those files.

Concept Country's opening clip. The counter is the MNIST run described below (video from @conceptcountry's post on X).

What changed from Qwenputer

The machine is Divyansh Agrawal's: the same RV32IM core with Zba and the bignum coprocessor, the same 256 KB of ROM, 128 KB of read-only data and 32 KB of RAM in DeltaNet state, and the same compiler. The NOTICE file says the chipformer architecture, the instruction encoding and the merge script come from Qwenputer, and the repository is Apache-2.0 because of it. What changed is the host, and the work is in fitting the circuit to it.

The host is not a Qwen3.5 model. It is Qwen3.8-27B carrying a rank-one edit from Concept's companion paper, Gradient-Free Weight Editing Reduces Overthinking in Qwen3.8-27B, a replication of the weight-space programming result on a bigger model. That host has 64 layers (48 Gated DeltaNet, 16 full attention) at width 5,120, against Qwen3.5-4B's 32 layers at 2,560.

"Merged" has a precise meaning here, and it is the one from my Qwenputer teardown. Nothing is averaged or blended. Eleven compiled Gated DeltaNet layers go in front of the host's stack, so the model has 75 layers, and the residual is widened from 5,120 to 6,656 so the circuit has 1,536 dimensions of its own. Every host tensor is zero-padded to the new width and never reads or writes a chip dimension, and on chip tokens the host's own DeltaNet gate, write and output-gate projections are driven to −1024-1024 through a padding column, so the host's state passes through a machine trace unchanged. The config.json in the Hugging Face repo (ConceptCountry/concept-rv32im-27b, revision dd9044b) has the shape the paper describes: 75 layers, hidden 6,656 and 478,656 embedding rows, the same vocabulary size as the 4B merge. The paper counts 43.51 B parameters in the file, of which 5.48 B sit in the 11 chip layers and 8.07 B are zero padding. The circuit inside those layers uses 103 DeltaNet heads and 42,114 MLP units.

The one host tensor class that cannot be left alone is RMSNorm, because widening with zeros shrinks the root-mean-square by 5120/6656\sqrt{5120/6656}. The merge rescales the 129 full-width norm gains by that factor, and the README reports what the 4B recipe did to them: cast back to bf16, 660,479 of 660,480 gains landed off the bf16 grid, because the factor is irrational. In the build the paper evaluates, 722 of 722 other host tensors are byte-identical after un-padding and the 129 gains equal the documented transform, yet greedy text matches the unmerged host on only 16 of 20 prompts at 48 tokens. The paper reports that criterion as not met, and puts it down to the re-rounded gains; teacher-forced top-1 agreement is 955 of 960 against a harness self-agreement floor of 954 of 960. The released checkpoint stores those gains in fp32 instead (1.32 MB on an 87 GB file), since Qwen3.5's RMSNorm.forward upcasts the gain to fp32 anyway.

What "exact on 5,094,103 instructions" covers

The 5,094,103 is one end-to-end sweep on the merged checkpoint: 61 programs (51 riscv-tests ISA tests and 10 C programs built with gcc -O2), 61 of 61 exact, with the longest, c-sudoku, running 2,580,085 instructions. It is graded on the circuit's own token stream. A program that prints gets each byte echoed back as a host text token, so raw token equality holds for 55 of the 61; the other six are exactly the printing programs, and their excess equals their echo count (189 echoes in all, none wrong). Before that sweep, a standalone phase ran 2,648,144 instructions across 72 programs without a mismatch. Those are the paper's numbers. I did not run either.

A classifier on the CPU inside the model

The inner network is a 784-32-10 MLP with ReLU, 25,408 int8 weights, trained in PyTorch and quantized with a power-of-two shift so the C code needs no division (inference/train_mlp.py). Its test accuracy is 95.29% in float and 95.26% in int8, from artifacts/mlp_meta.json. On the merged checkpoint's own Hugging Face modules in bf16 it ran ten images in 2,059,619 instructions and 2,724,189 tokens, and the 322 tokens over the reference are print echoes. That took 2.92 hours at 259 tokens a second; the same program through Concept's Triton executor took 28 minutes.

The ten-image MNIST run, with the program's printed output on the right. The ten images were picked as ones the integer model already classifies correctly (video from @conceptcountry's thread on X).

"Every logit equal to PyTorch's" is narrower than it sounds. The program prints one logit per image, the winning one, so the ten numbers shown are ten of the hundred logits. And the reference they match is infer_int in train_mlp.py, a NumPy copy of the integer arithmetic the C code runs, not the float PyTorch model. I checked the ten printed values in artifacts/c-mlp.json against the expected logits in mlp_meta.json: all ten match. The ten images are the first test image of each digit that the integer model gets right, so "10 of 10 right" is chosen in advance. What the run tests is exactness, and on that it holds.

Why everything is an integer

Instructions per operation on the machine, from Concept's micro-benchmark (video from @conceptcountry's thread on X).

RV32IM has no floating-point unit, so a float operation becomes a soft-float library call. Concept measured the cost on the reference emulator with bench_ops.c: an int8 multiply-accumulate is 4.22 instructions and an expf 2,184.94, which is the "518 int8 multiply-accumulates" in the thread. For the inner GPT that settles the design. A float softmax at its full 64-token context would issue 256 expf calls per token, 559,345 instructions, against 501,539 for every matrix multiply in the model, so the softmax alone would cost 1.12 times the network. Both inner models are therefore integer end to end: int8 weights, int32 and int64 accumulators, RMSNorm with an integer floor square root, and softmax from a 256-entry exponential lookup table.

The GPT is a two-layer character model (vocabulary 65, width 64, two heads, 110,976 int8 parameters, trained on tiny Shakespeare). Under QEMU it reproduces its integer specification token for token: from ROMEO: it writes "What the see the seasur", where the float model writes "What the see the see th".

The character GPT's integer generation. This run is under QEMU, not inside the 27B model (video from @conceptcountry's thread on X).

The sources disagree about the GPT's run inside the 27B weights. The thread and the README say it is still being evaluated and claim no checkpoint result; the working paper's abstract says it "does the same over 23.6 million instructions, reproducing the reference token stream exactly". The artifacts show what that is: artifacts/c-gpt4.json records a four-token generation ("Wha" after the newline), 23,600,604 instructions with an exact machine stream, but through the Triton executor's fp32 arithmetic over the chip layers rather than the bf16 Hugging Face path the MNIST run used, and the eight-token run is still pending in inference.typ. So the GPT has run inside the machine's weights for four tokens, on a different code path. I would read the README's caution over the abstract's claim until the eight-token run lands.

Why the CPU layers stay bf16

The thread says the weights come in BF16, FP8, NVFP4 and GGUF Q8_0 and Q4_K_M, and that "the 11 CPU layers stay bf16 in every format. Round them and 0 of 4 test programs survive." The probe behind that is artifacts/quant_probe_chip.json. It rounds the 50 chip-layer weight tensors a standard recipe would quantize onto each format's grid (inference/quant_grids.py), leaves the 104 that such recipes keep in high precision alone, and runs four programs (rv32ui-add, rv32ui-sll, rv32um-mul and c-crc32). The bf16 round-trip control keeps all four exact. Every lossy grid in the file (FP8 block, NVFP4, Q8_0 and Q4_K_M; the paper's generated prose still counts three) fails all four programs at the first token, first_mismatch 0. The gentlest, Q8_0, moves no weight by more than 0.39% of its tensor's largest magnitude. The probe rounds weights only, with activations in full precision, so it is a necessary condition rather than a test of a quantized kernel.

The release formats: the 11 machine layers keep their full bf16 size in each, and only the 64 host layers shrink. The bar heights are a drawing, not file sizes (video from @conceptcountry's thread on X).

The paper states the result and not the mechanism, so this part is my inference from how the circuit is built. A text model tolerates rounding because nothing in it depends on any single weight being exact. The compiled circuit is the opposite. As in Qwenputer, it keeps values to at most eight significant bits so they are exact in bf16, and it holds huge power-of-two ballast and gain constants (I saw 2472^{47} in Qwenputer's chip layers) so that every norm divides by a known number and every threshold unit lands on the flat part of its curve. FP8 E4M3 keeps three mantissa bits, so a weight that needs eight is simply wrong. Q8_0 shares one scale across a block of 32 weights, and the probe's Q4_K_M stand-in does the same with four bits, so a small weight sitting in the same block as a large constant rounds to a multiple of a step set by that constant, often to zero. One-hot keys stop being one-hot, the delta rule blends instead of overwriting, and a threshold that decides a carry bit lands on the wrong side. The probe's first-token failure fits that: the circuit is wrong from the first instruction, not drifting slowly. It is the same property I measured in qwenFS's counter above, from the other side: bf16's eight significant bits are the whole budget these circuits are designed against, and a format with fewer leaves nothing to spare.

The release keeps that boundary. VERIFY.json in the Hugging Face repo lists all five formats and, for each, that the machine tensors are unchanged (156 byte-compared in the safetensors formats, 157 dtype-checked in the GGUF ones). When I read it at dd9044b, only the bf16/ folder was on Hugging Face, and its shards were still arriving. The paper's release table compares each format's greedy text with the same format of the unmerged host: 18 of 20 prompts identical in bf16, 14 in FP8 and 10 in NVFP4, with the GGUF builds not measured.

What it adds

The port answers a narrower question than the original: whether Agrawal's construction survives what the paper calls "a 5× scale increase" (by the parameter counts in the two teardowns, Qwen's own weights go from about 4.2 B to 26.9 B), a different layer mix, and a host whose weights were already edited. It does, and the bookkeeping is better than the 4B release's, with every number regenerated from committed artifacts and a failed criterion reported as failed. The thread is plain that "a CPU does this in microseconds, and the host model gains nothing from it", and I agree with that reading. What the MNIST and GPT runs show is that the in-weights machine is general enough to run programs its test corpus never anticipated. The quantization result is the more useful finding for anyone shipping such a model: the circuit and the host need different precision, and a single-format checkpoint cannot serve both.

Sources

Cite this article

For attribution, please use the following reference or BibTeX:

Satyajit Ghana, "Computers compiled into Qwen, the second wave: a GPU, a filesystem, a lab and an x86 core", ai.satyajit.si, November 2026.

bibtex
@misc{ghana2026qwencompiledcomputers,
  author = {Satyajit Ghana},
  title  = {Computers compiled into Qwen, the second wave: a GPU, a filesystem, a lab and an x86 core},
  url    = {https://ai.satyajit.si/articles/qwen-compiled-computers},
  year   = {2026}
}
share