{"product_id":"build-a-large-language-model","title":"Build a Large Language Model (Bestseller)","description":"\u003cp\u003e\u003cb\u003eLearn how to create, train, and tweak large language models (LLMs) by building one from the ground up!\u003c\/b\u003e\u003c\/p\u003e\u003cp\u003eIn \u003ci\u003eBuild a Large Language Model (from Scratch)\u003c\/i\u003e bestselling author Sebastian Raschka guides you step by step through creating your own LLM. Each stage is explained with clear text, diagrams, and examples. You’ll go from the initial design and creation, to pretraining on a general corpus, and on to fine-tuning for specific tasks.\u003c\/p\u003e\u003cp\u003e\u003ci\u003eBuild a Large Language Model (from Scratch)\u003c\/i\u003e teaches you how to:\u003c\/p\u003e\u003cp\u003e• Plan and code all the parts of an LLM\u003cbr\u003e• Prepare a dataset suitable for LLM training\u003cbr\u003e• Fine-tune LLMs for text classification and with your own data\u003cbr\u003e• Use human feedback to ensure your LLM follows instructions\u003cbr\u003e• Load pretrained weights into an LLM\u003c\/p\u003e\u003cp\u003e\u003ci\u003eBuild a Large Language Model (from Scratch)\u003c\/i\u003e takes you inside the AI black box to tinker with the internal systems that power generative AI. As you work through each key stage of LLM creation, you’ll develop an in-depth understanding of how LLMs work, their limitations, and their customization methods. Your LLM can be developed on an ordinary laptop, and used as your own personal assistant.\u003c\/p\u003e\u003cp\u003ePurchase of the print book includes a free eBook in PDF and ePub formats from Manning Publications.\u003c\/p\u003e\u003cp\u003e\u003cb\u003eAbout the technology\u003c\/b\u003e\u003c\/p\u003e\u003cp\u003ePhysicist Richard P. Feynman reportedly said, “I don’t understand anything I can’t build.” Based on this same powerful principle, bestselling author Sebastian Raschka guides you step by step as you build a GPT-style LLM that you can run on your laptop. This is an engaging book that covers each stage of the process, from planning and coding to training and fine-tuning.\u003c\/p\u003e\u003cp\u003e\u003cb\u003eAbout the book\u003c\/b\u003e\u003c\/p\u003e\u003cp\u003e\u003ci\u003eBuild a Large Language Model (From Scratch)\u003c\/i\u003e is a practical and eminently-satisfying hands-on journey into the foundations of generative AI. Without relying on any existing LLM libraries, you’ll code a base model, evolve it into a text classifier, and ultimately create a chatbot that can follow your conversational instructions. And you’ll really understand it because you built it yourself!\u003c\/p\u003e\u003cp\u003e\u003cb\u003eWhat's inside\u003c\/b\u003e\u003c\/p\u003e\u003cp\u003e• Plan and code an LLM comparable to GPT-2\u003cbr\u003e• Load pretrained weights\u003cbr\u003e• Construct a complete training pipeline\u003cbr\u003e• Fine-tune your LLM for text classification\u003cbr\u003e• Develop LLMs that follow human instructions\u003c\/p\u003e\u003cp\u003e\u003cb\u003eAbout the reader\u003c\/b\u003e\u003c\/p\u003e\u003cp\u003eReaders need intermediate Python skills and some knowledge of machine learning. The LLM you create will run on any modern laptop and can optionally utilize GPUs.\u003c\/p\u003e\u003cp\u003e\u003cb\u003eAbout the author\u003c\/b\u003e\u003c\/p\u003e\u003cp\u003e\u003cb\u003eSebastian Raschka\u003c\/b\u003e is a Staff Research Engineer at Lightning AI, where he works on LLM research and develops open-source software.\u003c\/p\u003e\u003cp\u003eThe technical editor on this book was \u003cb\u003eDavid Caswell\u003c\/b\u003e.\u003c\/p\u003e\u003cp\u003e\u003cb\u003eTable of Contents\u003c\/b\u003e\u003c\/p\u003e\u003cp\u003e1 Understanding large language models\u003cbr\u003e2 Working with text data\u003cbr\u003e3 Coding attention mechanisms\u003cbr\u003e4 Implementing a GPT model from scratch to generate text\u003cbr\u003e5 Pretraining on unlabeled data\u003cbr\u003e6 Fine-tuning for classification\u003cbr\u003e7 Fine-tuning to follow instructions\u003cbr\u003eA Introduction to PyTorch\u003cbr\u003eB References and further reading\u003cbr\u003eC Exercise solutions\u003cbr\u003eD Adding bells and whistles to the training loop\u003cbr\u003eE Parameter-efficient fine-tuning with LoRA\u003cbr\u003e\u003c\/p\u003e\u003cp\u003e\u003cb\u003eEbook License\u003c\/b\u003e\u003c\/p\u003e\u003cp\u003eEnd-User Warranty And License Agreement\u003c\/p\u003e\u003cp\u003e1. Grant Of License\u003c\/p\u003e\u003cp\u003eManning Has Authorized The Download By You Of An Unrestricted Number Of Copies Of The Electronic Book (Ebook) In Any Of The Available Formats. Manning Grants You A Nonexclusive, Nontransferable License To Use The Ebook According To The Terms And Conditions Herein. This License Agreement Permits You To Install The Ebook On Any And All Your Devices For Your Personal Use Only.\u003c\/p\u003e\u003cp\u003e2. Restrictions\u003c\/p\u003e\u003cp\u003eYou Shall Not: (1) Share, Resell, Rent, Assign, Timeshare, Distribute, Or Transfer All Or Part Of The Ebook Or Any Rights Granted Hereunder To Any Other Person; (2) Duplicate The Ebook, Except For A Single Backup Or Archival Copy; (3) Remove Any Proprietary Notices, Labels, Or Marks From The Ebook; (4) Transfer Or Sublicense Title To The Ebook To Any Other Party.\u003c\/p\u003e\u003cp\u003e3. Intellectual Property Protection\u003c\/p\u003e\u003cp\u003eThe Ebook Is Owned By Manning And Is Protected By United States And International Copyright And Other Intellectual Property Laws. Manning Reserves All Rights In The Ebook Not Expressly Granted Herein. This License And Your Right To Use The Ebook Terminate Automatically If You Violate Any Part Of This Agreement. In The Event Of Termination, You Must Remove The Original And Any Copies Of The Ebook From All Your Devices.\u003c\/p\u003e\u003cp\u003e4. Source Code Supplementary Material\u003c\/p\u003e\u003cp\u003eAny Source Code Files Provided As A Supplement To The Book Are Freely Available To The Public For Download. Reuse Of The Code Is Permitted, In Whole Or In Part, Including The Creation Of Derivative Works, Provided That You Acknowledge That You Are Using It And Identify The Source: Title, Publisher And Year.\u003c\/p\u003e\u003cp\u003e5. Limited Warranty\u003c\/p\u003e\u003cp\u003eManning Warrants That The Ebook Files, A Copy Of Which You Are Authorized To Download, Are Free From Defects In The Operational Sense That They Can Be Read By A Pdf Reader Or Epub Reader, Or Other. Except For This Express Limited Warranty, Manning Makes And You Receive No Warranties, Express, Implied, Statutory Or In Any Communication With You, And Manning Specifically Disclaims Any Other Warranty Including The Implied Warranty Of Merchantability Or Fitness Or A Particular Purpose. Manning Does Not Warrant That The Operation Of The Ebook Will Be Uninterrupted Or Error Free. If The Ebook Was Purchased In The United States, The Above Exclusions May Not Apply To You As Some States Do Not Allow The Exclusion Of Implied Warranties. In Addition To The Above Warranty Rights, You May Also Have Other Rights That Vary From State To State.\u003c\/p\u003e\u003cp\u003e6. Limitation Of Liability\u003c\/p\u003e\u003cp\u003eIn No Event Will Manning Be Liable For Any Damages, Whether Arising For Tort Or Contract, Including Loss Of Data, Lost Profits, Or Other Special, Incidental, Consequential, Or Indirect Damages Arising Out Of The Use Or Inability To Use The Ebook.\u003c\/p\u003e\u003cp\u003e7. General\u003c\/p\u003e\u003cp\u003eThis Agreement Constitutes The Entire Agreement Between You And Manning And Supersedes Any Prior Agreement Concerning The Ebook. This Agreement Is Governed By The Laws Of The State Of New York\u003c\/p\u003e","brand":"Manning Publications","offers":[{"title":"Paperback","offer_id":50506367991878,"sku":"9781633437166","price":4559.0,"currency_code":"INR","in_stock":true},{"title":"E-Book","offer_id":50506368024646,"sku":"9781633437166-2","price":4179.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0754\/2797\/1142\/files\/71gJtiYmNtL._SY425.jpg?v=1790328336","url":"https:\/\/cb-india.com\/products\/build-a-large-language-model","provider":"Computer Bookshop (India) Pvt Ltd","version":"1.0","type":"link"}