Generalization of Block Attention
Collection
6 items • Updated
Error code: DatasetGenerationError
Exception: TypeError
Message: Couldn't cast array of type list<item: string> to null
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1779, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 299, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 128, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2321, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2255, in cast_table_to_schema
cast_array_to_feature(
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 1804, in wrapper
return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2095, in cast_array_to_feature
return array_cast(
^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 1806, in wrapper
return func(array, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 1959, in array_cast
raise TypeError(f"Couldn't cast array of type {_short_str(array.type)} to {_short_str(pa_type)}")
TypeError: Couldn't cast array of type list<item: string> to null
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1347, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 980, in convert_to_parquet
builder.download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 882, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 943, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1646, in _prepare_split
for job_id, done, content in self._prepare_split_single(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1832, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
input string | context string | answers list | length int64 | dataset string | language string | all_classes null | _id string | chunks list | cut_prob list | parallel_degree int64 |
|---|---|---|---|---|---|---|---|---|---|---|
What is Saltram's living situation? | "Transcribed from the 1915 Martin Secker edition by David Price, email\nccx074@pglaf.org\n\n (...TRUNCATED) | [
"He is a guest in the home of the Mulvilles."
] | 22,692 | narrativeqa | en | null | 341d214a2c377691bf20e5a30b8f7979696bd19141ad9c9f | ["You are given a story, which can be either a novel or a movie script, and a question. Answer the q(...TRUNCATED) | [[0.000072479248046875,0.349609375,0.015869140625,0.053466796875,0.04150390625,0.000560760498046875,(...TRUNCATED) | 15 |
Why does Ann not return Mary's feelings of affection? | "E-text prepared by Jonathan Ingram, Janet Blenkinship, and the Project\nGutenberg Online Distribute(...TRUNCATED) | [
"Because she is in unrequited love with someone else"
] | 23,316 | narrativeqa | en | null | 26c6325283dece0b557e34cde9a5c57999ec5c68782e8194 | ["You are given a story, which can be either a novel or a movie script, and a question. Answer the q(...TRUNCATED) | [[0.000072479248046875,0.337890625,0.0233154296875,0.08203125,0.15625,0.0028839111328125,0.000732421(...TRUNCATED) | 35 |
Where does the witch live? | "Produced by Sue Asscher\n\n\n\n\n\n\n\n\n\nThe Witch of Atlas\n\n\nby\n\nPercy Bysshe Shelley\n\n\n(...TRUNCATED) | [
"The Atlas Mountains"
] | 5,397 | narrativeqa | en | null | 5b8d6fdd30a297e508ebb484f172ca5bce8d31b340eb3506 | ["You are given a story, which can be either a novel or a movie script, and a question. Answer the q(...TRUNCATED) | [[0.000072479248046875,0.2578125,0.119140625,0.000732421875,0.0029296875,0.047119140625,0.0001735687(...TRUNCATED) | 5 |
What was the purpose of Crito's visit? | "This etext was prepared by Sue Asscher <asschers@aia.net.au>\n\n\n\n\n\nCRITO\n\nby Plato\n\n\n\n\n(...TRUNCATED) | [
"To smuggle Socrates out of prison and into a life of exile."
] | 6,592 | narrativeqa | en | null | 68fc4dee839213b5259d41718909195c2f5274665bc18036 | ["You are given a story, which can be either a novel or a movie script, and a question. Answer the q(...TRUNCATED) | [[0.000072479248046875,0.267578125,0.287109375,0.005828857421875,0.00506591796875,0.328125,0.0002412(...TRUNCATED) | 4 |
Why didn't Baron Henry just kill Otto instead of cutting his hand off? | "Produced by Angus Christian\n\n\n\n\n\nOTTO OF THE SILVER HAND\n\nBy Howard Pyle\n\n\n\n\n\nCONTENT(...TRUNCATED) | [
"Otto was so young."
] | 27,745 | narrativeqa | en | null | 36232c9c63d19d282643657b3da5b688cb14e3b44009c494 | ["You are given a story, which can be either a novel or a movie script, and a question. Answer the q(...TRUNCATED) | [[0.000072479248046875,0.2490234375,0.125,0.003173828125,0.10107421875,0.00009632110595703125,0.0000(...TRUNCATED) | 19 |
How long had Mortimer Trefinnis' sister been dead when the doctor examined the body? | "Produced by David Brannan. HTML version by Al Haines.\n\n\n\n\n\n\n\n\n\nThe Adventure of the Devi(...TRUNCATED) | [
"Six hours."
] | 10,020 | narrativeqa | en | null | 0bf1995158cbf08134d5dc15475c27f38b3ab5441c422419 | ["You are given a story, which can be either a novel or a movie script, and a question. Answer the q(...TRUNCATED) | [[0.000072479248046875,0.296875,0.26953125,0.00116729736328125,0.0023956298828125,0.0078125,0.000017(...TRUNCATED) | 5 |
With whom does the entertainers' manager have an affair? | "The Seventh Seal\n<b> \n</b>The night had brought little relief from the heat, and at dawn a hot gu(...TRUNCATED) | [
"Lisa, the blacksmith's wife."
] | 18,054 | narrativeqa | en | null | 9fbcbb5460066a68460ba92626c25371e0a1ff65b3bd5e84 | ["You are given a story, which can be either a novel or a movie script, and a question. Answer the q(...TRUNCATED) | [[0.000072479248046875],[0.48828125,0.00872802734375,0.00183868408203125,0.0000514984130859375,8.642(...TRUNCATED) | 9 |
Who is the first person that falls under Vigo's spell? | "\t\t\t\t\t\tGhostbusters II\n\n\t\t\t\t\t\t\tby\n\t\t\t\t\t\tHarold Ramis\n\t\t\t\t\t\t\tand\n\t\t\(...TRUNCATED) | [
"Dr. Janosz Poha"
] | 25,090 | narrativeqa | en | null | f9cfda8abcc78f9e2f492d4f58ee4996430e9a8911e29726 | ["You are given a story, which can be either a novel or a movie script, and a question. Answer the q(...TRUNCATED) | [[0.000072479248046875,0.38671875,0.000457763671875,0.00010251998901367188,0.0000820159912109375,0.0(...TRUNCATED) | 18 |
What nationality is Ruth Anvoy? | "Transcribed from the 1915 Martin Secker edition by David Price, email\nccx074@pglaf.org\n\n (...TRUNCATED) | [
"She is an American."
] | 22,692 | narrativeqa | en | null | 58b8a46c20c05540367b90490846c4f9808db630026b28d4 | ["You are given a story, which can be either a novel or a movie script, and a question. Answer the q(...TRUNCATED) | [[0.000072479248046875,0.349609375,0.015869140625,0.053466796875,0.04150390625,0.000560760498046875,(...TRUNCATED) | 15 |
Who did the Witch want to have reveal their own lies? | "Produced by Sue Asscher\n\n\n\n\n\n\n\n\n\nThe Witch of Atlas\n\n\nby\n\nPercy Bysshe Shelley\n\n\n(...TRUNCATED) | [
"The scribe."
] | 5,403 | narrativeqa | en | null | c89fd516348b68f96538948b052cb10d5b6f21bc441f5a55 | ["You are given a story, which can be either a novel or a movie script, and a question. Answer the q(...TRUNCATED) | [[0.000072479248046875,0.2578125,0.119140625,0.000732421875,0.0029296875,0.047119140625,0.0001735687(...TRUNCATED) | 5 |
The segmented version of Longbench using the trained segmenter from the paper Towards Generalization of Block Attention via Automatic Segmentation and Block Distillation.
We set the recursion depth to 1 and use the threshold value of 0.4.
The newly introduced segmentation columns are:
If you find this dataset useful, please cite: