I’m try to finetune Bert on sst2 dataset by using run_glue.py (https://github.com/huggingface/transformers/blob/master/examples/text-classification/run_glue.py).
I randomly pick 1% train data and 10 validation data from sst2 original dataset, and build them as csv. file with label and sentence columns.
Here is my finetune setting:
But there is an error occurred:
Traceback (most recent call last):
File “run_glue.py”, line 432, in
File “run_glue.py”, line 356, in main
metrics = train_result.metrics
AttributeError: ‘TrainOutput’ object has no attribute ‘metrics’
I run all these scripts on colab pro