Huashu Design
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
An experimental Qwen3.5-4B with a 32-bit RISC-V CPU compiled into its weights, so it does exact arithmetic inside the model. For researchers and curious developers who want to explore computing inside a language model.
Qwen3.5-4B-Qwenputer 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.
pip install -U huggingface_hub hf download divagr1925/Qwen3.5-4B-Qwenputer --local-dir qwenputer-rv
Qwenputer is an experimental model that takes Qwen3.5-4B and adds a 32-bit RISC-V CPU built into its weights. The CPU is 11 extra layers placed in front of Qwen's own 32, and a compiler computes every weight in them, so nothing there is trained. It is not a plugin, a tool or a sandbox. The CPU runs C and MicroPython code during the model's own forward passes.
It suits researchers and developers who want to explore exact computation inside a language model, and teachers who want a striking demo.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| AI research | Researchers | Study exact computation inside language models | Test the CPU-in-weights idea on new programs |
| Education | Computer science teachers | Show how a computer and a model can be merged | A class demo of a RISC-V CPU inside a transformer |
| Software | Developers | Get exact arithmetic without an outside tool | Multiply large numbers inside the model |
| Hardware | Compiler enthusiasts | Explore compiling programs into model weights | Run C code through the model's forward passes |
If you want a tested chat model for production, you can skip it, since the card calls it experimental.
| Use case | Who | What they get back |
|---|---|---|
| Exact arithmetic | Developers | Digit-by-digit answers computed by the built-in CPU |
| Research demos | Researchers | A model that runs C and MicroPython code in its forward passes |
| Teaching | Educators | A concrete example of computing inside a model |
You need these first:
pip install -U huggingface_hub hf download divagr1925/Qwen3.5-4B-Qwenputer --local-dir qwenputer-rv
Run the chat driver with the model folder, a firmware file and your question. The model writes a tool call for calc, but nothing outside the model runs it. The CPU layers inside the model read the call and compute the answer, and the model writes the result digit by digit.
uv run python -m chipformer.rv.chat qwenputer-rv --firmware tests/data/rv/calc-bridge.elf \
--ask "Use calc: what is 123456789 * 987654321?"| Tool | What it does |
|---|---|
| RvChat driver | Starts the CPU with its firmware file before decoding |
| calc-bridge.elf | The firmware file used in the card's example |
| hf download | Fetches the model into a local folder |
| uv | Installs the project's Python dependencies |
You ask the model to multiply two nine-digit numbers with the calc tool. The model writes the call, the CPU inside it does the multiplication, and the model writes the answer one digit at a time. No outside program takes part.
A usual language model guesses long arithmetic one digit at a time and can slip. Here a small computer is part of the model, so the sums are exact. A good first step is to run the card's calc example before you change anything.
The Gated DeltaNet layers hold a running state, and this project uses rows of that state as memory cells. The program, the data, the registers and the program counter all sit in those rows. The base Qwen weights stay unchanged, and the card says the text behavior stays close to the base model.
The scores below are the author's own, with 40 problems per set and greedy decoding.
An experimental Qwen3.5-4B with a 32-bit RISC-V CPU compiled into its weights, so it does exact arithmetic inside the model. For researchers and curious developers who want to explore computing inside a language model.
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.
What it is: Qwenputer is an experimental model that takes Qwen3.5-4B and adds a 32-bit RISC-V CPU built into its weights. The CPU is 11 extra layers placed in front of Qwen's own 32, and a compiler computes every weight in them, so nothing there is trained. It is not a plugin, a tool or a sandbox. The CPU runs C and MicroPython code during the model's own forward passes.
Who it suits: It suits researchers and developers who want to explore exact computation inside a language model, and teachers who want a striking demo.
Industry | Who uses it | How they use it | Example
AI research | Researchers | Study exact computation inside language models | Test the CPU-in-weights idea on new programs
Education | Computer science teachers | Show how a computer and a model can be merged | A class demo of a RISC-V CPU inside a transformer
Software | Developers | Get exact arithmetic without an outside tool | Multiply large numbers inside the model
Hardware | Compiler enthusiasts | Explore compiling programs into model weights | Run C code through the model's forward passes
If you want a tested chat model for production, you can skip it, since the card calls it experimental.
Where to use it:
Use case | Who | What they get back
Exact arithmetic | Developers | Digit-by-digit answers computed by the built-in CPU
Research demos | Researchers | A model that runs C and MicroPython code in its forward passes
Teaching | Educators | A concrete example of computing inside a model
How to set it up: You need these first:
pip install -U huggingface_hub
hf download divagr1925/Qwen3.5-4B-Qwenputer --local-dir qwenputer-rv
How to use it: Run the chat driver with the model folder, a firmware file and your question. The model writes a tool call for calc, but nothing outside the model runs it. The CPU layers inside the model read the call and compute the answer, and the model writes the result digit by digit.
uv run python -m chipformer.rv.chat qwenputer-rv --firmware tests/data/rv/calc-bridge.elf \
--ask "Use calc: what is 123456789 * 987654321?"
Tool | What it does
RvChat driver | Starts the CPU with its firmware file before decoding
calc-bridge.elf | The firmware file used in the card's example
hf download | Fetches the model into a local folder
uv | Installs the project's Python dependencies
Example: You ask the model to multiply two nine-digit numbers with the calc tool. The model writes the call, the CPU inside it does the multiplication, and the model writes the answer one digit at a time. No outside program takes part.
For newcomers and experts: A usual language model guesses long arithmetic one digit at a time and can slip. Here a small computer is part of the model, so the sums are exact. A good first step is to run the card's calc example before you change anything.
The Gated DeltaNet layers hold a running state, and this project uses rows of that state as memory cells. The program, the data, the registers and the program counter all sit in those rows. The base Qwen weights stay unchanged, and the card says the text behavior stays close to the base model.
You ask a question that needs arithmetic
Qwen writes a tool call for calc
The built-in CPU runs it inside the model
The model writes the result digit by digit
Good to know: The scores below are the author's own, with 40 problems per set and greedy decoding.
Title: Score on the DeepMind mul_big set
Base Qwen3.5-4B: 55.0
Qwenputer: 97.5
Python tool on the host: 100
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download divagr1925/Qwen3.5-4B-Qwenputer
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Qwen3.5-4B-Qwenputer This page | 2,598 | 189 | 9.4B | apache-2.0 | |
| Qwenputer-npuShares compiled-weights · qwenputer · risc-v | 490 | 7 | 9.8B | apache-2.0 | |
| Diffusion-Qwen3.8-27BShares qwen3_5_text · text-generation · conversational | 2,015 | 33 | 26.9B | apache-2.0 | |
| QuarkShares qwen3.5 · conversational · transformers | 107 | 7 | 9.7B | apache-2.0 | |
| Qwen3.8-27B-GSQ-RCO-IQ3_S-recovered-GGUFShares gated-deltanet · conversational | 2,605 | 17 | 26.9B | apache-2.0 | |
| Qwen3.5-9B Brainwaves DeepThought STEM OneJev1.6Shares qwen3.5 · transformers · safetensors | 57 | 5 | 9.4B | apache-2.0 |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
op7418 · Skill
Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
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…
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…
yuji-nozawa · Kit
Pretrained vision transformer checkpoints in three sizes from a research paper on training attention heads to focus on image regions. For researchers who extra…