Mindket

Qwenputer-npu

Newversion 1 · updated

Overview

A Qwen3.5-4B model with a small RISC-V computer built into its weights, used for exact arithmetic and for running a tiny story model. An experiment for researchers who study programs inside transformers.

Qwenputer-npu is a kit in the Research category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python with pip and uv
  • Git, to clone the qwenputer project
  • About 19.6 GB of disk space for the bf16 weights, much of it zero padding
Runs in
  • Python with the uv tool
  • A clone of the qwenputer project, on its npu branch
  • A GPU for speed, since the author timed it on an L4
  • Windows, macOS or Linux: where you can fetch the files with Python
Start with
pip install -U huggingface_hub
hf download divagr1925/Qwenputer-npu

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

Qwenputer-npu takes Qwen3.5-4B and builds a small 32-bit RISC-V processor into the model's own layers. This version adds a neural network instruction set to that CPU. That is quick enough to run another language model on it, a tiny 260K parameter story writer compiled as a C program. The Qwen weights themselves are unchanged.

Who it suits

Researchers and curious engineers who want to study how a program or a computer can live inside a transformer.

IndustryWho uses itHow they use itExample
AI researchResearchers on transformer internalsRun the chip layers and compare them with a reference modelChecking that the CPU layers match a reference for test programs
Systems and compilersEngineers who like unusual computing targetsStudy how code is compiled into model weightsReading how a dot product instruction maps to layers
EducationTeachers of computer architectureShow a CPU running inside a language modelRunning the story program and watching the output

Skip it if you want a general chat model, since this is a research experiment and not a tuned assistant.

Where to use it

It runs from the project's own Python tools, with uv, on a machine that can hold the weights. The files download on Windows, macOS or Linux.

  • Python with the uv tool
  • A clone of the qwenputer project, on its npu branch
  • A GPU for speed, since the author timed it on an L4
  • Windows, macOS or Linux: where you can fetch the files with Python
Use caseWhoWhat they get back
Exact arithmeticResearchersAnswers from the built in CPU for calc tasks
Instruction checksEngineersA test run of the new instructions on the model's layers
Story generationCurious usersA story written by the small model on the CPU

How to set it up

Clone the project's npu branch from GitHub, move into its experimental riscv folder and run uv sync with the hf extra. Then download the checkpoint.

  • Python with pip and uv
  • Git, to clone the qwenputer project
  • About 19.6 GB of disk space for the bf16 weights, much of it zero padding
  1. Clone the project and install its dependencies with uv.
  2. Download the checkpoint with the hf command.
  3. Run the chat, check and story commands from the project folder.
pip install -U huggingface_hub
hf download divagr1925/Qwenputer-npu

How to use it

From the project folder, these commands download the checkpoint locally, ask a calculation, check the new instructions and write a story on the CPU.

hf download divagr1925/Qwenputer-npu --local-dir qwenputer-npu
uv run python -m chipformer.rv.chat qwenputer-npu --firmware tests/data/rv/calc-bridge.elf \
    --ask "Use calc: what is 123456789 * 987654321?"
uv run python -m chipformer.rv.npucheck qwenputer-npu guests/stories260k/stories260k.elf
uv run python guests/stories260k/storyrun.py guests/stories260k/stories260k.elf
ToolWhat it does
chipformer.rv.chatChats with the model and lets it use the built in calc
chipformer.rv.npucheckRuns the new instructions on the checkpoint's layers
storyrun.pyWrites the story on the CPU's executor

Example

You run the chat command with the question about multiplying 123456789 by 987654321. Qwen hands the sum to the CPU inside its weights, and the CPU returns the exact product for Qwen to report.

For newcomers and experts

If you are new to this, think of a language model that carries a tiny computer inside itself and asks it to do exact maths. Start with the chat command and the multiplication question.

If you know the field, the CPU is 11 transformer layers placed in front of Qwen's own, with Gated DeltaNet state acting as RAM. Two new instructions, a packed int4 dot product and a byte product, plus a weight memory, make a story model run in far fewer trace tokens. The card reports about 41 seconds per story token on an L4.

  1. Qwen asks the built in CPU
  2. Compiled layers run the program
  3. CPU returns the exact result
  4. Qwen writes the final reply

Good to know

The card says its checks against a reference model of the CPU found no mismatches, and that Qwen's text behaviour stays close to the base model. The scores below are its own, on two sets of 40 problems.

Card benchmark scores
BenchmarkBase Qwen3.5-4BQwenputer-npu
Synthetic integer arithmetic75.090.0
DeepMind mul_big55.097.5
  • License: Apache 2.0
  • Cost to run: none named, you supply the hardware
  • Data it reaches: local files in the project folder, such as the firmware and checkpoint
  • Not for: general chat or production use, since it is a research experiment

README and files

README

Qwenputer-npu

A Qwen3.5-4B model with a small RISC-V computer built into its weights, used for exact arithmetic and for running a tiny story model. An experiment for researchers who study programs inside transformers.

Made by divagr1925 on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

About

What it is: Qwenputer-npu takes Qwen3.5-4B and builds a small 32-bit RISC-V processor into the model's own layers. This version adds a neural network instruction set to that CPU. That is quick enough to run another language model on it, a tiny 260K parameter story writer compiled as a C program. The Qwen weights themselves are unchanged.

Who it suits: Researchers and curious engineers who want to study how a program or a computer can live inside a transformer.

Industry | Who uses it | How they use it | Example
AI research | Researchers on transformer internals | Run the chip layers and compare them with a reference model | Checking that the CPU layers match a reference for test programs
Systems and compilers | Engineers who like unusual computing targets | Study how code is compiled into model weights | Reading how a dot product instruction maps to layers
Education | Teachers of computer architecture | Show a CPU running inside a language model | Running the story program and watching the output

Skip it if you want a general chat model, since this is a research experiment and not a tuned assistant.

Where to use it: It runs from the project's own Python tools, with uv, on a machine that can hold the weights. The files download on Windows, macOS or Linux.

  • Python with the uv tool
  • A clone of the qwenputer project, on its npu branch
  • A GPU for speed, since the author timed it on an L4
  • Windows, macOS or Linux: where you can fetch the files with Python
Use case | Who | What they get back
Exact arithmetic | Researchers | Answers from the built in CPU for calc tasks
Instruction checks | Engineers | A test run of the new instructions on the model's layers
Story generation | Curious users | A story written by the small model on the CPU

How to set it up: Clone the project's npu branch from GitHub, move into its experimental riscv folder and run uv sync with the hf extra. Then download the checkpoint.

  • Python with pip and uv
  • Git, to clone the qwenputer project
  • About 19.6 GB of disk space for the bf16 weights, much of it zero padding
  1. Clone the project and install its dependencies with uv.
  2. Download the checkpoint with the hf command.
  3. Run the chat, check and story commands from the project folder.
pip install -U huggingface_hub
hf download divagr1925/Qwenputer-npu

How to use it: From the project folder, these commands download the checkpoint locally, ask a calculation, check the new instructions and write a story on the CPU.

hf download divagr1925/Qwenputer-npu --local-dir qwenputer-npu
uv run python -m chipformer.rv.chat qwenputer-npu --firmware tests/data/rv/calc-bridge.elf \
    --ask "Use calc: what is 123456789 * 987654321?"
uv run python -m chipformer.rv.npucheck qwenputer-npu guests/stories260k/stories260k.elf
uv run python guests/stories260k/storyrun.py guests/stories260k/stories260k.elf
Tool | What it does
chipformer.rv.chat | Chats with the model and lets it use the built in calc
chipformer.rv.npucheck | Runs the new instructions on the checkpoint's layers
storyrun.py | Writes the story on the CPU's executor

Example: You run the chat command with the question about multiplying 123456789 by 987654321. Qwen hands the sum to the CPU inside its weights, and the CPU returns the exact product for Qwen to report.

For newcomers and experts: If you are new to this, think of a language model that carries a tiny computer inside itself and asks it to do exact maths. Start with the chat command and the multiplication question.

If you know the field, the CPU is 11 transformer layers placed in front of Qwen's own, with Gated DeltaNet state acting as RAM. Two new instructions, a packed int4 dot product and a byte product, plus a weight memory, make a story model run in far fewer trace tokens. The card reports about 41 seconds per story token on an L4.

Qwen asks the built in CPU
Compiled layers run the program
CPU returns the exact result
Qwen writes the final reply

Good to know: The card says its checks against a reference model of the CPU found no mismatches, and that Qwen's text behaviour stays close to the base model. The scores below are its own, on two sets of 40 problems.

Title: Card benchmark scores
Benchmark | Base Qwen3.5-4B | Qwenputer-npu
Synthetic integer arithmetic | 75.0 | 90.0
DeepMind mul_big | 55.0 | 97.5
  • License: Apache 2.0
  • Cost to run: none named, you supply the hardware
  • Data it reaches: local files in the project folder, such as the firmware and checkpoint
  • Not for: general chat or production use, since it is a research experiment

On Hugging Face, 13 November 2026

  • Task: text generation
  • Library: transformers
  • Parameters: 9.8B
  • Weights: about 19.6 GB in BF16; about 4.9 GB at 4-bit (estimate)
  • Formats: Safetensors
  • Downloads in the last 30 days: 490
  • Likes: 7
  • License: apache-2.0
  • Based on: Qwen/Qwen3.5-4B
  • Tags: transformers, safetensors, qwen3_5_text, text-generation, qwen3.5, risc-v, rv32im, compiled-weights, gated-deltanet, qwenputer, conversational

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download divagr1925/Qwenputer-npu

Then follow the usage in its model card. Nothing in this kit runs by itself.

Files
README.md  6 KB

1 file, 6 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
Qwenputer-npu This page49079.8Bapache-2.0
Qwen3.5-4B-QwenputerShares compiled-weights · qwenputer · risc-v2,5981899.4Bapache-2.0
Diffusion-Qwen3.8-27BShares qwen3_5_text · text-generation · conversational2,0153326.9Bapache-2.0
QuarkShares qwen3.5 · conversational · transformers10779.7Bapache-2.0
Qwen3.8-27B-GSQ-RCO-IQ3_S-recovered-GGUFShares gated-deltanet · conversational2,6051726.9Bapache-2.0
Qwen3.5-9B Brainwaves DeepThought STEM OneJev1.6Shares qwen3.5 · transformers · safetensors5759.4Bapache-2.0
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Bonsai-27B-GGUF

lmstudio-community · Kit

A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…

New

Runs DeepSeek-V4.1-Flash-1017 as a 2.9 bits-per-weight EXL3 quantization, a 196 GiB copy for people serving large models on their own hardware. Perplexity stay…

New

MusicGen Small

facebook · Kit

Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists…

New

Similar in Research

See all in Research

Merlin-Cancer-Super

AbdomenAtlas · Kit

Detects and outlines tumors in 9 organs on CT scans, trained with the R-Super method that learns from radiology reports. A research model for medical imaging g…

New

EarthJev

dBenf · Kit

Answers typed questions about satellite image patches from all 12 Sentinel-2 bands, returning a probability for each option without writing text. A Qwen3.5-0.8…

New

getting-over-it-rl-jax

zimmerk4 · Kit

Plays the full game Getting Over It from the bottom to the end with a small trained policy network that learned inside a JAX physics simulator. For reinforceme…

New