Open
Description
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
Metadata
Assignees
Labels
No labels