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

Build an LLM from Scratch 6: Finetuning for Classification

來源 Sebastian Raschka人物 Sebastian Raschka

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

摘要

由 Sebastian Raschka 指導,示範如何將預訓練的 GPT 模型微調為二分類器,以 SMS 垃圾訊息辨識為例。內容涵蓋資料集準備、建立資料載入器、修改模型輸出層、計算損失與準確度,以及執行微調訓練迴圈的完整程式碼實作。

This video demonstrates how to fine-tune a pre-trained GPT model for binary classification using SMS spam detection, covering data preparation, model modification, and training implementation.

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

重點

  • 使用 Pandas 與 PyTorch 處理並平衡 SMS 垃圾訊息資料集
  • 修改 GPT 模型輸出層並凍結大部分權重以進行高效微調
  • 實作訓練迴圈並測試模型在垃圾訊息分類上的準確度

章節

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

  1. 00:006.2 Preparing the dataset
  2. 26:496.3 Creating data loaders
  3. 42:506.4 Initializing a model with pretrained weights
  4. 52:566.5 Adding a classification head
  5. 1:08:286.6 Calculating the classification loss and accuracy
  6. 1:30:546.7 Finetuning the model on supervised data
  7. 2:04:256.8 Using the LLM as a spam classifier

提到的工具與公司

適合誰看

適合希望學習如何將預訓練大型語言模型應用於分類任務的程式開發者或機器學習初學者。

摘要依據

講者
Sebastian Raschka
依據
人工字幕

為什麼排在這裡

人氣
0.36
新鮮
0.10

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

這個來源最近的內容

Sebastian Raschka 的所有內容

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