Open Source
Explore the latest AI open-source projects from GitHub and HuggingFace.
Explore the latest AI open-source projects from GitHub and HuggingFace.
Qwenputer is an experimental modification of Qwen3.5-4B in which a 32-bit RISC-V CPU (RV32IM with Zba and a bignum coprocessor) is compiled into the checkpoint as 11 transformer layers placed before Qwen's own 32. None of those layers' weights are learned, since a compiler computes every one, and Qwen's own weights are unchanged. The CPU's RAM is the model's Gated DeltaNet state: with the gate held open and write strength 1, a one-hot key overwrites exactly one state row, so each row works as a memory cell, and the code, data, registers, program counter and call stack all live in DeltaNet heads. Precision is exact in bf16, and about 230,000 of the computer's output positions replayed through a reference model of the machine showed zero mismatches. The CPU runs C and MicroPython code inside the forward passes and passes the official riscv-tests suites. Programs arrive as firmware (an ELF file) that the RvChat driver loads into the DeltaNet state after the prompt; Qwen then writes a calc tool-call block in the format it was trained on, nothing outside the model executes it, and the compiled layers run it on the CPU while the model writes the tool response digit by digit. The execution log appears as trace tokens (230,324 added to the vocabulary), and a Triton executor produces about 3,200 trace tokens a second on an L4. On 40 problems per set with greedy decoding, base Qwen3.5-4B scores 75.0 on synthetic integer arithmetic and 55.0 on DeepMind mul_big, against 97.5 for Qwenputer on both; a base model calling a Python interpreter on the host scores 97.5 and 100. The checkpoint has hidden size 3968 and is 18.8 GB in bf16, mostly zero padding. Sibling artifacts are separate and experimental: an NPU model (extra VDOT and SMAQA instructions that let a 260K-parameter Llama run as a C program, code on the npu branch, about 41 seconds per story token on an L4), a Filesystem model (put, append, get, list and delete tools, up to 512 files, code on the rv-store branch, still in progress) and QwenPU, a work-in-progress vector unit in its own repository. The earlier CHIP-8 version keeps its code at the repo top level. Code is MIT; the weights are Apache-2.0.