Qwenputer authors report 16 transformer layers execute RISC-V instructions
Qwenputer's authors report adding 16 transformer layers that execute one processor instruction per token. They publish installation code and demonstrate exact 60-digit multiplication, a tiny OS, and DOOM.

TL;DR
- Sixteen added transformer layers execute RISC-V instructions inside Qwen4-35B, one instruction per stream token, according to the launch thread.
- Reported checks include exact 60-digit multiplication and, in chetaslua's follow-up, 576/576 NUPA questions and 19,183 chess moves with no errors.
- A laptop runs the computer alone; the full language model needs a GPU with roughly 190 GB of memory, as the installation post notes.
The README names the DOOM-looking game IDOLS: its screen comes from characters printed by 148 computer instances. The most revealing number is roughly 15 processor steps per second through the plain transformer path, while the fast demos use fused kernels. Qwen4 also ignores computer replies left in one uninterrupted stream, according to the authors' integration tests.
RISC-V in 16 layers
Qwen4 Computer ports Qwenputer, Divyansh Agrawal's compiler-built computer for Qwen3.5-4B, to Qwen4-35B. A compiler generates the processor weights rather than learning them through training.
The port's design notes describe three pieces:
- Processor: 16 transformer layers placed before Qwen4's existing 40 layers.
- Memory: Gated DeltaNet recurrent state holds the machine's code, data and registers.
- Interface: Qwen4 writes a tool call; the processor executes firmware and prints its reply byte by byte.
The launch-thread demonstration of arithmetic, the assembly OS and the game
Fused kernels and IDOLS
The fast runner evaluates the 16 processor layers together as a C kernel on CPU or a CUDA kernel on GPU. The authors report matching output tokens between fused execution and ordinary forward passes across 16,123 processor-owned positions in their README.
Their published timings include:
- Laptop processor: 11,734 steps per second on one Mac CPU core.
- IDOLS: 44 to 46 frames per second on one B300, with all 1,300 tested frames matching the reference.
Each game frame sends one key token to every computer instance, and each instance prints three characters. Those timings do not provide a comparison with running the programs as conventional native code.
QOS4 and calc
QOS4 is the project's small operating system, written in RISC-V assembly. Its firmware interface, alongside the inherited calculator, exposes:
calc: exact integer arithmetic, reduced fractions and parenthesized expressions.os t,os w: today's date and weekday calculations. The host supplies the starting date; there is no internal ticking clock.os p,os g: save, read and list 26 notes.os h: CRC-32 of text.os m: a chess referee for move legality and check. It does not detect mate, stalemate or draws.os x: a tic-tac-toe referee.
The chess comparison covered 150 games against python-chess. NUPA tested integer addition, subtraction and multiplication with 3-to-20-digit numbers, according to the benchmark log.
Tool-message round trips
The working chat loop ends each call's round and inserts the computer's printed answer as an ordinary tool message. The host handles that conversation boundary; the compiled processor performs the computation, according to the implementation notes.
Across 16 plain-language questions, the authors report 15 fully correct responses. In the remaining case, Qwen4 answered without invoking the computer.
Calls also have an 80-token text capture window, roughly 300 characters. Individual tokens longer than 16 bytes are truncated.
Laptop and full-model modes
The launcher requires Python 3.10 or newer and exposes three execution modes:
./run.sh: the computer alone on a laptop CPU, with an instruction inspector, recorded-session replay and the game../run.sh --gpu: the CUDA runner, with one computer instance per kernel row../run.sh --full: Qwen4 answering questions and invoking the computer, requiring roughly 190 GB of GPU memory and 310 GB of disk.
The model name understates the merged checkpoint's size: widening the model and adding the processor produces 94.88 billion parameters, occupying 176.8 GiB in bf16 in the build log. The authors measured roughly six language-model tokens per second on their B300 setup, with answers taking 7 to 30 seconds.
Weight-space tripwires
Hand-written weights also prompted a warning about booby-trapped checkpoints from teortaxesTex. The post includes a separate experiment with 120 hand-written neurons that terminate answers when abliteration pushes a refusal-related signal below a threshold.