How Large Language Models Work

you own this product
Edward Raff, Drew Farris and Stella Biderman for Booz Allen Hamilton
  • June 2025
  • ISBN 9781633437081
  • 200 pages
  • printed in black & white

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Look inside
Learn how large language models like GPT and Gemini work under the hood in plain English.

How Large Language Models Work translates years of expert research on Large Language Models into a readable, focused introduction to working with these amazing systems. It explains clearly how LLMs function, introduces the optimization techniques to fine-tune them, and shows how to create pipelines and processes to ensure your AI applications are efficient and error-free.

In How Large Language Models Work you will learn how to:

  • Test and evaluate LLMs
  • Use human feedback, supervised fine-tuning, and Retrieval Augmented Generation (RAG)
  • Reducing the risk of bad outputs, high-stakes errors, and automation bias Human-computer interaction systems
  • Combine LLMs with traditional ML

How Large Language Models Work is authored by top machine learning researchers at Booz Allen Hamilton, including researcher Stella Biderman, Director of AI/ML Research Drew Farris, and Director of Emerging AI Edward Raff. They lay out how LLM and GPT technology works in plain language that’s accessible and engaging for all.

about the technology

Large Language Models put the “I” in “AI.” By connecting words, concepts, and patterns from billions of documents, LLMs are able to generate the human-like responses we’ve come to expect from tools like ChatGPT, Claude, and Deep-Seek. In this informative and entertaining book, the world’s best machine learning researchers from Booz Allen Hamilton explore foundational concepts of LLMs, their opportunities and limitations, and the best practices for incorporating AI into your organizations and applications.

about the book

How Large Language Models Work takes you inside an LLM, showing step-by-step how a natural language prompt becomes a clear, readable text completion. Written in plain language, you’ll learn how LLMs are created, why they make errors, and how you can design reliable AI solutions. Along the way, you’ll learn how LLMs “think,” how to design LLM-powered applications like agents and Q&A systems, and how to navigate the ethical, legal, and security issues.

what's inside

  • Customize LLMs for specific applications
  • Reduce the risk of bad outputs and bias
  • Dispel myths about LLMs
  • Go beyond language processing

about the reader

No knowledge of ML or AI systems is required.

about the authors

Edward Raff, Drew Farris and Stella Biderman are the Director of Emerging AI, Director of AI/ML Research, and machine learning researcher at Booz Allen Hamilton.

Essential reading if you want to understand how LLMs really work.

Janelle Shane, aiweirdness.com

Demystifies technology revolutionizing human-machine interaction.

Sudharshan Tumkunta, Meta

An excellent no-nonsense introduction to LLMs.

Kartik Dutta, Cisco

Strikes the perfect balance between depth and clarity, making it an invaluable resource for both researchers and practitioners.

Mattia Zoccarato, Chiron AI
choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • How Large Language Models Work ebook for free
choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • How Large Language Models Work ebook for free