A working Nintendo in ~1GB of Qwen weights

github.com

An NES CPU compiled into the weights of a stock Qwen model, so the model itself runs the console.

Pricing
Open source
Published
Oct 30, 2026

Next steps

What it does

nesformer compiles the NES 6502 CPU, its work RAM and a cartridge ROM into the weights of a standard Qwen3.5 checkpoint, and the model predicts the CPU's execution log one token at a time while a small host program handles graphics, input and interrupts. It is aimed at researchers and hobbyists exploring computation inside language models, and it ships as a Python package with a CLI that runs NROM games and saves animated GIFs.

Log in to join the discussion