Closed Erland366 closed 1 week ago
Old API working in Colab using Old version
Old API working in Colab using new version
SFTTrainer old API
SFTTrainer new API
DPOTrainer old API
DPOTrainer new API
ORPO is also working
@Erland366 I added an auto import so it patches all TRL modules - if it works, we can merge everything in :) Thanks for helping again! And great work!
Since trl>=0.13.0.dev0, we need to move
['max_seq_length', 'dataset_num_proc', 'packing', 'dataset_text_field']
toSFTConfig
.Hence, we need to implement patch into
SFTTrainer
for backward compatibility. Here's an example of using old API on newesttrl
. Note that I give warning if it possible to user to move toSFTConfig
instead.And here's using the new API :