The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: CastError
Message: Couldn't cast
name: string
definition: string
dataset: string
author: string
description: string
spec: struct<language: string, target_hardware: list<item: string>, entry_point: string, dependencies: lis (... 113 chars omitted)
child 0, language: string
child 1, target_hardware: list<item: string>
child 0, item: string
child 2, entry_point: string
child 3, dependencies: list<item: null>
child 0, item: null
child 4, isa_features: list<item: string>
child 0, item: string
child 5, compile_flags: list<item: string>
child 0, item: string
child 6, link_flags: list<item: null>
child 0, item: null
sources: list<item: struct<path: string, content: string>>
child 0, item: struct<path: string, content: string>
child 0, path: string
child 1, content: string
op_type: string
reference: string
constraints: list<item: string>
child 0, item: string
axes: struct<H: struct<type: string>, W: struct<type: string>, H_out: struct<type: string>, W_out: struct< (... 218 chars omitted)
child 0, H: struct<type: string>
child 0, type: string
child 1, W: struct<type: string>
child 0, type: string
child 2, H_out: struct<type: string>
child 0, type: string
child 3, W_out: struct<type: string>
child 0, type: string
child 4, N: struct<type: string, value: int64>
child 0, type: string
child 1, value: int64
child 5, C_in: struct<type: string, value: int64>
child 0, type: string
child 1, value: int64
child 6, C_out: struct<type: string, value: int64>
child 0, type: string
child 1, value: int64
child 7, Kh: struct<type: string, value: int64>
child 0, type: string
child 1, value: int64
child 8, Kw: struct<type: string, value: int64>
child 0, type: string
child 1, value: int64
inputs: struct<input: struct<shape: list<item: string>, dtype: string>, weight: struct<shape: list<item: str (... 77 chars omitted)
child 0, input: struct<shape: list<item: string>, dtype: string>
child 0, shape: list<item: string>
child 0, item: string
child 1, dtype: string
child 1, weight: struct<shape: list<item: string>, dtype: string>
child 0, shape: list<item: string>
child 0, item: string
child 1, dtype: string
child 2, bias: struct<shape: list<item: string>, dtype: string>
child 0, shape: list<item: string>
child 0, item: string
child 1, dtype: string
outputs: struct<output: struct<shape: list<item: string>, dtype: string>>
child 0, output: struct<shape: list<item: string>, dtype: string>
child 0, shape: list<item: string>
child 0, item: string
child 1, dtype: string
tags: list<item: string>
child 0, item: string
to
{'name': Value('string'), 'op_type': Value('string'), 'description': Value('string'), 'tags': List(Value('string')), 'axes': {'H': {'type': Value('string')}, 'W': {'type': Value('string')}, 'H_out': {'type': Value('string')}, 'W_out': {'type': Value('string')}, 'N': {'type': Value('string'), 'value': Value('int64')}, 'C_in': {'type': Value('string'), 'value': Value('int64')}, 'C_out': {'type': Value('string'), 'value': Value('int64')}, 'Kh': {'type': Value('string'), 'value': Value('int64')}, 'Kw': {'type': Value('string'), 'value': Value('int64')}}, 'inputs': {'input': {'shape': List(Value('string')), 'dtype': Value('string')}, 'weight': {'shape': List(Value('string')), 'dtype': Value('string')}, 'bias': {'shape': List(Value('string')), 'dtype': Value('string')}}, 'outputs': {'output': {'shape': List(Value('string')), 'dtype': Value('string')}}, 'constraints': List(Value('string')), 'reference': Value('string')}
because column names don't match
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 149, 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 272, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 129, 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 544, 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 3052, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2559, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2584, 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 558, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 440, 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 361, 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 2381, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2309, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
name: string
definition: string
dataset: string
author: string
description: string
spec: struct<language: string, target_hardware: list<item: string>, entry_point: string, dependencies: lis (... 113 chars omitted)
child 0, language: string
child 1, target_hardware: list<item: string>
child 0, item: string
child 2, entry_point: string
child 3, dependencies: list<item: null>
child 0, item: null
child 4, isa_features: list<item: string>
child 0, item: string
child 5, compile_flags: list<item: string>
child 0, item: string
child 6, link_flags: list<item: null>
child 0, item: null
sources: list<item: struct<path: string, content: string>>
child 0, item: struct<path: string, content: string>
child 0, path: string
child 1, content: string
op_type: string
reference: string
constraints: list<item: string>
child 0, item: string
axes: struct<H: struct<type: string>, W: struct<type: string>, H_out: struct<type: string>, W_out: struct< (... 218 chars omitted)
child 0, H: struct<type: string>
child 0, type: string
child 1, W: struct<type: string>
child 0, type: string
child 2, H_out: struct<type: string>
child 0, type: string
child 3, W_out: struct<type: string>
child 0, type: string
child 4, N: struct<type: string, value: int64>
child 0, type: string
child 1, value: int64
child 5, C_in: struct<type: string, value: int64>
child 0, type: string
child 1, value: int64
child 6, C_out: struct<type: string, value: int64>
child 0, type: string
child 1, value: int64
child 7, Kh: struct<type: string, value: int64>
child 0, type: string
child 1, value: int64
child 8, Kw: struct<type: string, value: int64>
child 0, type: string
child 1, value: int64
inputs: struct<input: struct<shape: list<item: string>, dtype: string>, weight: struct<shape: list<item: str (... 77 chars omitted)
child 0, input: struct<shape: list<item: string>, dtype: string>
child 0, shape: list<item: string>
child 0, item: string
child 1, dtype: string
child 1, weight: struct<shape: list<item: string>, dtype: string>
child 0, shape: list<item: string>
child 0, item: string
child 1, dtype: string
child 2, bias: struct<shape: list<item: string>, dtype: string>
child 0, shape: list<item: string>
child 0, item: string
child 1, dtype: string
outputs: struct<output: struct<shape: list<item: string>, dtype: string>>
child 0, output: struct<shape: list<item: string>, dtype: string>
child 0, shape: list<item: string>
child 0, item: string
child 1, dtype: string
tags: list<item: string>
child 0, item: string
to
{'name': Value('string'), 'op_type': Value('string'), 'description': Value('string'), 'tags': List(Value('string')), 'axes': {'H': {'type': Value('string')}, 'W': {'type': Value('string')}, 'H_out': {'type': Value('string')}, 'W_out': {'type': Value('string')}, 'N': {'type': Value('string'), 'value': Value('int64')}, 'C_in': {'type': Value('string'), 'value': Value('int64')}, 'C_out': {'type': Value('string'), 'value': Value('int64')}, 'Kh': {'type': Value('string'), 'value': Value('int64')}, 'Kw': {'type': Value('string'), 'value': Value('int64')}}, 'inputs': {'input': {'shape': List(Value('string')), 'dtype': Value('string')}, 'weight': {'shape': List(Value('string')), 'dtype': Value('string')}, 'bias': {'shape': List(Value('string')), 'dtype': Value('string')}}, 'outputs': {'output': {'shape': List(Value('string')), 'dtype': Value('string')}}, 'constraints': List(Value('string')), 'reference': 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.
KernelShift
Benchmark data for optimizing Arm (AArch64) CPU kernels across three generations of vector and matrix extensions: SVE (AWS Graviton3, 256-bit), SVE2 (AWS Graviton4, 128-bit) and SME2 (Apple M4). Each kernel definition comes with workloads, a scalar reference that serves as the correctness check and the agent's starting point, and an expert baseline: a candidate kernel is checked against the reference and timed against the baseline.
Code, the agent environments and the evaluation scripts: https://github.com/ArtificialRay/KernelShift.
Contents
144 kernel definitions from four open-source projects, plus the matrix multiplications of two LLMs; 99 of them form the evaluation set.
| Source | Definitions | Evaluation set | Op types | Expert baseline |
|---|---|---|---|---|
| ncnn | 23 | 23 | conv2d, conv2d_depthwise, pooling | baseline-ncnn |
| llama.cpp | 26 | 26 | gemm, moe, mha, gqa, mla_decode, mla_prefill, rms_norm | baseline-llamacpp |
| SIMD Loops | 47 | 24 | one loop per definition | baseline-simd-loop-{sve,sve2,sme2} |
| KleidiAI | 30 | 6 SVE + 20 SME2 | gemm, conv2d, conv2d_depthwise, softmax | baseline-kleidiai |
| e2e | 18 | – | gemm on q4_K / q5_K / q6_K weights of Qwen3.5-4B and Llama-3.1-8B | baseline-llamacpp |
| Total | 144 | 99 |
expected_sets.jsonlists the evaluation set: 79 kernels evaluated on Graviton3 (ncnn,llama.cpp,simd-loop, andkleidiaifor the six KleidiAI kernels with an SVE expert) and, underkleidiai-sme2, the 20 KleidiAI kernels with an SME2 expert, evaluated on Apple M4. The other 23 SIMD Loops definitions are not in it (seeTASKS.md); for example,loop_120andloop_124sort their input in place, so their timings are not valid.subset_sve.jsonandsubset_sme2.json: a 32-kernel subset for the SVE and SME2 tiers; they differ only in the KleidiAI GEMM.- The 18 e2e definitions are the quantized matrix multiplications of
Qwen3.5-4B (11) and Llama-3.1-8B-Instruct (7) in llama.cpp, for the
end-to-end inference experiments. They carry an
e2e:<model>tag. TASKS.mdlists every definition with its expert baseline on each tier: whether it runs there and whether it is specialized for that tier.
Layout
definitions/<op_type>/<name>.json kernel spec: axes, inputs/outputs, PyTorch reference
workloads/<op_type>/<name>.jsonl one workload per line: axis values and how to build each input
solutions/<source>/<author>/... kernels, with their sources inlined in the JSON
tensors/gemm/<name>/*.npy recorded activations used by the e2e workloads
results/e2e-qwen3.5-4b.json end-to-end results for Qwen3.5-4B
Solution authors:
reference-scalar: scalar code, the correctness reference and the starting point.baseline-<source>: the expert baselines. SIMD Loops has a separate one per tier,baseline-simd-loop-<isa>.autovec(SIMD Loops): the loop compiled with the compiler's auto-vectorizer.claude-code-claude-fable-5-1(llama.cpp): the agent-written kernels for the 18 e2e definitions (next section); they are not baselines.
Definitions tagged correctness:sqnr (quantized and BF16 kernels) are
checked by signal-to-quantization-noise ratio instead of element-wise
tolerances.
End-to-end results
For the end-to-end inference experiments, Claude Code with Claude Fable 5.1
wrote a kernel for each of the 18 e2e definitions (11 for Qwen3.5-4B, 7 for
Llama-3.1-8B-Instruct), in solutions/llama.cpp/claude-code-claude-fable-5-1/.
The kernels are substituted into llama.cpp and compared with stock llama.cpp,
which uses its repacked i8mm kernels, on AWS Graviton4.
results/e2e-qwen3.5-4b.json holds the Qwen3.5-4B results reported in the
paper: prefill and decode speedups at 1, 4 and 16 threads, the prompt-length
and micro-batch sweeps, perplexity on wikitext-2, and the speedup of the
kernels alone over the repacked kernels.
Usage
git clone https://github.com/ArtificialRay/KernelShift
cd KernelShift
pip install -r requirements.txt
hf download arm-bench/KernelShift --repo-type dataset --local-dir bench-trace
python -m bench.cli bench --dataset simd-loop --isa sve \
--definition loop_001 --solution reference-scalar_loop_001
License
Released under the Apache-2.0 license. The baselines derive from or wrap ncnn (BSD-3-Clause), llama.cpp / ggml (MIT), KleidiAI (Apache-2.0) and SIMD Loops (BSD-3-Clause); see each project for its license terms.
- Downloads last month
- 48