Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
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
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
op_type: 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
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
tags: list<item: string>
  child 0, item: string
constraints: list<item: string>
  child 0, item: string
reference: 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 147, 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 127, 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 483, 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 2840, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2373, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2398, 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 536, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, 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 343, 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 2378, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, 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
              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
              op_type: 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
              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
              tags: list<item: string>
                child 0, item: string
              constraints: list<item: string>
                child 0, item: string
              reference: 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

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

ARM Bench Trace

A benchmark trace for ARM (aarch64 / SVE) CPU kernel evaluation. It pairs operator definitions with concrete workloads and reference/baseline solutions, so that a candidate kernel can be checked for bit-exact correctness against a reference and timed against a baseline.

Operator coverage

Dataset Op types Definitions
ncnn conv2d, conv2d_depthwise, gemm, pooling 30
llama.cpp gemm, gqa, mha, mla_decode, mla_prefill, moe, rms_norm 26
simd-loop simd-loop (47 loop problems, one op type per loop) 47

Repository structure

definitions/   # operator specs: axes (const/var), input/output shapes, PyTorch reference
  conv/        #   38 conv2d definitions, one JSON per kernel shape
solutions/     # kernels implementing a definition
  ncnn/
    _harness/                 # C/C++ harness contract (conv2d.h / conv2d.cpp)
    baseline-ncnn-arm/conv2d/ # ncnn::Convolution_arm wrappers (the timing baseline)
    reference-scalar/conv2d/  # naive scalar 6-loop conv2d (ground-truth correctness)
workloads/     # concrete problem instances (var-axis values + scalar inputs)
  conv/        #   one JSONL per definition; each line is a runnable workload

Definitions (definitions/conv/*.json)

Each file describes one operator instantiation. Key fields:

  • name, op_type, description, tags
  • axes β€” each axis is either const (baked-in, e.g. Kh=3, C_in=64, C_out=128) or var (chosen per workload, e.g. N, H, W).
  • inputs / outputs β€” tensor shapes (symbolic over the axes) and dtypes.
  • constraints β€” derived-shape relations (e.g. output H/W from stride, pad, dilation).
  • reference β€” a self-contained PyTorch (torch.nn.functional.conv2d) snippet defining the ground-truth result.

The file name encodes the const axes, e.g. conv2d_kh3_kw3_sh1_sw1_dh1_dw1_c64_c128 = 3Γ—3 kernel, stride 1, dilation 1, 64β†’128 channels.

Workloads (workloads/conv/*.jsonl)

One JSONL file per definition; each line is a single workload instance:

{"axes": {"N": 1, "H": 14, "W": 14},
 "scalar_inputs": {"pad_top": 0, "pad_left": 0, "activation_type": 0, "with_bias": 0},
 "uuid": "H14_W14_padh0_padw0_b0",
 "tags": {"from": "tests/ncnn/candidate/convolution.cpp"}}

axes fills in the var axes of the definition; scalar_inputs provides the runtime scalar arguments.

Solutions (solutions/ncnn/...)

A solution is a JSON record pointing at a definition plus inlined source files:

  • definition, dataset, author, description
  • spec β€” language, target_hardware (e.g. graviton3, aarch64-sve), entry_point, dependencies, isa_features, compile_flags, link_flags
  • sources β€” list of {path, content} (the actual kernel.cpp)

Two solution families ship here:

  • baseline-ncnn-arm β€” wraps ncnn::Convolution_arm (SVE, from libncnn_arm_heavy.a); the same kernel.cpp is stamped across every definition with const params supplied by the definition. This is the performance baseline. Times create_pipeline + forward.
  • reference-scalar β€” a straight scalar 6-loop accumulator; slow but ground-truth correct, used as the correctness reference / Phase-1 smoke test.

The shared harness (solutions/ncnn/_harness/conv2d.{h,cpp}) declares the ncnn::convolution_kernel contract that every solution implements, and handles input padding before the kernel is invoked.

Intended use

Drive an ARM CPU kernel benchmark/agent loop:

  1. Load a definition + its workloads.
  2. Compile a candidate solution against the harness contract.
  3. Check bit-exact correctness vs. the PyTorch / scalar reference.
  4. Time the candidate against the baseline-ncnn-arm solution on Graviton3.

License

Released under the Apache-2.0 license. Kernel sources derive from / wrap ncnn (BSD-3-Clause); see ncnn's license for the underlying library terms.

Downloads last month
738