jxhe / efficient-knnlm

Pytorch implementation of paper "Efficient Nearest Neighbor Language Models" (EMNLP 2021)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

where is "datasets" at "from datasets import load_dataset" of "/ef_knnlm/adaptive_retrieval/adaptive_retrieval.py"

Huisw opened this issue Β· comments

πŸ› Bug

bash ef_knnlm/adaptive_retrieval/train_ar.sh

Traceback (most recent call last):
File "ef_knnlm/adaptive_retrieval/adaptive_retrieval.py", line 13, in
from datasets import load_dataset
ImportError: cannot import name 'load_dataset' from 'datasets' (unknown location)

how to get "datasets"?

I think you can just run pip install datasets