看影片(在新分頁開啟原站)連到 YouTube・Umar Jamil
摘要
從第一性原理出發,使用 PyTorch 實作分散式訓練框架。內容涵蓋 RoPE、YaRN、MLA 等模型架構,並深入解析 Pipeline、Data、Tensor 及 Expert 平行化技術。講者將這些技術整合成單一框架,追蹤張量與梯度在 GPU 間的移動,幫助讀者理解現代大型語言模型如何組成分散式系統。
This video builds a distributed training framework from first principles using PyTorch, covering model architectures like RoPE and MLA, and implementing parallelism techniques such as pipeline, data, tensor, and expert parallelism.
摘要、重點與章節標題由語言模型整理,細節(誰說的、數字、先後)可能有誤;要引用請以原始內容為準。
重點
- 從第一性原理推導 RoPE、YaRN 與 MLA 等模型架構細節。
- 實作 Pipeline、Data、Tensor 及 Expert 平行化並整合成單一框架。
- 追蹤張量、通訊操作與梯度在分散式 GPU 環境中的流動。
章節
依話題轉折切分,標題由 AI 產生
- 00:00Introduction
- 16:50Model Architecture, Parameters and Training FLOPs
- 51:57RoPE from First Principles
- 1:11:25Implementing RoPE and YaRN
- 1:50:16Building the Transformer and Weight Initialization
- 2:19:12Attention, the KV Cache and Arithmetic Intensity
- 3:02:56Coding Multi-head Latent Attention (MLA)
- 3:15:35Block Matrix Multiplication and MLA Internals
- 3:34:58Deriving MLA and Decoupled RoPE
- 4:10:54MLA Weight Absorption
- 4:32:59Autograd and the Mathematics of Distributed Training
- 5:04:19Distributed Computation Graphs and DDP
- 5:10:47Building the Training Loop
- 6:06:17Pipeline Parallelism from First Principles
- 6:26:52Pipeline Schedules: GPipe, 1F1B and Zero Bubble
- 7:10:29Datasets, Tokenization and Data Parallelism
- 7:42:10Coding Pipeline Parallelism
- 8:37:34Device Meshes and Combining PP with DP
- 9:48:52Distributed Communication Collectives
- 10:49:41Implementing Device Meshes, DDP and FSDP
- 12:13:08Tensor Parallelism from First Principles
- 13:44:57Coding Tensor Parallelism
- 14:47:43Context Parallelism and Ring Attention
- 15:41:22Metrics, Optimizers, Schedulers and Checkpointing
- 16:00:33Combining Parallelism in the Training Loop
- 16:49:58Mixture of Experts from First Principles
- 18:02:52Tensor Parallelism for MoE
- 18:36:24Expert Parallelism
- 19:01:56All-to-All Token Dispatch and Combine
- 19:27:38Expert Tensor Parallelism
提到的工具與公司
適合誰看
具備 Transformer 編碼經驗、熟悉 PyTorch 且希望深入理解大模型分散式訓練原理的開發者。
摘要依據
- 依據
- 自動字幕
為什麼排在這裡
- 人氣
- 0.61
- 新鮮
- 0.67
在主題頁與搜尋結果裡,名次由相關、人氣、新鮮三個分數決定;這一頁沒有搜尋的關鍵字,所以沒有相關分數。排序怎麼算
相關內容
- Distributed Data Parallel (DDP) with PyTorch: complete tutorial with cloud infrastructure and code影片 ・ Umar Jamil ・ 1 小時 13 分 ・
- How to Train Really Large Models on Many GPUs?文章 ・ Lilian Weng(部落格) ・
- How Thousands of GPUs Train One AI: 5 Ways They Work Together影片 ・ Jia-Bin Huang ・ 40 分鐘 ・
- GPipe论文精读【论文精读】影片 ・ 跟李沐学AI ・ 59 分鐘 ・
- Building LLMs from the Ground Up: A 3-hour Coding Workshop影片 ・ Sebastian Raschka ・ 2 小時 45 分 ・
- TorchNeuron: running HF models on AWS Trainium is easier than ever文章 ・ Hugging Face Blog ・
這個來源最近的內容
- Flash Attention derived and coded from first principles with Triton (Python) ・ 影片 ・ 7 小時 38 分
- Coding a Multimodal (Vision) Language Model from scratch in PyTorch with full explanation ・ 影片 ・ 5 小時 46 分
- ML Interpretability: feature visualization, adversarial example, interp. for language models ・ 影片 ・ 1 小時
摘要由 AI 根據原文產生,可能有誤;完整內容請看原站。看影片(在新分頁開啟原站)
