


Buy anything from 5,000+ international stores. One checkout price. No surprise fees. Join 2M+ shoppers on Desertcart.
Desertcart purchases this item on your behalf and handles shipping, customs, and support to Sri Lanka.
🤖 Build smarter AI models today — don’t get left behind in the NLP revolution!
‘Build a Large Language Model (From Scratch)’ is a top-ranked, highly-rated book designed for intermediate Python users eager to master NLP. It offers clear, practical insights into building language models and understanding attention mechanisms, making complex AI concepts accessible and actionable.





























| Best Sellers Rank | 9,242 in Books ( See Top 100 in Books ) 4 in Computer Information Systems 15 in Computing & Internet Programming 171 in Language Study & Reference |
| Customer reviews | 4.5 4.5 out of 5 stars (456) |
| Dimensions | 18.73 x 1.78 x 23.5 cm |
| Edition | 1st |
| ISBN-10 | 1633437167 |
| ISBN-13 | 978-1633437166 |
| Item weight | 612 g |
| Language | English |
| Print length | 368 pages |
| Publication date | 1 Nov. 2024 |
| Publisher | Manning Publications |
V**U
Great book .
Awesome book . Not for someone who wants to go too deep but great to begin with and get good idea of basics .
T**E
Understand LLMs by building your own
An excellent text and resources for understanding LLMs and their NLP applications. Build your own. Learn to load weights from pre-trained models. Fine-tune for Classification or Chatbot.
W**B
An amazing book
The most helpful and inspirational NLP book I've read. (I'm currently just over 1/2 way through.) It's lucid and easy to follow for anyone with intermedia Python skills and a basic understanding of NLP. Raschka anticipates what you need to know at any given stage. I did an MSc in NLP/SP a couple of years ago and we went through a lot of these topics and similar code sequences then. But reading this has bedded it all down and helped me to understand how train my own models in the future. Looking forward to reading his upcoming book on reasoning models after I finish this.
L**O
Structuring techniques
This book is awesome, really a piece of work
A**A
Solid Foundation for Understanding Large Language Models
I’ve just finished the first two chapters of Build a Large Language Model from Scratch by Sebastian R. So far, it’s an excellent read. The book provides a solid understanding and clear insights into how large language models (LLMs) work, including their underlying architecture. What I particularly appreciate is how approachable it is for readers who don’t have a background in AI. If you’re curious about LLMs and want to get a deeper grasp of how they function—without getting overwhelmed—this is a great starting point. I’d definitely recommend it to anyone interested in AI, regardless of their technical background
M**Y
Best explanation of how the attention mechanism works
Cards on the table, I only read the first three chapters. But actually I think these chapters are well written with clear explanations. I really wanted to understand how the attention mechanism works. I've read so many books and blogs but couldn't see it in my mind's eye. This book fixed that for me.
K**H
Profound and enjoyable!
Yes, this is an extraordinarily well written book about how to build an LLM. The language is friendly and easy to understand. Each step is profoundly explained. On top, it is absolutely clear that the author loves his work and provides a positive attitude in tackling such a model. I highly recommend this book, it opens all doors into the profound knowledge about LLMs.
L**E
It’s good
Got this for my hubby for Christmas, he is really happy with it
J**E
A great book to start and understand AI.
F**Z
Buen producto, cumple lo que promete. Me sirvió para aumentar mis conocimientos en tecnología de GenAI
K**L
Poor printing quality: paper is so thin so one can see letters from back side while reading front side. Also for some reason main cover is not alligned with the rest of the book. Overall impression like it was printed at home
B**A
İçerik çok güzel ama ben basım kağıdını beğenmedim
U**Y
Interesting book for all, who want to understand how a LLM works. It covers the implementation of a LLM with PyTorch, and fine tuning for classification and instruction following. You will get a deeper understanding how a LLM works. Even finetuning with LoRA is covered. A simple introduction to PyTorch is also given. I can recommend it to anybody who is interested in AI and LLMs.
Trustpilot
1 month ago
3 weeks ago