How to use `load_dataset('glue', 'cola')`
MEMBER
Sounds like an issue with incompatible `transformers` dependencies versions.

Can you try to update `transformers` ?

EDIT: I checked the `transformers` dependencies and it seems like you need `tokenizers>=0.10.1,<0.11` with `transformers==4.5.1`

EDIT2: this old version of `datasets` seems to import `transformers` but it's no longer the case, so you could also simply update `datasets` and `transformers` won't be imported
2023-03-27T13:16:05Z
https://github.com/huggingface/datasets/issues/5671#issuecomment-1485077226
https://api.github.com/repos/huggingface/datasets/issues/5671
IC_kwDODunzps5YhHrq
https://api.github.com/repos/huggingface/datasets/issues/comments/1485077226/reactions
2023-03-27T13:21:16Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1485077226
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
NONE
Thank you for advising me to update these libraries versions.

I can implement codes using `datasets==2.10.1` and `transformers==4.27.3`
2023-03-28T07:43:43Z
https://github.com/huggingface/datasets/issues/5671#issuecomment-1486370889
https://api.github.com/repos/huggingface/datasets/issues/5671
IC_kwDODunzps5YmDhJ
https://api.github.com/repos/huggingface/datasets/issues/comments/1486370889/reactions
2023-03-28T07:43:43Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1486370889
https://avatars.githubusercontent.com/u/40193664?v=4
https://api.github.com/users/makinzm/events{/privacy}
https://api.github.com/users/makinzm/followers
https://api.github.com/users/makinzm/following{/other_user}
https://api.github.com/users/makinzm/gists{/gist_id}
https://github.com/makinzm
makinzm
MDQ6VXNlcjQwMTkzNjY0
https://api.github.com/users/makinzm/orgs
https://api.github.com/users/makinzm/received_events
https://api.github.com/users/makinzm/repos
https://api.github.com/users/makinzm/starred{/owner}{/repo}
https://api.github.com/users/makinzm/subscriptions
User
https://api.github.com/users/makinzm
public
### Describe the bug

I'm new to use HuggingFace datasets but I cannot use `load_dataset('glue', 'cola')`.

- I was stacked by the following problem:

```python
from datasets import load_dataset
cola_dataset = load_dataset('glue', 'cola')

---------------------------------------------------------------------------
InvalidVersion                            Traceback (most recent call last)
File <timed exec>:1

(Omit because of long error message)

File /usr/local/lib/python3.8/site-packages/packaging/version.py:197, in Version.__init__(self, version)
    195 match = self._regex.search(version)
    196 if not match:
--> 197     raise InvalidVersion(f"Invalid version: '{version}'")
    199 # Store the parsed out pieces of the version
    200 self._version = _Version(
    201     epoch=int(match.group("epoch")) if match.group("epoch") else 0,
    202     release=tuple(int(i) for i in match.group("release").split(".")),
   (...)
    208     local=_parse_local_version(match.group("local")),
    209 )

InvalidVersion: Invalid version: '0.10.1,<0.11'
```

- You can check this full error message in my repository: [MLOps-Basics/week_0_project_setup/experimental_notebooks/data_exploration.ipynb](https://github.com/makinzm/MLOps-Basics/blob/eabab4b837880607d9968d3fa687c70177b2affd/week_0_project_setup/experimental_notebooks/data_exploration.ipynb)


### Steps to reproduce the bug

- This is my repository to reproduce: [MLOps-Basics/week_0_project_setup](https://github.com/makinzm/MLOps-Basics/tree/eabab4b837880607d9968d3fa687c70177b2affd/week_0_project_setup)

1. cd `/DockerImage` and command `docker build . -t week0`
2. cd `/` and command `docker-compose up`
3. Run `experimental_notebooks/data_exploration.ipynb`

----

Just to be sure, I wrote down Dockerfile and requirements.txt

- Dockerfile
```Dockerfile
FROM python:3.8

WORKDIR /root/working

RUN apt-get update && \
    apt-get install -y python3-dev python3-pip python3-venv && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

COPY requirements.txt .

RUN pip3 install --no-cache-dir jupyter notebook && pip install --no-cache-dir -r requirements.txt

CMD ["bash"]
```

- requirements.txt
```txt
pytorch-lightning==1.2.10
datasets==1.6.2
transformers==4.5.1
scikit-learn==0.24.2
```


### Expected behavior

There is no bug to implement `load_dataset('glue', 'cola')`

### Environment info

I already wrote it.