Skip to content
Array Digest AD markADArrayDigest
Model releases

Qwenputer runs Doom and C code using internal RISC-V CPU weights

An experimental model embeds a compiled processor into its neural weights, allowing it to execute code and games without external runtimes or tool calls.

Qwenputer runs Doom and C code using internal RISC-V CPU weights
Depth
4BQwenputer integrates a 32-bit RISC-V CPU directly into the Qwen 3.5 4B model weights · reported
1 outlet · newest source 745h ago

Key points

  • Qwenputer integrates a 32-bit RISC-V CPU directly into the Qwen 3.5 4B model weights.
  • The system executes C and MicroPython code using the model's Gated DeltaNet state as RAM.
  • It successfully runs Doom and passes standard RISC-V instruction tests without external tool use.

AI engineer Divyansh Agrawal revealed Qwenputer, an experimental system that embeds a 32-bit RISC-V CPU directly into the weights of the Qwen 3.5 4B large language model, according to the published report

Evidence: reportedAI model gets a 32-bit RISC-V CPU compiled directly into its weights, then runs DOOM on it — experimental AI model can run Doom and C code using its own weights as RAM

aifleet-tomshardware

The claim

The project combines the stock Qwen 3.5 4B model with a compiled processor inserted into its architecture. Agrawal states the implementation uses Qwen’s Gated DeltaNet state as random-access memory, a technique he described as a neat trick. This allows the model to run processor arithmetic, execute C and MicroPython code, and even play Doom, albeit slowly.

Evidence: reportedAI model gets a 32-bit RISC-V CPU compiled directly into its weights, then runs DOOM on it — experimental AI model can run Doom and C code using its own weights as RAM

aifleet-tomshardware

The response

Agrawal notes that using fast weights as memory is not an original concept, but modifying Qwen 3.5 in this manner appears to be a first. He emphasizes that the built-in CPU passes official RISC-V tests, matches QEMU outputs, and ran 18 million instructions without error. The developer stresses the model sends and reads instructions internally, avoiding external tool calls.

Evidence: reportedAI model gets a 32-bit RISC-V CPU compiled directly into its weights, then runs DOOM on it — experimental AI model can run Doom and C code using its own weights as RAM

aifleet-tomshardware

Evidence: reportedAI model gets a 32-bit RISC-V CPU compiled directly into its weights, then runs DOOM on it — experimental AI model can run Doom and C code using its own weights as RAM

aifleet-tomshardware

What it means for your stack

The integration provides exact calculations, addressing common arithmetic weaknesses in standard language models. Users can run code directly within the LLM environment. However, the expanded resource usage nearly doubles the model size to almost 19GB, requiring a workstation with at least 24GB of VRAM for testing.

Evidence: reportedAI model gets a 32-bit RISC-V CPU compiled directly into its weights, then runs DOOM on it — experimental AI model can run Doom and C code using its own weights as RAM

aifleet-tomshardware

Methods and limits

The RISC-V CPU consists of 11 transformer layers placed before Qwen's own layers. None of these weights are learned; a compiler computes every value. The filesystem extension uses DeltaNet state for storage, offering 1,024 slots for up to 512 files with persistence if the state is saved. The project remains experimental, with ongoing efforts to streamline coding and improve speed.

Evidence: reportedAI model gets a 32-bit RISC-V CPU compiled directly into its weights, then runs DOOM on it — experimental AI model can run Doom and C code using its own weights as RAM

aifleet-tomshardware

Why it matters

  • Demonstrates that exact arithmetic can be achieved within LLMs by embedding compiled hardware logic, bypassing standard probabilistic calculation errors.
  • Highlights the feasibility of using model state as persistent memory for filesystems and program execution, reducing reliance on external APIs.
  • Shows significant hardware requirements, nearly doubling model size to 19GB, which impacts deployment costs and VRAM accessibility for developers.
  • Provides a proof-of-concept for running complex software like Doom entirely within model weights, challenging traditional separation between inference and execution.

Topics: models, research, RISC-V, Qwen, experimental

Updated

Then / now / next

Then

Standard LLMs relied on external tools or plugins for code execution and arithmetic.

Now

Qwenputer embeds a compiled RISC-V CPU directly into model weights for internal execution.

Next

Developers are working to streamline coding processes and improve the speed of the experimental model.

Story timeline

  1. Then Standard LLMs relied on external tools or plugins for code execution and arithmetic.
  2. 02 Nov 2026 AI model gets a 32-bit RISC-V CPU compiled directly into its weights, then runs DOOM on it — experimental AI model can run Doom and C code using its own weights as RAM
  3. Now Qwenputer embeds a compiled RISC-V CPU directly into model weights for internal execution.
  4. Next Developers are working to streamline coding processes and improve the speed of the experimental model.

Ask the article

Local keyword search of this article; no generated answers.

Did this article give you the evidence you needed?

No vote saved on this device.
Your choice stays on this device. No public tally.

Terms in this story

RISC-V

An open standard instruction set architecture used in the embedded CPU.

Gated DeltaNet

A state mechanism in Qwen used as RAM for the embedded processor.

QEMU

An emulator used to verify that the model's outputs match standard execution.

VRAM

Video memory on a graphics card, required to load the large model.

Questions readers ask

Does Qwenputer use external tools to run code?

No, the model sends instructions and reads results internally without external runtime or tool calls.

What hardware is required to run Qwenputer?

Agrawal recommends a workstation with 24GB of VRAM or more due to the 19GB model size.

Is the CPU in the model trained?

No, the 11 transformer layers for the CPU are computed by a compiler, not learned through training.

Connected stories

This storySimon Willison reports Qwen 3.8 27B can interpret model weights on a laptopSimon Willison reports Qwen 3.8 Qwen3-0.6B Runs on Bare Metal x86 Kernel Without Linux or CQwen3-0.6B Runs on Bare Metal x8Alibaba Qwen4-Max activates 71B parameters for lower costsAlibaba Qwen4-Max activates 71B AI Finds Patterns in Dolphin Whistles, But Translation Remains Out of ReachAI Finds Patterns in Dolphin Whi

Reading receipt

  • Qwenputer integrates a 32-bit RISC-V CPU directly into the Qwen 3.5 4B model weights.
  • The system executes C and MicroPython code using the model's Gated DeltaNet state as RAM.
  • It successfully runs Doom and passes standard RISC-V instruction tests without external tool use.

Still open: How will the model perform with larger or more complex software beyond Doom and basic C code?

Still open: Will future optimizations reduce the 19GB size and 24GB VRAM requirement for broader adoption?

Time spent: 0:00 · Depth: Full

Sources

  1. Tom's Hardware

Related stories