

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 Indonesia.
Learn how to create, train, and tweak large language models (LLMs) by building one from the ground up! In Build a Large Language Model (from Scratch) , you’ll discover how LLMs work from the inside out. In this insightful book, bestselling author Sebastian Raschka guides you step by step through creating your own LLM, explaining each stage with clear text, diagrams, and examples. You’ll go from the initial design and creation to pretraining on a general corpus, all the way to finetuning for specific tasks. Build a Large Language Model (from Scratch) teaches you how to: Plan and code all the parts of an LLM Prepare a dataset suitable for LLM training Finetune LLMs for text classification and with your own data Apply instruction tuning techniques to ensure your LLM follows instructions Load pretrained weights into an LLM The large language models (LLMs) that power cutting-edge AI tools like ChatGPT, Bard, and Copilot seem like a miracle, but they’re not magic. This book demystifies LLMs by helping you build your own from scratch. You’ll get a unique and valuable insight into how LLMs work, learn how to evaluate their quality, and pick up concrete techniques to finetune and improve them. The process you use to train and develop your own small-but-functional model in this book follows the same steps used to deliver huge-scale foundation models like GPT-4. Your small-scale LLM can be developed on an ordinary laptop, and you’ll be able to use it as your own personal assistant. Purchase of the print book includes a free eBook in PDF and ePub formats from Manning Publications. About the book Build a Large Language Model (from Scratch) is a one-of-a-kind guide to building your own working LLM. In it, machine learning expert and author Sebastian Raschka reveals how LLMs work under the hood, tearing the lid off the Generative AI black box. The book is filled with practical insights into constructing LLMs, including building a data loading pipeline, assembling their internal building blocks, and finetuning techniques. As you go, you’ll gradually turn your base model into a text classifier tool, and a chatbot that follows your conversational instructions. About the reader For readers who know Python. Experience developing machine learning models is useful but not essential. About the author Sebastian Raschka has been working on machine learning and AI for more than a decade. Sebastian joined Lightning AI in 2022, where he now focuses on AI and LLM research, developing open-source software, and creating educational material. Prior to that, Sebastian worked at the University of Wisconsin-Madison as an assistant professor in the Department of Statistics, focusing on deep learning and machine learning research. He has a strong passion for education and is best known for his bestselling books on machine learning using open-source software. Review: A Game-Changing Technical Guide - Sebastian Raschka's latest book is an absolute treasure for anyone serious about understanding the intricacies of Large Language Models (LLMs) and Transformer architecture. What sets this book apart is its unparalleled hands-on, ground-up approach to building GPT-2 from scratch using PyTorch. Why This Book Stands Out 1.Comprehensive Deep Dive: Raschka doesn't just explain concepts; he walks you through building each component of the Transformer architecture step by step. It's like having a masterclass in LLM design right at your fingertips. 2.Beginner-Friendly Design: Don't worry if you're not a PyTorch expert. The brilliantly crafted Appendix A provides a thorough introduction to PyTorch, making the learning curve much less intimidating for newcomers. 3.Beyond Basic Architecture: This book goes well beyond a simple explanation of Transformers. It covers fine-tuning techniques for classification and instruction tasks, and even includes a remarkable appendix on LoRA implementation from scratch. Practical Learning Experience The book is packed with practical exercises that challenge and reinforce your understanding. Raschka provides a learning experience that's both rigorous and engaging. Whether you're a machine learning practitioner, researcher, or enthusiastic learner, you'll find immense value in the detailed explanations and hands-on coding. Standout Features 1.Detailed, step-by-step implementation of GPT-2 2.In-depth exploration of Transformer architecture 3.Comprehensive coverage of fine-tuning techniques 4.Practical exercises to test and expand your knowledge 5.Appendices that provide additional context and learning resources Recommended For Machine Learning Engineers AI Researchers Data Scientists Students in Computer Science and AI Anyone wanting to understand LLMs at a fundamental level Pro Tip If you're new to the subject, start with Appendix A to build your PyTorch foundation, then progress through the chapters systematically. The book's structure allows for a smooth, progressive learning experience. Final Thoughts Sebastian Raschka has created more than just a book—he's crafted a comprehensive guide that demystifies the complex world of Large Language Models. The hands-on approach, coupled with deep technical insights, makes this book an invaluable resource for anyone serious about understanding modern AI technologies. Whether you want to build your own models, understand the inner workings of LLMs, or simply satisfy your technical curiosity, "Build Large Language Models From Scratch" is an exceptional investment in your learning journey. Highly recommended! Review: Demystifying LLM - The book offers a practical, step-by-step guide that demystifies the inner workings of large language models. The book guides us through the entire creation process, from the initial design and coding of an LLM to the intricacies of pre-training on a general corpus and fine-tuning for specific tasks. Its accessibility is a key strength, featuring clear explanations, illustrative diagrams, and practical code examples that render complex topics understandable. This book has been an invaluable companion in my journey into the fascinating world of LLMs, and for that, I am sincerely grateful to the Sebastian for this book.












| Best Sellers Rank | #7,373 in Books ( See Top 100 in Books ) #2 in C & C++ Programming #3 in Python Programming #9 in Programming Languages (Books) |
| Customer Reviews | 4.5 out of 5 stars 476 Reviews |
M**N
A Game-Changing Technical Guide
Sebastian Raschka's latest book is an absolute treasure for anyone serious about understanding the intricacies of Large Language Models (LLMs) and Transformer architecture. What sets this book apart is its unparalleled hands-on, ground-up approach to building GPT-2 from scratch using PyTorch. Why This Book Stands Out 1.Comprehensive Deep Dive: Raschka doesn't just explain concepts; he walks you through building each component of the Transformer architecture step by step. It's like having a masterclass in LLM design right at your fingertips. 2.Beginner-Friendly Design: Don't worry if you're not a PyTorch expert. The brilliantly crafted Appendix A provides a thorough introduction to PyTorch, making the learning curve much less intimidating for newcomers. 3.Beyond Basic Architecture: This book goes well beyond a simple explanation of Transformers. It covers fine-tuning techniques for classification and instruction tasks, and even includes a remarkable appendix on LoRA implementation from scratch. Practical Learning Experience The book is packed with practical exercises that challenge and reinforce your understanding. Raschka provides a learning experience that's both rigorous and engaging. Whether you're a machine learning practitioner, researcher, or enthusiastic learner, you'll find immense value in the detailed explanations and hands-on coding. Standout Features 1.Detailed, step-by-step implementation of GPT-2 2.In-depth exploration of Transformer architecture 3.Comprehensive coverage of fine-tuning techniques 4.Practical exercises to test and expand your knowledge 5.Appendices that provide additional context and learning resources Recommended For Machine Learning Engineers AI Researchers Data Scientists Students in Computer Science and AI Anyone wanting to understand LLMs at a fundamental level Pro Tip If you're new to the subject, start with Appendix A to build your PyTorch foundation, then progress through the chapters systematically. The book's structure allows for a smooth, progressive learning experience. Final Thoughts Sebastian Raschka has created more than just a book—he's crafted a comprehensive guide that demystifies the complex world of Large Language Models. The hands-on approach, coupled with deep technical insights, makes this book an invaluable resource for anyone serious about understanding modern AI technologies. Whether you want to build your own models, understand the inner workings of LLMs, or simply satisfy your technical curiosity, "Build Large Language Models From Scratch" is an exceptional investment in your learning journey. Highly recommended!
M**N
Demystifying LLM
The book offers a practical, step-by-step guide that demystifies the inner workings of large language models. The book guides us through the entire creation process, from the initial design and coding of an LLM to the intricacies of pre-training on a general corpus and fine-tuning for specific tasks. Its accessibility is a key strength, featuring clear explanations, illustrative diagrams, and practical code examples that render complex topics understandable. This book has been an invaluable companion in my journey into the fascinating world of LLMs, and for that, I am sincerely grateful to the Sebastian for this book.
V**N
Must read to grok LLM implementation
It's an excellent book to grok the internals of an LLM that also rekindered my joy of deeply learning from text books. True its title of "from scratch", it doesn't simply use a pytorch module and calls it done but implements everything in Python with stdlib and then reimplements in Pytorch. Especially accessible to non ML practitioners.
K**A
Sebastian Raschka is Godsend
Easily the best technical book on LLMs and the best teacher out there. Sebastian simplifies convoluted topics effortlessly. He is truly a gem. A must buy, 10/10 - can't recommend it enough! Thanks Sebastian for doing such a wonderful job.
I**N
Print quality could have been much better given the price
The print quality is not good. At this price, I was expecting better quality than what I received. It is a black & white edition. I bought it at ₹4350. Disappointed.
S**D
Wow!
Must have book for AI developers
V**.
This book is all you need for end to end understanding of LLMs
Excellent book with an in depth explanation of difficult components of LLM. A good resource for hands on Pytorch and implementing LLMs from scratch.
A**R
Bad print and paper quality. Packaging was even worse
The paper, print, and packaging quality is bad. Expected those to be better for a book that gets as pricey as this one.
J**E
Top
A great book to start and understand AI.
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 .
F**Z
Me sirvió para aumentar mis conocimientos en tecnología de GenAI
Buen producto, cumple lo que promete. Me sirvió para aumentar mis conocimientos en tecnología de GenAI
K**L
Bad printing quality
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
İçerim güzel
İçerik çok güzel ama ben basım kağıdını beğenmedim
Trustpilot
2 weeks ago
3 days ago