Skip to content
AI ConnectPowered by VELENTIS
AI-generated2 min

nesformer: Developer Compiles Nintendo NES CPU Directly into Qwen3.5-4B Model Weights

With nesformer, developer Drew Breunig proves AI models can emulate hardware: an entire NES CPU runs inside the parameter weights of Qwen3.5-4B.

This article was AI-generated and published automatically. Context, labelling and all sources at the end of the article.

(KI-generiertes Symbolbild: Gemini / AI Connect)

On October 30, 2026, developer Drew Breunig unveiled nesformer, an open source experiment that challenges conventional understandings of computing emulation. The release quickly garnered attention across the engineering community and was highlighted by prominent software curator Simon Willison. Rather than executing an emulator through traditional software on top of a host operating system, nesformer shifts the hardware logic of a vintage console directly into the weights of an artificial neural network. The project offers a striking demonstration of how large language models can reproduce strictly deterministic hardware systems.

The foundation of the project builds directly upon Qwenputer, a prior experimental architecture developed by researcher Divyansh Agrawal. Breunig adapted this approach to encode the complete instruction set and mathematical operators of the Ricoh 6502 processor. This historic 8-bit chip originally powered the Nintendo Entertainment System throughout the 1980s. Instead of using a traditional compiler to translate vintage instructions into modern x86 or ARM machine code, Breunig compiled the entire CPU execution logic directly into the parameter weights of the open source model Qwen3.5-4B.

A primary challenge in emulating physical computing hardware within a neural network involves managing dynamic memory states. Breunig addressed this barrier by utilizing the internal hidden state of the Gated DeltaNet architecture to serve as virtual random-access memory. As the game runs, the language model predicts each subsequent CPU cycle sequentially as its next token generation. A lightweight external rasterizer is then employed to read these internal state predictions and convert them into graphical output on the screen.

To prove the validity of the architecture, Breunig ran unmodified original ROMs, including the iconic arcade title Super Mario Bros. The neural network processes the binary game data correctly, advancing the gameplay state through matrix multiplications rather than conventional instruction pipelines. However, this architectural feat comes at a massive computational cost. Current benchmarks reveal that nesformer runs roughly 150 to 290 times slower than the original physical hardware. Generating a single visual frame requires between one and six seconds of compute time.

While the sluggish frame rate makes real-time gameplay impossible for now, the conceptual achievement remains substantial. The experiment demonstrates that transformer-adjacent models are capable of acting as universal compute engines, executing complex logic without relying on native emulator code. The deterministic behavior of the 6502 microprocessor exists entirely within the numerical weights of the neural network. This provides compelling evidence that large models can move beyond linguistic approximation to represent rigorous, verifiable computational machinery.

The implications for software preservation and the long-term future of interactive entertainment are considerable. As inference acceleration and specialized AI silicon continue to advance, hybrid models could eventually unify game engines, physical simulation and generative content creation into a single computational fabric. Future virtual environments might run without fixed logic engines, resolving rules and graphics simultaneously through learned weights. With nesformer, Breunig has provided an early but foundational proof of concept for this paradigm shift.

What this means for you

For software engineering, nesformer represents a conceptual turning point: neural networks are evolving from probabilistic text generators into deterministic compute engines capable of simulating hardware. While current inference latencies prevent playable real-time performance, the experiment previews a future where runtime code and model weights merge into a single layer.

Perspectives

Coverage: 3× Other

One story, several angles: how each source frames the topic, each with a verbatim quote.

  • simonwillison.netOther

    Simon Willison highlights the project as a fun experiment building on prior work that used Opus prompts to bake a functional NES emulator into model weights.

    Original quote

    „Drew Breunig baked a working emulator for a Nintendo Entertainment System 6502 CPU into the weights of Qwen3.5-4B.“

    simonwillison.net
  • explainx.aiOther

    Explainx analyzes nesformer from a technical perspective, detailing how the Gated DeltaNet architecture functions deterministically as RAM while also assessing its practical performance limits.

    Original quote

    „The CPU logic lives inside the forward pass, in the matrices of the network.“

    explainx.ai

Source classification is maintained editorially (political spectrum only where consensus is broad; vendor communication is PR, not journalism). Unlabelled sources are unclassified: we do not guess.

Evidence

Well sourced
76/100
  • On October 30, 2026, developer Drew Breunig released the open source project nesformer, building upon the Qwenputer research by Divyansh Agrawal.

    verified
  • The project compiled Ricoh 6502 CPU instructions directly into the model weights of Qwen3.5-4B and uses the state of Gated DeltaNet as RAM.

    verified
  • The system runs original ROMs like Super Mario Bros., but at one to six seconds per frame it runs roughly 150 to 290 times slower than original hardware.

    single source

The evidence score is computed, not hand-set: from confidence, the number of sources and the share of verified statements.

Source & transparency

As of: October 31, 2026

AI-generatedAI-generated: produced automatically from vetted sources with technical quality checks (source, quote and figure verification); no human sign-off of each item before publication

Sources
3
Verified statements
2 / 3
Evidence score
76Well sourced

Want to put this into practice?

We connect you with suitable AI providers from the DACH region, free of charge and without obligation.

What's next?