Datasets Unknown Keyword Argument Error - task_templates
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


2024-09-13T14:10:48Z
https://github.com/huggingface/datasets/issues/7149#issuecomment-2349057267
https://api.github.com/repos/huggingface/datasets/issues/7149
IC_kwDODunzps6MA8Tz
https://api.github.com/repos/huggingface/datasets/issues/comments/2349057267/reactions
2024-09-13T14:10:48Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2349057267
https://avatars.githubusercontent.com/u/8515462?v=4
https://api.github.com/users/albertvillanova/events{/privacy}
https://api.github.com/users/albertvillanova/followers
https://api.github.com/users/albertvillanova/following{/other_user}
https://api.github.com/users/albertvillanova/gists{/gist_id}
https://github.com/albertvillanova
albertvillanova
MDQ6VXNlcjg1MTU0NjI=
https://api.github.com/users/albertvillanova/orgs
https://api.github.com/users/albertvillanova/received_events
https://api.github.com/users/albertvillanova/repos
https://api.github.com/users/albertvillanova/starred{/owner}{/repo}
https://api.github.com/users/albertvillanova/subscriptions
User
https://api.github.com/users/albertvillanova
public
NONE
Hello @albertvillanova 

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

How can I fix it ? 
Thanks
2024-11-11T18:02:33Z
https://github.com/huggingface/datasets/issues/7149#issuecomment-2468749552
https://api.github.com/repos/huggingface/datasets/issues/7149
IC_kwDODunzps6TJiDw
https://api.github.com/repos/huggingface/datasets/issues/comments/2468749552/reactions
2024-11-11T18:02:33Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2468749552
https://avatars.githubusercontent.com/u/12100843?v=4
https://api.github.com/users/laleye/events{/privacy}
https://api.github.com/users/laleye/followers
https://api.github.com/users/laleye/following{/other_user}
https://api.github.com/users/laleye/gists{/gist_id}
https://github.com/laleye
laleye
MDQ6VXNlcjEyMTAwODQz
https://api.github.com/users/laleye/orgs
https://api.github.com/users/laleye/received_events
https://api.github.com/users/laleye/repos
https://api.github.com/users/laleye/starred{/owner}{/repo}
https://api.github.com/users/laleye/subscriptions
User
https://api.github.com/users/laleye
public
NONE
I am getting the same error on the below code, any fix to this ?

```
from datasets import load_dataset

minds = load_dataset("PolyAI/minds14", name="en-AU", split="train")
minds
```
2025-03-06T07:08:24Z
https://github.com/huggingface/datasets/issues/7149#issuecomment-2702996795
https://api.github.com/repos/huggingface/datasets/issues/7149
IC_kwDODunzps6hHHU7
https://api.github.com/repos/huggingface/datasets/issues/comments/2702996795/reactions
2025-03-06T07:11:55Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2702996795
https://avatars.githubusercontent.com/u/48064321?v=4
https://api.github.com/users/i4seeu/events{/privacy}
https://api.github.com/users/i4seeu/followers
https://api.github.com/users/i4seeu/following{/other_user}
https://api.github.com/users/i4seeu/gists{/gist_id}
https://github.com/i4seeu
i4seeu
MDQ6VXNlcjQ4MDY0MzIx
https://api.github.com/users/i4seeu/orgs
https://api.github.com/users/i4seeu/received_events
https://api.github.com/users/i4seeu/repos
https://api.github.com/users/i4seeu/starred{/owner}{/repo}
https://api.github.com/users/i4seeu/subscriptions
User
https://api.github.com/users/i4seeu
public
### Describe the bug

Issue

```python
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.
```python
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
