跳到主要內容
AI 武林
影片進階EN2.1 萬 次觀看

How Thousands of GPUs Train One AI: 5 Ways They Work Together

來源 Jia-Bin Huang人物 Jia-Bin Huang

看影片(在新分頁開啟原站)連到 YouTube・Jia-Bin Huang

摘要

深入探討如何在數千張 GPU 上訓練大型 AI 模型,並詳細解析五種並行策略:資料、張量、序列、上下文與專家並行。講者透過 Llama 3 與 DeepSeek-V3 的實例,說明如何針對模型大小與序列長度組合這些技術,以平衡記憶體、運算與通訊成本,並提供實用的佈局配置步驟。

This video explains five parallelism strategies for training AI models on thousands of GPUs, detailing how to combine data, tensor, sequence, context, and expert parallelism to optimize memory and communication costs.

摘要、重點與章節標題由語言模型整理,細節(誰說的、數字、先後)可能有誤;要引用請以原始內容為準。

重點

  • 五種並行策略分別針對批次、寬度、序列、層數與專家進行工作分割。
  • 張量與序列並行適合單伺服器內,上下文並行則用於跨伺服器處理長序列。
  • 透過網路層級架構最佳化通訊,可讓數千張 GPU 高效協同訓練大模型。

章節

依話題轉折切分,標題由 AI 產生

  1. 00:005D parallelism: Five ways to cut the workload
  2. 00:33Recap: data parallelism and ZeRO
  3. 04:49The work cube: tokens × sequences × layers
  4. 06:00Three limits of data parallelism
  5. 08:44Tensor parallelism: column-linear and row-linear
  6. 10:24The MLP and attention: one all-reduce each
  7. 14:10Sequence parallelism
  8. 16:16Context parallelism: long sequences across servers
  9. 17:24Ring attention, online softmax and zig-zag
  10. 20:51Pipeline parallelism 1: the naive schedule and GPipe
  11. 23:03Pipeline parallelism 2: 1F1B and interleaved stages
  12. 25:30Pipeline parallelism 3: Zero-bubble and DualPipe
  13. 27:23Expert parallelism: mixture of experts and all-to-all
  14. 30:08Pipeline vs ZeRO-3
  15. 31:58Communication cost and the network hierarchy
  16. 32:58Llama 3's 16,384-GPU layout
  17. 34:15The cheatsheet: three steps to your own layout
  18. 39:21Recap

提到的工具與公司

  • ZeRO
  • FSDP
  • Megatron
  • GPipe
  • PipeDream-Flush
  • DualPipe
  • DeepSeek-V3
  • Llama 3

適合誰看

適合需要設計或最佳化大型 AI 模型訓練架構的機器學習工程師與系統開發者。

摘要依據

講者
Jia-Bin Huang
依據
人工字幕

為什麼排在這裡

人氣
0.59
新鮮
0.87

在主題頁與搜尋結果裡,名次由相關、人氣、新鮮三個分數決定;這一頁沒有搜尋的關鍵字,所以沒有相關分數。排序怎麼算

這個來源最近的內容

Jia-Bin Huang 的所有內容

摘要由 AI 根據原文產生,可能有誤;完整內容請看原站。看影片(在新分頁開啟原站)