while in this folder-- /transformers/examples/pytorch/text-classification$
for the fuller sequence of issues that occured and got solved- [quote=“nielsr, post:9, topic:11486, full:true”]
I’ve created a notebook for you: Google Colab
[/quote]
You get the error below because the dataset you use for fine-tuning does not have a validation split. As you can see on the imdb dataset card this dataset has only the train, unsupervised and test splits available natively. You can either modify the dataset yourself to extract your own evaluation dataset or use the test split by replacing --do_eval with --do_predict in your script.
I hope this helped you!
Error currently discussed:
Traceback (most recent call last):
File "run_glue.py", line 568, in <module>
main()
File "run_glue.py", line 422, in main
raise ValueError("--do_eval requires a validation dataset")
ValueError: --do_eval requires a validation dataset
I couldn’t reproduce the error you having with microsoft/deberta-v3-small (because the large version doesn’t fit in google colab).
Can you confirm that it is the same problem as this issue?
If so, do you know how long ago you cloned the transformers library for your test? There have been changes to the file transformers/models/deberta_v2/modeling_deberta_v2.py" 17 days ago that might have solved your problem.
As I can’t reproduce errors with the small version, I would have to try with the large version which I won’t have time to do today. I must admit that I have no idea where it could come from. I’ll get back to you as soon as possible.
I just tested with microsoft/deberta-v3-large and I don’t get any error : the training starts well for me.
I just added 2 more arguments --per_device_train_batch_size 2 --per_device_eval_batch_size 2 because otherwise I didn’t have enough VRAM.
I don’t have exactly the same setting as you, though. Would it be possible for you to try again with the same settings as me (first trying with the last transformers version on master, then with Python version: 3.8.10 and finally with PyTorch 1.9.0)?