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

Not able to download the glue data-set #674

Open
pratikchhapolika opened this issue Mar 23, 2022 · 0 comments
Open

Not able to download the glue data-set #674

pratikchhapolika opened this issue Mar 23, 2022 · 0 comments

Comments

@pratikchhapolika
Copy link

Install LIT and transformers packages. The transformers package is needed by the model and dataset we are using.

Replace tensorflow-datasets with the nightly package to get up-to-date dataset paths.

!pip uninstall -y tensorflow-datasets
!pip install lit_nlp tfds-nightly transformers==4.1.1

Fetch the trained model weights

import attr
import pandas as pd

from lit_nlp import notebook
from lit_nlp.examples.datasets import glue
from lit_nlp.examples.models import glue_models

sst_data = glue.SST2Data('validation')
sst_data.spec()

NotFoundError Traceback (most recent call last)
in ()
7 from lit_nlp.examples.models import glue_models
8
----> 9 sst_data = glue.SST2Data('validation')
10 sst_data.spec()

9 frames
/usr/local/lib/python3.7/dist-packages/tensorflow/python/lib/io/file_io.py in _preread_check(self)
75 "File isn't open for reading")
76 self._read_buf = _pywrap_file_io.BufferedInputStream(
---> 77 compat.path_to_str(self.__name), 1024 * 512)
78
79 def _prewrite_check(self):

NotFoundError: /usr/local/lib/python3.7/dist-packages/tensorflow_datasets/community-datasets.toml; No such file or directory

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

1 participant