Add sampled_id_list.json (33-definition dtype-symmetric subset) and document it in the dataset card
#3
by VanishD - opened
- README.md +34 -0
- sampled_id_list.json +138 -0
README.md
CHANGED
|
@@ -43,6 +43,7 @@ solutions/ # kernels implementing a definition
|
|
| 43 |
reference-scalar/conv2d/ # naive scalar 6-loop conv2d (ground-truth correctness)
|
| 44 |
workloads/ # concrete problem instances (var-axis values + scalar inputs)
|
| 45 |
conv/ # one JSONL per definition; each line is a runnable workload
|
|
|
|
| 46 |
```
|
| 47 |
|
| 48 |
### Definitions (`definitions/conv/*.json`)
|
|
@@ -97,6 +98,39 @@ The shared **harness** (`solutions/ncnn/_harness/conv2d.{h,cpp}`) declares the
|
|
| 97 |
`ncnn::convolution_kernel` contract that every solution implements, and handles
|
| 98 |
input padding before the kernel is invoked.
|
| 99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
## Intended use
|
| 101 |
|
| 102 |
Drive an ARM CPU kernel benchmark/agent loop:
|
|
|
|
| 43 |
reference-scalar/conv2d/ # naive scalar 6-loop conv2d (ground-truth correctness)
|
| 44 |
workloads/ # concrete problem instances (var-axis values + scalar inputs)
|
| 45 |
conv/ # one JSONL per definition; each line is a runnable workload
|
| 46 |
+
sampled_id_list.json # 33-definition representative subset (see below)
|
| 47 |
```
|
| 48 |
|
| 49 |
### Definitions (`definitions/conv/*.json`)
|
|
|
|
| 98 |
`ncnn::convolution_kernel` contract that every solution implements, and handles
|
| 99 |
input padding before the kernel is invoked.
|
| 100 |
|
| 101 |
+
## Sampled subset (`sampled_id_list.json`)
|
| 102 |
+
|
| 103 |
+
The full trace is 103 definitions. `sampled_id_list.json` names a
|
| 104 |
+
**33-definition representative subset**, for runs where a full sweep is too
|
| 105 |
+
expensive:
|
| 106 |
+
|
| 107 |
+
```json
|
| 108 |
+
{
|
| 109 |
+
"description": "33-definition dtype-symmetric representative sample of bench-trace/definitions/",
|
| 110 |
+
"count": 33,
|
| 111 |
+
"definitions": [
|
| 112 |
+
{"name": "conv2d_fp32_kh3_kw3_sh1_sw1_dh1_dw1_p1", "dataset": "ncnn"},
|
| 113 |
+
{"name": "gemm_bf16_n2048_k2048", "dataset": "llama.cpp"},
|
| 114 |
+
{"name": "loop_001", "dataset": "simd-loop"}
|
| 115 |
+
]
|
| 116 |
+
}
|
| 117 |
+
```
|
| 118 |
+
|
| 119 |
+
| Dataset | Sampled | Total |
|
| 120 |
+
|-------------|--------:|------:|
|
| 121 |
+
| ncnn | 12 | 30 |
|
| 122 |
+
| llama.cpp | 8 | 26 |
|
| 123 |
+
| simd-loop | 13 | 47 |
|
| 124 |
+
|
| 125 |
+
**Dtype-symmetric** means each sampled op type appears in *every* dtype this
|
| 126 |
+
dataset provides for it, on identical shapes — so comparing dtypes within one
|
| 127 |
+
op type is never confounded by which shapes happen to have been sampled:
|
| 128 |
+
|
| 129 |
+
- `conv2d`, `conv2d_depthwise`, `gemm` (ncnn) — fp32 + w8a8ch
|
| 130 |
+
- `gemm`, `moe` (llama.cpp) — bf16 + q8_0 + q4_k_m
|
| 131 |
+
- `mha` (bf16-only), `pooling`, `rms_norm` (fp32-only) — single-dtype op types
|
| 132 |
+
here, so one entry each
|
| 133 |
+
|
| 134 |
## Intended use
|
| 135 |
|
| 136 |
Drive an ARM CPU kernel benchmark/agent loop:
|
sampled_id_list.json
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"description": "33-definition dtype-symmetric representative sample of bench-trace/definitions/",
|
| 3 |
+
"count": 33,
|
| 4 |
+
"definitions": [
|
| 5 |
+
{
|
| 6 |
+
"name": "conv2d_depthwise_fp32_kh3_kw3_sh1_sw1_dh1_dw1_p1",
|
| 7 |
+
"dataset": "ncnn"
|
| 8 |
+
},
|
| 9 |
+
{
|
| 10 |
+
"name": "conv2d_depthwise_fp32_kh5_kw5_sh1_sw1_dh1_dw1_p2",
|
| 11 |
+
"dataset": "ncnn"
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"name": "conv2d_depthwise_w8a8ch_kh3_kw3_sh1_sw1_dh1_dw1_p1",
|
| 15 |
+
"dataset": "ncnn"
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"name": "conv2d_depthwise_w8a8ch_kh5_kw5_sh1_sw1_dh1_dw1_p2",
|
| 19 |
+
"dataset": "ncnn"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"name": "conv2d_fp32_kh3_kw3_sh1_sw1_dh1_dw1_p1",
|
| 23 |
+
"dataset": "ncnn"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"name": "conv2d_fp32_kh7_kw7_sh2_sw2_dh1_dw1_p3",
|
| 27 |
+
"dataset": "ncnn"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"name": "conv2d_w8a8ch_kh3_kw3_sh1_sw1_dh1_dw1_p1",
|
| 31 |
+
"dataset": "ncnn"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"name": "conv2d_w8a8ch_kh7_kw7_sh2_sw2_dh1_dw1_p3",
|
| 35 |
+
"dataset": "ncnn"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"name": "gemm_fp32_n1000_k2048",
|
| 39 |
+
"dataset": "ncnn"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"name": "gemm_w8a8ch_n1000_k2048",
|
| 43 |
+
"dataset": "ncnn"
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"name": "pooling_fp32_global_avg",
|
| 47 |
+
"dataset": "ncnn"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"name": "pooling_fp32_max_kh3_kw3_sh2_sw2_p1",
|
| 51 |
+
"dataset": "ncnn"
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"name": "gemm_bf16_n2048_k2048",
|
| 55 |
+
"dataset": "llama.cpp"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"name": "gemm_q4_k_m_n2048_k2048",
|
| 59 |
+
"dataset": "llama.cpp"
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"name": "gemm_q8_0_n2048_k2048",
|
| 63 |
+
"dataset": "llama.cpp"
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"name": "mha_bf16_h16_d128_kvh16",
|
| 67 |
+
"dataset": "llama.cpp"
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"name": "moe_bf16_e64_k8_d2048_ff1024",
|
| 71 |
+
"dataset": "llama.cpp"
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"name": "moe_q4_k_m_e64_k8_d2048_ff1024",
|
| 75 |
+
"dataset": "llama.cpp"
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"name": "moe_q8_0_e64_k8_d2048_ff1024",
|
| 79 |
+
"dataset": "llama.cpp"
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"name": "rms_norm_fp32_d2048",
|
| 83 |
+
"dataset": "llama.cpp"
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"name": "loop_001",
|
| 87 |
+
"dataset": "simd-loop"
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"name": "loop_008",
|
| 91 |
+
"dataset": "simd-loop"
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"name": "loop_024",
|
| 95 |
+
"dataset": "simd-loop"
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"name": "loop_037",
|
| 99 |
+
"dataset": "simd-loop"
|
| 100 |
+
},
|
| 101 |
+
{
|
| 102 |
+
"name": "loop_102",
|
| 103 |
+
"dataset": "simd-loop"
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"name": "loop_106",
|
| 107 |
+
"dataset": "simd-loop"
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"name": "loop_121",
|
| 111 |
+
"dataset": "simd-loop"
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"name": "loop_123",
|
| 115 |
+
"dataset": "simd-loop"
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"name": "loop_127",
|
| 119 |
+
"dataset": "simd-loop"
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"name": "loop_128",
|
| 123 |
+
"dataset": "simd-loop"
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"name": "loop_130",
|
| 127 |
+
"dataset": "simd-loop"
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"name": "loop_135",
|
| 131 |
+
"dataset": "simd-loop"
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"name": "loop_223",
|
| 135 |
+
"dataset": "simd-loop"
|
| 136 |
+
}
|
| 137 |
+
]
|
| 138 |
+
}
|