@GitHub_Daily: 想了解大语言模型到底是怎么工作的,找到的资料都太过于学术看不懂,或者说的太浅只讲概念,就没一个从头到尾讲清楚的内容。 无独有偶,看到 how-llms-work 这个项目,把大模型的完整流程做成了一个可视化交互网页,内容基于 Karpat…
摘要
An interactive visual guide, 'how-llms-work', breaks down the entire lifecycle of Large Language Models based on Andrej Karpathy's lectures, covering data collection to post-training.
查看缓存全文
缓存时间: 2026/05/12 00:47
想了解大语言模型到底是怎么工作的,找到的资料都太过于学术看不懂,或者说的太浅只讲概念,就没一个从头到尾讲清楚的内容。 无独有偶,看到 how-llms-work 这个项目,把大模型的完整流程做成了一个可视化交互网页,内容基于 Karpathy 的经典讲座整理。 从网页数据采集、分词、神经网络训练,一直到推理生成、后训练对齐,每个阶段都有直观的图示和解释,一页看完整个流程。 GitHub:http://github.com/ynarwal/how-llms-work… 还涵盖了幻觉问题、上下文窗口、检索增强生成等进阶话题,帮我们理解模型的能力边界和实际应用方式。 想搞明白大模型从训练到对话的全过程,又不想啃学术论文,这份教程值得花十分钟看一遍。
ynarwal/how-llms-work
Source: https://github.com/ynarwal/how-llms-work
How LLMs Actually Work
A visual, interactive guide to how large language models are built — from raw internet text to a conversational assistant.
Live site: https://ynarwal.github.io/how-llms-work/
Based on Andrej Karpathy’s Intro to Large Language Models lecture.
What’s inside
- Data Collection — how the web is scraped and filtered into training data (Common Crawl, FineWeb)
- Tokenization — how text is broken into subword tokens via Byte Pair Encoding (BPE)
- Neural Network Training — the loss function, gradient descent, and what a forward pass looks like
- Inference & Sampling — how the model generates text token by token, and how temperature works
- The Base Model — what a model knows after pre-training and what it can’t do yet
- Post-Training — RLHF, instruction tuning, and how a base model becomes an assistant
- LLM Psychology — hallucinations, context windows, and how to think about what models “know”
- RAG — retrieval-augmented generation: embeddings, vector search, and context injection
- Full Pipeline Summary — end-to-end visual of every stage
Files
| File | Description |
|---|---|
index.html | Main site (v2 redesign) |
v1.html | Original dark-theme version |
transcript.txt | Full Karpathy lecture transcript |
council.py | LLM council fact-checker (runs via uv run council.py) |
report.html | Latest council fact-check report |
HN discussion
Posted to Hacker News and generated heated debate, mostly about it being LLM-generated. Fair point — but the content isn’t the AI’s. Every claim, figure, and framing is traced directly to Karpathy’s lecture, not hallucinated by a model.
Vibe check
The code and content in this repo is mostly LLM-generated (Claude via Claude Code). The ideas, direction, and editorial decisions are mine — the implementation was largely written by AI. The council fact-checker exists precisely because of this: automated content warrants automated verification.
相似文章
@GitHub_Daily: 想搞懂大语言模型底层原理,大部分资料只介绍理论知识,或者只给源码,看完还是一头雾水。 偶然看到 EveryonesLLM 这个开源教程,手把手带我们在 Google Colab 上从零搭建一个完整的大语言模型,全程动手写代码。 整套教程分…
EveryonesLLM 是一个开源教程,提供29个章节的Colab笔记本,手把手教用户从零在Google Colab上搭建完整的大语言模型,包括预训练和指令微调,并支持中文。
@GitHub_Daily: 大语言模型内部是如何工作的,为什么会产生幻觉,为什么有时答非所问,想深入了解这些。 可以看下 Awesome LLM Interpretability 这份资源合集,提供一整套拆解 AI 黑盒的系统路径。 涵盖从注意力可视化、神经元分析到…
介绍了一个名为 Awesome LLM Interpretability 的资源合集,汇集了多种可解释性工具、论文和社区资源,帮助理解大语言模型的内部工作机制。
@GitHub_Daily: 想深入研究模型,不能只停留在应用层,需要弄懂底层系统是如何训练和优化的。 偶然发现 LLMSys-PaperList,这份精心整理了大模型系统相关的论文合集。 从 2022 年一直更新到 2026 年最新的顶会论文,并按训练、推理、多模态…
一个精心整理的大模型系统相关论文合集,涵盖训练、推理、多模态等方向,持续更新并收录了技术报告、框架和课程,适合研究人员和开发者参考。
@Xx15573208: 看了很多 Transformer 的文章,能听懂原理,但真正坐下来写代码,完全无从下手。 LLMs-from-scratch 专门解决这个问题:配套《Build a Large Language Model》一书,带你用 PyTorch …
LLMs-from-scratch 是一个 GitHub 仓库,配套《Build a Large Language Model》一书,提供从零用 PyTorch 实现 GPT 的完整代码,涵盖预训练、微调、RLHF 等全流程,已获 93K+ stars,适合想深入理解大模型原理的开发者。
@pmddomingos: 你可以阅读数百篇充满炒作的大语言模型文章,却仍然不知道它们是如何工作的。或者,你可以阅读这篇,然后...
一条推文推荐了一篇全面的博客文章,该文章从注意力机制和分布式表示开始,解释了大语言模型的历史,旨在帮助读者揭开LLMs的神秘面纱。