一龍馬/AI 情報站讀懂消息背後的脈絡
星期日
搜尋
返回 X AI 快報列表

Sebastian Raschka 的 Reasoning From Scratch 第八集為完結篇,主題是以蒸餾取代先前強化學習訓練,並實作資料準備、訓練迴圈與評估

本期第 7/25 則

中文摘要

內容涵蓋軟硬蒸餾、DeepSeek R1 MATH 資料、Qwen3-0.6B 與 MATH-500 評測等章節。判讀僅限貼文大綱,未包含影片正文與程式碼結果。

一龍馬判讀

對想自學推理模型訓練的人而言,這集提供可跟做的蒸餾流程地圖,但選型與超參數仍要看完整教材。

原文節錄

Sebastian Raschka · @rasbt

This last lecture in the series covers distillation…

取得全文 · 不代表內容已獨立查證

查看原文
完整收錄文字與來源

Reasoning From Scratch round 8, the finale! This last lecture in the series covers distillation as an efficient alternative to the previous reinforcement learning training runs. (Planning to take a brief break, but I will be back!) 00:00 Introduction and series recap 01:07 Why distill a reasoning model? 02:51 Soft vs. hard distillation 11:06 On-policy vs. off-policy distillation 18:09 Preparing data for reasoning distillation 22:35 Loading the DeepSeek R1 MATH dataset 28:04 Inspecting reasoning traces and final answers 31:27 Tokenization and chat templates 35:58 Pre-tokenizing the training dataset 39:01 Sequence lengths and the 2,048-token limit 42:38 Creating training and validation splits 45:32 Loading the Qwen3-0.6B base model 46:24 Computing answer-token log probabilities 54:10 Cross-entropy loss for distillation 57:25 Training and validation loss helpers 1:02:03 Implementing the distillation training loop 1:07:26 Running the standalone training script 1:09:41 Plotting training and validation losses 1:11:31 Evaluating checkpoints on MATH-500 1:14:09 Comparing teachers and distillation results 1:16:34 Future directions for reasoning models 1:19:41 Bonus exercises and next steps

收錄日期
2026-10-18
來源
Nitter RSS(公開貼文)
抓取時間
2026/10/18 09:55(台北)