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

Datasets Unknown Keyword Argument Error - task_templates #7149

Closed
varungupta31 opened this issue Sep 13, 2024 · 2 comments
Closed

Datasets Unknown Keyword Argument Error - task_templates #7149

varungupta31 opened this issue Sep 13, 2024 · 2 comments
Assignees

Comments

@varungupta31
Copy link

Describe the bug

Issue

from datasets import load_dataset
examples = load_dataset('facebook/winoground', use_auth_token=<YOUR USER ACCESS TOKEN>)

Gives error

TypeError: DatasetInfo.__init__() got an unexpected keyword argument 'task_templates'

A simple downgrade to lower datasets v 2.21.0 solves it.

Steps to reproduce the bug

  1. pip install datsets
from datasets import load_dataset
examples = load_dataset('facebook/winoground', use_auth_token=<YOUR USER ACCESS TOKEN>)

Expected behavior

Should load the dataset correctly.

Environment info

  • Datasets version 3.0.0
  • transformers version: 4.45.0.dev0
  • Platform: Linux-6.8.0-40-generic-x86_64-with-glibc2.35
  • Python version: 3.12.4
  • Huggingface_hub version: 0.24.6
  • Safetensors version: 0.4.5
  • Accelerate version: 0.35.0.dev0
  • Accelerate config: not found
  • PyTorch version (GPU?): 2.4.1+cu121 (True)
  • Tensorflow version (GPU?): not installed (NA)
  • Flax version (CPU?/GPU?/TPU?): not installed (NA)
  • Jax version: not installed
  • JaxLib version: not installed
  • Using GPU in script?: Yes
@albertvillanova albertvillanova self-assigned this Sep 13, 2024
@albertvillanova
Copy link
Member

Thanks, for reporting.

We have been fixing most Hub datasets to remove the deprecated (and now non-supported) task templates, but we missed the "facebook/winoground".

It is fixed now: https://huggingface.co/datasets/facebook/winoground/discussions/8

@laleye
Copy link

laleye commented Nov 11, 2024

Hello @albertvillanova

I got the same error while loading this dataset: https://huggingface.co/datasets/alaleye/aloresb...

How can I fix it ?
Thanks

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

No branches or pull requests

3 participants