You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So unsloth uses the newest version of trl always and just recently trl just updated and remove the tokenizer parameter to processing_class mentioned here 2348
you can simply do this
changed the title [-]ORPOTrainer.__init__() got an unexpected keyword argument 'tokenizer'[/-][+][FIXED] `unexpected keyword argument tokenizer`[/+]on Nov 14, 2024
Just fixed @avemio-digital@dame-cell ! Please update Unsloth on local machines via pip install --upgrade --no-cache-dir --no-deps unsloth. For Colab, Kaggle, just refresh!
Activity
dame-cell commentedon Nov 13, 2024
So unsloth uses the newest version of trl always and just recently trl just updated and remove the tokenizer parameter to processing_class mentioned here 2348
you can simply do this
Erland366 commentedon Nov 13, 2024
Unsloth will make backward compability I think
[-]ORPOTrainer.__init__() got an unexpected keyword argument 'tokenizer'[/-][+][FIXED] `unexpected keyword argument tokenizer`[/+]danielhanchen commentedon Nov 14, 2024
Just fixed @avemio-digital @dame-cell ! Please update Unsloth on local machines via
pip install --upgrade --no-cache-dir --no-deps unsloth. For Colab, Kaggle, just refresh![-][FIXED] `unexpected keyword argument tokenizer`[/-][+]`unexpected keyword argument tokenizer` [FIXED] [/+]qgallouedec commentedon Nov 14, 2024
This has been fixed in trl v0.12.1, make sure to run
please also note that
tokenizeris deprecated, so you should preferprocessing_class, as mentioned by @dame-cell in #1285 (comment)rolandtannous commentedon Jun 29, 2025
This should now be resolved in the latest unsloth.
Please make sure to update your environment to the latest version
Will close this for now.
Feel free to comment back with details if you are still experiencing the same issue.
Thank you for using Unsloth