Skip to content
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

Evaluate uses deprecated use_auth_token and will break with datasets-3.0 #620

Closed
albertvillanova opened this issue Sep 11, 2024 · 0 comments · Fixed by #621
Closed

Evaluate uses deprecated use_auth_token and will break with datasets-3.0 #620

albertvillanova opened this issue Sep 11, 2024 · 0 comments · Fixed by #621

Comments

@albertvillanova
Copy link
Member

Evaluate uses deprecated datasets.DownloadConfig.use_auth_token and will break with datasets 3.0 release.

For the next datasets release, we have checked the transformers CI and some example tests fail due to evaluate: https://github.com/huggingface/transformers/runs/29973850925

E             File "/root/project/examples/pytorch/multiple-choice/run_swag_no_trainer.py", line 546, in main
E               metric = evaluate.load("accuracy")
E             File "/usr/local/lib/python3.10/site-packages/evaluate/loading.py", line 748, in load
E               evaluation_module = evaluation_module_factory(
E             File "/usr/local/lib/python3.10/site-packages/evaluate/loading.py", line 680, in evaluation_module_factory
E               raise e1 from None
E             File "/usr/local/lib/python3.10/site-packages/evaluate/loading.py", line 639, in evaluation_module_factory
E               ).get_module()
E             File "/usr/local/lib/python3.10/site-packages/evaluate/loading.py", line 479, in get_module
E               local_path = self.download_loading_script(revision)
E             File "/usr/local/lib/python3.10/site-packages/evaluate/loading.py", line 469, in download_loading_script
E               return cached_path(file_path, download_config=download_config)
E             File "/usr/local/lib/python3.10/site-packages/evaluate/utils/file_utils.py", line 185, in cached_path
E               use_auth_token=download_config.use_auth_token,
E           AttributeError: 'DownloadConfig' object has no attribute 'use_auth_token'

The root cause is that evaluate uses datasets.DownloadConfig.use_auth_token, which was deprecated since datasets-2.14.0 last year:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant