SpecRead: A Benchmark for Measuring Whether Language Models Understand Hardware Specifications
Paper • 2609.33699 • Published
Error code: StreamingRowsError
Exception: CastError
Message: Couldn't cast
id: string
task_type: int64
source: struct<repo: string, commit: string, file: string, license: string>
child 0, repo: string
child 1, commit: string
child 2, file: string
child 3, license: string
spec_excerpt: string
rtl_excerpt: string
question: string
answer_format: string
gold_answer: string
mutation: struct<type: string, original: string, mutated: string, location: string>
child 0, type: string
child 1, original: string
child 2, mutated: string
child 3, location: string
verification: string
difficulty: string
options: list<item: string>
child 0, item: string
repair_note: string
to
{'id': Value('string'), 'task_type': Value('int64'), 'source': {'repo': Value('string'), 'commit': Value('string'), 'license': Value('string'), 'file': Value('string')}, 'spec_excerpt': Value('string'), 'rtl_excerpt': Value('string'), 'question': Value('string'), 'answer_format': Value('string'), 'gold_answer': Json(decode=True), 'mutation': {'type': Value('string'), 'original': Value('string'), 'mutated': Value('string'), 'location': Value('string')}, 'verification': Value('string'), 'difficulty': Value('string')}
because column names don't match
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 151, in get_rows_or_raise
return get_rows(
dataset=dataset,
...<4 lines>...
column_names=column_names,
)
File "/src/libs/libcommon/src/libcommon/utils.py", line 274, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 131, in get_rows
rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
File "/src/services/worker/src/worker/utils.py", line 574, in safe_iter
yield from ds.decode(False) if ds.features else ds
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3074, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2578, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2603, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 577, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 459, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 373, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
id: string
task_type: int64
source: struct<repo: string, commit: string, file: string, license: string>
child 0, repo: string
child 1, commit: string
child 2, file: string
child 3, license: string
spec_excerpt: string
rtl_excerpt: string
question: string
answer_format: string
gold_answer: string
mutation: struct<type: string, original: string, mutated: string, location: string>
child 0, type: string
child 1, original: string
child 2, mutated: string
child 3, location: string
verification: string
difficulty: string
options: list<item: string>
child 0, item: string
repair_note: string
to
{'id': Value('string'), 'task_type': Value('int64'), 'source': {'repo': Value('string'), 'commit': Value('string'), 'license': Value('string'), 'file': Value('string')}, 'spec_excerpt': Value('string'), 'rtl_excerpt': Value('string'), 'question': Value('string'), 'answer_format': Value('string'), 'gold_answer': Json(decode=True), 'mutation': {'type': Value('string'), 'original': Value('string'), 'mutated': Value('string'), 'location': Value('string')}, 'verification': Value('string'), 'difficulty': Value('string')}
because column names don't matchNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
SpecRead measures whether language models understand hardware specifications, beyond surface retrieval. It contains 383 questions over 10 OpenTitan IPs in four types:
Source specifications come from OpenTitan (Apache 2.0). Questions and annotations are released under CC BY 4.0.
spec_read_v2_1.jsonl: main question set.distractors_v2.jsonl: distractor items for false-alarm measurement.t4_controls_v2.jsonl: control items for the spec to RTL consistency task.Feilian Huang and Yujia Liu. SpecRead: A Benchmark for Hardware Specification Understanding. arXiv:2609.33699.
Feilian Huang (Independent Researcher, San Jose, California, USA) and Yujia Liu.