Talkshelf
EN
返回视频列表

从零构建 GPT:用代码理解模型

Andrej Karpathy

1:56:20 · 2023

学习资料

这个精选视频的资料正在准备中,可以先观看视频并阅读学习导读。

PPT 资料为文字大纲,尚非完整演示文稿。

视频概览

Andrej Karpathy 用约两小时,以 PyTorch 从零实现 GPT,参考 Attention Is All You Need 和 GPT-2/3,并说明它与 ChatGPT 的关系。课程默认观众熟悉前面的 makemore 视频。

HN 讨论的原因

HN 常推荐它帮助理解 Transformer 与大语言模型的实际工作原理,尤其赞赏讲解的清晰度。

观看前准备

建议先熟悉 Python、张量、PyTorch 和前面的 makemore 课程。在已经能训练并检查小型神经网络时,再开始这一课。

学习建议

逐个实现组件,每一步都先检查张量形状。用自己的代码解释注意力的作用,再把训练目标与字符级模型联系起来。

查看 Andrej Karpathy 学习指南 · 原版 Zero to Hero 课程

大语言模型与生成式 AI · 机器学习与深度学习

HN 评论

20 条收录评论

最新优先

jiggawatts引用

所在讨论: AI's $600B Question

That's... my point. You're agreeing with me. Siri and Alexa are bad . Very, very bad. They pretend to understand spoken English, but they don't , because they're just a huge set of hard-coded rules written out one-at-a-time by enormous numbers of very expensive developers. This is the 1990s approach to AI: Fuzzy logic, heuristics, solvers, dynamic programming, etc... That approach has been thoroughly blown out of the…

villedespommes强烈推荐

所在讨论: Implementing a ChatGPT-like LLM from scratch, step by step

+1, Andrey is an amazing educator! I'd also recommend his [VIDEO] and checking out his github repos. MinGPT, for example, implements a small gpt model that's compatible with HF API, whereas more modern nanoGPT shows how to use newer features such as flash attention. The quality of every video, every blog post is just so high.

已显示 5 / 20 条评论