Error when loading dataset

#1
by blkpst - opened

Getting the following error when loading this dataset on colab

ValueError                                Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/datasets/builder.py in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id)
   1893                         )
-> 1894                     writer.write_table(table)
   1895                     num_examples_progress_update += len(table)

8 frames
ValueError: Couldn't cast
instruction: string
output: string
input: string
cot: string
to
{'instruction': Value(dtype='string', id=None), 'output': Value(dtype='string', id=None), 'input': Value(dtype='string', id=None)}
because column names don't match

The above exception was the direct cause of the following exception:

DatasetGenerationError                    Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/datasets/builder.py in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, job_id)
   1910             if isinstance(e, SchemaInferenceError) and e.__context__ is not None:
   1911                 e = e.__context__
-> 1912             raise DatasetGenerationError("An error occurred while generating the dataset") from e
   1913 
   1914         yield job_id, True, (total_num_examples, total_num_bytes, writer._features, num_shards, shard_lengths)

DatasetGenerationError: An error occurred while generating the dataset

Thank you for reporting the error!
This is probably due to the fact that one of the files does not contain the "cot". I respectfully request that you download the file manually.
If you have code that can solve this problem, please submit a pull request!

Sign up or log in to comment