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
{{ message }}
Repository navigation
SyntaxError when patching SFTTrainer in tokenizer_utils.py #1700
Hey @danielhanchen , so I finetuned a model while you fixed it using the fix I commented, but when uploading the gguf versión to HF I got an error because Unslot couldn't find llamacpp/quantize or llamacpp/llama-quantize.
I fixed it by manually changing the save.py (or whatever file has the check for those two paths) to point to the folder with the same name in the examples folder of llamacpp.
I'm not sure if this is relevant for you, but in guessing that using that older version of tlr somehow broke this.
Activity
ChagoLB commentedon Feb 13, 2025
This issue is being discussed in #1698 and #1699, the solutions in those issues worked for me at least!
QiangGeCode commentedon Feb 13, 2025
@ChagoLB Thanks, it works! it cost me 2 hours to install/reinstall/uninstall packages, until I find this post!
andresgr96 commentedon Feb 13, 2025
Using an older version of trl solved it for me:
!pip install unsloth
!pip install "trl<0.15.0"
ChagoLB commentedon Feb 13, 2025
Glad it worked for you too! i was in the same situation earlier this week, happy it all worked out
danielhanchen commentedon Feb 13, 2025
Working on a fix asap!
danielhanchen commentedon Feb 13, 2025
Just fixed - for now please use
TRL < 0.15.0- I updated all notebooks as well - so refresh them if you're using them. Ie do:I'm still trying to work on supporting the latest TRL 0.15.0, so it'll take a bit more time.
For GRPO runs, please use
"unsloth==2025.2.4"sopip install "unsloth==2025.2.4"Using
pip install unslothshould work since it'll use an old TRL versionandresgr96 commentedon Feb 13, 2025
Hey @danielhanchen , so I finetuned a model while you fixed it using the fix I commented, but when uploading the gguf versión to HF I got an error because Unslot couldn't find llamacpp/quantize or llamacpp/llama-quantize.
I fixed it by manually changing the save.py (or whatever file has the check for those two paths) to point to the folder with the same name in the examples folder of llamacpp.
I'm not sure if this is relevant for you, but in guessing that using that older version of tlr somehow broke this.