![]() |
|
Hands-On Large Language Models [Alammar] - Printable Version +- MKLab (https://mklab.gr) +-- Forum: [INDEX] (https://mklab.gr/forumdisplay.php?fid=1) +--- Forum: ARTFICIAL INTELLIGENCE (AI) (https://mklab.gr/forumdisplay.php?fid=5) +---- Forum: BOOKS (https://mklab.gr/forumdisplay.php?fid=32) +----- Forum: NEW PUBLICATIONS (https://mklab.gr/forumdisplay.php?fid=110) +----- Thread: Hands-On Large Language Models [Alammar] (/showthread.php?tid=1856) |
Hands-On Large Language Models [Alammar] - mklabgr - 09-05-2026 Hands-On Large Language Models: Language Understanding and Generation Authors: Jay Alammar & Maarten Grootendorst Publication date: September 2024 Publisher: O’Reilly Media, Inc. Length: 428 pages Level: Beginner to intermediate ISBN: 9781098150952 Summary Hands-On Large Language Models is a practical, visually oriented introduction to how modern large language models work and how they can be used in real applications. The authors deliberately follow an “intuition-first” approach: rather than beginning with heavy mathematics, they build an understanding of concepts such as tokenization, embeddings, attention, Transformers, encoder and decoder architectures, contextual representations, and text generation. The first part explains what happens inside an LLM, including token embeddings, Transformer blocks, positional embeddings, attention mechanisms, context windows, decoding, and techniques for making generation more efficient. The second and largest part turns these ideas into practical NLP systems. It covers text classification, clustering, topic modeling, prompt engineering, semantic search, RAG, agents, and multimodal models. Readers learn how embeddings can be used to represent documents mathematically, how dense retrieval and rerankers improve search, and how retrieved documents can be supplied to an LLM through Retrieval-Augmented Generation. The book also introduces BERTopic, LangChain-style chains and agents, ReAct reasoning, CLIP, and multimodal models that connect text and images. The final section goes deeper into training and fine-tuning. It explains contrastive learning and SBERT for embedding models, fine-tuning BERT-like representation models, few-shot methods such as SetFit, and fine-tuning generative LLMs. Important modern techniques including LoRA, QLoRA, PEFT, supervised fine-tuning, model quantization, RLHF, reward models, and Direct Preference Optimization (DPO) are introduced together with methods for evaluating generative models. The result is a book that bridges the gap between simply calling an LLM API and understanding enough of the underlying machinery to build, adapt, and evaluate sophisticated language-AI systems. Key takeaways
O’Reilly — Hands-On Large Language Models |