A real Qwen3-0.6B token computed by a RISC-V CPU that lives inside the weights of a modified Qwen3.5-4B. Code, logs and video: https://github.com/Bobliuuu/qweninqwen
This is a research artifact, not a chat model. It is the outer model of the run: the Qwen3.5-4B layer design widened to hidden size 7680 with 12 added chip layers (an RV32IM CPU plus vector-dot unit compiled into the weights, via Qwenputer), an extended vocabulary of 680,128 tokens, and a 168,684-row weight table embedded in the embedding parameters from which the inner firmware (int4 Qwen3-0.6B) fetches its weights. Its useful behaviour is executing a firmware trace token by token; ordinary text generation is not a goal and is not evaluated here.
Qwen/Qwen3.5-4B (Apache-2.0, Alibaba). Inner model whose weights are in the table: Qwen3-0.6B (Apache-2.0).config.json (Qwen3_5ForCausalLM, 44 layers = 12 chip + 32 Qwen), chipformer.json (circuit layout: slots, code dims, chip token offsets).From the committed run files (experiments/circuit/fullrun/):
Qwen3_5 HF classes, argmax over the full vocabulary of 680,128): 130,000 steps, 0 mismatches; negative control (table entries shifted by one) fails at step 41.from transformers import Qwen3_5ForCausalLM # needs a transformers version that includes Qwen3.5
model = Qwen3_5ForCausalLM.from_pretrained("Bobliu/qweninqwen", torch_dtype="bfloat16")
This loads the checkpoint through the stock module classes (that is what the stock-module check does). To reproduce the circuit run (firmware ELF, chunk driver, seam collector) use the scripts under experiments/circuit/fullrun/ in the GitHub repo; a run of all 96 chunks took about 12 GPU-hours in total.
Video: https://github.com/Bobliuuu/qweninqwen/blob/main/video/qweninqwen_explainer.mp4
model-00001-of-00015.safetensors 9.7 GiBmodel-00004-of-00015.safetensors 2.1 GiBmodel-00013-of-00015.safetensors 2.1 GiBmodel-00008-of-00015.safetensors 2.1 GiBmodel-00005-of-00015.safetensors 2.1 GiBmodel-00010-of-00015.safetensors 2.1 GiBmodel-00009-of-00015.safetensors 2.1 GiBmodel-00007-of-00015.safetensors 2.1 GiBmodel-00012-of-00015.safetensors 2.1 GiBmodel-00011-of-00015.safetensors 2.0 GiBmodel-00006-of-00015.safetensors 2.0 GiBmodel-00014-of-00015.safetensors 2.0 GiBmodel-00002-of-00015.safetensors 2.0 GiBmodel-00003-of-00015.safetensors 2.0 GiBmodel-00015-of-00015.safetensors 525 MiBQwen/Qwen3.5-4B