-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setfit does not work with transformers dev-version with error "'CallbackHandler' object has no attribute 'tokenizer'" #564
Comments
@WeichenXu123 full traceback? |
added full stack trace. |
Hi, I also encountered the same issue. Could you let me know if you managed to solve this? |
+1 Same issue |
I found a way to solve this problem. I ran the code using Colab and didn’t encounter the issue. I also built a virtual environment on my local computer and reinstalled all the packages and Python using the same versions as in Colab. However, I still encountered the issue. I’m wondering whether this is related to my OS (I’m using MacOS) |
Same issue |
Same issue (I'm using VsCode on windows) |
The best solution currently is to install a slightly older
|
Thanks for the tip Tom Aarsen. |
Confirmed that downgraded transformers to 4.42.2 works. I used jupyter notebook. |
4.45.2 worked for me. Was having issues on 4.42.2 with apple silicon |
Repro:
transformers:
pip install git+https://github.com/huggingface/transformers
setfit:
pip install setfit==1.1.0
code:
SetFitTrainer
constructor Raises error:Stack trace:
The text was updated successfully, but these errors were encountered: