Merged
Conversation
Collaborator
|
対応ありがとうございます! ノートブックを確認したところ、書籍第2巻すなわち10章以降では transformers の v4.42.4 が使われており(これは第2巻執筆時点で Colab の環境にプリインストールされていたバージョンのようです)、コードの記述も既に llm-book/chapter12/12-2-dpo-training.ipynb Line 10577 in dd99693 llm-book/chapter12/12-2-dpo-training.ipynb Line 10602 in dd99693 したがって、10章以降のノートブックについては、バージョンの固定を行わない方が良さそうです。 |
Collaborator
Author
|
あ、ほんとですね!もう遠い記憶の彼方に… |
singletongue
approved these changes
Aug 20, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
第5章〜9章の訓練コードを含むノートブック(および同じ章のノートブック)についてタイトル通りの変更を適用します。
transformers の v4.41.0 で導入された変更 (PR) により
TrainingArgumentsの引数名がevaluation_strategyからeval_strategyに変わりました。書籍との記述の一貫性を優先して、バージョン v4.41.0 で固定する形でノートブックを更新します。
第1章〜第3章のノートブックは訓練コードは含まず、モデルを読み込んで推論するしたり、トークナイザを使用するだけなので、transformers のバージョン固定は行いません。
また、大規模言語モデル入門IIの範囲の第10章以降は、v4.41.0 以降に対応したコードとなっているので修正は必要ありません。