跳到主要內容
AI 武林
影片高階EN4.4 萬 次觀看

Build an LLM from Scratch 4: Implementing a GPT model from Scratch To Generate Text

來源 Sebastian Raschka人物 Sebastian Raschka

看影片(在新分頁開啟原站)連到 YouTube・Sebastian Raschka

摘要

由 Sebastian Raschka 講解如何從零開始編碼 GPT 模型架構,作為其書籍《Build a Large Language Model from Scratch》的補充教學。內容涵蓋了層歸一化(LayerNorm)、GELU 激活函數、前饋神經網路(FFN)、殘差連接(Shortcut Connections)以及 Transformer Block 的完整實作細節。最後演示了如何利用訓練好的模型邏輯將輸出轉換為文字,並解釋了生成過程的迭代機制。

This video demonstrates how to code a GPT model architecture from scratch, covering LayerNorm, GELU activations, residual connections, and the Transformer block implementation.

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

重點

  • 詳細實作 LayerNorm、GELU 與殘差連接等核心元件。
  • 整合各模組編寫完整的 Transformer Block 與 GPT 模型。
  • 演示文字生成流程並解釋模型輸出與 Token 的轉換。

章節

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

  1. 00:004.1 Coding an LLM architecture
  2. 13:524.2 Normalizing activations withlayer normalization
  3. 36:024.3 Implementing a feed forward network with GELU activations
  4. 52:164.4 Adding shortcut connections
  5. 1:03:184.5 Connecting attention and linear layers in a transformer block
  6. 1:15:134.6 Coding the GPT model

提到的工具與公司

適合誰看

適合希望深入理解並手動實作大型語言模型架構的開發者。

摘要依據

講者
Sebastian Raschka
依據
人工字幕

為什麼排在這裡

人氣
0.38
新鮮
0.09

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

這個來源最近的內容

Sebastian Raschka 的所有內容

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