Get the daily emailDaily email
  1. Home
  2. Research
  3. This story

QwenPU runs a tiny LLM on an NPU compiled into Qwen 3.5-4B's weights

The developer who previously embedded a RISC-V CPU inside Qwen has now compiled an NPU into Qwen 3.5-4B's weights that performs matmuls, softmax and attention bit-exactly. It runs the tiny stories260K model, originally a C program, entirely within Qwen's own…

Published Read the original

Ranked #15 of 22 on Sunday, November 1

QwenPU runs a tiny LLM on an NPU compiled into Qwen 3.5-4B's weights

Why it matters

It is a striking demonstration that deterministic computation can be compiled directly into transformer weights.

What happened

1 min read

The developer who previously embedded a RISC-V CPU inside Qwen has now compiled an NPU into Qwen 3.5-4B's weights that performs matmuls, softmax and attention bit-exactly. It runs the tiny stories260K model, originally a C program, entirely within Qwen's own weights with no external tools. Code and weights are on GitHub and Hugging Face; a full write-up is still pending.

inscraper analysis

Our analysis

This is a curiosity rather than a practical tool, with no paper or performance numbers yet. Compiling programs into weights has precedent (for example Tracr), but running a full model inside another is a step further. Interesting for interpretability and architecture researchers; for everyone else it's a fun demo until the write-up lands.

More in Research