跳到正文
Simon Willison 博客·· 2 小时前精选AI 评分66

Drew Breunig 将 NES 6502 CPU 模拟器嵌入 Qwen3.5-4B 权重

dbreunig/nesformer

AI 导读

Drew Breunig 受 Divyansh Agrawal 的 qwenputer 启发,把可运行的 NES 6502 CPU 模拟器做进 Qwen3.5-4B 的权重,可运行 Super Mario Bros 等 NES ROM,但速度很慢。

推荐理由

原文记录了把 NES 6502 CPU 模拟器写进模型权重的做法,还给出构建时使用的提示词和测试来源。

正文 · 原文

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.

来源:Simon Willison 博客 · simonwillison.net