Karpathy用《指环王》首段测Opus 5:5500行three.js代码

Cool!! building games is a great way to test LLM. It covers reasoning, planning, coding, tool (lib) ...

精选理由

Karpathy用《指环王》首段测Opus 5,1M token生成5500行three.js代码,效果糙但脑洞大。

AI 摘要

Andrej Karpathy用《指环王》第一段测试Opus 5,给它约1M token的预算(约10美元)并要求生成three.js渲染版本。Opus 5花了大约2小时写出5500行代码,程序化渲染了故事,但效果有些粗糙。Karpathy认为这类超定制世界生成是LLM的新应用场景,同时暴露了模型无法高效观看视频或玩游戏的短板,只能靠截图慢慢检查。

原文 · Binyuan Hui

Cool!! building games is a great way to test LLM. It covers reasoning, planning, coding, tool (lib) ...

Cool!! building games is a great way to test LLM. It covers reasoning, planning, coding, tool (lib) use, multimdal understanding, and more. But it seems like the community still lacks a standardized benchmark for building games? Andrej Karpathy @karpathy We're starting to leave the territory where you'd test an LLM by e.g. "create an svg of pelican on a bicycle". As one idea to generalize it, I was interested what Opus 5 would do if I gave it the first paragraph of the Lord of the Rings, a 1M token budget (~$10) and asked for three js render of it. Opus went off for ~2 hours and wrote 5500 lines of code that (procedurally) rendered the story. It's kind of janky but fun. But it's a bit mindboggling that the LLM has to place and orchestrate various polygon assets in (x,y,z) coordinates and write code that animates it all, and that it even does anything at all. I also like this kind of examples because no one in their right mind would ever spend the time to write something this custom but LLMs have all the stamina and patience in the world, so it's an example where we go from "no one would ever do this" to "sure, why not, it's ~free". There might be a lot more. But I'm excited about creating hyper custom worlds that you can imagine dropping players into, e.g. here to participate in the LoTR story as a spectator NPC, or one of the characters, or etc. Something like an ephemeral GTA of X on demand. Last thought is that the domain of worlds/games exposes a weakness in LLMs: they can't easily audit their work because they aren't able to efficiently and natively perceive videos or play games within them. Here, Opus 5 had to very slowly and painstakingly take screenshots at different points, and it messed up a few times and created a bunch of jank. An example of raw capability (multimodal, gameplay) that I think is still quite lacking. Your browser does not support the video tag. 🔗 View on Twitter 🔗 View Quoted Tweet 💬 0 🔄 0 ❤️ 7 👀 864 📊 1 ⚡

Karpathy用《指环王》首段测Opus 5:5500行three.js代码 · AI 热点