File size: 36,597 Bytes
725119e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ca6e3a9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
725119e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ca6e3a9
725119e
 
ca6e3a9
 
725119e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ca6e3a9
725119e
 
ca6e3a9
725119e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299d1df
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
725119e
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
{
  "cases": [
    {
      "name": "u8_128x128",
      "inputs": {
        "a": { "dtype": "uint8", "shape": [128, 128], "data": { "kind": "constant", "value": 127 } },
        "a_scale": { "dtype": "float32", "shape": [1], "data": { "kind": "values", "values": [0.02] } },
        "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [128] } },
        "b": { "dtype": "uint8", "shape": [128, 128], "data": { "kind": "constant", "value": 129 } },
        "b_scale": { "dtype": "float32", "shape": [1], "data": { "kind": "values", "values": [0.03] } },
        "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [128] } },
        "y_scale": { "dtype": "float32", "shape": [1], "data": { "kind": "values", "values": [0.04] } },
        "y_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [128] } }
      },
      "outputs": { "y": { "dtype": "uint8", "shape": [128, 128] } }
    },
    {
      "name": "u8u8_512x768x768_scalar",
      "inputs": {
        "a": { "dtype": "uint8", "shape": [512, 768], "data": { "kind": "constant", "value": 127 } },
        "b": { "dtype": "uint8", "shape": [768, 768], "data": { "kind": "constant", "value": 129 } },
        "a_scale": { "dtype": "float32", "shape": [1], "data": { "kind": "values", "values": [0.02] } },
        "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [128] } },
        "b_scale": { "dtype": "float32", "shape": [1], "data": { "kind": "values", "values": [0.03] } },
        "b_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [128] } },
        "y_scale": { "dtype": "float32", "shape": [1], "data": { "kind": "values", "values": [4.0] } },
        "y_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [128] } }
      },
      "outputs": { "y": { "dtype": "uint8", "shape": [512, 768] } }
    },
    {
      "name": "u8s8_64x768x3072_per_column",
      "inputs": {
        "a": { "dtype": "uint8", "shape": [64, 768], "data": { "kind": "constant", "value": 127 } },
        "a_scale": { "dtype": "float32", "shape": [1], "data": { "kind": "values", "values": [0.02] } },
        "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [128] } },
        "b": { "dtype": "int8", "shape": [768, 3072], "data": { "kind": "constant", "value": -3 } },
        "b_scale": { "dtype": "float32", "shape": [3072], "data": { "kind": "constant", "value": 0.03 } },
        "b_zero_point": { "dtype": "int8", "shape": [3072], "data": { "kind": "constant", "value": 2 } },
        "y_scale": { "dtype": "float32", "shape": [1], "data": { "kind": "values", "values": [4.0] } },
        "y_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [128] } }
      },
      "outputs": { "y": { "dtype": "uint8", "shape": [64, 3072] } }
    },
    {
      "name": "u8s8_512x768x3072_per_column_scale_scalar_zp",
      "preset": "model",
      "inputs": {
        "a": { "dtype": "uint8", "shape": [512, 768], "dist": "randint", "seed": 2401, "min": 0, "max": 255 },
        "a_scale": { "dtype": "float32", "shape": [1], "data": { "kind": "values", "values": [0.02] } },
        "a_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [128] } },
        "b": { "dtype": "int8", "shape": [768, 3072], "dist": "randint", "seed": 2402, "min": -127, "max": 127 },
        "b_scale": { "dtype": "float32", "shape": [3072], "dist": "normal", "seed": 2403, "scale": 0.01 },
        "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [0] } },
        "y_scale": { "dtype": "float32", "shape": [1], "data": { "kind": "values", "values": [4.0] } },
        "y_zero_point": { "dtype": "uint8", "shape": [1], "data": { "kind": "values", "values": [128] } }
      },
      "outputs": { "y": { "dtype": "uint8", "shape": [512, 3072] } }
    },
    {
      "name": "s8s8_8x128x512x512_batched3",
      "inputs": {
        "a": { "dtype": "int8", "shape": [8, 128, 512], "data": { "kind": "constant", "value": -5 } },
        "b": { "dtype": "int8", "shape": [8, 512, 512], "data": { "kind": "constant", "value": 7 } },
        "a_scale": { "dtype": "float32", "shape": [1], "data": { "kind": "values", "values": [0.02] } },
        "a_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [0] } },
        "b_scale": { "dtype": "float32", "shape": [1], "data": { "kind": "values", "values": [0.03] } },
        "b_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [0] } },
        "y_scale": { "dtype": "float32", "shape": [1], "data": { "kind": "values", "values": [4.0] } },
        "y_zero_point": { "dtype": "int8", "shape": [1], "data": { "kind": "values", "values": [0] } }
      },
      "outputs": { "y": { "dtype": "int8", "shape": [8, 128, 512] } }
    },
    {
      "name": "u8s8-m1-4096x4096-decode-gemv",
      "preset": "smoke",
      "vars": { "M": 1, "K": 4096, "N": 4096 },
      "inputs": {
        "a": { "shape": [1, 4096], "dtype": "uint8", "dist": "constant", "value": 127 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 },
        "b": { "shape": [4096, 4096], "dtype": "int8", "dist": "constant", "value": 3 },
        "b_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1], "dtype": "int8", "dist": "constant", "value": 0 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 4 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [1, 4096], "dtype": "uint8" } },
      "bench": {
        "primary": true,
        "metrics": [
          { "type": "gflops", "value": "2 * dim(shapes.y, 0) * dim(shapes.y, 1) * dim(shapes.a, 1)" },
          { "type": "bandwidth", "value": "4 * (numel(shapes.a) + numel(shapes.b) + numel(shapes.y))" }
        ]
      }
    },
    {
      "name": "u8s8-m512-4096x4096-prefill",
      "preset": "smoke",
      "vars": { "M": 512, "K": 4096, "N": 4096 },
      "inputs": {
        "a": { "shape": [512, 4096], "dtype": "uint8", "dist": "constant", "value": 127 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 },
        "b": { "shape": [4096, 4096], "dtype": "int8", "dist": "constant", "value": 3 },
        "b_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1], "dtype": "int8", "dist": "constant", "value": 0 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 4 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [512, 4096], "dtype": "uint8" } },
      "tunableSpace": { "DP4A_LARGE_TILE_N": [64, 128, 256] },
      "bench": {
        "metrics": [{ "type": "gflops", "value": "2 * dim(shapes.y, 0) * dim(shapes.y, 1) * dim(shapes.a, 1)" }]
      }
    },
    {
      "name": "u8s8-m256-1024x1024-prefill-floor",
      "preset": "smoke",
      "inputs": {
        "a": { "shape": [256, 1024], "dtype": "uint8", "dist": "constant", "value": 127 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 },
        "b": { "shape": [1024, 1024], "dtype": "int8", "dist": "constant", "value": 3 },
        "b_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1], "dtype": "int8", "dist": "constant", "value": 0 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 4 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [256, 1024], "dtype": "uint8" } },
      "bench": {
        "metrics": [{ "type": "gflops", "value": "2 * dim(shapes.y, 0) * dim(shapes.y, 1) * dim(shapes.a, 1)" }]
      }
    },
    {
      "name": "u8u8-k192-dp4a",
      "preset": "smoke",
      "vars": { "M": 64, "K": 192, "N": 2048 },
      "inputs": {
        "a": { "shape": [64, 192], "dtype": "uint8", "dist": "constant", "value": 127 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 },
        "b": { "shape": [192, 2048], "dtype": "uint8", "dist": "constant", "value": 129 },
        "b_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 4 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [64, 2048], "dtype": "uint8" } },
      "bench": {
        "metrics": [{ "type": "gflops", "value": "2 * dim(shapes.y, 0) * dim(shapes.y, 1) * dim(shapes.a, 1)" }]
      }
    },
    {
      "name": "u8u8-k64-small-inner-large-output",
      "preset": "smoke",
      "vars": { "M": 64, "K": 64, "N": 2048 },
      "inputs": {
        "a": { "shape": [64, 64], "dtype": "uint8", "dist": "constant", "value": 127 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 },
        "b": { "shape": [64, 2048], "dtype": "uint8", "dist": "constant", "value": 129 },
        "b_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 4 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [64, 2048], "dtype": "uint8" } },
      "bench": {
        "metrics": [{ "type": "gflops", "value": "2 * dim(shapes.y, 0) * dim(shapes.y, 1) * dim(shapes.a, 1)" }]
      }
    },
    {
      "name": "u8u8-k256-at-dp4a-floor",
      "preset": "smoke",
      "vars": { "M": 64, "K": 256, "N": 2048 },
      "inputs": {
        "a": { "shape": [64, 256], "dtype": "uint8", "dist": "constant", "value": 127 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 },
        "b": { "shape": [256, 2048], "dtype": "uint8", "dist": "constant", "value": 129 },
        "b_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 4 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [64, 2048], "dtype": "uint8" } },
      "bench": {
        "metrics": [{ "type": "gflops", "value": "2 * dim(shapes.y, 0) * dim(shapes.y, 1) * dim(shapes.a, 1)" }]
      }
    },
    {
      "name": "s8s8-rank4-2x4x256x512-scalar-fallback",
      "preset": "smoke",
      "vars": { "B0": 2, "B1": 4, "M": 256, "K": 512, "N": 512 },
      "inputs": {
        "a": { "shape": [2, 4, 256, 512], "dtype": "int8", "dist": "constant", "value": -5 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "int8", "dist": "constant", "value": 0 },
        "b": { "shape": [2, 4, 512, 512], "dtype": "int8", "dist": "constant", "value": 7 },
        "b_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1], "dtype": "int8", "dist": "constant", "value": 0 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 4 },
        "y_zero_point": { "shape": [1], "dtype": "int8", "dist": "constant", "value": 0 }
      },
      "outputs": { "y": { "shape": [2, 4, 256, 512], "dtype": "int8" } },
      "bench": {
        "metrics": [
          {
            "type": "gflops",
            "value": "2 * dim(shapes.y, 0) * dim(shapes.y, 1) * dim(shapes.y, 2) * dim(shapes.y, 3) * dim(shapes.a, 3)"
          }
        ]
      }
    },
    {
      "name": "u8u8-k1023-notdiv4-rank2-scalar-fallback-stress",
      "preset": "stress",
      "vars": { "M": 512, "K": 1023, "N": 512 },
      "inputs": {
        "a": { "shape": [512, 1023], "dtype": "uint8", "dist": "randint", "seed": 7411, "min": 0, "max": 255 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 },
        "b": { "shape": [1023, 512], "dtype": "uint8", "dist": "randint", "seed": 7412, "min": 0, "max": 255 },
        "b_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 4 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [512, 512], "dtype": "uint8", "dist": "empty" } },
      "bench": {
        "metrics": [{ "type": "gflops", "value": "2 * dim(shapes.y, 0) * dim(shapes.y, 1) * dim(shapes.a, 1)" }]
      }
    },
    {
      "name": "s8s8-to-u8-rank4-ydtype-mismatch-scalar-fallback-stress",
      "preset": "stress",
      "vars": { "B0": 2, "B1": 4, "M": 128, "K": 512, "N": 512 },
      "inputs": {
        "a": { "shape": [2, 4, 128, 512], "dtype": "int8", "dist": "randint", "seed": 7421, "min": -127, "max": 127 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "int8", "dist": "constant", "value": 0 },
        "b": { "shape": [2, 4, 512, 512], "dtype": "int8", "dist": "randint", "seed": 7422, "min": -127, "max": 127 },
        "b_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1], "dtype": "int8", "dist": "constant", "value": 0 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 40 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [2, 4, 128, 512], "dtype": "uint8", "dist": "empty" } },
      "bench": {
        "metrics": [
          {
            "type": "gflops",
            "value": "2 * dim(shapes.y, 0) * dim(shapes.y, 1) * dim(shapes.y, 2) * dim(shapes.y, 3) * dim(shapes.a, 3)"
          }
        ]
      }
    },
    {
      "name": "adapter-percolumn-aligned-k1024-m256n1024",
      "preset": "model",
      "vars": { "M": 256, "K": 1024, "N": 1024 },
      "inputs": {
        "a": { "shape": [256, 1024], "dtype": "uint8", "dist": "randint", "seed": 7501, "min": 0, "max": 255 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 121 },
        "b": { "shape": [1024, 1024], "dtype": "int8", "dist": "randint", "seed": 7502, "min": -127, "max": 127 },
        "b_scale": { "shape": [1024], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1], "dtype": "int8", "dist": "constant", "value": -4 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 8 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [256, 1024], "dtype": "uint8", "dist": "empty" } },
      "bench": { "metrics": [{ "type": "gflops", "value": "2 * args.M * args.K * args.N" }] }
    },
    {
      "name": "adapter-percolumn-tail-k1025-m256n1024-pathology",
      "preset": "model",
      "vars": { "M": 256, "K": 1025, "N": 1024 },
      "inputs": {
        "a": { "shape": [256, 1025], "dtype": "uint8", "dist": "randint", "seed": 7503, "min": 0, "max": 255 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 121 },
        "b": { "shape": [1025, 1024], "dtype": "int8", "dist": "randint", "seed": 7504, "min": -127, "max": 127 },
        "b_scale": { "shape": [1024], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1], "dtype": "int8", "dist": "constant", "value": -4 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 8 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [256, 1024], "dtype": "uint8", "dist": "empty" } },
      "bench": { "metrics": [{ "type": "gflops", "value": "2 * args.M * args.K * args.N" }] }
    },
    {
      "name": "u8s8-k63-dp4a-floor-m512n4096",
      "preset": "stress",
      "provenance": {
        "source": "synthetic",
        "notes": "Measures QLinearMatMul over a 512x4096 uint8 by int8 output with an unaligned K=63 reduction length."
      },
      "vars": { "M": 512, "K": 63, "N": 4096 },
      "inputs": {
        "a": { "shape": [512, 63], "dtype": "uint8", "dist": "randint", "seed": 9151, "min": 0, "max": 255 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 },
        "b": { "shape": [63, 4096], "dtype": "int8", "dist": "randint", "seed": 9152, "min": -127, "max": 127 },
        "b_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1], "dtype": "int8", "dist": "constant", "value": -3 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 8 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [512, 4096], "dtype": "uint8", "dist": "empty" } },
      "bench": { "metrics": [{ "type": "gflops", "value": "2 * args.M * args.K * args.N" }] }
    },
    {
      "name": "rank3-by-rank2-shared-weight-u8s8-b8-m128-k1024-n768",
      "preset": "model",
      "provenance": {
        "source": "synthetic",
        "notes": "Common quantized batched activations times shared rank-2 weights exercise the scalar route; the paired rank-3-weight case isolates the missing DP4A rank3-by-rank2 route."
      },
      "vars": { "batch": 8, "M": 128, "K": 1024, "N": 768 },
      "inputs": {
        "a": { "shape": [8, 128, 1024], "dtype": "uint8", "dist": "randint", "seed": 9211, "min": 0, "max": 255 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 121 },
        "b": { "shape": [1024, 768], "dtype": "int8", "dist": "randint", "seed": 9212, "min": -127, "max": 127 },
        "b_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1], "dtype": "int8", "dist": "constant", "value": -4 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 16 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [8, 128, 768], "dtype": "uint8", "dist": "empty" } },
      "bench": { "metrics": [{ "type": "gflops", "value": "2 * args.batch * args.M * args.K * args.N" }] }
    },
    {
      "name": "scalar_scale_column_zp_m256_k1024_n1024",
      "preset": "model",
      "vars": { "M": 256, "K": 1024, "N": 1024 },
      "inputs": {
        "a": { "shape": [256, 1024], "dtype": "uint8", "dist": "randint", "seed": 7501, "min": 0, "max": 255 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 121 },
        "b": { "shape": [1024, 1024], "dtype": "int8", "dist": "randint", "seed": 7502, "min": -127, "max": 127 },
        "b_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1024], "dtype": "int8", "dist": "randint", "seed": 8624, "min": -100, "max": 100 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 8 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [256, 1024], "dtype": "uint8", "dist": "empty" } },
      "bench": { "metrics": [{ "type": "gflops", "value": "2 * args.M * args.K * args.N" }] }
    },
    {
      "name": "scalar_scale_column_zp_m256_k1025_n1024",
      "preset": "model",
      "vars": { "M": 256, "K": 1025, "N": 1024 },
      "inputs": {
        "a": { "shape": [256, 1025], "dtype": "uint8", "dist": "randint", "seed": 7503, "min": 0, "max": 255 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 121 },
        "b": { "shape": [1025, 1024], "dtype": "int8", "dist": "randint", "seed": 7504, "min": -127, "max": 127 },
        "b_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1024], "dtype": "int8", "dist": "randint", "seed": 8625, "min": -100, "max": 100 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 8 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [256, 1024], "dtype": "uint8", "dist": "empty" } },
      "bench": { "metrics": [{ "type": "gflops", "value": "2 * args.M * args.K * args.N" }] }
    },
    {
      "name": "scalar_scale_column_zp_m1_k1024_n1024",
      "preset": "model",
      "vars": { "M": 1, "K": 1024, "N": 1024 },
      "inputs": {
        "a": { "shape": [1, 1024], "dtype": "uint8", "dist": "randint", "seed": 7501, "min": 0, "max": 255 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 121 },
        "b": { "shape": [1024, 1024], "dtype": "int8", "dist": "randint", "seed": 7502, "min": -127, "max": 127 },
        "b_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1024], "dtype": "int8", "dist": "randint", "seed": 8624, "min": -100, "max": 100 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 8 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [1, 1024], "dtype": "uint8", "dist": "empty" } },
      "bench": {
        "metrics": [
          { "type": "gflops", "value": "2 * args.M * args.K * args.N" },
          {
            "type": "bandwidth",
            "value": "4 * (numel(shapes.a) + numel(shapes.b) + numel(shapes.b_zero_point) + numel(shapes.y) + 5)"
          }
        ]
      }
    },
    {
      "name": "scalar_scale_column_zp_m1_k1025_n1024",
      "preset": "model",
      "vars": { "M": 1, "K": 1025, "N": 1024 },
      "inputs": {
        "a": { "shape": [1, 1025], "dtype": "uint8", "dist": "randint", "seed": 7503, "min": 0, "max": 255 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 121 },
        "b": { "shape": [1025, 1024], "dtype": "int8", "dist": "randint", "seed": 7504, "min": -127, "max": 127 },
        "b_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1024], "dtype": "int8", "dist": "randint", "seed": 8625, "min": -100, "max": 100 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 8 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [1, 1024], "dtype": "uint8", "dist": "empty" } },
      "bench": {
        "metrics": [
          { "type": "gflops", "value": "2 * args.M * args.K * args.N" },
          {
            "type": "bandwidth",
            "value": "4 * (numel(shapes.a) + numel(shapes.b) + numel(shapes.b_zero_point) + numel(shapes.y) + 5)"
          }
        ]
      }
    },
    {
      "name": "scalar_scale_column_zp_m64_k1024_n1024",
      "preset": "model",
      "vars": { "M": 64, "K": 1024, "N": 1024 },
      "inputs": {
        "a": { "shape": [64, 1024], "dtype": "uint8", "dist": "randint", "seed": 7501, "min": 0, "max": 255 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 121 },
        "b": { "shape": [1024, 1024], "dtype": "int8", "dist": "randint", "seed": 7502, "min": -127, "max": 127 },
        "b_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1024], "dtype": "int8", "dist": "randint", "seed": 8624, "min": -100, "max": 100 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 8 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [64, 1024], "dtype": "uint8", "dist": "empty" } },
      "bench": { "metrics": [{ "type": "gflops", "value": "2 * args.M * args.K * args.N" }] }
    },
    {
      "name": "scalar_scale_column_zp_m64_k1025_n1024",
      "preset": "model",
      "vars": { "M": 64, "K": 1025, "N": 1024 },
      "inputs": {
        "a": { "shape": [64, 1025], "dtype": "uint8", "dist": "randint", "seed": 7503, "min": 0, "max": 255 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 121 },
        "b": { "shape": [1025, 1024], "dtype": "int8", "dist": "randint", "seed": 7504, "min": -127, "max": 127 },
        "b_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1024], "dtype": "int8", "dist": "randint", "seed": 8625, "min": -100, "max": 100 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 8 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [64, 1024], "dtype": "uint8", "dist": "empty" } },
      "bench": { "metrics": [{ "type": "gflops", "value": "2 * args.M * args.K * args.N" }] }
    },
    {
      "name": "matrix_storage_m32_k128_n8192",
      "preset": "stress",
      "inputs": {
        "a": { "shape": [32, 128], "dtype": "uint8", "dist": "constant", "value": 127 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 },
        "b": { "shape": [128, 8192], "dtype": "int8", "dist": "constant", "value": 3 },
        "b_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1], "dtype": "int8", "dist": "constant", "value": 0 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 4 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [32, 8192], "dtype": "uint8" } },
      "tunableSpace": { "DP4A_LARGE_TILE_N": [64, 128, 256] },
      "bench": { "metrics": [{ "type": "gflops", "value": 67108864 }] }
    },
    {
      "name": "matrix_storage_m32_k1024_n8192",
      "preset": "stress",
      "inputs": {
        "a": { "shape": [32, 1024], "dtype": "uint8", "dist": "constant", "value": 127 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 },
        "b": { "shape": [1024, 8192], "dtype": "int8", "dist": "constant", "value": 3 },
        "b_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1], "dtype": "int8", "dist": "constant", "value": 0 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 4 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [32, 8192], "dtype": "uint8" } },
      "tunableSpace": { "DP4A_LARGE_TILE_N": [64, 128, 256] },
      "bench": { "metrics": [{ "type": "gflops", "value": 536870912 }] }
    },
    {
      "name": "matrix_storage_m48_k1024_n8192",
      "preset": "stress",
      "inputs": {
        "a": { "shape": [48, 1024], "dtype": "uint8", "dist": "constant", "value": 127 },
        "a_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.02 },
        "a_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 },
        "b": { "shape": [1024, 8192], "dtype": "int8", "dist": "constant", "value": 3 },
        "b_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 0.03 },
        "b_zero_point": { "shape": [1], "dtype": "int8", "dist": "constant", "value": 0 },
        "y_scale": { "shape": [1], "dtype": "float32", "dist": "constant", "value": 4 },
        "y_zero_point": { "shape": [1], "dtype": "uint8", "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "shape": [48, 8192], "dtype": "uint8" } },
      "tunableSpace": { "DP4A_LARGE_TILE_N": [64, 128, 256] },
      "bench": { "metrics": [{ "type": "gflops", "value": 805306368 }] }
    },
    {
      "name": "exact-precast-padded-m127-k257-n4097-column-zp",
      "inputs": {
        "a": { "dtype": "uint8", "shape": [127, 257], "dist": "randint", "min": 0, "max": 255, "seed": 1307 },
        "b": { "dtype": "int8", "shape": [257, 4097], "dist": "randint", "min": -128, "max": 127, "seed": 1308 },
        "a_zero_point": { "dtype": "uint8", "shape": [1], "dist": "constant", "value": 127 },
        "b_zero_point": { "dtype": "int8", "shape": [4097], "dist": "randint", "min": -8, "max": 8, "seed": 1309 },
        "a_scale": { "dtype": "float32", "shape": [1], "dist": "constant", "value": 0.03125 },
        "b_scale": { "dtype": "float32", "shape": [4097], "dist": "constant", "value": 0.015625 },
        "y_scale": { "dtype": "float32", "shape": [1], "dist": "constant", "value": 4 },
        "y_zero_point": { "dtype": "uint8", "shape": [1], "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "dtype": "uint8", "shape": [127, 4097] } },
      "vars": { "M": 127, "K": 257, "N": 4097 },
      "bench": { "metrics": [{ "type": "gflops", "value": "2 * args.M * args.K * args.N" }] }
    },
    {
      "name": "exact-precast-padded-m129-k1025-n2049-column-zp",
      "inputs": {
        "a": { "dtype": "uint8", "shape": [129, 1025], "dist": "randint", "min": 0, "max": 255, "seed": 1307 },
        "b": { "dtype": "int8", "shape": [1025, 2049], "dist": "randint", "min": -128, "max": 127, "seed": 1308 },
        "a_zero_point": { "dtype": "uint8", "shape": [1], "dist": "constant", "value": 127 },
        "b_zero_point": { "dtype": "int8", "shape": [2049], "dist": "randint", "min": -8, "max": 8, "seed": 1309 },
        "a_scale": { "dtype": "float32", "shape": [1], "dist": "constant", "value": 0.03125 },
        "b_scale": { "dtype": "float32", "shape": [2049], "dist": "constant", "value": 0.015625 },
        "y_scale": { "dtype": "float32", "shape": [1], "dist": "constant", "value": 4 },
        "y_zero_point": { "dtype": "uint8", "shape": [1], "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "dtype": "uint8", "shape": [129, 2049] } },
      "vars": { "M": 129, "K": 1025, "N": 2049 },
      "bench": { "metrics": [{ "type": "gflops", "value": "2 * args.M * args.K * args.N" }] }
    },
    {
      "name": "exact-portable-row-reuse-m63-k1025-n8193",
      "inputs": {
        "a": { "dtype": "uint8", "shape": [63, 1025], "dist": "randint", "min": 0, "max": 255, "seed": 1307 },
        "b": { "dtype": "int8", "shape": [1025, 8193], "dist": "randint", "min": -128, "max": 127, "seed": 1308 },
        "a_zero_point": { "dtype": "uint8", "shape": [1], "dist": "constant", "value": 127 },
        "b_zero_point": { "dtype": "int8", "shape": [8193], "dist": "randint", "min": -8, "max": 8, "seed": 1309 },
        "a_scale": { "dtype": "float32", "shape": [1], "dist": "constant", "value": 0.03125 },
        "b_scale": { "dtype": "float32", "shape": [8193], "dist": "constant", "value": 0.015625 },
        "y_scale": { "dtype": "float32", "shape": [1], "dist": "constant", "value": 4 },
        "y_zero_point": { "dtype": "uint8", "shape": [1], "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "dtype": "uint8", "shape": [63, 8193] } },
      "vars": { "M": 63, "K": 1025, "N": 8193 },
      "bench": { "metrics": [{ "type": "gflops", "value": "2 * args.M * args.K * args.N" }] }
    },
    {
      "name": "exact-portable-row-reuse-m64-k1025-n8193",
      "inputs": {
        "a": { "dtype": "uint8", "shape": [64, 1025], "dist": "randint", "min": 0, "max": 255, "seed": 1307 },
        "b": { "dtype": "int8", "shape": [1025, 8193], "dist": "randint", "min": -128, "max": 127, "seed": 1308 },
        "a_zero_point": { "dtype": "uint8", "shape": [1], "dist": "constant", "value": 127 },
        "b_zero_point": { "dtype": "int8", "shape": [8193], "dist": "randint", "min": -8, "max": 8, "seed": 1309 },
        "a_scale": { "dtype": "float32", "shape": [1], "dist": "constant", "value": 0.03125 },
        "b_scale": { "dtype": "float32", "shape": [8193], "dist": "constant", "value": 0.015625 },
        "y_scale": { "dtype": "float32", "shape": [1], "dist": "constant", "value": 4 },
        "y_zero_point": { "dtype": "uint8", "shape": [1], "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "dtype": "uint8", "shape": [64, 8193] } },
      "vars": { "M": 64, "K": 1025, "N": 8193 },
      "bench": { "metrics": [{ "type": "gflops", "value": "2 * args.M * args.K * args.N" }] }
    },
    {
      "name": "exact-portable-row-reuse-m65-k1025-n8193",
      "inputs": {
        "a": { "dtype": "uint8", "shape": [65, 1025], "dist": "randint", "min": 0, "max": 255, "seed": 1307 },
        "b": { "dtype": "int8", "shape": [1025, 8193], "dist": "randint", "min": -128, "max": 127, "seed": 1308 },
        "a_zero_point": { "dtype": "uint8", "shape": [1], "dist": "constant", "value": 127 },
        "b_zero_point": { "dtype": "int8", "shape": [8193], "dist": "randint", "min": -8, "max": 8, "seed": 1309 },
        "a_scale": { "dtype": "float32", "shape": [1], "dist": "constant", "value": 0.03125 },
        "b_scale": { "dtype": "float32", "shape": [8193], "dist": "constant", "value": 0.015625 },
        "y_scale": { "dtype": "float32", "shape": [1], "dist": "constant", "value": 4 },
        "y_zero_point": { "dtype": "uint8", "shape": [1], "dist": "constant", "value": 128 }
      },
      "outputs": { "y": { "dtype": "uint8", "shape": [65, 8193] } },
      "vars": { "M": 65, "K": 1025, "N": 8193 },
      "bench": { "metrics": [{ "type": "gflops", "value": "2 * args.M * args.K * args.N" }] }
    }
  ]
}