@shao__meng: 9 episodes, 230 minutes — @jbhuang0604's video series "AI Training and Inference" explains the fundamentals of foundation model training and inference, covering the entire training/inference stack: single-GPU memory → thousand-GPU parallelism → cheap fine-tuning → inference acceleration → small-model distillation → inference RL…
Summary
A blogger shares Jia-Bin Huang's 9-episode, 230-minute video series "AI Training and Inference", which systematically covers the training and inference architecture of foundation models: from ZeRO/FSDP memory optimization, five-dimensional parallelism, LoRA variants, speculative decoding, on-policy distillation, GRPO reinforcement learning, to AdamW/Muon optimizers and LLM serving.
View Cached Full Text
Cached at: 10/31/26, 05:24 AM
9 episodes, 230 minutes — @jbhuang0604’s video series “AI Training and Inference” lays out the fundamentals of foundation model training and inference, covering the entire training-and-inference stack: single-GPU memory → thousand-GPU parallelism → cheap fine-tuning → inference acceleration → small-model distillation → inference RL → optimizers (AdamW→Muon).
The through-line of this training & inference series
First solve “the model doesn’t fit on a single GPU,” then scale out to ten-thousand-GPU level with five-dimensional parallelism; the LoRA family then brings adaptation costs down; on the inference side, speculative decoding speeds things up without changing the output distribution; capability compression goes through on-policy distillation; inference capability follows the RL line from PPO to GRPO; and finally we return to the optimizer baseline and Muon. Serving-side topics (KV cache, scheduling, etc.) come last in Episode 9.
https://youtube.com/playlist?list=PLXrQ2OzD3YKA…
-
ZeRO & FSDP (~23 min) How floating-point and mixed precision consume memory; data parallelism replicates optimizer states and gradients. ZeRO-1/2 shard the optimizer and gradients; ZeRO-3 additionally shards the weights. FSDP is the same sharding schedule implemented module-by-module in PyTorch.
-
Five-dimensional parallelism (~40 min) When pure data parallelism isn’t enough, split along data / tensor / sequence-context / pipeline / expert. Tensor parallelism’s row-and-column splits and all-reduce; context parallelism and ring attention; pipelines from GPipe and 1F1B to zero-bubble / DualPipe; MoE’s all-to-all — using Llama 3’s 16,384-GPU layout as an example, plus a three-step “cheat sheet” for arranging parallelism.
-
LoRA and variants (~21 min) Freeze W₀, learn a low-rank ΔW = BA; typically initialize A randomly and B at zero. LoRA+ gives A and B different learning rates; QLoRA quantizes the backbone with NF4 etc. while keeping adapters at full precision (the subtitles claim 70B-scale fine-tuning on a single 48 GB GPU — per the speaker’s statement); VeRA shares frozen random bases and only trains scaling factors; DoRA decomposes magnitude and direction.
-
Speculative decoding (~25 min) A small draft model guesses ahead; the large model verifies in parallel; rejection sampling guarantees the same distribution as the target model. Then goes deeper into draft trees, Medusa, MTP, the EAGLE series, and DFlash / DFlash 2.
-
On-policy distillation (~31 min) Soft labels and “dark knowledge” → sequence-level distillation; exposure bias; on-policy RL’s sparse rewards. On-policy distillation: the student uses its own trajectories yet still receives the teacher’s dense guidance — with emphasis on KL direction. Applications mentioned include reasoning, personalization, data reuse, and self-distillation.
-
GRPO (~23 min) From REINFORCE, baselines/value functions, GAE, Actor-Critic, TRPO/PPO (especially clipping) to GRPO: sample a group of answers for the same question, normalize rewards within the group as advantages, share a single advantage across the whole sequence, and skip training a separate value model; add KL relative to a reference policy. Dr. GRPO drops length normalization and the standard-deviation division, reducing biases like “correct answers get shorter” and “harder questions get inflated advantages.” The video ties this to DeepSeek-R1-style reasoning training.
-
AdamW (~7 min) SGD → momentum → RMSProp → Adam; Adam’s entanglement of weight decay with adaptive step sizes hurts generalization; AdamW decouples weight decay and became the long-standing default.
-
Muon / MuonClip (~18 min) Momentum matrices of linear layers are approximately low-rank, so rare directions receive weak updates; Muon orthogonalizes the momentum matrix using Newton–Schulz etc. (the speaker claims roughly 2× the compute efficiency relative to AdamW — per the video’s statement). At scale, it’s paired with decay and learning rates scaled by matrix size; exploding attention logits are handled with QK-clip, extended to MuonClip in the MLA setting.
-
LLM Serving (~42 min) Members-only content — if, after watching the first 8 episodes, you feel you need it, go study it yourself.
@shao__meng: 9 episodes, 230 minutes — @jbhuang0604’s video series “AI Training and Inference” explains the fundamentals of foundation model training and inference, covering the entire train-and-infer stack: single-GPU memory → thousand-GPU parallelism → cheap fine-tuning → inference acceleration → small-model distillation → inference R…
Channel: @shao__meng Source: https://www.youtube.com/playlist?list=PLXrQ2OzD3YKA
Jia-Bin Huang (@jbhuang0604): I’m building a playlist/course for LLM training and inference (WIP). https://t.co/0JdUqjiiQm
So far, we have common topics like distributed training, fine-tuning, RL, OPD, serving, spec. decoding, and basic optimizers.
What else should I include to make this more complete? 🤔
Similar Articles
@snowboat84: https://x.com/snowboat84/status/2065215177029787705
This article is the middle part of the AI Engineering Landscape series, detailing core techniques such as inference optimization, model slimming (quantization, distillation, pruning, MoE), and speculative decoding, while reviewing the latest advances from hardware to the engineering stack.
@tanzhengmc97: https://x.com/tanzhengmc97/status/2066531753762656730
Explained the operating principles of large models in easy-to-understand language, including word vectors, Transformer attention mechanism, next-word prediction training, and emergent abilities, suitable for beginners to understand basic AI concepts.
@antiAIvo: https://x.com/antiAIvo/status/2112187842919268835
A metro-style map of large model learning designed for Chinese readers: with Transformer→GPT-2→Pre-training→ChatGPT→LLaMA→MoE→Reasoning Models as the main line, branching into five side lines — reasoning, training, alignment, architecture, and applications — emphasizing that hands-on implementation of GPT-2 serves as the anchor for understanding all subsequent models.
@shao__meng: https://x.com/shao__meng/status/2101835798316495007
Baseten's 'Inference Engineering' is a systematic book that explains AI inference optimization techniques from CUDA to production deployment, helping engineers efficiently run open-source models in production environments.
@Etudecn: Martin, a technical expert and presenter from IBM Technology channel, thoroughly explains the seven most brain-burning terms in the AI world through this video. Agents, large reasoning models, vector databases. How RAG makes models more accurate. Why the MCP protocol can unify external tools. And why MoE architecture is so...
Martin, an expert from IBM Technology channel, explains in a simple and profound way seven key concepts in the AI world through the video: Agents, large reasoning models, vector databases, RAG, MCP protocol, MoE architecture, and artificial superintelligence. It is considered the most information-dense AI concept explainer of the year.