Open tan-js opened 3 months ago
Hello!
My first guess is that perhaps the transformers
version is too high. You can try installing an older version, restarting your kernel, and trying again.
Hello!
My first guess is that perhaps the
transformers
version is too high. You can try installing an older version, restarting your kernel, and trying again.
- Tom Aarsen
Hi, thanks for your reply! Which version of transformers
do you recommend?
Update: I tried using pip install transformers==4.39
and it resolved this error. I didn't test newer versions. Thanks a lot!
I had the same issue with model.predict() and transformers==4.39
fixed it for me
@tomaarsen I have a fix for this but wondering what the status of the support for this project is?
Upgrade to Transformers 4.43 anytime soon?
HI @tomaarsen,
Thanks a lot for your amazing work!
While running the
trainer.train()
cell in the "getting_started.ipynb", I got this error:I'm using Python 3.11.6, torch: '2.3.0+cu121' transformers: '4.41.2'
The odd thing is that I could get it to run initially, but I had the same error while running it with my own dataset. After failing to get it to work using my own dataset (with the same parameters and "bert-base-cased" model), I tried to restart all my kernels and run the original unedited getting-started notebook with the default dataset. I'm getting this error now and I'm not able to get the getting-started notebook to work anymore.
I'm able to perform training and validation step (similar to the "getting-started" notebook), using the standard Huggingface transformers approach.
Thanks for your time