nesformer:将任天堂 NES 模拟器植入 Qwen3.5 权重,大模型可直接运行《超级马力欧兄弟》
英文标题:dbreunig/nesformer
受开源项目 qwenputer 启发,开发者 Drew Breunig 成功将任天堂红白机(NES)的 6502 CPU 模拟器植入到开源模型 Qwen3.5-4B 的权重中,实现了在模型内部运行《超级马力欧兄弟》等经典 ROM。作者在 Hacker News 上透露,该项目由 Claude Opus 5.5 辅助设计提示词并自主调用了 15 年前的 NES 兼容性测试集构建。这一突破展示了将大模型权重直接作为确定性虚拟硬件执行环境的技术潜力。
中文
2026 年 10 月 30 日 - 链接博客
dbreunig/nesformer(来源)受 Divyansh Agrawal 的 qwenputer 启发,Drew Breunig 将一个可运行的任天堂红白机(NES)6502 CPU 模拟器直接写入了 Qwen3.5-4B 的模型权重中。现在,你已经可以直接在 Qwen 内部(非常缓慢地)运行《超级马力欧兄弟》(Super Mario Bros)等 NES ROM 了!
在 Hacker News 上的一条评论 中,Drew 透露了他用来构建该系统的 Opus 5.5 提示词:
阅读这篇文章以及任何相关的源代码:https://divagr.com/blog/qwenputer。然后探讨是否可以使用这种技术模拟任天堂红白机(NES)中的芯片和 RAM(就像现在人们在 MiSTer 中用 FPGA 所做的那样)。如果可以,你需要构建多大尺寸的模型?如果使用更小、更快的模型,你能否让它达到标准时钟频率?
紧接着是:
我认为我们应该把它做出来!纯粹为了好玩。速度慢点也没关系。我们希望能够得到模型权重,并拥有一个指向 ROM 即可运行这些权重的 CLI。
显然,Opus 随后找到并使用了 Christopher Pow 在 15 年前发布的 这套 NES CPU 一致性测试集。
English / 原文
30th October 2026 - Link Blog
dbreunig/nesformer (via) 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.