huggingface / datasets

🤗 The largest hub of ready-to-use datasets for ML models with fast, easy-to-use and efficient data manipulation tools
https://huggingface.co/docs/datasets
Apache License 2.0
19.31k stars 2.7k forks source link

Datasets Unknown Keyword Argument Error - task_templates #7149

Closed varungupta31 closed 2 months ago

varungupta31 commented 2 months ago

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
  2. 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

albertvillanova commented 2 months ago

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 commented 2 weeks ago

Hello @albertvillanova

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

How can I fix it ? Thanks