Pre-order Releases Dec 22, 2026
Build a DeepSeek Model (From Scratch) (From Scratch)
by Raj Abhijit Dandekar, Rajat Dandekar, Naman Dwivedi and Sreedath Pana
From $50.99 / copy at 25+ copies; lower per-copy prices at higher quantities (see Volume pricing) As low as $47.99 at 1,000+
Volume pricing
The more copies, the less each one costs
Applied automatically in your cart. No code needed.
About the book
Build a DeepSeek Model (From Scratch) (From Scratch)
"An outstanding resource for anyone who wants to understand LLMs not just conceptually, but at the level where architectural details and training decisions really matter.”
—Dmitry Efimov, Amazon
The open-weight DeepSeek model upended the LLM world with frontier-level performance at a fraction of the training cost. This book gives you an insider’s understanding of the model’s advances and architectural breakthroughs as you build a small-scale version piece by piece. By the final chapter, you’ll have a working mini-DeepSeek running on your laptop, along with an “I built it myself” understanding of its internals.
Build a DeepSeek Model (From Scratch) takes a problem-solution approach to each of DeepSeek’s major innovations. You’ll see how Multi-Head Latent Attention (MLA) compresses the memory of earlier tokens the model keeps on hand as it generates text, sharply reducing its memory needs. You’ll also explore its Mixture of Experts architecture—a collection of small specialist networks that expand the model’s capacity while activating only a fraction of the model for each token. You’ll start with a basic Mixture-of-Experts layer, then introduce DeepSeek’s improvements: smaller experts for finer specialization, shared experts for common knowledge, and better distribution of work among them.
Next comes Multi-Token Prediction, which trains the model to anticipate several upcoming tokens rather than just the next one, helping it learn more from the same training text. This is followed by a deep dive into how DeepSeek’s approach to FP8 quantization trades lower numerical precision for faster computation and lower memory use, without hurting model quality.
You’ll explore DeepSeek’s approach to training by building a full training pipeline and learn how it manages the communications overhead associated with training MoE models. The book closes with readable accounts of DeepSeek’s reasoning training and distillation: how Group Relative Policy Optimization (GRPO) helps the model learn from successful attempts at a problem, and how smaller models learn by comparing several of its own attempts at a problem and favoring the better ones. You’ll even find head-to-head comparisons that let you measure the gains of key features in concrete terms.
Across eight substantial chapters, the story unfolds in clear, plain English and mathematical walkthroughs, illuminating diagrams, and PyTorch code you write yourself. Reviewer Sakshi Mahendru of Palo Alto Networks summarized his feelings: "An incredible pedagogical feat that captures the exact essence of the DeepSeek paper and makes it digestible by grounding architectural theory in from-scratch empirical experiments."
What's inside
- Build all the key DeepSeek innovations—from scratch!
- Improve inference with Multi-Head Latent Attention and RoPE
- Effectively train a Mixture-of-Experts model
- GRPO reinforcement learning for reasoning
About the reader
For intermediate-to-advanced ML engineers, AI researchers, and graduate students comfortable with PyTorch and deep learning fundamentals.
About the author
Raj Abhijit Dandekar (MIT), Rajat Dandekar (Purdue), and Sreedath Panat (MIT) co-founded Vizuara Labs, which offers dozens of training courses on AI agents and applications that make AI research and development accessible and practical. Naman Dwivedi is an AI researcher.
Table of Contents
Part 1
1 Introducing DeepSeek
2 Solving the inference bottleneck with the key–value cache
3 The DeepSeek breakthrough: Multi-head latent attention
4 Mixture-of-experts in DeepSeek: Scaling intelligence efficiently
5 Multi-token prediction and FP8 quantization
Part 2
6 The DeepSeek training pipeline: Building a foundation model
7 Reinforcement learning: From policy gradients to GRPO
8 Knowledge distillation: Making powerful models practical
What readers are saying
Details
- Publisher
- Manning
- Authors
- Raj Abhijit Dandekar, Rajat Dandekar, Naman Dwivedi, Sreedath Pana
- Format
- Paperback
- Release date
- Dec 22, 2026
- ISBN-13
- 9781633434325
- ISBN-10
- 163343432X
- Pages
- 416
- Language
- English
- Carton quantity
- 18 copies
Who it's for
Made for sharing
Pre-order copies for everyone on your list, and they ship on release.
- Book clubs A copy for every member, on one order. Get a quote
- Events and conferences A book for every attendee, delivered to your venue. Get a quote
- Author events and signings Copies at the venue in time for the day. Get a quote
- Gifts For clients, staff, members or volunteers. Get a quote
Before release day
Need them before Dec 22?
Books ship on release and usually arrive around the release date. Early delivery is common, and we arrange it often. It needs the publisher’s OK, so tell us why you need them early and we’ll make the request for you.
- Tell us the date and the reasonA class unit, an event, a program launch: one line is enough.
- We ask the publisherWe make the request on your behalf. It’s a routine part of what we do.
- We confirm with youYour specialist confirms the date by email before anything ships.
Other times a quote is the better path
- Several addressesOne order split across schools, branches, classrooms or homes.
- Signings and eventsTell us the venue and the date, and we’ll plan the delivery around it.
- Custom touchesBookplates, belly bands, gift notes or packaging for your copies.
- Purchase ordersSchools, libraries and agencies can pay by PO.
Build a DeepSeek Model (From Scratch) (From Scratch) for groups: pricing
Volume pricing applies automatically in your cart. No codes, no account needed.
| Copies | Price per copy | You save |
|---|---|---|
| 25 – 99 | $50.99 | 15% off list |
| 100 – 249 | $50.39 | 16% off list |
| 250 – 499 | $49.79 | 17% off list |
| 500 – 999 | $49.19 | 18% off list |
| 1,000+ | $47.99 | 20% off list |
Where can I buy 100 copies of Build a DeepSeek Model?
BookPal sells Build a DeepSeek Model in quantity. At 100 copies the price is $50.39 a copy, against a list price of $59.99, and the cart applies the volume tier automatically. Free shipping on most orders over $95 in the contiguous US. A specialist can quote a larger or mixed order.
- New books only, straight from the publisher
- Volume prices apply automatically in the cart, with no code needed
- Order at least 10 business days before you need the books (11 from mid-November through December)
What does Build a DeepSeek Model (From Scratch) (From Scratch) cost when I buy for a group?
Volume pricing applies automatically in your cart, with no code needed. Price per copy: 25 to 99 copies, $50.99 (15% off list); 100 to 249 copies, $50.39 (16% off list); 250 to 499 copies, $49.79 (17% off list); 500 to 999 copies, $49.19 (18% off list); 1,000+ copies, $47.99 (20% off list). Need a different quantity, or a quote to forward for approval? Ask a specialist and we will confirm pricing before you pay.
How fast can I get copies of Build a DeepSeek Model (From Scratch) (From Scratch)?
This title is not released yet. Pre-orders ship when it is, currently scheduled for December 22, 2026. Need them by a specific date? Request a quote and we'll confirm timing before you pay.
Can you ship to several locations or people's homes?
Yes. We ship group orders to one address, to multiple sites, or to individual recipients, in the US and internationally. See fulfillment options.
Can I get a formal quote for approval before ordering?
Yes. Request a quote and we'll send a PDF you can forward for approval.
Do you accept purchase orders and tax-exempt orders?
Yes. We accept purchase orders upon approval, as well as cards, PayPal, ACH, wire transfers and checks. BookPal is a tax-exempt supplier in all 50 states. See purchase orders and sales tax exemption.
What if I find a lower price?
Send us the link. We match prices from other booksellers and distributors on a new copy in the same edition, available to ship in the quantity you need. Clearance sales and pricing errors are the exception, and we'll tell you quickly if that's the case. Start a price match.
Turn this order into a program
Groups that order together often pair the copies with something more. We handle the extras so you don't have to.
Branded cover stickers on paperbacks from 100 copies, plus bookplates, inserts and belly bands. Your specialist confirms what fits your title.
Customization options Ship to every readerOne address, many sites or individual recipients' homes, in the US and abroad.
Fulfillment options Pair it with a branded journalJournals with your logo or each reader's name, for the same group.
Branded journalsBookPal is partnering with Talezo to help you find and book authors, speakers and performers for your event.
BookPal × TalezoWrite a Review
Build a DeepSeek Model (From Scratch) (From Scratch)
Groups also order




A colleague asked you to approve this order
Your quote list
Add books as you browse, then request one quote for all of them.