技巧精选73°

Karpathy分享LLM输出理解技巧

We'll be spending a lot more time trying to understand the outputs of language models. A few thought...

精选理由

Karpathy教你用不同格式让LLM输出更易理解,从控制语言到视频生成,实用技巧直接可用。

Karpathy提出多种LLM输出格式提升理解效率。使用ASD-STE100控制语言可获得更清晰的写作风格。生成图表比纯文本更易处理。HTML格式可创建交互式网页。自定义解释视频是最看好的输出格式,可使用ElevenLabs API实现。

原文 · Andrej Karpathy

We'll be spending a lot more time trying to understand the outputs of language models. A few thought...

We'll be spending a lot more time trying to understand the outputs of language models. A few thoughts, tips & tricks: Writing. Something I've had success with: Ask your LLM to explain something in ASD-STE100, it's a controlled language specification originally developed for aerospace maintenance documentation. LLMs well-versed in this language and it comes with heavy constraints on clean writing style that I often find a lot more readable. Sometimes I've tried to soften it a bit e.g. ask for "80% of the way to ASD-STE100" because the spec is quite stringent. But even better: Diagrams / images. Instead of writing, ask your LLM to create a diagram. These can be a lot easier to process, parse, and understand. But even better: Web pages. Ask for output "in HTML" to get a beautiful, interactive webpage. LLMs are getting really good at frontend and can create beautiful experiences, animations, etc. But even better: Explainer videos. The output format I am most bullish on is fully custom / bespoke explainer videos generated on any arbitrary topic. Experiment with things like "Create a 3b1b style video explainer on X. Use my ElevenLabs API key for audio narration". (you'd need an API key for the latter or you can ask your LLM to find you decent free alternatives that use your local compute). This is actually starting to work! In summary: - As LLMs get better, they will do more and more of the legwork autonomously, and a lot more of our work will rise up the abstractions into oversight and understanding. - Luckily, LLMs can help here too because as intelligence and code are increasingly abundant, you can ask for large, custom, discardable software artifacts (e.g. web apps, video explainers) that would have never made sense to create before. Push the boundaries here and you'll be surprised. 💬 60 🔄 65 ❤️ 452 👀 22998 📊 155 ⚡