Evaluate.load("accuracy" gives the AttributeError 'DownloadConfig' object has no attribute 'use_auth_token'

I copied - and rechecked - the code of the article “Fine-tuned a pretrained model”.
I train the model with PyTorch Trainer and the evaluate.load(“accuracy”) returns the AttributeError:‘DownloadConfig’ object has no attribute ‘use_auth_token’

Versions: evaluate: 0.4.1, datasets: 3.0.0, transformers: 4.24.0

I don’t find explanation on internet.

Can you help me? Thanks

Claude Lepère

Show drafts

2 Likes

hi, version problems.
firstly, uninstall evaluate
pip uninstall evaluate

secondly, install the stable version
pip install evaluate==0.4.0

1 Like

According to this discussion, there are 2 options to fix the issue: either upgrade the version of evaluate to 0.4.3 (Release 0.4.3 · huggingface/evaluate · GitHub) or downgrade the version of datasets to < 3.0.0.

4 Likes