跳到主要內容
AI 武林
影片進階EN9,283 次觀看

Train an LLM from Scratch with Karpathy's Nanochat

來源 Trelis Research

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

摘要

示範如何以約 100 美元成本,在四小時內從零訓練一個 5 億參數的大型語言模型。內容涵蓋使用 RunPod 部署環境、訓練自定義 Tokenizer、執行預訓練、中訓練及後訓練,並展示如何將模型推送到 HuggingFace 及執行聊天介面。

This tutorial demonstrates training a 500M parameter LLM from scratch for about $100 in four hours, covering tokenizer training, pre-training, mid-training, and post-training using RunPod and HuggingFace.

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

重點

  • 使用 RunPod 模板快速部署並設定環境變數。
  • 執行包含 Tokenizer 訓練與多階段模型訓練的指令碼。
  • 將訓練好的模型、最佳化器及報告推送到 HuggingFace Hub。

章節

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

  1. 00:00Train an LLM from scratch with $100 (Nanochat by Karpathy)
  2. 01:44One-click Runpod Template
  3. 04:46Running speedrun.sh script with wandb
  4. 07:55Tokenizer Training (Byte Pair Encoding, BPE)
  5. 10:52Pretraining on 10B tokens of fine-web edu
  6. 15:15Pre-training evaluation and Mid-training on Smoltalk
  7. 17:33Instructions on pushing and pulling checkpoints to / from HuggingFace Hub
  8. 18:49Instructions for running the chat interface / UI
  9. 21:15Post-training on benchmark training/aux splits
  10. 23:11Demo of running the chat interface
  11. 25:29Pushing the model, optimizer, report and tokenizer to hub
  12. 28:20Resources: Model and Repo

提到的工具與公司

適合誰看

適合希望實作大型語言模型訓練流程的開發者或 AI 學習者。

摘要依據

依據
人工字幕

為什麼排在這裡

人氣
0.22
新鮮
0.25

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

這個來源最近的內容

Trelis Research 的所有內容

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