UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 in position 1: invalid start byte

#8
by source98 - opened

My env:

  • Python 3.9.19
  • datasets==2.18.0

While excuting:

dataset = load_dataset("the_pile_openwebtext2", split='train')

The error message is as follows:

Traceback (most recent call last):
  File "/data/username/folder/py_file.py", line 16, in <module>
    dataset = load_dataset("the_pile_openwebtext2", split='train')
  File "/data/username/.conda/envs/he/lib/python3.9/site-packages/datasets/load.py", line 2556, in load_dataset
    builder_instance = load_dataset_builder(
  File "/data/username/.conda/envs/he/lib/python3.9/site-packages/datasets/load.py", line 2228, in load_dataset_builder
    dataset_module = dataset_module_factory(
  File "/data/username/.conda/envs/he/lib/python3.9/site-packages/datasets/load.py", line 1879, in dataset_module_factory
    raise e1 from None
  File "/data/username/.conda/envs/he/lib/python3.9/site-packages/datasets/load.py", line 1831, in dataset_module_factory
    can_load_config_from_parquet_export = "DEFAULT_CONFIG_NAME" not in f.read()
  File "/data/username/.conda/envs/he/lib/python3.9/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 in position 1: invalid start byte

Sign up or log in to comment