QIQ: qweninqwen (merged circuit checkpoint)
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.
- Base model:
Qwen/Qwen3.5-4B(Apache-2.0, Alibaba). Inner model whose weights are in the table: Qwen3-0.6B (Apache-2.0). - Files: 15 safetensors shards (bf16, about 40 GB),
config.json(Qwen3_5ForCausalLM, 44 layers = 12 chip + 32 Qwen),chipformer.json(circuit layout: slots, code dims, chip token offsets). - Unmodified Qwen weights are not re-uploaded as such; the checkpoint here is the merged, modified model used in the run.
What the repository's own results show
From the committed run files (experiments/circuit/fullrun/):
- Prompt token 785, final circuit word 15846, the same token Hugging Face Qwen3-0.6B produces (fp32 and bf16).
- 96 chunks, 96 of 96 clean, 0 free-token mismatches, 0 forced tokens, 0 host injections, 95 of 95 seams exact; the circuit's own HALT at step 57,705 of chunk 95.
- Stock-module check on chunk 0 (stock
Qwen3_5HF 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. - Scope: one prompt token and one output token. The host boots chunk 0 from the firmware ELF, loops tokens and stitches seams; the host-role audit lists exactly what it does. Firmware logits have cosine 0.917 with Hugging Face's (int4 plus three higher-precision layers), with a wide top-1 margin.
Loading
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