产品

Drew Breunig 把 NES 模拟器塞进 Qwen3.5-4B 权重里

精选理由

有人把整个 NES 主机塞进了 Qwen3.5-4B 的权重里,马里奥真能跑,就是巨慢,提示词也全公开了。

受 Divyansh Agrawal 的 qwenputer 项目启发,Drew Breunig 在 Qwen3.5-4B 的模型权重中内置了一个可运行的 NES 6502 CPU 模拟器。现在可以在 Qwen 里运行 Super Mario Bros 等 NES ROM,只是速度非常慢。Breunig 公开了他用 Opus 5.5 构建该系统的提示词,Opus 还找到了 Christopher Pow 在 15 年前发布的 NES CPU 一致性测试集来验证实现。

原文 · Simon Willison’s Weblog

dbreunig/nesformer Inspired by qwenputer by Divyansh Agrawal, Drew Breunig baked a working emulator for a Nintendo Entertainment System 6502 CPU into the weights of Qwen3.5-4B. You can now play NES ROMs such as Super Mario Bros (very slowly) running inside Qwen! In a comment on Hacker News Drew reveals the Opus 5.5 prompts he used to build this system: Read this article and any relevant source code: https://divagr.com/blog/qwenputer. Then explore if you could emulate the chip and ram in a Nintendo Entertainment System (as people do today with FPGAs in MISTRs) using this technique. If so, what size model would you have to build and if you could use smaller faster ones, could you get it to be at the standard clockspeed. Followed by: I think we should build it! Just for fun. It's okay if it's not fast. We want to be able to have the weights, and a cli to run them that we can point at a ROM. Apparently Opus found and then used this collection of conformance tests for the NES CPU released 15 years ago by Christopher Pow. Via Hacker News Tags: games , ai , generative-ai , llms , drew-breunig , qwen , conformance-suites