menu
{ "item_title" : "Building a Frontier LLM from Scratch", "item_author" : [" Chong Lip Phang "], "item_description" : "Most build an LLM books stop at a small GPT. This one takes you all the way to the frontier.Today's leading models - DeepSeek-V3, GLM, and the reasoning systems behind them - are not just bigger GPTs. They are sparse Mixture-of-Experts networks with Multi-head Latent Attention, trained in FP8 across thousands of GPUs and taught to reason with reinforcement learning. This book builds that entire modern stack from first principles, one component at a time.Starting from tensors and automatic differentiation, you'll implement and understand every layer of a contemporary large language model - tokenization, attention, the transformer block, rotary positions, a decoder-only architecture - and then the techniques that define the frontier: fine-grained Mixture-of-Experts, Multi-head Latent Attention, Multi-Token Prediction, and sparse attention. From there it covers what it actually takes to train, align, and serve such a model at scale.What you'll understand and build: - The full architecture of a modern MoE language model, component by component- Pretraining at scale - FP8 training, distributed and pipeline parallelism, stability, and the systems that keep a run alive- Alignment from SFT and RLHF to DPO and GRPO - the reinforcement-learning recipe behind reasoning models- Inference and serving - KV-cache optimization, paged attention, quantization, continuous batching- The research frontier - reasoning, agents, multimodality, and extreme efficiency- Two full case studies dissecting real frontier models: DeepSeek-V3 and GLMWho it's for: engineers, researchers, and serious students who know some Python and want to understand modern LLMs deeply enough to build one - not just call an API.Every chapter pairs clear explanation with worked examples, illustrative code, and reference tables, and ends with exercises. The result is a single, self-contained path from import torch to a DeepSeek-style Mixture-of-Experts reasoning model.Stop treating large language models as black boxes. Build one.", "item_img_path" : "https://covers1.booksamillion.com/covers/bam/9/79/818/201/9798182010832_b.jpg", "price_data" : { "retail_price" : "19.99", "online_price" : "19.99", "our_price" : "19.99", "club_price" : "19.99", "savings_pct" : "0", "savings_amt" : "0.00", "club_savings_pct" : "0", "club_savings_amt" : "0.00", "discount_pct" : "10", "store_price" : "" } }
Building a Frontier LLM from Scratch|Chong Lip Phang

Building a Frontier LLM from Scratch : Architecture, Training, Alignment, and Serving of a DeepSeek-Style Mixture-of-Experts Reasoning Model

local_shippingShip to Me
In Stock.
FREE Shipping for Club Members help

Overview

Most "build an LLM" books stop at a small GPT. This one takes you all the way to the frontier.

Today's leading models - DeepSeek-V3, GLM, and the reasoning systems behind them - are not just bigger GPTs. They are sparse Mixture-of-Experts networks with Multi-head Latent Attention, trained in FP8 across thousands of GPUs and taught to reason with reinforcement learning. This book builds that entire modern stack from first principles, one component at a time.

Starting from tensors and automatic differentiation, you'll implement and understand every layer of a contemporary large language model - tokenization, attention, the transformer block, rotary positions, a decoder-only architecture - and then the techniques that define the frontier: fine-grained Mixture-of-Experts, Multi-head Latent Attention, Multi-Token Prediction, and sparse attention. From there it covers what it actually takes to train, align, and serve such a model at scale.

What you'll understand and build:
- The full architecture of a modern MoE language model, component by component
- Pretraining at scale - FP8 training, distributed and pipeline parallelism, stability, and the systems that keep a run alive
- Alignment from SFT and RLHF to DPO and GRPO - the reinforcement-learning recipe behind reasoning models
- Inference and serving - KV-cache optimization, paged attention, quantization, continuous batching
- The research frontier - reasoning, agents, multimodality, and extreme efficiency
- Two full case studies dissecting real frontier models: DeepSeek-V3 and GLM


Who it's for: engineers, researchers, and serious students who know some Python and want to understand modern LLMs deeply enough to build one - not just call an API.

Every chapter pairs clear explanation with worked examples, illustrative code, and reference tables, and ends with exercises. The result is a single, self-contained path from import torch to a DeepSeek-style Mixture-of-Experts reasoning model.

Stop treating large language models as black boxes. Build one.

This item is Non-Returnable

Details

  • ISBN-13: 9798182010832
  • ISBN-10: 9798182010832
  • Publisher: Independently Published
  • Publish Date: June 2026
  • Dimensions: 9 x 6 x 1.05 inches
  • Shipping Weight: 1.12 pounds
  • Page Count: 422

Related Categories

You May Also Like...

    1

BAM Customer Reviews