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

ModuleNotFoundError: No module named 'datasets' #1

Open
zhongjian-zhang opened this issue Jan 18, 2024 · 1 comment
Open

ModuleNotFoundError: No module named 'datasets' #1

zhongjian-zhang opened this issue Jan 18, 2024 · 1 comment

Comments

@zhongjian-zhang
Copy link

Hi, thanks for you repo. I meet a problem when run the train_CLM.py, the error information is that "ModuleNotFoundError: No module named 'datasets'". In the "LMs" package, I don't find the 'datasets' package as well as the "load_dataset" function.

Traceback (most recent call last):
File "/home/pycharm_project/TAG-Benchmark/LMs/train_CLM.py", line 32, in
import datasets
ModuleNotFoundError: No module named 'datasets'

@sktsherlock
Copy link
Owner

The datasets package is a library provided by Hugging Face for accessing and handling various NLP datasets. Before running train_CLM.py, you need to ensure that the datasets library is installed.
You can install the datasets library using the following command: pip install datasets
If you already have the datasets library installed but are still facing the issue, it might be due to an incompatible version. Try updating the datasets library to the latest version: pip install --upgrade datasets

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

2 participants