How-toSelected

Hands-On Large Language Models Book Explains LLMs With 300 Illustrations

Why we picked it

The book devotes an entire track to embedding-based applications — classification, clustering, semantic search and training your own embedding models — which most LLM books skip in favour of generation. Practitioners building RAG pipelines or fine-tuning encoder models can follow its open-source code directly. Alammar's Illustrated Transformer explanations have been standard university course references since 2018, so this is a systematically structured successor to material many already know.

Jay Alammar and Maarten Grootendorst's book "Hands-On Large Language Models" contains nearly 300 hand-drawn illustrations explaining LLM concepts and architectures, which the authors call "The Illustrated LLM Book".

Body

The book is organised into 12 chapters across three parts: understanding models (chapters 1-3, including an updated Illustrated Transformer), representation and retrieval (chapters 4, 5, 8, 10, 11, covering embeddings, semantic search, RAG and fine-tuning BERT-style models), and generation and fine-tuning (chapters 6, 7, 9, 12, covering prompt engineering, sampling, multimodal and fine-tuning generative models).

Alammar's illustrated series has been cited by courses at Stanford and MIT since 2018.The book's code is open-sourced on GitHub, and the authors also recorded a DeepLearning.

AI course.

Original · shao__meng

又来安利「Hands-On Large Language Models」 作者 @JayAlammar @MaartenGr 全书绘制了近 300 张自制图,对应理解概念和原理、架构非常有帮助,作者们叫它 "The Illustrated LLM Book"。 Alammar 的图解系列从 2018 年起就是很多人理解 Transformer、BERT、GPT 的入口,被斯坦福、MIT 等课程引用;这本书把那套「先给直觉和图,再给代码」的讲法系统化沉淀成了 12 章内容。 12 章可以分成三段,这个分法也呼应了 @Nils_Reimers 在书评里的概括,生成式、表示式、检索式三类应用: 理解模型(1–3 章):语言模型是什么、token 和嵌入怎么工作、Transformer 内部长什么样。第 3 章就是 Illustrated Transformer 的更新版。 表示与检索(4、5、8、10、11 章):文本分类、聚类与主题建模、语义搜索和 RAG、自己训练嵌入模型、微调 BERT 类表示模型。这是本书区别于其他 LLM 书的部分,大多数书聚焦生成,这条嵌入线来自 Grootendorst 做 BERTopic 的一手经验,讲的是「模型不生成文本、而是把文本变成向量」的那一半应用。 生成与微调(6、7、9、12 章):提示工程、高级生成技术(采样、结构化输出等)、多模态、微调生成模型。 Alammar 对第 3 章的图解: jalammar.github.io/illustrated-tr… 代码开源在这: github.com/handsOnLLM/Han… 两位作者还参加了一次 @DeepLearningAI 课程: deeplearning.ai/courses/how-tr…📊 3 ⚡

Industry Coordinates & Source Verification

This report is categorized under AITOP's "How-to" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Hands-On Large Language Models, Jay Alammar, RAG, fine-tuning.

Source attribution: curated from shao__meng (@shao__meng).