Open WeichenXu123 opened 1 month ago
@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 transformers
version. I haven't yet had time to address this.
Thanks for the tip Tom Aarsen. I removed version 4.46.0 and installed 4.42.2 (the one that uses Colab) and it works.
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: