-
Notifications
You must be signed in to change notification settings - Fork 28
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
ValueError: too many values to unpack (expected 2) after running trainer.train()
#60
Comments
Hello! My first guess is that perhaps the
|
Hi, thanks for your reply! Which version of Update: I tried using |
I had the same issue with model.predict() and |
@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
The text was updated successfully, but these errors were encountered: