← All stories
● Covered by 1 source · 1 reportMedium impact1 neutral

NES CPU Compiled into Qwen3.5 Model Weights, Running Games via Token Prediction

🔄 Updated 7d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • NES 6502 CPU compiled into Qwen3.5 model weights.
  • Model predicts CPU execution log token by token.
  • Host program handles graphics, input, and interrupts.
  • Builds on Qwenputer project, reusing its compiler.

NES CPU Integration into Qwen3.5

The core of a Nintendo Entertainment System (NES), specifically its 6502 CPU and 2KB of work RAM, has been compiled into the weights of a stock Qwen3_5ForCausalLM model. This means the computational logic of the NES CPU is embedded within the neural network's parameters, rather than being emulated by traditional software.

This compilation was achieved without training the weights; instead, a compiler computed each weight directly. The model then operates by predicting the CPU's execution log one token at a time as a game runs. A separate host program manages the console's other functions, such as drawing the picture, reading controller inputs, and firing vblank interrupts.

Building on Previous Work

The nesformer project extends the work of Qwenputer by Divyansh Agrawal, which previously compiled CHIP-8 and RISC-V CPUs into Qwen3.5-4B models. Nesformer reuses Qwenputer's compiler and its method of using the model's Gated DeltaNet state as the machine's memory.

The project confirms that every CPU token generated during these runs originated from the model. For the included test games, every frame's output precisely matches that of a conventional 6502 emulator.

Technical Implementation and Usage

Users can set up nesformer by unzipping the project files and weights into the same folder. The CLI tool then allows running NES ROMs, with options to display frames in the terminal and save animated GIFs of the gameplay. The system requires Python 3.11 or newer and specific libraries like numpy, scipy, numba, and pillow.

Execution is noted to be slow, with initial setup taking about 20 seconds for engine compilation. Subsequent frames take 1–6 seconds each, meaning 10 seconds of NES gameplay can take several minutes to generate.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~4 min · 3 stories · Nov 07

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

A Nintendo Entertainment System (NES) CPU, including its 6502 core and 2KB of RAM, has been compiled directly into the weights of a standard Qwen3.5ForCausalLM model. This allows the large language model to execute NES games by predicting the CPU's execution log one token at a time. The project, called nesformer, builds on previous work that compiled simpler CPUs into Qwen models.