返回 文章 学习 CMS 文章

把 NES 模拟器“烘焙”进 Qwen 模型权重:dbreunig/nesformer 项目

把一台 NES 的 6502 CPU 模拟器“烘焙”进 Qwen3.5-4B 的权重里,让模型本身变成一台能跑 ROM 的模拟器。

大模型NES模拟器Qwen权重烘焙
成长分 / 100 56 综合收获、行动、留存与影响

为什么值得读展示了一种把传统程序逻辑(CPU 模拟器)编码进大模型权重的极端实验,拓展了对模型能力边界的想象。

作者公开了用 Opus 5.5 构建该系统的提示词,可观察 AI 辅助完成此类工程的思路。

关键洞察
  1. nesformer 将 NES 6502 CPU 模拟器实现为 Qwen3.5-4B 的模型权重,而非传统代码。
  2. 项目灵感来自 Divyansh Agrawal 的 qwenputer。
  3. 可以运行 Super Mario Bros 等 NES ROM,但速度非常慢。
转成行动

深入阅读

正文与原文对照

原文保真覆盖:全文原文字符:1320

dbreunig/nesformer(via)受 Divyansh Agrawal 的 qwenputer 启发,Drew Breunig 将一个可运行的 Nintendo Entertainment System 6502 CPU 模拟器烘焙进了 Qwen3.5-4B 的权重中。现在你可以在 Qwen 内部运行 Super Mario Bros 等 NES ROM(非常慢)来游玩了!

在Hacker News 的一条评论中,Drew 透露了他用来构建该系统的 Opus 5.5 提示词:

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.

随后是:

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.

显然,Opus 找到并使用了 Christopher Pow 15 年前发布的这套 NES CPU 一致性测试集。