影片進階EN4.2 萬 次觀看
Build an LLM from Scratch 5: Pretraining on Unlabeled Data
看影片(在新分頁開啟原站)連到 YouTube・Sebastian Raschka
摘要
詳細解說如何從零開始預訓練大型語言模型,涵蓋使用 GPT 架構生成文字、計算交叉熵損失與困惑度、以及訓練與驗證集損失的評估。講者進一步介紹溫度縮放與 Top-k 取樣等解碼策略,並示範如何儲存載入模型權重,最後成功載入 OpenAI 的 GPT-2 預訓練權重以驗證模型效果。
This video explains how to pretrain an LLM from scratch, covering text generation, loss calculation, decoding strategies, and loading pretrained weights from OpenAI.
摘要、重點與章節標題由語言模型整理,細節(誰說的、數字、先後)可能有誤;要引用請以原始內容為準。
重點
- 實作 GPT 模型生成文字與計算交叉熵損失的完整流程
- 介紹溫度縮放與 Top-k 取樣等控制隨機性的解碼策略
- 示範如何載入 OpenAI GPT-2 預訓練權重並測試生成效果
章節
依話題轉折切分,標題由 AI 產生
- 00:005.1.1 Using GPT to generate text
- 17:235.1.2 Calculating the text generation loss: cross-entropy and perplexity
- 44:435.1.3 Calculating the training and validation set losses
- 1:10:275.2 Training an LLM
- 1:36:365.3 Decoding strategies to control randomness
- 1:39:515.3.1 Temperature scaling
- 1:53:245.3.2 Top-k sampling
- 2:01:405.3.3 Modifying the text generation function
- 2:12:245.4 Loading and saving model weights in PyTorch
- 2:16:445.5 Loading pretrained weights from OpenAI
提到的工具與公司
- PyTorch
- Tiktoken
- TensorFlow
- Matplotlib
- NumPy
適合誰看
適合希望深入理解 LLM 預訓練原理、損失函式計算及權過載入實作的程式開發者。
摘要依據
- 講者
- Sebastian Raschka
- 依據
- 人工字幕
為什麼排在這裡
- 人氣
- 0.38
- 新鮮
- 0.09
在主題頁與搜尋結果裡,名次由相關、人氣、新鮮三個分數決定;這一頁沒有搜尋的關鍵字,所以沒有相關分數。排序怎麼算
相關內容
- Building LLMs from the Ground Up: A 3-hour Coding Workshop影片 ・ Sebastian Raschka ・ 2 小時 45 分 ・
- Build an LLM from Scratch 2: Working with text data影片 ・ Sebastian Raschka ・ 1 小時 28 分 ・
- Building GPT-2 in a Spreadsheet — Everything You Wanted to Know About LLMs (But Were Afraid to Ask)影片 ・ AI Tinkerers ・ 1 小時 16 分 ・
- Notes on Midtraining文章 ・ Deep (Learning) Focus(Cameron R. Wolfe) ・
- Anthropic Researcher Explains How LLMs Are Built and Trained影片 ・ Matthew Berman ・ 56 分鐘 ・
- Train an LLM from Scratch with Karpathy's Nanochat影片 ・ Trelis Research ・ 29 分鐘 ・
這個來源最近的內容
摘要由 AI 根據原文產生,可能有誤;完整內容請看原站。看影片(在新分頁開啟原站)
