nesformer compiles an NES CPU into stock Qwen3.5 model weights
Developer dbreunig releases nesformer, running a 6502 CPU inside Qwen3.5 model weights without training.
NES → PC (Windows), Linux / Steam Deck, Mac · Tool

Developer dbreunig has released nesformer, a tool that compiles an NES’s 6502 CPU, 2 KB of work RAM, and cartridge program ROM directly into the weights of a stock Qwen3_5ForCausalLM checkpoint. Building on Divyansh Agrawal’s Qwenputer, the project computes every weight via a compiler rather than traditional training, using the model’s Gated DeltaNet state as machine memory.
To try it, users need Python 3.11 or newer, NumPy, SciPy, Numba, and Pillow. Unzip the archives, check integrity with SHA256SUMS, and run NROM games like Super Mario Bros.
- Set up a virtual environment and install dependencies via
pip install numpy scipy numba pillow. - Run a test ROM with
python -m nesformer run roms/thwaite.nes --frames 600 --show.
Execution takes one to six seconds per frame after an initial 20-second Numba compilation. Other cartridge boards stop with a message.
