影片高階EN12.9 萬 次觀看
Coding a ChatGPT Like Transformer From Scratch in PyTorch
看影片(在新分頁開啟原站)連到 YouTube・StatQuest with Josh Starmer
摘要
由 Josh Starmer 示範如何在 PyTorch 中從零開始編寫一個類似 ChatGPT 的 Decoder-Only Transformer。內容涵蓋建立訓練資料集、實作位置編碼、注意力機制、殘差連接與全連線層,並完整展示模型訓練與生成回應的過程。
This video demonstrates coding a decoder-only transformer from scratch in PyTorch, covering data preparation, positional encoding, attention mechanisms, and model training to generate text responses.
摘要、重點與章節標題由語言模型整理,細節(誰說的、數字、先後)可能有誤;要引用請以原始內容為準。
重點
- 詳細解說從零開始用 PyTorch 編寫 Transformer 的完整程式碼步驟。
- 涵蓋位置編碼、注意力機制、資料集建立與模型訓練的實作細節。
- 示範未訓練與訓練後的模型如何生成「Awesome EOS」的回應。
章節
依話題轉折切分,標題由 AI 產生
提到的工具與公司
- PyTorch
- Adam
適合誰看
適合希望深入理解 Transformer 架構並學習實際程式碼實作的開發者或機器學習愛好者。
摘要依據
- 依據
- 自動字幕
為什麼排在這裡
- 人氣
- 0.60
- 新鮮
- 0.03
在主題頁與搜尋結果裡,名次由相關、人氣、新鮮三個分數決定;這一頁沒有搜尋的關鍵字,所以沒有相關分數。排序怎麼算
相關內容
- Coding a Transformer from scratch on PyTorch, with full explanation, training and inference.影片 ・ Umar Jamil ・ 2 小時 59 分 ・
- Build an LLM from Scratch 3: Coding attention mechanisms影片 ・ Sebastian Raschka ・ 2 小時 16 分 ・
- Build an LLM from Scratch 4: Implementing a GPT model from Scratch To Generate Text影片 ・ Sebastian Raschka ・ 1 小時 46 分 ・
- Implementing GPT-2 From Scratch (Transformer Walkthrough Part 2/2)影片 ・ Neel Nanda ・ 1 小時 19 分 ・
- The matrix math behind transformer neural networks, one step at a time!!!影片 ・ StatQuest with Josh Starmer ・ 24 分鐘 ・
- Attention is all you need (Transformer) - Model explanation (including math), Inference and Training影片 ・ Umar Jamil ・ 58 分鐘 ・
這個來源最近的內容
摘要由 AI 根據原文產生,可能有誤;完整內容請看原站。看影片(在新分頁開啟原站)
