diff --git "a/build/webgpu/bench.json" "b/build/webgpu/bench.json" --- "a/build/webgpu/bench.json" +++ "b/build/webgpu/bench.json" @@ -1,11 +1,5 @@ { - "tunableSpace": { - "dvGroups": [2, 4, 8], - "tileV": [4, 8, 16], - "gatedTileV": [2, 4, 8], - "chunkSize": [16, 32], - "chunkTileV": [16, 32] - }, + "tunableSpace": { "dvGroups": [2, 4] }, "cases": [ { "name": "linear-attention-f32-zero-32x4x16x16", @@ -13,13 +7,13 @@ "vars": { "batch": 1, "seq": 32, "qHeads": 4, "kvHeads": 2, "dk": 16, "dv": 16 }, "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "linear", "scale": 0.25 }, "inputs": { - "queryT": { "shape": [1, 32, 64], "dtype": "float32", "dist": "normal", "seed": 201, "scale": 0.2 }, - "keyT": { "shape": [1, 32, 32], "dtype": "float32", "dist": "normal", "seed": 202, "scale": 0.2 }, - "valueT": { "shape": [1, 32, 32], "dtype": "float32", "dist": "normal", "seed": 203, "scale": 0.2 } + "query": { "shape": [1, 32, 64], "dtype": "float32", "dist": "normal", "seed": 201, "scale": 0.2 }, + "key": { "shape": [1, 32, 32], "dtype": "float32", "dist": "normal", "seed": 202, "scale": 0.2 }, + "value": { "shape": [1, 32, 32], "dtype": "float32", "dist": "normal", "seed": 203, "scale": 0.2 } }, "outputs": { - "outputT": { "shape": [1, 32, 64], "dtype": "float32" }, - "presentStateT": { "shape": [1, 2, 16, 16], "dtype": "float32" } + "output": { "shape": [1, 32, 64], "dtype": "float32" }, + "present_state": { "shape": [1, 2, 16, 16], "dtype": "float32" } }, "bench": { "primary": true, @@ -34,16 +28,16 @@ "vars": { "batch": 1, "seq": 32, "qHeads": 4, "kvHeads": 2, "dk": 16, "dv": 16 }, "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "gated_delta", "scale": 0.25 }, "inputs": { - "queryT": { "shape": [1, 32, 64], "dtype": "float32", "dist": "normal", "seed": 202, "scale": 0.2 }, - "keyT": { "shape": [1, 32, 32], "dtype": "float32", "dist": "normal", "seed": 203, "scale": 0.2 }, - "valueT": { "shape": [1, 32, 32], "dtype": "float32", "dist": "normal", "seed": 204, "scale": 0.2 }, - "pastStateT": { "shape": [1, 2, 16, 16], "dtype": "float32", "dist": "normal", "seed": 205, "scale": 0.1 }, - "decayT": { "shape": [1, 32, 32], "dtype": "float32", "dist": "normal", "seed": 206, "scale": 0.1 }, - "betaT": { "shape": [1, 32, 2], "dtype": "float32", "dist": "normal", "seed": 207, "scale": 0.1 } + "query": { "shape": [1, 32, 64], "dtype": "float32", "dist": "normal", "seed": 202, "scale": 0.2 }, + "key": { "shape": [1, 32, 32], "dtype": "float32", "dist": "normal", "seed": 203, "scale": 0.2 }, + "value": { "shape": [1, 32, 32], "dtype": "float32", "dist": "normal", "seed": 204, "scale": 0.2 }, + "past_state": { "shape": [1, 2, 16, 16], "dtype": "float32", "dist": "normal", "seed": 205, "scale": 0.1 }, + "decay": { "shape": [1, 32, 32], "dtype": "float32", "dist": "normal", "seed": 206, "scale": 0.1 }, + "beta": { "shape": [1, 32, 2], "dtype": "float32", "dist": "normal", "seed": 207, "scale": 0.1 } }, "outputs": { - "outputT": { "shape": [1, 32, 64], "dtype": "float32" }, - "presentStateT": { "shape": [1, 2, 16, 16], "dtype": "float32" } + "output": { "shape": [1, 32, 64], "dtype": "float32" }, + "present_state": { "shape": [1, 2, 16, 16], "dtype": "float32" } }, "bench": { "primary": true, @@ -61,14 +55,14 @@ "vars": { "batch": 1, "seq": 32, "qHeads": 4, "kvHeads": 2, "dk": 16, "dv": 16 }, "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "linear", "scale": 0.25 }, "inputs": { - "queryT": { "shape": [1, 32, 64], "dtype": "float32", "dist": "normal", "seed": 208, "scale": 0.2 }, - "keyT": { "shape": [1, 32, 32], "dtype": "float32", "dist": "normal", "seed": 209, "scale": 0.2 }, - "valueT": { "shape": [1, 32, 32], "dtype": "float32", "dist": "normal", "seed": 210, "scale": 0.2 }, - "pastStateT": { "shape": [1, 2, 16, 16], "dtype": "float32", "dist": "normal", "seed": 211, "scale": 0.1 } + "query": { "shape": [1, 32, 64], "dtype": "float32", "dist": "normal", "seed": 208, "scale": 0.2 }, + "key": { "shape": [1, 32, 32], "dtype": "float32", "dist": "normal", "seed": 209, "scale": 0.2 }, + "value": { "shape": [1, 32, 32], "dtype": "float32", "dist": "normal", "seed": 210, "scale": 0.2 }, + "past_state": { "shape": [1, 2, 16, 16], "dtype": "float32", "dist": "normal", "seed": 211, "scale": 0.1 } }, "outputs": { - "outputT": { "shape": [1, 32, 64], "dtype": "float32" }, - "presentStateT": { "shape": [1, 2, 16, 16], "dtype": "float32" } + "output": { "shape": [1, 32, 64], "dtype": "float32" }, + "present_state": { "shape": [1, 2, 16, 16], "dtype": "float32" } }, "bench": { "metrics": [ @@ -81,19 +75,19 @@ "preset": "stress", "provenance": { "source": "synthetic benchmark", - "notes": "Long-sequence supplied-state case at head_dim_k 16. It exercises the recurrent small-dk route's serial token recurrence and distinguishes it from the chunked prefill decomposition." + "notes": "Long-sequence supplied-state case at head_dim_k 16. It exercises the recurrent small-dk variant's serial token recurrence and distinguishes it from the chunked prefill decomposition." }, "vars": { "batch": 4, "seq": 1536, "qHeads": 4, "kvHeads": 2, "dk": 16, "dv": 16 }, "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "linear", "scale": 0.25 }, "inputs": { - "queryT": { "shape": [4, 1536, 64], "dtype": "float16", "dist": "normal", "seed": 314, "scale": 0.2 }, - "keyT": { "shape": [4, 1536, 32], "dtype": "float16", "dist": "normal", "seed": 315, "scale": 0.2 }, - "valueT": { "shape": [4, 1536, 32], "dtype": "float16", "dist": "normal", "seed": 316, "scale": 0.2 }, - "pastStateT": { "shape": [4, 2, 16, 16], "dtype": "float16", "dist": "normal", "seed": 317, "scale": 0.1 } + "query": { "shape": [4, 1536, 64], "dtype": "float16", "dist": "normal", "seed": 314, "scale": 0.2 }, + "key": { "shape": [4, 1536, 32], "dtype": "float16", "dist": "normal", "seed": 315, "scale": 0.2 }, + "value": { "shape": [4, 1536, 32], "dtype": "float16", "dist": "normal", "seed": 316, "scale": 0.2 }, + "past_state": { "shape": [4, 2, 16, 16], "dtype": "float16", "dist": "normal", "seed": 317, "scale": 0.1 } }, "outputs": { - "outputT": { "shape": [4, 1536, 64], "dtype": "float16" }, - "presentStateT": { "shape": [4, 2, 16, 16], "dtype": "float16" } + "output": { "shape": [4, 1536, 64], "dtype": "float16" }, + "present_state": { "shape": [4, 2, 16, 16], "dtype": "float16" } }, "bench": { "primary": true, @@ -108,16 +102,16 @@ "vars": { "batch": 8, "seq": 1536, "qHeads": 4, "kvHeads": 4, "dk": 6, "dv": 12 }, "attrs": { "q_num_heads": 4, "kv_num_heads": 4, "update_rule": "gated_delta", "scale": 0.25 }, "inputs": { - "queryT": { "shape": [8, 1536, 24], "dtype": "float32", "dist": "normal", "seed": 301, "scale": 0.2 }, - "keyT": { "shape": [8, 1536, 24], "dtype": "float32", "dist": "normal", "seed": 302, "scale": 0.2 }, - "valueT": { "shape": [8, 1536, 48], "dtype": "float32", "dist": "normal", "seed": 303, "scale": 0.2 }, - "pastStateT": { "shape": [8, 4, 6, 12], "dtype": "float32", "dist": "normal", "seed": 304, "scale": 0.1 }, - "decayT": { "shape": [8, 1536, 4], "dtype": "float32", "dist": "normal", "seed": 305, "scale": 0.1 }, - "betaT": { "shape": [8, 1536, 4], "dtype": "float32", "dist": "normal", "seed": 306, "scale": 0.1 } + "query": { "shape": [8, 1536, 24], "dtype": "float32", "dist": "normal", "seed": 301, "scale": 0.2 }, + "key": { "shape": [8, 1536, 24], "dtype": "float32", "dist": "normal", "seed": 302, "scale": 0.2 }, + "value": { "shape": [8, 1536, 48], "dtype": "float32", "dist": "normal", "seed": 303, "scale": 0.2 }, + "past_state": { "shape": [8, 4, 6, 12], "dtype": "float32", "dist": "normal", "seed": 304, "scale": 0.1 }, + "decay": { "shape": [8, 1536, 4], "dtype": "float32", "dist": "normal", "seed": 305, "scale": 0.1 }, + "beta": { "shape": [8, 1536, 4], "dtype": "float32", "dist": "normal", "seed": 306, "scale": 0.1 } }, "outputs": { - "outputT": { "shape": [8, 1536, 48], "dtype": "float32" }, - "presentStateT": { "shape": [8, 4, 6, 12], "dtype": "float32" } + "output": { "shape": [8, 1536, 48], "dtype": "float32" }, + "present_state": { "shape": [8, 4, 6, 12], "dtype": "float32" } }, "bench": { "primary": true, @@ -135,13 +129,13 @@ "vars": { "batch": 4, "seq": 1536, "qHeads": 4, "kvHeads": 2, "dk": 16, "dv": 16 }, "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "linear", "scale": 0.25 }, "inputs": { - "queryT": { "shape": [4, 1536, 64], "dtype": "float16", "dist": "normal", "seed": 311, "scale": 0.2 }, - "keyT": { "shape": [4, 1536, 32], "dtype": "float16", "dist": "normal", "seed": 312, "scale": 0.2 }, - "valueT": { "shape": [4, 1536, 32], "dtype": "float16", "dist": "normal", "seed": 313, "scale": 0.2 } + "query": { "shape": [4, 1536, 64], "dtype": "float16", "dist": "normal", "seed": 311, "scale": 0.2 }, + "key": { "shape": [4, 1536, 32], "dtype": "float16", "dist": "normal", "seed": 312, "scale": 0.2 }, + "value": { "shape": [4, 1536, 32], "dtype": "float16", "dist": "normal", "seed": 313, "scale": 0.2 } }, "outputs": { - "outputT": { "shape": [4, 1536, 64], "dtype": "float16" }, - "presentStateT": { "shape": [4, 2, 16, 16], "dtype": "float16" } + "output": { "shape": [4, 1536, 64], "dtype": "float16" }, + "present_state": { "shape": [4, 2, 16, 16], "dtype": "float16" } }, "bench": { "primary": true, @@ -160,16 +154,16 @@ "vars": { "batch": 1, "seq": 16, "qHeads": 48, "kvHeads": 16, "dk": 128, "dv": 128 }, "attrs": { "q_num_heads": 48, "kv_num_heads": 16, "update_rule": "gated_delta", "scale": 0.08838834764831845 }, "inputs": { - "queryT": { "shape": [1, 16, 6144], "dtype": "float32", "dist": "normal", "seed": 320, "scale": 0.05 }, - "keyT": { "shape": [1, 16, 2048], "dtype": "float32", "dist": "normal", "seed": 321, "scale": 0.05 }, - "valueT": { "shape": [1, 16, 2048], "dtype": "float32", "dist": "normal", "seed": 322, "scale": 0.05 }, - "pastStateT": { "shape": [1, 16, 128, 128], "dtype": "float32", "dist": "normal", "seed": 323, "scale": 0.02 }, - "decayT": { "shape": [1, 16, 16], "dtype": "float32", "dist": "normal", "seed": 324, "scale": 0.08 }, - "betaT": { "shape": [1, 16, 16], "dtype": "float32", "dist": "normal", "seed": 325, "scale": 0.08 } + "query": { "shape": [1, 16, 6144], "dtype": "float32", "dist": "normal", "seed": 320, "scale": 0.05 }, + "key": { "shape": [1, 16, 2048], "dtype": "float32", "dist": "normal", "seed": 321, "scale": 0.05 }, + "value": { "shape": [1, 16, 2048], "dtype": "float32", "dist": "normal", "seed": 322, "scale": 0.05 }, + "past_state": { "shape": [1, 16, 128, 128], "dtype": "float32", "dist": "normal", "seed": 323, "scale": 0.02 }, + "decay": { "shape": [1, 16, 16], "dtype": "float32", "dist": "normal", "seed": 324, "scale": 0.08 }, + "beta": { "shape": [1, 16, 16], "dtype": "float32", "dist": "normal", "seed": 325, "scale": 0.08 } }, "outputs": { - "outputT": { "shape": [1, 16, 6144], "dtype": "float32", "dist": "empty" }, - "presentStateT": { "shape": [1, 16, 128, 128], "dtype": "float32", "dist": "empty" } + "output": { "shape": [1, 16, 6144], "dtype": "float32", "dist": "empty" }, + "present_state": { "shape": [1, 16, 128, 128], "dtype": "float32", "dist": "empty" } }, "bench": { "primary": true, @@ -187,16 +181,16 @@ "vars": { "batch": 1, "seq": 16, "qHeads": 48, "kvHeads": 16, "dk": 128, "dv": 128 }, "attrs": { "q_num_heads": 48, "kv_num_heads": 16, "update_rule": "gated_delta", "scale": 0.08838834764831845 }, "inputs": { - "queryT": { "shape": [1, 16, 6144], "dtype": "float16", "dist": "normal", "seed": 326, "scale": 0.05 }, - "keyT": { "shape": [1, 16, 2048], "dtype": "float16", "dist": "normal", "seed": 327, "scale": 0.05 }, - "valueT": { "shape": [1, 16, 2048], "dtype": "float16", "dist": "normal", "seed": 328, "scale": 0.05 }, - "pastStateT": { "shape": [1, 16, 128, 128], "dtype": "float16", "dist": "normal", "seed": 329, "scale": 0.02 }, - "decayT": { "shape": [1, 16, 16], "dtype": "float16", "dist": "normal", "seed": 330, "scale": 0.08 }, - "betaT": { "shape": [1, 16, 16], "dtype": "float16", "dist": "normal", "seed": 331, "scale": 0.08 } + "query": { "shape": [1, 16, 6144], "dtype": "float16", "dist": "normal", "seed": 326, "scale": 0.05 }, + "key": { "shape": [1, 16, 2048], "dtype": "float16", "dist": "normal", "seed": 327, "scale": 0.05 }, + "value": { "shape": [1, 16, 2048], "dtype": "float16", "dist": "normal", "seed": 328, "scale": 0.05 }, + "past_state": { "shape": [1, 16, 128, 128], "dtype": "float16", "dist": "normal", "seed": 329, "scale": 0.02 }, + "decay": { "shape": [1, 16, 16], "dtype": "float16", "dist": "normal", "seed": 330, "scale": 0.08 }, + "beta": { "shape": [1, 16, 16], "dtype": "float16", "dist": "normal", "seed": 331, "scale": 0.08 } }, "outputs": { - "outputT": { "shape": [1, 16, 6144], "dtype": "float16", "dist": "empty" }, - "presentStateT": { "shape": [1, 16, 128, 128], "dtype": "float16", "dist": "empty" } + "output": { "shape": [1, 16, 6144], "dtype": "float16", "dist": "empty" }, + "present_state": { "shape": [1, 16, 128, 128], "dtype": "float16", "dist": "empty" } }, "bench": { "primary": true, @@ -223,17 +217,17 @@ "chunk_size": 64 }, "inputs": { - "queryT": { "shape": [1, 1, 4096], "dtype": "float32", "dist": "normal", "seed": 8100, "scale": 0.3 }, - "keyT": { + "query": { "shape": [1, 1, 4096], "dtype": "float32", "dist": "normal", "seed": 8100, "scale": 0.3 }, + "key": { "shape": [1, 1, 2048], "dtype": "float32", "dist": "uniform", "seed": 8101, "scale": 0.08838834764831843 }, - "valueT": { "shape": [1, 1, 2048], "dtype": "float32", "dist": "normal", "seed": 8102, "scale": 0.3 }, - "pastStateT": { "shape": [1, 16, 128, 128], "dtype": "float32", "dist": "normal", "seed": 8103, "scale": 0.1 }, - "decayT": { + "value": { "shape": [1, 1, 2048], "dtype": "float32", "dist": "normal", "seed": 8102, "scale": 0.3 }, + "past_state": { "shape": [1, 16, 128, 128], "dtype": "float32", "dist": "normal", "seed": 8103, "scale": 0.1 }, + "decay": { "shape": [1, 1, 2048], "dtype": "float32", "dist": "uniform", @@ -242,7 +236,7 @@ "offset": -0.10536051565782628, "scale": 0.10536051565782628 }, - "betaT": { + "beta": { "shape": [1, 1, 16], "dtype": "float32", "dist": "uniform", @@ -253,8 +247,8 @@ } }, "outputs": { - "outputT": { "shape": [1, 1, 4096], "dtype": "float32" }, - "presentStateT": { "shape": [1, 16, 128, 128], "dtype": "float32" } + "output": { "shape": [1, 1, 4096], "dtype": "float32" }, + "present_state": { "shape": [1, 16, 128, 128], "dtype": "float32" } }, "bench": { "metrics": [ @@ -280,17 +274,17 @@ "chunk_size": 64 }, "inputs": { - "queryT": { "shape": [1, 512, 4096], "dtype": "float32", "dist": "normal", "seed": 8200, "scale": 0.3 }, - "keyT": { + "query": { "shape": [1, 512, 4096], "dtype": "float32", "dist": "normal", "seed": 8200, "scale": 0.3 }, + "key": { "shape": [1, 512, 2048], "dtype": "float32", "dist": "uniform", "seed": 8201, "scale": 0.08838834764831843 }, - "valueT": { "shape": [1, 512, 2048], "dtype": "float32", "dist": "normal", "seed": 8202, "scale": 0.3 }, - "pastStateT": { "shape": [1, 16, 128, 128], "dtype": "float32", "dist": "normal", "seed": 8203, "scale": 0.1 }, - "decayT": { + "value": { "shape": [1, 512, 2048], "dtype": "float32", "dist": "normal", "seed": 8202, "scale": 0.3 }, + "past_state": { "shape": [1, 16, 128, 128], "dtype": "float32", "dist": "normal", "seed": 8203, "scale": 0.1 }, + "decay": { "shape": [1, 512, 2048], "dtype": "float32", "dist": "uniform", @@ -299,7 +293,7 @@ "offset": -0.10536051565782628, "scale": 0.10536051565782628 }, - "betaT": { + "beta": { "shape": [1, 512, 16], "dtype": "float32", "dist": "uniform", @@ -310,8 +304,8 @@ } }, "outputs": { - "outputT": { "shape": [1, 512, 4096], "dtype": "float32" }, - "presentStateT": { "shape": [1, 16, 128, 128], "dtype": "float32" } + "output": { "shape": [1, 512, 4096], "dtype": "float32" }, + "present_state": { "shape": [1, 16, 128, 128], "dtype": "float32" } }, "bench": { "metrics": [ @@ -337,17 +331,17 @@ "chunk_size": 64 }, "inputs": { - "queryT": { "shape": [1, 2048, 4096], "dtype": "float32", "dist": "normal", "seed": 8300, "scale": 0.3 }, - "keyT": { + "query": { "shape": [1, 2048, 4096], "dtype": "float32", "dist": "normal", "seed": 8300, "scale": 0.3 }, + "key": { "shape": [1, 2048, 2048], "dtype": "float32", "dist": "uniform", "seed": 8301, "scale": 0.08838834764831843 }, - "valueT": { "shape": [1, 2048, 2048], "dtype": "float32", "dist": "normal", "seed": 8302, "scale": 0.3 }, - "pastStateT": { "shape": [1, 16, 128, 128], "dtype": "float32", "dist": "normal", "seed": 8303, "scale": 0.1 }, - "decayT": { + "value": { "shape": [1, 2048, 2048], "dtype": "float32", "dist": "normal", "seed": 8302, "scale": 0.3 }, + "past_state": { "shape": [1, 16, 128, 128], "dtype": "float32", "dist": "normal", "seed": 8303, "scale": 0.1 }, + "decay": { "shape": [1, 2048, 2048], "dtype": "float32", "dist": "uniform", @@ -356,7 +350,7 @@ "offset": -0.10536051565782628, "scale": 0.10536051565782628 }, - "betaT": { + "beta": { "shape": [1, 2048, 16], "dtype": "float32", "dist": "uniform", @@ -367,8 +361,8 @@ } }, "outputs": { - "outputT": { "shape": [1, 2048, 4096], "dtype": "float32" }, - "presentStateT": { "shape": [1, 16, 128, 128], "dtype": "float32" } + "output": { "shape": [1, 2048, 4096], "dtype": "float32" }, + "present_state": { "shape": [1, 16, 128, 128], "dtype": "float32" } }, "bench": { "metrics": [ @@ -382,29 +376,29 @@ { "name": "bench-linear_geometry_float32_float32_g0_zero", "provenance": { - "notes": "Small-head linear recurrence with shared keys, standard or inverse query grouping, odd value dimensions, independent state dtype, and retained or empty-sequence state windows." + "notes": "Linear update rule, standard grouping: 4 query heads over 2 key/value heads sharing 1 key head, key width 8, odd value width 7 and a 3-state window, from zero state." }, "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "linear", "state_window": 3, "scale": 0.375 }, "inputs": { - "queryT": { + "query": { "dtype": "float32", "shape": [2, 33, 32], "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.31, "scale": 0.05 } }, - "keyT": { + "key": { "dtype": "float32", "shape": [2, 33, 8], "data": { "kind": "fillFloat32", "sinStep": 0.23, "cosStep": 0.31, "scale": 0.05 } }, - "valueT": { + "value": { "dtype": "float32", "shape": [2, 33, 14], "data": { "kind": "fillFloat32", "sinStep": 0.37, "cosStep": 0.31, "scale": 0.05 } } }, "outputs": { - "outputT": { "dtype": "float32", "shape": [2, 33, 28] }, - "presentStateT": { "dtype": "float32", "shape": [3, 2, 2, 8, 7] } + "output": { "dtype": "float32", "shape": [2, 33, 28] }, + "present_state": { "dtype": "float32", "shape": [3, 2, 2, 8, 7] } }, "preset": "stress", "bench": { @@ -412,7 +406,7 @@ "metrics": [ { "type": "gflops", - "value": "dim(shapes.queryT, 0) * dim(shapes.queryT, 1) * (dim(shapes.valueT, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.queryT, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" + "value": "dim(shapes.query, 0) * dim(shapes.query, 1) * (dim(shapes.value, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.query, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" } ] } @@ -420,34 +414,34 @@ { "name": "bench-linear_geometry_float32_float32_g0_state", "provenance": { - "notes": "Small-head linear recurrence with shared keys, standard or inverse query grouping, odd value dimensions, independent state dtype, and retained or empty-sequence state windows." + "notes": "Linear update rule, standard grouping: 4 query heads over 2 key/value heads sharing 1 key head, key width 8, odd value width 7 and a 3-state window, from a given past state." }, "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "linear", "state_window": 3, "scale": 0.375 }, "inputs": { - "queryT": { + "query": { "dtype": "float32", "shape": [2, 33, 32], "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.31, "scale": 0.05 } }, - "keyT": { + "key": { "dtype": "float32", "shape": [2, 33, 8], "data": { "kind": "fillFloat32", "sinStep": 0.23, "cosStep": 0.31, "scale": 0.05 } }, - "valueT": { + "value": { "dtype": "float32", "shape": [2, 33, 14], "data": { "kind": "fillFloat32", "sinStep": 0.37, "cosStep": 0.31, "scale": 0.05 } }, - "pastStateT": { + "past_state": { "dtype": "float32", "shape": [3, 2, 2, 8, 7], "data": { "kind": "fillFloat32", "sinStep": 0.13, "cosStep": 0.31, "scale": 0.05 } } }, "outputs": { - "outputT": { "dtype": "float32", "shape": [2, 33, 28] }, - "presentStateT": { "dtype": "float32", "shape": [3, 2, 2, 8, 7] } + "output": { "dtype": "float32", "shape": [2, 33, 28] }, + "present_state": { "dtype": "float32", "shape": [3, 2, 2, 8, 7] } }, "preset": "stress", "bench": { @@ -455,7 +449,7 @@ "metrics": [ { "type": "gflops", - "value": "dim(shapes.queryT, 0) * dim(shapes.queryT, 1) * (dim(shapes.valueT, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.queryT, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" + "value": "dim(shapes.query, 0) * dim(shapes.query, 1) * (dim(shapes.value, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.query, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" } ] } @@ -463,29 +457,29 @@ { "name": "bench-linear_geometry_float32_float32_g1_zero", "provenance": { - "notes": "Small-head linear recurrence with shared keys, standard or inverse query grouping, odd value dimensions, independent state dtype, and retained or empty-sequence state windows." + "notes": "Linear update rule, inverse grouping: 2 query heads over 4 key/value heads sharing 2 key heads, key width 6, odd value width 5 and no state window, from zero state." }, "attrs": { "q_num_heads": 2, "kv_num_heads": 4, "update_rule": "linear", "state_window": 0, "scale": 0 }, "inputs": { - "queryT": { + "query": { "dtype": "float32", "shape": [1, 17, 12], "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.31, "scale": 0.05 } }, - "keyT": { + "key": { "dtype": "float32", "shape": [1, 17, 12], "data": { "kind": "fillFloat32", "sinStep": 0.23, "cosStep": 0.31, "scale": 0.05 } }, - "valueT": { + "value": { "dtype": "float32", "shape": [1, 17, 20], "data": { "kind": "fillFloat32", "sinStep": 0.37, "cosStep": 0.31, "scale": 0.05 } } }, "outputs": { - "outputT": { "dtype": "float32", "shape": [1, 17, 20] }, - "presentStateT": { "dtype": "float32", "shape": [1, 4, 6, 5] } + "output": { "dtype": "float32", "shape": [1, 17, 20] }, + "present_state": { "dtype": "float32", "shape": [1, 4, 6, 5] } }, "preset": "stress", "bench": { @@ -493,7 +487,7 @@ "metrics": [ { "type": "gflops", - "value": "dim(shapes.queryT, 0) * dim(shapes.queryT, 1) * (dim(shapes.valueT, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.queryT, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" + "value": "dim(shapes.query, 0) * dim(shapes.query, 1) * (dim(shapes.value, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.query, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" } ] } @@ -501,34 +495,34 @@ { "name": "bench-linear_geometry_float32_float32_g1_state", "provenance": { - "notes": "Small-head linear recurrence with shared keys, standard or inverse query grouping, odd value dimensions, independent state dtype, and retained or empty-sequence state windows." + "notes": "Linear update rule, inverse grouping: 2 query heads over 4 key/value heads sharing 2 key heads, key width 6, odd value width 5 and no state window, from a given past state." }, "attrs": { "q_num_heads": 2, "kv_num_heads": 4, "update_rule": "linear", "state_window": 0, "scale": 0 }, "inputs": { - "queryT": { + "query": { "dtype": "float32", "shape": [1, 17, 12], "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.31, "scale": 0.05 } }, - "keyT": { + "key": { "dtype": "float32", "shape": [1, 17, 12], "data": { "kind": "fillFloat32", "sinStep": 0.23, "cosStep": 0.31, "scale": 0.05 } }, - "valueT": { + "value": { "dtype": "float32", "shape": [1, 17, 20], "data": { "kind": "fillFloat32", "sinStep": 0.37, "cosStep": 0.31, "scale": 0.05 } }, - "pastStateT": { + "past_state": { "dtype": "float32", "shape": [1, 4, 6, 5], "data": { "kind": "fillFloat32", "sinStep": 0.13, "cosStep": 0.31, "scale": 0.05 } } }, "outputs": { - "outputT": { "dtype": "float32", "shape": [1, 17, 20] }, - "presentStateT": { "dtype": "float32", "shape": [1, 4, 6, 5] } + "output": { "dtype": "float32", "shape": [1, 17, 20] }, + "present_state": { "dtype": "float32", "shape": [1, 4, 6, 5] } }, "preset": "stress", "bench": { @@ -536,7 +530,7 @@ "metrics": [ { "type": "gflops", - "value": "dim(shapes.queryT, 0) * dim(shapes.queryT, 1) * (dim(shapes.valueT, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.queryT, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" + "value": "dim(shapes.query, 0) * dim(shapes.query, 1) * (dim(shapes.value, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.query, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" } ] } @@ -544,29 +538,29 @@ { "name": "bench-linear_geometry_float16_float16_g0_zero", "provenance": { - "notes": "Small-head linear recurrence with shared keys, standard or inverse query grouping, odd value dimensions, independent state dtype, and retained or empty-sequence state windows." + "notes": "Linear update rule, standard grouping: 4 query heads over 2 key/value heads sharing 1 key head, key width 8, odd value width 7 and a 3-state window, from zero state." }, "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "linear", "state_window": 3, "scale": 0.375 }, "inputs": { - "queryT": { + "query": { "dtype": "float16", "shape": [2, 33, 32], "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.31, "scale": 0.05 } }, - "keyT": { + "key": { "dtype": "float16", "shape": [2, 33, 8], "data": { "kind": "fillFloat32", "sinStep": 0.23, "cosStep": 0.31, "scale": 0.05 } }, - "valueT": { + "value": { "dtype": "float16", "shape": [2, 33, 14], "data": { "kind": "fillFloat32", "sinStep": 0.37, "cosStep": 0.31, "scale": 0.05 } } }, "outputs": { - "outputT": { "dtype": "float16", "shape": [2, 33, 28] }, - "presentStateT": { "dtype": "float16", "shape": [3, 2, 2, 8, 7] } + "output": { "dtype": "float16", "shape": [2, 33, 28] }, + "present_state": { "dtype": "float16", "shape": [3, 2, 2, 8, 7] } }, "preset": "stress", "bench": { @@ -574,7 +568,7 @@ "metrics": [ { "type": "gflops", - "value": "dim(shapes.queryT, 0) * dim(shapes.queryT, 1) * (dim(shapes.valueT, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.queryT, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" + "value": "dim(shapes.query, 0) * dim(shapes.query, 1) * (dim(shapes.value, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.query, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" } ] } @@ -582,34 +576,34 @@ { "name": "bench-linear_geometry_float16_float16_g0_state", "provenance": { - "notes": "Small-head linear recurrence with shared keys, standard or inverse query grouping, odd value dimensions, independent state dtype, and retained or empty-sequence state windows." + "notes": "Linear update rule, standard grouping: 4 query heads over 2 key/value heads sharing 1 key head, key width 8, odd value width 7 and a 3-state window, from a given past state." }, "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "linear", "state_window": 3, "scale": 0.375 }, "inputs": { - "queryT": { + "query": { "dtype": "float16", "shape": [2, 33, 32], "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.31, "scale": 0.05 } }, - "keyT": { + "key": { "dtype": "float16", "shape": [2, 33, 8], "data": { "kind": "fillFloat32", "sinStep": 0.23, "cosStep": 0.31, "scale": 0.05 } }, - "valueT": { + "value": { "dtype": "float16", "shape": [2, 33, 14], "data": { "kind": "fillFloat32", "sinStep": 0.37, "cosStep": 0.31, "scale": 0.05 } }, - "pastStateT": { + "past_state": { "dtype": "float16", "shape": [3, 2, 2, 8, 7], "data": { "kind": "fillFloat32", "sinStep": 0.13, "cosStep": 0.31, "scale": 0.05 } } }, "outputs": { - "outputT": { "dtype": "float16", "shape": [2, 33, 28] }, - "presentStateT": { "dtype": "float16", "shape": [3, 2, 2, 8, 7] } + "output": { "dtype": "float16", "shape": [2, 33, 28] }, + "present_state": { "dtype": "float16", "shape": [3, 2, 2, 8, 7] } }, "preset": "stress", "bench": { @@ -617,7 +611,7 @@ "metrics": [ { "type": "gflops", - "value": "dim(shapes.queryT, 0) * dim(shapes.queryT, 1) * (dim(shapes.valueT, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.queryT, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" + "value": "dim(shapes.query, 0) * dim(shapes.query, 1) * (dim(shapes.value, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.query, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" } ] } @@ -625,29 +619,29 @@ { "name": "bench-linear_geometry_float16_float16_g1_zero", "provenance": { - "notes": "Small-head linear recurrence with shared keys, standard or inverse query grouping, odd value dimensions, independent state dtype, and retained or empty-sequence state windows." + "notes": "Linear update rule, inverse grouping: 2 query heads over 4 key/value heads sharing 2 key heads, key width 6, odd value width 5 and no state window, from zero state." }, "attrs": { "q_num_heads": 2, "kv_num_heads": 4, "update_rule": "linear", "state_window": 0, "scale": 0 }, "inputs": { - "queryT": { + "query": { "dtype": "float16", "shape": [1, 17, 12], "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.31, "scale": 0.05 } }, - "keyT": { + "key": { "dtype": "float16", "shape": [1, 17, 12], "data": { "kind": "fillFloat32", "sinStep": 0.23, "cosStep": 0.31, "scale": 0.05 } }, - "valueT": { + "value": { "dtype": "float16", "shape": [1, 17, 20], "data": { "kind": "fillFloat32", "sinStep": 0.37, "cosStep": 0.31, "scale": 0.05 } } }, "outputs": { - "outputT": { "dtype": "float16", "shape": [1, 17, 20] }, - "presentStateT": { "dtype": "float16", "shape": [1, 4, 6, 5] } + "output": { "dtype": "float16", "shape": [1, 17, 20] }, + "present_state": { "dtype": "float16", "shape": [1, 4, 6, 5] } }, "preset": "stress", "bench": { @@ -655,7 +649,7 @@ "metrics": [ { "type": "gflops", - "value": "dim(shapes.queryT, 0) * dim(shapes.queryT, 1) * (dim(shapes.valueT, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.queryT, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" + "value": "dim(shapes.query, 0) * dim(shapes.query, 1) * (dim(shapes.value, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.query, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" } ] } @@ -663,34 +657,34 @@ { "name": "bench-linear_geometry_float16_float16_g1_state", "provenance": { - "notes": "Small-head linear recurrence with shared keys, standard or inverse query grouping, odd value dimensions, independent state dtype, and retained or empty-sequence state windows." + "notes": "Linear update rule, inverse grouping: 2 query heads over 4 key/value heads sharing 2 key heads, key width 6, odd value width 5 and no state window, from a given past state." }, "attrs": { "q_num_heads": 2, "kv_num_heads": 4, "update_rule": "linear", "state_window": 0, "scale": 0 }, "inputs": { - "queryT": { + "query": { "dtype": "float16", "shape": [1, 17, 12], "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.31, "scale": 0.05 } }, - "keyT": { + "key": { "dtype": "float16", "shape": [1, 17, 12], "data": { "kind": "fillFloat32", "sinStep": 0.23, "cosStep": 0.31, "scale": 0.05 } }, - "valueT": { + "value": { "dtype": "float16", "shape": [1, 17, 20], "data": { "kind": "fillFloat32", "sinStep": 0.37, "cosStep": 0.31, "scale": 0.05 } }, - "pastStateT": { + "past_state": { "dtype": "float16", "shape": [1, 4, 6, 5], "data": { "kind": "fillFloat32", "sinStep": 0.13, "cosStep": 0.31, "scale": 0.05 } } }, "outputs": { - "outputT": { "dtype": "float16", "shape": [1, 17, 20] }, - "presentStateT": { "dtype": "float16", "shape": [1, 4, 6, 5] } + "output": { "dtype": "float16", "shape": [1, 17, 20] }, + "present_state": { "dtype": "float16", "shape": [1, 4, 6, 5] } }, "preset": "stress", "bench": { @@ -698,7 +692,7 @@ "metrics": [ { "type": "gflops", - "value": "dim(shapes.queryT, 0) * dim(shapes.queryT, 1) * (dim(shapes.valueT, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.queryT, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" + "value": "dim(shapes.query, 0) * dim(shapes.query, 1) * (dim(shapes.value, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.query, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" } ] } @@ -706,29 +700,29 @@ { "name": "bench-linear_geometry_float16_float32_g0_zero", "provenance": { - "notes": "Small-head linear recurrence with shared keys, standard or inverse query grouping, odd value dimensions, independent state dtype, and retained or empty-sequence state windows." + "notes": "Linear update rule, standard grouping: 4 query heads over 2 key/value heads sharing 1 key head, key width 8, odd value width 7 and a 3-state window, from zero state." }, "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "linear", "state_window": 3, "scale": 0.375 }, "inputs": { - "queryT": { + "query": { "dtype": "float16", "shape": [2, 33, 32], "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.31, "scale": 0.05 } }, - "keyT": { + "key": { "dtype": "float16", "shape": [2, 33, 8], "data": { "kind": "fillFloat32", "sinStep": 0.23, "cosStep": 0.31, "scale": 0.05 } }, - "valueT": { + "value": { "dtype": "float16", "shape": [2, 33, 14], "data": { "kind": "fillFloat32", "sinStep": 0.37, "cosStep": 0.31, "scale": 0.05 } } }, "outputs": { - "outputT": { "dtype": "float16", "shape": [2, 33, 28] }, - "presentStateT": { "dtype": "float32", "shape": [3, 2, 2, 8, 7] } + "output": { "dtype": "float16", "shape": [2, 33, 28] }, + "present_state": { "dtype": "float32", "shape": [3, 2, 2, 8, 7] } }, "preset": "stress", "bench": { @@ -736,7 +730,7 @@ "metrics": [ { "type": "gflops", - "value": "dim(shapes.queryT, 0) * dim(shapes.queryT, 1) * (dim(shapes.valueT, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.queryT, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" + "value": "dim(shapes.query, 0) * dim(shapes.query, 1) * (dim(shapes.value, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.query, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" } ] } @@ -744,34 +738,34 @@ { "name": "bench-linear_geometry_float16_float32_g0_state", "provenance": { - "notes": "Small-head linear recurrence with shared keys, standard or inverse query grouping, odd value dimensions, independent state dtype, and retained or empty-sequence state windows." + "notes": "Linear update rule, standard grouping: 4 query heads over 2 key/value heads sharing 1 key head, key width 8, odd value width 7 and a 3-state window, from a given past state." }, "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "linear", "state_window": 3, "scale": 0.375 }, "inputs": { - "queryT": { + "query": { "dtype": "float16", "shape": [2, 33, 32], "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.31, "scale": 0.05 } }, - "keyT": { + "key": { "dtype": "float16", "shape": [2, 33, 8], "data": { "kind": "fillFloat32", "sinStep": 0.23, "cosStep": 0.31, "scale": 0.05 } }, - "valueT": { + "value": { "dtype": "float16", "shape": [2, 33, 14], "data": { "kind": "fillFloat32", "sinStep": 0.37, "cosStep": 0.31, "scale": 0.05 } }, - "pastStateT": { + "past_state": { "dtype": "float32", "shape": [3, 2, 2, 8, 7], "data": { "kind": "fillFloat32", "sinStep": 0.13, "cosStep": 0.31, "scale": 0.05 } } }, "outputs": { - "outputT": { "dtype": "float16", "shape": [2, 33, 28] }, - "presentStateT": { "dtype": "float32", "shape": [3, 2, 2, 8, 7] } + "output": { "dtype": "float16", "shape": [2, 33, 28] }, + "present_state": { "dtype": "float32", "shape": [3, 2, 2, 8, 7] } }, "preset": "stress", "bench": { @@ -779,7 +773,7 @@ "metrics": [ { "type": "gflops", - "value": "dim(shapes.queryT, 0) * dim(shapes.queryT, 1) * (dim(shapes.valueT, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.queryT, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" + "value": "dim(shapes.query, 0) * dim(shapes.query, 1) * (dim(shapes.value, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.query, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" } ] } @@ -787,29 +781,29 @@ { "name": "bench-linear_geometry_float16_float32_g1_zero", "provenance": { - "notes": "Small-head linear recurrence with shared keys, standard or inverse query grouping, odd value dimensions, independent state dtype, and retained or empty-sequence state windows." + "notes": "Linear update rule, inverse grouping: 2 query heads over 4 key/value heads sharing 2 key heads, key width 6, odd value width 5 and no state window, from zero state." }, "attrs": { "q_num_heads": 2, "kv_num_heads": 4, "update_rule": "linear", "state_window": 0, "scale": 0 }, "inputs": { - "queryT": { + "query": { "dtype": "float16", "shape": [1, 17, 12], "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.31, "scale": 0.05 } }, - "keyT": { + "key": { "dtype": "float16", "shape": [1, 17, 12], "data": { "kind": "fillFloat32", "sinStep": 0.23, "cosStep": 0.31, "scale": 0.05 } }, - "valueT": { + "value": { "dtype": "float16", "shape": [1, 17, 20], "data": { "kind": "fillFloat32", "sinStep": 0.37, "cosStep": 0.31, "scale": 0.05 } } }, "outputs": { - "outputT": { "dtype": "float16", "shape": [1, 17, 20] }, - "presentStateT": { "dtype": "float32", "shape": [1, 4, 6, 5] } + "output": { "dtype": "float16", "shape": [1, 17, 20] }, + "present_state": { "dtype": "float32", "shape": [1, 4, 6, 5] } }, "preset": "stress", "bench": { @@ -817,7 +811,7 @@ "metrics": [ { "type": "gflops", - "value": "dim(shapes.queryT, 0) * dim(shapes.queryT, 1) * (dim(shapes.valueT, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.queryT, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" + "value": "dim(shapes.query, 0) * dim(shapes.query, 1) * (dim(shapes.value, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.query, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" } ] } @@ -825,34 +819,34 @@ { "name": "bench-linear_geometry_float16_float32_g1_state", "provenance": { - "notes": "Small-head linear recurrence with shared keys, standard or inverse query grouping, odd value dimensions, independent state dtype, and retained or empty-sequence state windows." + "notes": "Linear update rule, inverse grouping: 2 query heads over 4 key/value heads sharing 2 key heads, key width 6, odd value width 5 and no state window, from a given past state." }, "attrs": { "q_num_heads": 2, "kv_num_heads": 4, "update_rule": "linear", "state_window": 0, "scale": 0 }, "inputs": { - "queryT": { + "query": { "dtype": "float16", "shape": [1, 17, 12], "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.31, "scale": 0.05 } }, - "keyT": { + "key": { "dtype": "float16", "shape": [1, 17, 12], "data": { "kind": "fillFloat32", "sinStep": 0.23, "cosStep": 0.31, "scale": 0.05 } }, - "valueT": { + "value": { "dtype": "float16", "shape": [1, 17, 20], "data": { "kind": "fillFloat32", "sinStep": 0.37, "cosStep": 0.31, "scale": 0.05 } }, - "pastStateT": { + "past_state": { "dtype": "float32", "shape": [1, 4, 6, 5], "data": { "kind": "fillFloat32", "sinStep": 0.13, "cosStep": 0.31, "scale": 0.05 } } }, "outputs": { - "outputT": { "dtype": "float16", "shape": [1, 17, 20] }, - "presentStateT": { "dtype": "float32", "shape": [1, 4, 6, 5] } + "output": { "dtype": "float16", "shape": [1, 17, 20] }, + "present_state": { "dtype": "float32", "shape": [1, 4, 6, 5] } }, "preset": "stress", "bench": { @@ -860,7 +854,7 @@ "metrics": [ { "type": "gflops", - "value": "dim(shapes.queryT, 0) * dim(shapes.queryT, 1) * (dim(shapes.valueT, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.queryT, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" + "value": "dim(shapes.query, 0) * dim(shapes.query, 1) * (dim(shapes.value, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.query, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" } ] } @@ -868,29 +862,29 @@ { "name": "bench-linear_geometry_float32_float16_g0_zero", "provenance": { - "notes": "Small-head linear recurrence with shared keys, standard or inverse query grouping, odd value dimensions, independent state dtype, and retained or empty-sequence state windows." + "notes": "Linear update rule, standard grouping: 4 query heads over 2 key/value heads sharing 1 key head, key width 8, odd value width 7 and a 3-state window, from zero state." }, "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "linear", "state_window": 3, "scale": 0.375 }, "inputs": { - "queryT": { + "query": { "dtype": "float32", "shape": [2, 33, 32], "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.31, "scale": 0.05 } }, - "keyT": { + "key": { "dtype": "float32", "shape": [2, 33, 8], "data": { "kind": "fillFloat32", "sinStep": 0.23, "cosStep": 0.31, "scale": 0.05 } }, - "valueT": { + "value": { "dtype": "float32", "shape": [2, 33, 14], "data": { "kind": "fillFloat32", "sinStep": 0.37, "cosStep": 0.31, "scale": 0.05 } } }, "outputs": { - "outputT": { "dtype": "float32", "shape": [2, 33, 28] }, - "presentStateT": { "dtype": "float16", "shape": [3, 2, 2, 8, 7] } + "output": { "dtype": "float32", "shape": [2, 33, 28] }, + "present_state": { "dtype": "float16", "shape": [3, 2, 2, 8, 7] } }, "preset": "stress", "bench": { @@ -898,7 +892,7 @@ "metrics": [ { "type": "gflops", - "value": "dim(shapes.queryT, 0) * dim(shapes.queryT, 1) * (dim(shapes.valueT, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.queryT, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" + "value": "dim(shapes.query, 0) * dim(shapes.query, 1) * (dim(shapes.value, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.query, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" } ] } @@ -906,34 +900,34 @@ { "name": "bench-linear_geometry_float32_float16_g0_state", "provenance": { - "notes": "Small-head linear recurrence with shared keys, standard or inverse query grouping, odd value dimensions, independent state dtype, and retained or empty-sequence state windows." + "notes": "Linear update rule, standard grouping: 4 query heads over 2 key/value heads sharing 1 key head, key width 8, odd value width 7 and a 3-state window, from a given past state." }, "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "linear", "state_window": 3, "scale": 0.375 }, "inputs": { - "queryT": { + "query": { "dtype": "float32", "shape": [2, 33, 32], "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.31, "scale": 0.05 } }, - "keyT": { + "key": { "dtype": "float32", "shape": [2, 33, 8], "data": { "kind": "fillFloat32", "sinStep": 0.23, "cosStep": 0.31, "scale": 0.05 } }, - "valueT": { + "value": { "dtype": "float32", "shape": [2, 33, 14], "data": { "kind": "fillFloat32", "sinStep": 0.37, "cosStep": 0.31, "scale": 0.05 } }, - "pastStateT": { + "past_state": { "dtype": "float16", "shape": [3, 2, 2, 8, 7], "data": { "kind": "fillFloat32", "sinStep": 0.13, "cosStep": 0.31, "scale": 0.05 } } }, "outputs": { - "outputT": { "dtype": "float32", "shape": [2, 33, 28] }, - "presentStateT": { "dtype": "float16", "shape": [3, 2, 2, 8, 7] } + "output": { "dtype": "float32", "shape": [2, 33, 28] }, + "present_state": { "dtype": "float16", "shape": [3, 2, 2, 8, 7] } }, "preset": "stress", "bench": { @@ -941,7 +935,7 @@ "metrics": [ { "type": "gflops", - "value": "dim(shapes.queryT, 0) * dim(shapes.queryT, 1) * (dim(shapes.valueT, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.queryT, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" + "value": "dim(shapes.query, 0) * dim(shapes.query, 1) * (dim(shapes.value, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.query, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" } ] } @@ -949,29 +943,29 @@ { "name": "bench-linear_geometry_float32_float16_g1_zero", "provenance": { - "notes": "Small-head linear recurrence with shared keys, standard or inverse query grouping, odd value dimensions, independent state dtype, and retained or empty-sequence state windows." + "notes": "Linear update rule, inverse grouping: 2 query heads over 4 key/value heads sharing 2 key heads, key width 6, odd value width 5 and no state window, from zero state." }, "attrs": { "q_num_heads": 2, "kv_num_heads": 4, "update_rule": "linear", "state_window": 0, "scale": 0 }, "inputs": { - "queryT": { + "query": { "dtype": "float32", "shape": [1, 17, 12], "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.31, "scale": 0.05 } }, - "keyT": { + "key": { "dtype": "float32", "shape": [1, 17, 12], "data": { "kind": "fillFloat32", "sinStep": 0.23, "cosStep": 0.31, "scale": 0.05 } }, - "valueT": { + "value": { "dtype": "float32", "shape": [1, 17, 20], "data": { "kind": "fillFloat32", "sinStep": 0.37, "cosStep": 0.31, "scale": 0.05 } } }, "outputs": { - "outputT": { "dtype": "float32", "shape": [1, 17, 20] }, - "presentStateT": { "dtype": "float16", "shape": [1, 4, 6, 5] } + "output": { "dtype": "float32", "shape": [1, 17, 20] }, + "present_state": { "dtype": "float16", "shape": [1, 4, 6, 5] } }, "preset": "stress", "bench": { @@ -979,7 +973,7 @@ "metrics": [ { "type": "gflops", - "value": "dim(shapes.queryT, 0) * dim(shapes.queryT, 1) * (dim(shapes.valueT, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.queryT, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" + "value": "dim(shapes.query, 0) * dim(shapes.query, 1) * (dim(shapes.value, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.query, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" } ] } @@ -987,34 +981,34 @@ { "name": "bench-linear_geometry_float32_float16_g1_state", "provenance": { - "notes": "Small-head linear recurrence with shared keys, standard or inverse query grouping, odd value dimensions, independent state dtype, and retained or empty-sequence state windows." + "notes": "Linear update rule, inverse grouping: 2 query heads over 4 key/value heads sharing 2 key heads, key width 6, odd value width 5 and no state window, from a given past state." }, "attrs": { "q_num_heads": 2, "kv_num_heads": 4, "update_rule": "linear", "state_window": 0, "scale": 0 }, "inputs": { - "queryT": { + "query": { "dtype": "float32", "shape": [1, 17, 12], "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.31, "scale": 0.05 } }, - "keyT": { + "key": { "dtype": "float32", "shape": [1, 17, 12], "data": { "kind": "fillFloat32", "sinStep": 0.23, "cosStep": 0.31, "scale": 0.05 } }, - "valueT": { + "value": { "dtype": "float32", "shape": [1, 17, 20], "data": { "kind": "fillFloat32", "sinStep": 0.37, "cosStep": 0.31, "scale": 0.05 } }, - "pastStateT": { + "past_state": { "dtype": "float16", "shape": [1, 4, 6, 5], "data": { "kind": "fillFloat32", "sinStep": 0.13, "cosStep": 0.31, "scale": 0.05 } } }, "outputs": { - "outputT": { "dtype": "float32", "shape": [1, 17, 20] }, - "presentStateT": { "dtype": "float16", "shape": [1, 4, 6, 5] } + "output": { "dtype": "float32", "shape": [1, 17, 20] }, + "present_state": { "dtype": "float16", "shape": [1, 4, 6, 5] } }, "preset": "stress", "bench": { @@ -1022,10 +1016,2027 @@ "metrics": [ { "type": "gflops", - "value": "dim(shapes.queryT, 0) * dim(shapes.queryT, 1) * (dim(shapes.valueT, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.queryT, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" + "value": "dim(shapes.query, 0) * dim(shapes.query, 1) * (dim(shapes.value, 2) / attrs.kv_num_heads) * (2 * (dim(shapes.query, 2) / attrs.q_num_heads) * (attrs.kv_num_heads + max(attrs.q_num_heads, attrs.kv_num_heads)) + max(attrs.q_num_heads, attrs.kv_num_heads))" } ] } + }, + { + "name": "linear-column-grid-0-b1-s1-dk6-dv17", + "attrs": { "q_num_heads": 1, "kv_num_heads": 1, "update_rule": "gated_delta", "scale": 0.375 }, + "inputs": { + "query": { "dtype": "float32", "shape": [1, 1, 6], "dist": "normal", "seed": 801, "scale": 0.2, "offset": 0 }, + "key": { "dtype": "float32", "shape": [1, 1, 6], "dist": "normal", "seed": 802, "scale": 0.1, "offset": 0 }, + "value": { "dtype": "float32", "shape": [1, 1, 17], "dist": "normal", "seed": 803, "scale": 0.2, "offset": 0 }, + "decay": { "dtype": "float32", "shape": [1, 1, 1], "dist": "normal", "seed": 804, "scale": 0.1, "offset": -0.2 }, + "beta": { "dtype": "float32", "shape": [1, 1, 1], "dist": "normal", "seed": 805, "scale": 0.1, "offset": 0.5 } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [1, 1, 17] }, + "present_state": { "dtype": "float32", "shape": [1, 1, 6, 17] } + }, + "preset": "smoke", + "vars": { "batch": 1, "seq": 1, "qHeads": 1, "kvHeads": 1, "dk": 6, "dv": 17 }, + "bench": { + "primary": true, + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-column-grid-1-b1-s32-dk6-dv17", + "attrs": { "q_num_heads": 2, "kv_num_heads": 1, "update_rule": "gated_delta", "scale": 0.375 }, + "inputs": { + "query": { "dtype": "float32", "shape": [1, 32, 12], "dist": "normal", "seed": 801, "scale": 0.2, "offset": 0 }, + "key": { "dtype": "float32", "shape": [1, 32, 6], "dist": "normal", "seed": 802, "scale": 0.1, "offset": 0 }, + "value": { "dtype": "float32", "shape": [1, 32, 17], "dist": "normal", "seed": 803, "scale": 0.2, "offset": 0 }, + "decay": { + "dtype": "float32", + "shape": [1, 32, 6], + "dist": "normal", + "seed": 804, + "scale": 0.1, + "offset": -0.2 + }, + "beta": { "dtype": "float32", "shape": [1, 32, 1], "dist": "normal", "seed": 805, "scale": 0.1, "offset": 0.5 } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [1, 32, 34] }, + "present_state": { "dtype": "float32", "shape": [1, 1, 6, 17] } + }, + "preset": "smoke", + "vars": { "batch": 1, "seq": 32, "qHeads": 2, "kvHeads": 1, "dk": 6, "dv": 17 }, + "bench": { + "primary": true, + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-column-grid-2-b2-s128-dk6-dv7", + "attrs": { "q_num_heads": 6, "kv_num_heads": 3, "update_rule": "gated_delta", "scale": 0.375 }, + "inputs": { + "query": { "dtype": "float32", "shape": [2, 128, 36], "dist": "normal", "seed": 801, "scale": 0.2, "offset": 0 }, + "key": { "dtype": "float32", "shape": [2, 128, 18], "dist": "normal", "seed": 802, "scale": 0.1, "offset": 0 }, + "value": { "dtype": "float32", "shape": [2, 128, 21], "dist": "normal", "seed": 803, "scale": 0.2, "offset": 0 }, + "decay": { + "dtype": "float32", + "shape": [2, 128, 3], + "dist": "normal", + "seed": 804, + "scale": 0.1, + "offset": -0.2 + }, + "beta": { "dtype": "float32", "shape": [2, 128, 1], "dist": "normal", "seed": 805, "scale": 0.1, "offset": 0.5 }, + "past_state": { + "dtype": "float32", + "shape": [2, 3, 6, 7], + "dist": "normal", + "seed": 806, + "scale": 0.1, + "offset": 0 + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [2, 128, 42] }, + "present_state": { "dtype": "float32", "shape": [2, 3, 6, 7] } + }, + "preset": "smoke", + "vars": { "batch": 2, "seq": 128, "qHeads": 6, "kvHeads": 3, "dk": 6, "dv": 7 }, + "bench": { + "primary": true, + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-column-grid-3-b1-s256-dk16-dv31", + "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "gated_delta", "scale": 0.375 }, + "inputs": { + "query": { "dtype": "float32", "shape": [1, 256, 64], "dist": "normal", "seed": 801, "scale": 0.2, "offset": 0 }, + "key": { "dtype": "float32", "shape": [1, 256, 32], "dist": "normal", "seed": 802, "scale": 0.1, "offset": 0 }, + "value": { "dtype": "float32", "shape": [1, 256, 62], "dist": "normal", "seed": 803, "scale": 0.2, "offset": 0 }, + "decay": { + "dtype": "float32", + "shape": [1, 256, 2], + "dist": "normal", + "seed": 804, + "scale": 0.1, + "offset": -0.2 + }, + "beta": { "dtype": "float32", "shape": [1, 256, 1], "dist": "normal", "seed": 805, "scale": 0.1, "offset": 0.5 }, + "past_state": { + "dtype": "float32", + "shape": [1, 2, 16, 31], + "dist": "normal", + "seed": 806, + "scale": 0.1, + "offset": 0 + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [1, 256, 124] }, + "present_state": { "dtype": "float32", "shape": [1, 2, 16, 31] } + }, + "preset": "smoke", + "vars": { "batch": 1, "seq": 256, "qHeads": 4, "kvHeads": 2, "dk": 16, "dv": 31 }, + "bench": { + "primary": true, + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-column-grid-4-b2-s512-dk16-dv17", + "attrs": { "q_num_heads": 2, "kv_num_heads": 4, "update_rule": "gated_delta", "scale": 0.375 }, + "inputs": { + "query": { "dtype": "float32", "shape": [2, 512, 32], "dist": "normal", "seed": 801, "scale": 0.2, "offset": 0 }, + "key": { "dtype": "float32", "shape": [2, 512, 64], "dist": "normal", "seed": 802, "scale": 0.1, "offset": 0 }, + "value": { "dtype": "float32", "shape": [2, 512, 68], "dist": "normal", "seed": 803, "scale": 0.2, "offset": 0 }, + "decay": { + "dtype": "float32", + "shape": [2, 512, 4], + "dist": "normal", + "seed": 804, + "scale": 0.1, + "offset": -0.2 + }, + "beta": { "dtype": "float32", "shape": [2, 512, 1], "dist": "normal", "seed": 805, "scale": 0.1, "offset": 0.5 }, + "past_state": { + "dtype": "float32", + "shape": [2, 4, 16, 17], + "dist": "normal", + "seed": 806, + "scale": 0.1, + "offset": 0 + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [2, 512, 68] }, + "present_state": { "dtype": "float32", "shape": [2, 4, 16, 17] } + }, + "preset": "stress", + "vars": { "batch": 2, "seq": 512, "qHeads": 2, "kvHeads": 4, "dk": 16, "dv": 17 }, + "bench": { + "primary": true, + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-column-grid-5-b2-s1536-dk6-dv31", + "attrs": { "q_num_heads": 4, "kv_num_heads": 4, "update_rule": "gated_delta", "scale": 0.375 }, + "inputs": { + "query": { + "dtype": "float32", + "shape": [2, 1536, 24], + "dist": "normal", + "seed": 801, + "scale": 0.2, + "offset": 0 + }, + "key": { "dtype": "float32", "shape": [2, 1536, 24], "dist": "normal", "seed": 802, "scale": 0.1, "offset": 0 }, + "value": { + "dtype": "float32", + "shape": [2, 1536, 124], + "dist": "normal", + "seed": 803, + "scale": 0.2, + "offset": 0 + }, + "decay": { + "dtype": "float32", + "shape": [2, 1536, 4], + "dist": "normal", + "seed": 804, + "scale": 0.1, + "offset": -0.2 + }, + "beta": { + "dtype": "float32", + "shape": [2, 1536, 1], + "dist": "normal", + "seed": 805, + "scale": 0.1, + "offset": 0.5 + }, + "past_state": { + "dtype": "float32", + "shape": [2, 4, 6, 31], + "dist": "normal", + "seed": 806, + "scale": 0.1, + "offset": 0 + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [2, 1536, 124] }, + "present_state": { "dtype": "float32", "shape": [2, 4, 6, 31] } + }, + "preset": "stress", + "vars": { "batch": 2, "seq": 1536, "qHeads": 4, "kvHeads": 4, "dk": 6, "dv": 31 }, + "bench": { + "primary": true, + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-column-grid-6-b2-s128-dk6-dv17", + "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "gated_delta", "scale": 0.375, "state_window": 3 }, + "inputs": { + "query": { "dtype": "float32", "shape": [2, 128, 24], "dist": "normal", "seed": 801, "scale": 0.2, "offset": 0 }, + "key": { "dtype": "float32", "shape": [2, 128, 12], "dist": "normal", "seed": 802, "scale": 0.1, "offset": 0 }, + "value": { "dtype": "float32", "shape": [2, 128, 34], "dist": "normal", "seed": 803, "scale": 0.2, "offset": 0 }, + "decay": { + "dtype": "float32", + "shape": [2, 128, 2], + "dist": "normal", + "seed": 804, + "scale": 0.1, + "offset": -0.2 + }, + "beta": { "dtype": "float32", "shape": [2, 128, 1], "dist": "normal", "seed": 805, "scale": 0.1, "offset": 0.5 }, + "past_state": { + "dtype": "float16", + "shape": [3, 2, 2, 6, 17], + "dist": "normal", + "seed": 806, + "scale": 0.1, + "offset": 0 + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [2, 128, 68] }, + "present_state": { "dtype": "float16", "shape": [3, 2, 2, 6, 17] } + }, + "preset": "smoke", + "vars": { "batch": 2, "seq": 128, "qHeads": 4, "kvHeads": 2, "dk": 6, "dv": 17 }, + "bench": { + "primary": true, + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-column-grid-7-b2-s0-dk6-dv17", + "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "gated_delta", "scale": 0.375, "state_window": 3 }, + "inputs": { + "query": { "dtype": "float32", "shape": [2, 0, 24], "dist": "normal", "seed": 801, "scale": 0.2, "offset": 0 }, + "key": { "dtype": "float32", "shape": [2, 0, 12], "dist": "normal", "seed": 802, "scale": 0.1, "offset": 0 }, + "value": { "dtype": "float32", "shape": [2, 0, 34], "dist": "normal", "seed": 803, "scale": 0.2, "offset": 0 }, + "decay": { "dtype": "float32", "shape": [2, 0, 2], "dist": "normal", "seed": 804, "scale": 0.1, "offset": -0.2 }, + "beta": { "dtype": "float32", "shape": [2, 0, 1], "dist": "normal", "seed": 805, "scale": 0.1, "offset": 0.5 }, + "past_state": { + "dtype": "float32", + "shape": [3, 2, 2, 6, 17], + "dist": "normal", + "seed": 806, + "scale": 0.1, + "offset": 0 + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [2, 0, 68] }, + "present_state": { "dtype": "float32", "shape": [3, 2, 2, 6, 17] } + }, + "preset": "smoke", + "vars": { "batch": 2, "seq": 0, "qHeads": 4, "kvHeads": 2, "dk": 6, "dv": 17 }, + "bench": { + "primary": true, + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-column-grid-8-b2-s128-dk6-dv17", + "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "gated_delta", "scale": 0.375 }, + "inputs": { + "query": { "dtype": "float16", "shape": [2, 128, 24], "dist": "normal", "seed": 801, "scale": 0.2, "offset": 0 }, + "key": { "dtype": "float16", "shape": [2, 128, 12], "dist": "normal", "seed": 802, "scale": 0.1, "offset": 0 }, + "value": { "dtype": "float16", "shape": [2, 128, 34], "dist": "normal", "seed": 803, "scale": 0.2, "offset": 0 }, + "decay": { + "dtype": "float16", + "shape": [2, 128, 2], + "dist": "normal", + "seed": 804, + "scale": 0.1, + "offset": -0.2 + }, + "beta": { "dtype": "float16", "shape": [2, 128, 1], "dist": "normal", "seed": 805, "scale": 0.1, "offset": 0.5 }, + "past_state": { + "dtype": "float16", + "shape": [2, 2, 6, 17], + "dist": "normal", + "seed": 806, + "scale": 0.1, + "offset": 0 + } + }, + "outputs": { + "output": { "dtype": "float16", "shape": [2, 128, 68] }, + "present_state": { "dtype": "float16", "shape": [2, 2, 6, 17] } + }, + "preset": "smoke", + "vars": { "batch": 2, "seq": 128, "qHeads": 4, "kvHeads": 2, "dk": 6, "dv": 17 }, + "bench": { + "primary": true, + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-column-grid-9-b2-s128-dk17-dv17", + "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "gated_delta", "scale": 0.375 }, + "inputs": { + "query": { "dtype": "float32", "shape": [2, 128, 68], "dist": "normal", "seed": 801, "scale": 0.2, "offset": 0 }, + "key": { "dtype": "float32", "shape": [2, 128, 34], "dist": "normal", "seed": 802, "scale": 0.1, "offset": 0 }, + "value": { "dtype": "float32", "shape": [2, 128, 34], "dist": "normal", "seed": 803, "scale": 0.2, "offset": 0 }, + "decay": { + "dtype": "float32", + "shape": [2, 128, 2], + "dist": "normal", + "seed": 804, + "scale": 0.1, + "offset": -0.2 + }, + "beta": { "dtype": "float32", "shape": [2, 128, 1], "dist": "normal", "seed": 805, "scale": 0.1, "offset": 0.5 }, + "past_state": { + "dtype": "float32", + "shape": [2, 2, 17, 17], + "dist": "normal", + "seed": 806, + "scale": 0.1, + "offset": 0 + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [2, 128, 68] }, + "present_state": { "dtype": "float32", "shape": [2, 2, 17, 17] } + }, + "preset": "smoke", + "vars": { "batch": 2, "seq": 128, "qHeads": 4, "kvHeads": 2, "dk": 17, "dv": 17 }, + "bench": { + "primary": true, + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-column-population-b9-h4-dv7", + "attrs": { "q_num_heads": 4, "kv_num_heads": 4, "update_rule": "gated_delta", "scale": 0.375 }, + "inputs": { + "query": { "dtype": "float32", "shape": [9, 128, 24], "dist": "normal", "seed": 801, "scale": 0.2, "offset": 0 }, + "key": { "dtype": "float32", "shape": [9, 128, 24], "dist": "normal", "seed": 802, "scale": 0.1, "offset": 0 }, + "value": { "dtype": "float32", "shape": [9, 128, 28], "dist": "normal", "seed": 803, "scale": 0.2, "offset": 0 }, + "decay": { + "dtype": "float32", + "shape": [9, 128, 4], + "dist": "normal", + "seed": 804, + "scale": 0.1, + "offset": -0.2 + }, + "beta": { "dtype": "float32", "shape": [9, 128, 1], "dist": "normal", "seed": 805, "scale": 0.1, "offset": 0.5 }, + "past_state": { + "dtype": "float32", + "shape": [9, 4, 6, 7], + "dist": "normal", + "seed": 806, + "scale": 0.1, + "offset": 0 + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [9, 128, 28] }, + "present_state": { "dtype": "float32", "shape": [9, 4, 6, 7] } + }, + "preset": "smoke", + "vars": { "batch": 9, "seq": 128, "qHeads": 4, "kvHeads": 4, "dk": 6, "dv": 7 }, + "bench": { + "primary": true, + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-column-population-b10-h4-dv7", + "attrs": { "q_num_heads": 4, "kv_num_heads": 4, "update_rule": "gated_delta", "scale": 0.375 }, + "inputs": { + "query": { + "dtype": "float32", + "shape": [10, 128, 24], + "dist": "normal", + "seed": 801, + "scale": 0.2, + "offset": 0 + }, + "key": { "dtype": "float32", "shape": [10, 128, 24], "dist": "normal", "seed": 802, "scale": 0.1, "offset": 0 }, + "value": { + "dtype": "float32", + "shape": [10, 128, 28], + "dist": "normal", + "seed": 803, + "scale": 0.2, + "offset": 0 + }, + "decay": { + "dtype": "float32", + "shape": [10, 128, 4], + "dist": "normal", + "seed": 804, + "scale": 0.1, + "offset": -0.2 + }, + "beta": { + "dtype": "float32", + "shape": [10, 128, 1], + "dist": "normal", + "seed": 805, + "scale": 0.1, + "offset": 0.5 + }, + "past_state": { + "dtype": "float32", + "shape": [10, 4, 6, 7], + "dist": "normal", + "seed": 806, + "scale": 0.1, + "offset": 0 + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [10, 128, 28] }, + "present_state": { "dtype": "float32", "shape": [10, 4, 6, 7] } + }, + "preset": "smoke", + "vars": { "batch": 10, "seq": 128, "qHeads": 4, "kvHeads": 4, "dk": 6, "dv": 7 }, + "bench": { + "primary": true, + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-column-population-b4-h4-dv15", + "attrs": { "q_num_heads": 4, "kv_num_heads": 4, "update_rule": "gated_delta", "scale": 0.375 }, + "inputs": { + "query": { "dtype": "float32", "shape": [4, 128, 24], "dist": "normal", "seed": 801, "scale": 0.2, "offset": 0 }, + "key": { "dtype": "float32", "shape": [4, 128, 24], "dist": "normal", "seed": 802, "scale": 0.1, "offset": 0 }, + "value": { "dtype": "float32", "shape": [4, 128, 60], "dist": "normal", "seed": 803, "scale": 0.2, "offset": 0 }, + "decay": { + "dtype": "float32", + "shape": [4, 128, 4], + "dist": "normal", + "seed": 804, + "scale": 0.1, + "offset": -0.2 + }, + "beta": { "dtype": "float32", "shape": [4, 128, 1], "dist": "normal", "seed": 805, "scale": 0.1, "offset": 0.5 }, + "past_state": { + "dtype": "float32", + "shape": [4, 4, 6, 15], + "dist": "normal", + "seed": 806, + "scale": 0.1, + "offset": 0 + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [4, 128, 60] }, + "present_state": { "dtype": "float32", "shape": [4, 4, 6, 15] } + }, + "preset": "smoke", + "vars": { "batch": 4, "seq": 128, "qHeads": 4, "kvHeads": 4, "dk": 6, "dv": 15 }, + "bench": { + "primary": true, + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-column-population-b5-h4-dv15", + "attrs": { "q_num_heads": 4, "kv_num_heads": 4, "update_rule": "gated_delta", "scale": 0.375 }, + "inputs": { + "query": { "dtype": "float32", "shape": [5, 128, 24], "dist": "normal", "seed": 801, "scale": 0.2, "offset": 0 }, + "key": { "dtype": "float32", "shape": [5, 128, 24], "dist": "normal", "seed": 802, "scale": 0.1, "offset": 0 }, + "value": { "dtype": "float32", "shape": [5, 128, 60], "dist": "normal", "seed": 803, "scale": 0.2, "offset": 0 }, + "decay": { + "dtype": "float32", + "shape": [5, 128, 4], + "dist": "normal", + "seed": 804, + "scale": 0.1, + "offset": -0.2 + }, + "beta": { "dtype": "float32", "shape": [5, 128, 1], "dist": "normal", "seed": 805, "scale": 0.1, "offset": 0.5 }, + "past_state": { + "dtype": "float32", + "shape": [5, 4, 6, 15], + "dist": "normal", + "seed": 806, + "scale": 0.1, + "offset": 0 + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [5, 128, 60] }, + "present_state": { "dtype": "float32", "shape": [5, 4, 6, 15] } + }, + "preset": "smoke", + "vars": { "batch": 5, "seq": 128, "qHeads": 4, "kvHeads": 4, "dk": 6, "dv": 15 }, + "bench": { + "primary": true, + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-prefill-boundary-0-b1-s1-dk128-dv128-h16-q32-float32-float32", + "provenance": { + "notes": "Sequence and reduction-width boundaries exercise the recurrent schedule with grouped heads, value tails, decay broadcasting, and independent activation/state precision." + }, + "attrs": { "q_num_heads": 32, "kv_num_heads": 16, "update_rule": "gated_delta", "scale": 0.08838834764831843 }, + "inputs": { + "query": { + "dtype": "float32", + "shape": [1, 1, 4096], + "data": { "kind": "fillFloat32", "sinStep": 0.017, "cosStep": 0.023, "scale": 0.03 } + }, + "key": { + "dtype": "float32", + "shape": [1, 1, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.029, "scale": 0.03 } + }, + "value": { + "dtype": "float32", + "shape": [1, 1, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.009, "cosStep": 0.043, "scale": 0.03 } + }, + "past_state": { + "dtype": "float32", + "shape": [1, 16, 128, 128], + "data": { "kind": "fillFloat32", "sinStep": 0.019, "cosStep": 0.037, "scale": 0.01 } + }, + "decay": { + "dtype": "float32", + "shape": [1, 1, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.029, "cosStep": 0.053, "scale": 0.08, "offset": -0.2 } + }, + "beta": { + "dtype": "float32", + "shape": [1, 1, 16], + "data": { "kind": "fillFloat32", "sinStep": 0.037, "cosStep": 0.019, "scale": 0.08, "offset": 0.5 } + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [1, 1, 4096] }, + "present_state": { "dtype": "float32", "shape": [1, 16, 128, 128] } + } + }, + { + "name": "linear-prefill-boundary-1-b1-s2-dk128-dv128-h16-q32-float32-float32", + "provenance": { + "notes": "Sequence and reduction-width boundaries exercise the recurrent schedule with grouped heads, value tails, decay broadcasting, and independent activation/state precision." + }, + "attrs": { "q_num_heads": 32, "kv_num_heads": 16, "update_rule": "gated_delta", "scale": 0.08838834764831843 }, + "inputs": { + "query": { + "dtype": "float32", + "shape": [1, 2, 4096], + "data": { "kind": "fillFloat32", "sinStep": 0.017, "cosStep": 0.023, "scale": 0.03 } + }, + "key": { + "dtype": "float32", + "shape": [1, 2, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.029, "scale": 0.03 } + }, + "value": { + "dtype": "float32", + "shape": [1, 2, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.009, "cosStep": 0.043, "scale": 0.03 } + }, + "past_state": { + "dtype": "float32", + "shape": [1, 16, 128, 128], + "data": { "kind": "fillFloat32", "sinStep": 0.019, "cosStep": 0.037, "scale": 0.01 } + }, + "decay": { + "dtype": "float32", + "shape": [1, 2, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.029, "cosStep": 0.053, "scale": 0.08, "offset": -0.2 } + }, + "beta": { + "dtype": "float32", + "shape": [1, 2, 16], + "data": { "kind": "fillFloat32", "sinStep": 0.037, "cosStep": 0.019, "scale": 0.08, "offset": 0.5 } + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [1, 2, 4096] }, + "present_state": { "dtype": "float32", "shape": [1, 16, 128, 128] } + } + }, + { + "name": "linear-prefill-boundary-2-b1-s16-dk128-dv128-h16-q32-float32-float32", + "provenance": { + "notes": "Sequence and reduction-width boundaries exercise the recurrent schedule with grouped heads, value tails, decay broadcasting, and independent activation/state precision." + }, + "attrs": { "q_num_heads": 32, "kv_num_heads": 16, "update_rule": "gated_delta", "scale": 0.08838834764831843 }, + "inputs": { + "query": { + "dtype": "float32", + "shape": [1, 16, 4096], + "data": { "kind": "fillFloat32", "sinStep": 0.017, "cosStep": 0.023, "scale": 0.03 } + }, + "key": { + "dtype": "float32", + "shape": [1, 16, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.029, "scale": 0.03 } + }, + "value": { + "dtype": "float32", + "shape": [1, 16, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.009, "cosStep": 0.043, "scale": 0.03 } + }, + "past_state": { + "dtype": "float32", + "shape": [1, 16, 128, 128], + "data": { "kind": "fillFloat32", "sinStep": 0.019, "cosStep": 0.037, "scale": 0.01 } + }, + "decay": { + "dtype": "float32", + "shape": [1, 16, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.029, "cosStep": 0.053, "scale": 0.08, "offset": -0.2 } + }, + "beta": { + "dtype": "float32", + "shape": [1, 16, 16], + "data": { "kind": "fillFloat32", "sinStep": 0.037, "cosStep": 0.019, "scale": 0.08, "offset": 0.5 } + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [1, 16, 4096] }, + "present_state": { "dtype": "float32", "shape": [1, 16, 128, 128] } + } + }, + { + "name": "linear-prefill-boundary-3-b1-s31-dk128-dv128-h16-q32-float32-float32", + "provenance": { + "notes": "Sequence and reduction-width boundaries exercise the recurrent schedule with grouped heads, value tails, decay broadcasting, and independent activation/state precision." + }, + "attrs": { "q_num_heads": 32, "kv_num_heads": 16, "update_rule": "gated_delta", "scale": 0.08838834764831843 }, + "inputs": { + "query": { + "dtype": "float32", + "shape": [1, 31, 4096], + "data": { "kind": "fillFloat32", "sinStep": 0.017, "cosStep": 0.023, "scale": 0.03 } + }, + "key": { + "dtype": "float32", + "shape": [1, 31, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.029, "scale": 0.03 } + }, + "value": { + "dtype": "float32", + "shape": [1, 31, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.009, "cosStep": 0.043, "scale": 0.03 } + }, + "past_state": { + "dtype": "float32", + "shape": [1, 16, 128, 128], + "data": { "kind": "fillFloat32", "sinStep": 0.019, "cosStep": 0.037, "scale": 0.01 } + }, + "decay": { + "dtype": "float32", + "shape": [1, 31, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.029, "cosStep": 0.053, "scale": 0.08, "offset": -0.2 } + }, + "beta": { + "dtype": "float32", + "shape": [1, 31, 16], + "data": { "kind": "fillFloat32", "sinStep": 0.037, "cosStep": 0.019, "scale": 0.08, "offset": 0.5 } + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [1, 31, 4096] }, + "present_state": { "dtype": "float32", "shape": [1, 16, 128, 128] } + } + }, + { + "name": "linear-prefill-boundary-4-b1-s32-dk128-dv128-h16-q32-float32-float32", + "provenance": { + "notes": "Sequence and reduction-width boundaries exercise the recurrent schedule with grouped heads, value tails, decay broadcasting, and independent activation/state precision." + }, + "attrs": { "q_num_heads": 32, "kv_num_heads": 16, "update_rule": "gated_delta", "scale": 0.08838834764831843 }, + "inputs": { + "query": { + "dtype": "float32", + "shape": [1, 32, 4096], + "data": { "kind": "fillFloat32", "sinStep": 0.017, "cosStep": 0.023, "scale": 0.03 } + }, + "key": { + "dtype": "float32", + "shape": [1, 32, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.029, "scale": 0.03 } + }, + "value": { + "dtype": "float32", + "shape": [1, 32, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.009, "cosStep": 0.043, "scale": 0.03 } + }, + "past_state": { + "dtype": "float32", + "shape": [1, 16, 128, 128], + "data": { "kind": "fillFloat32", "sinStep": 0.019, "cosStep": 0.037, "scale": 0.01 } + }, + "decay": { + "dtype": "float32", + "shape": [1, 32, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.029, "cosStep": 0.053, "scale": 0.08, "offset": -0.2 } + }, + "beta": { + "dtype": "float32", + "shape": [1, 32, 16], + "data": { "kind": "fillFloat32", "sinStep": 0.037, "cosStep": 0.019, "scale": 0.08, "offset": 0.5 } + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [1, 32, 4096] }, + "present_state": { "dtype": "float32", "shape": [1, 16, 128, 128] } + } + }, + { + "name": "linear-prefill-boundary-5-b1-s33-dk128-dv128-h16-q32-float32-float32", + "provenance": { + "notes": "Sequence and reduction-width boundaries exercise the recurrent schedule with grouped heads, value tails, decay broadcasting, and independent activation/state precision." + }, + "attrs": { "q_num_heads": 32, "kv_num_heads": 16, "update_rule": "gated_delta", "scale": 0.08838834764831843 }, + "inputs": { + "query": { + "dtype": "float32", + "shape": [1, 33, 4096], + "data": { "kind": "fillFloat32", "sinStep": 0.017, "cosStep": 0.023, "scale": 0.03 } + }, + "key": { + "dtype": "float32", + "shape": [1, 33, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.029, "scale": 0.03 } + }, + "value": { + "dtype": "float32", + "shape": [1, 33, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.009, "cosStep": 0.043, "scale": 0.03 } + }, + "past_state": { + "dtype": "float32", + "shape": [1, 16, 128, 128], + "data": { "kind": "fillFloat32", "sinStep": 0.019, "cosStep": 0.037, "scale": 0.01 } + }, + "decay": { + "dtype": "float32", + "shape": [1, 33, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.029, "cosStep": 0.053, "scale": 0.08, "offset": -0.2 } + }, + "beta": { + "dtype": "float32", + "shape": [1, 33, 16], + "data": { "kind": "fillFloat32", "sinStep": 0.037, "cosStep": 0.019, "scale": 0.08, "offset": 0.5 } + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [1, 33, 4096] }, + "present_state": { "dtype": "float32", "shape": [1, 16, 128, 128] } + } + }, + { + "name": "linear-prefill-boundary-6-b2-s257-dk96-dv31-h4-q12-float32-float32", + "provenance": { + "notes": "Sequence and reduction-width boundaries exercise the recurrent schedule with grouped heads, value tails, decay broadcasting, and independent activation/state precision." + }, + "attrs": { "q_num_heads": 12, "kv_num_heads": 4, "update_rule": "gated_delta", "scale": 0.10206207261596577 }, + "inputs": { + "query": { + "dtype": "float32", + "shape": [2, 257, 1152], + "data": { "kind": "fillFloat32", "sinStep": 0.017, "cosStep": 0.023, "scale": 0.03 } + }, + "key": { + "dtype": "float32", + "shape": [2, 257, 384], + "data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.029, "scale": 0.03 } + }, + "value": { + "dtype": "float32", + "shape": [2, 257, 124], + "data": { "kind": "fillFloat32", "sinStep": 0.009, "cosStep": 0.043, "scale": 0.03 } + }, + "past_state": { + "dtype": "float32", + "shape": [2, 4, 96, 31], + "data": { "kind": "fillFloat32", "sinStep": 0.019, "cosStep": 0.037, "scale": 0.01 } + }, + "decay": { + "dtype": "float32", + "shape": [2, 257, 384], + "data": { "kind": "fillFloat32", "sinStep": 0.029, "cosStep": 0.053, "scale": 0.08, "offset": -0.2 } + }, + "beta": { + "dtype": "float32", + "shape": [2, 257, 4], + "data": { "kind": "fillFloat32", "sinStep": 0.037, "cosStep": 0.019, "scale": 0.08, "offset": 0.5 } + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [2, 257, 372] }, + "present_state": { "dtype": "float32", "shape": [2, 4, 96, 31] } + } + }, + { + "name": "linear-prefill-boundary-7-b1-s129-dk80-dv129-h4-q4-float32-float32", + "provenance": { + "notes": "Sequence and reduction-width boundaries exercise the recurrent schedule with grouped heads, value tails, decay broadcasting, and independent activation/state precision." + }, + "attrs": { "q_num_heads": 4, "kv_num_heads": 4, "update_rule": "gated_delta", "scale": 0.11180339887498948 }, + "inputs": { + "query": { + "dtype": "float32", + "shape": [1, 129, 320], + "data": { "kind": "fillFloat32", "sinStep": 0.017, "cosStep": 0.023, "scale": 0.03 } + }, + "key": { + "dtype": "float32", + "shape": [1, 129, 320], + "data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.029, "scale": 0.03 } + }, + "value": { + "dtype": "float32", + "shape": [1, 129, 516], + "data": { "kind": "fillFloat32", "sinStep": 0.009, "cosStep": 0.043, "scale": 0.03 } + }, + "past_state": { + "dtype": "float32", + "shape": [1, 4, 80, 129], + "data": { "kind": "fillFloat32", "sinStep": 0.019, "cosStep": 0.037, "scale": 0.01 } + }, + "decay": { + "dtype": "float32", + "shape": [1, 129, 4], + "data": { "kind": "fillFloat32", "sinStep": 0.029, "cosStep": 0.053, "scale": 0.08, "offset": -0.2 } + }, + "beta": { + "dtype": "float32", + "shape": [1, 129, 4], + "data": { "kind": "fillFloat32", "sinStep": 0.037, "cosStep": 0.019, "scale": 0.08, "offset": 0.5 } + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [1, 129, 516] }, + "present_state": { "dtype": "float32", "shape": [1, 4, 80, 129] } + } + }, + { + "name": "linear-prefill-boundary-8-b2-s129-dk64-dv65-h8-q16-float32-float32", + "provenance": { + "notes": "Sequence and reduction-width boundaries exercise the recurrent schedule with grouped heads, value tails, decay broadcasting, and independent activation/state precision." + }, + "attrs": { "q_num_heads": 16, "kv_num_heads": 8, "update_rule": "gated_delta", "scale": 0.125 }, + "inputs": { + "query": { + "dtype": "float32", + "shape": [2, 129, 1024], + "data": { "kind": "fillFloat32", "sinStep": 0.017, "cosStep": 0.023, "scale": 0.03 } + }, + "key": { + "dtype": "float32", + "shape": [2, 129, 512], + "data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.029, "scale": 0.03 } + }, + "value": { + "dtype": "float32", + "shape": [2, 129, 520], + "data": { "kind": "fillFloat32", "sinStep": 0.009, "cosStep": 0.043, "scale": 0.03 } + }, + "past_state": { + "dtype": "float32", + "shape": [2, 8, 64, 65], + "data": { "kind": "fillFloat32", "sinStep": 0.019, "cosStep": 0.037, "scale": 0.01 } + }, + "decay": { + "dtype": "float32", + "shape": [2, 129, 8], + "data": { "kind": "fillFloat32", "sinStep": 0.029, "cosStep": 0.053, "scale": 0.08, "offset": -0.2 } + }, + "beta": { + "dtype": "float32", + "shape": [2, 129, 8], + "data": { "kind": "fillFloat32", "sinStep": 0.037, "cosStep": 0.019, "scale": 0.08, "offset": 0.5 } + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [2, 129, 1040] }, + "present_state": { "dtype": "float32", "shape": [2, 8, 64, 65] } + } + }, + { + "name": "linear-prefill-boundary-9-b1-s129-dk128-dv7-h1-q3-float32-float32", + "provenance": { + "notes": "Sequence and reduction-width boundaries exercise the recurrent schedule with grouped heads, value tails, decay broadcasting, and independent activation/state precision." + }, + "attrs": { "q_num_heads": 3, "kv_num_heads": 1, "update_rule": "gated_delta", "scale": 0.08838834764831843 }, + "inputs": { + "query": { + "dtype": "float32", + "shape": [1, 129, 384], + "data": { "kind": "fillFloat32", "sinStep": 0.017, "cosStep": 0.023, "scale": 0.03 } + }, + "key": { + "dtype": "float32", + "shape": [1, 129, 128], + "data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.029, "scale": 0.03 } + }, + "value": { + "dtype": "float32", + "shape": [1, 129, 7], + "data": { "kind": "fillFloat32", "sinStep": 0.009, "cosStep": 0.043, "scale": 0.03 } + }, + "past_state": { + "dtype": "float32", + "shape": [1, 1, 128, 7], + "data": { "kind": "fillFloat32", "sinStep": 0.019, "cosStep": 0.037, "scale": 0.01 } + }, + "decay": { + "dtype": "float32", + "shape": [1, 129, 128], + "data": { "kind": "fillFloat32", "sinStep": 0.029, "cosStep": 0.053, "scale": 0.08, "offset": -0.2 } + }, + "beta": { + "dtype": "float32", + "shape": [1, 129, 1], + "data": { "kind": "fillFloat32", "sinStep": 0.037, "cosStep": 0.019, "scale": 0.08, "offset": 0.5 } + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [1, 129, 21] }, + "present_state": { "dtype": "float32", "shape": [1, 1, 128, 7] } + } + }, + { + "name": "linear-prefill-boundary-10-b1-s257-dk128-dv257-h1-q3-float32-float32", + "provenance": { + "notes": "Sequence and reduction-width boundaries exercise the recurrent schedule with grouped heads, value tails, decay broadcasting, and independent activation/state precision." + }, + "attrs": { "q_num_heads": 3, "kv_num_heads": 1, "update_rule": "gated_delta", "scale": 0.08838834764831843 }, + "inputs": { + "query": { + "dtype": "float32", + "shape": [1, 257, 384], + "data": { "kind": "fillFloat32", "sinStep": 0.017, "cosStep": 0.023, "scale": 0.03 } + }, + "key": { + "dtype": "float32", + "shape": [1, 257, 128], + "data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.029, "scale": 0.03 } + }, + "value": { + "dtype": "float32", + "shape": [1, 257, 257], + "data": { "kind": "fillFloat32", "sinStep": 0.009, "cosStep": 0.043, "scale": 0.03 } + }, + "past_state": { + "dtype": "float32", + "shape": [1, 1, 128, 257], + "data": { "kind": "fillFloat32", "sinStep": 0.019, "cosStep": 0.037, "scale": 0.01 } + }, + "decay": { + "dtype": "float32", + "shape": [1, 257, 128], + "data": { "kind": "fillFloat32", "sinStep": 0.029, "cosStep": 0.053, "scale": 0.08, "offset": -0.2 } + }, + "beta": { + "dtype": "float32", + "shape": [1, 257, 1], + "data": { "kind": "fillFloat32", "sinStep": 0.037, "cosStep": 0.019, "scale": 0.08, "offset": 0.5 } + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [1, 257, 771] }, + "present_state": { "dtype": "float32", "shape": [1, 1, 128, 257] } + } + }, + { + "name": "linear-prefill-boundary-11-b1-s129-dk128-dv128-h16-q32-float16-float32", + "provenance": { + "notes": "Sequence and reduction-width boundaries exercise the recurrent schedule with grouped heads, value tails, decay broadcasting, and independent activation/state precision." + }, + "attrs": { "q_num_heads": 32, "kv_num_heads": 16, "update_rule": "gated_delta", "scale": 0.08838834764831843 }, + "inputs": { + "query": { + "dtype": "float16", + "shape": [1, 129, 4096], + "data": { "kind": "fillFloat32", "sinStep": 0.017, "cosStep": 0.023, "scale": 0.03 } + }, + "key": { + "dtype": "float16", + "shape": [1, 129, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.029, "scale": 0.03 } + }, + "value": { + "dtype": "float16", + "shape": [1, 129, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.009, "cosStep": 0.043, "scale": 0.03 } + }, + "past_state": { + "dtype": "float32", + "shape": [1, 16, 128, 128], + "data": { "kind": "fillFloat32", "sinStep": 0.019, "cosStep": 0.037, "scale": 0.01 } + }, + "decay": { + "dtype": "float16", + "shape": [1, 129, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.029, "cosStep": 0.053, "scale": 0.08, "offset": -0.2 } + }, + "beta": { + "dtype": "float16", + "shape": [1, 129, 16], + "data": { "kind": "fillFloat32", "sinStep": 0.037, "cosStep": 0.019, "scale": 0.08, "offset": 0.5 } + } + }, + "outputs": { + "output": { "dtype": "float16", "shape": [1, 129, 4096] }, + "present_state": { "dtype": "float32", "shape": [1, 16, 128, 128] } + } + }, + { + "name": "linear-prefill-boundary-12-b1-s129-dk128-dv128-h16-q32-float32-float16", + "provenance": { + "notes": "Sequence and reduction-width boundaries exercise the recurrent schedule with grouped heads, value tails, decay broadcasting, and independent activation/state precision." + }, + "attrs": { "q_num_heads": 32, "kv_num_heads": 16, "update_rule": "gated_delta", "scale": 0.08838834764831843 }, + "inputs": { + "query": { + "dtype": "float32", + "shape": [1, 129, 4096], + "data": { "kind": "fillFloat32", "sinStep": 0.017, "cosStep": 0.023, "scale": 0.03 } + }, + "key": { + "dtype": "float32", + "shape": [1, 129, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.013, "cosStep": 0.029, "scale": 0.03 } + }, + "value": { + "dtype": "float32", + "shape": [1, 129, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.009, "cosStep": 0.043, "scale": 0.03 } + }, + "past_state": { + "dtype": "float16", + "shape": [1, 16, 128, 128], + "data": { "kind": "fillFloat32", "sinStep": 0.019, "cosStep": 0.037, "scale": 0.01 } + }, + "decay": { + "dtype": "float32", + "shape": [1, 129, 2048], + "data": { "kind": "fillFloat32", "sinStep": 0.029, "cosStep": 0.053, "scale": 0.08, "offset": -0.2 } + }, + "beta": { + "dtype": "float32", + "shape": [1, 129, 16], + "data": { "kind": "fillFloat32", "sinStep": 0.037, "cosStep": 0.019, "scale": 0.08, "offset": 0.5 } + } + }, + "outputs": { + "output": { "dtype": "float32", "shape": [1, 129, 4096] }, + "present_state": { "dtype": "float16", "shape": [1, 16, 128, 128] } + } + }, + { + "name": "linear-window-f32-b2-s4-w3-dk128-dv128-kv2-q2", + "preset": "stress", + "provenance": { + "notes": "Rollback states retain the final window of recurrent updates. The sequence reaches the complete rollback window." + }, + "vars": { "batch": 2, "seq": 4, "qHeads": 2, "kvHeads": 2, "dk": 128, "dv": 128 }, + "attrs": { + "q_num_heads": 2, + "kv_num_heads": 2, + "update_rule": "gated_delta", + "scale": 0.08838834764831843, + "state_window": 3 + }, + "inputs": { + "query": { "shape": [2, 4, 256], "dtype": "float32", "dist": "normal", "seed": 8200, "scale": 0.3 }, + "key": { + "shape": [2, 4, 128], + "dtype": "float32", + "dist": "uniform", + "seed": 8201, + "scale": 0.08838834764831843 + }, + "value": { "shape": [2, 4, 256], "dtype": "float32", "dist": "normal", "seed": 8202, "scale": 0.3 }, + "past_state": { "shape": [3, 2, 2, 128, 128], "dtype": "float32", "dist": "normal", "seed": 8203, "scale": 0.1 }, + "decay": { + "shape": [2, 4, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8204, + "signed": false, + "offset": -0.10536051565782628, + "scale": 0.10536051565782628 + }, + "beta": { + "shape": [2, 4, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8205, + "signed": false, + "offset": 0.1, + "scale": 0.8 + } + }, + "outputs": { + "output": { "shape": [2, 4, 256], "dtype": "float32" }, + "present_state": { "shape": [3, 2, 2, 128, 128], "dtype": "float32" } + }, + "bench": { + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-window-f32-b1-s2-w5-dk128-dv128-kv2-q2", + "preset": "stress", + "provenance": { + "notes": "Rollback states retain the final window of recurrent updates. The window exceeds the sequence, leaving leading state slots zero." + }, + "vars": { "batch": 1, "seq": 2, "qHeads": 2, "kvHeads": 2, "dk": 128, "dv": 128 }, + "attrs": { + "q_num_heads": 2, + "kv_num_heads": 2, + "update_rule": "gated_delta", + "scale": 0.08838834764831843, + "state_window": 5 + }, + "inputs": { + "query": { "shape": [1, 2, 256], "dtype": "float32", "dist": "normal", "seed": 8200, "scale": 0.3 }, + "key": { + "shape": [1, 2, 128], + "dtype": "float32", + "dist": "uniform", + "seed": 8201, + "scale": 0.08838834764831843 + }, + "value": { "shape": [1, 2, 256], "dtype": "float32", "dist": "normal", "seed": 8202, "scale": 0.3 }, + "past_state": { "shape": [5, 1, 2, 128, 128], "dtype": "float32", "dist": "normal", "seed": 8203, "scale": 0.1 }, + "decay": { + "shape": [1, 2, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8204, + "signed": false, + "offset": -0.10536051565782628, + "scale": 0.10536051565782628 + }, + "beta": { + "shape": [1, 2, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8205, + "signed": false, + "offset": 0.1, + "scale": 0.8 + } + }, + "outputs": { + "output": { "shape": [1, 2, 256], "dtype": "float32" }, + "present_state": { "shape": [5, 1, 2, 128, 128], "dtype": "float32" } + }, + "bench": { + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-window-f32-b1-s129-w3-dk128-dv17-kv2-q6", + "preset": "stress", + "provenance": { + "notes": "Rollback states retain the final window of recurrent updates. The sequence reaches the complete rollback window." + }, + "vars": { "batch": 1, "seq": 129, "qHeads": 6, "kvHeads": 2, "dk": 128, "dv": 17 }, + "attrs": { + "q_num_heads": 6, + "kv_num_heads": 2, + "update_rule": "gated_delta", + "scale": 0.08838834764831843, + "state_window": 3 + }, + "inputs": { + "query": { "shape": [1, 129, 768], "dtype": "float32", "dist": "normal", "seed": 8200, "scale": 0.3 }, + "key": { + "shape": [1, 129, 128], + "dtype": "float32", + "dist": "uniform", + "seed": 8201, + "scale": 0.08838834764831843 + }, + "value": { "shape": [1, 129, 34], "dtype": "float32", "dist": "normal", "seed": 8202, "scale": 0.3 }, + "past_state": { "shape": [3, 1, 2, 128, 17], "dtype": "float32", "dist": "normal", "seed": 8203, "scale": 0.1 }, + "decay": { + "shape": [1, 129, 256], + "dtype": "float32", + "dist": "uniform", + "seed": 8204, + "signed": false, + "offset": -0.10536051565782628, + "scale": 0.10536051565782628 + }, + "beta": { + "shape": [1, 129, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8205, + "signed": false, + "offset": 0.1, + "scale": 0.8 + } + }, + "outputs": { + "output": { "shape": [1, 129, 102], "dtype": "float32" }, + "present_state": { "shape": [3, 1, 2, 128, 17], "dtype": "float32" } + }, + "bench": { + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-window-f32-b1-s512-w3-dk128-dv128-kv2-q2", + "preset": "stress", + "provenance": { + "notes": "A 512-token sequence with a three-slot rollback window that keeps the states after the last three tokens." + }, + "vars": { "batch": 1, "seq": 512, "qHeads": 2, "kvHeads": 2, "dk": 128, "dv": 128 }, + "attrs": { + "q_num_heads": 2, + "kv_num_heads": 2, + "update_rule": "gated_delta", + "scale": 0.08838834764831843, + "state_window": 3 + }, + "inputs": { + "query": { "shape": [1, 512, 256], "dtype": "float32", "dist": "normal", "seed": 8200, "scale": 0.3 }, + "key": { + "shape": [1, 512, 128], + "dtype": "float32", + "dist": "uniform", + "seed": 8201, + "scale": 0.08838834764831843 + }, + "value": { "shape": [1, 512, 256], "dtype": "float32", "dist": "normal", "seed": 8202, "scale": 0.3 }, + "past_state": { "shape": [3, 1, 2, 128, 128], "dtype": "float32", "dist": "normal", "seed": 8203, "scale": 0.1 }, + "decay": { + "shape": [1, 512, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8204, + "signed": false, + "offset": -0.10536051565782628, + "scale": 0.10536051565782628 + }, + "beta": { + "shape": [1, 512, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8205, + "signed": false, + "offset": 0.1, + "scale": 0.8 + } + }, + "outputs": { + "output": { "shape": [1, 512, 256], "dtype": "float32" }, + "present_state": { "shape": [3, 1, 2, 128, 128], "dtype": "float32" } + }, + "bench": { + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-window-f32-b1-s1-w8-dk128-dv17-kv2-q2", + "preset": "stress", + "provenance": { + "notes": "A one-token sequence with an eight-slot rollback window, leaving the seven leading state slots zero." + }, + "vars": { "batch": 1, "seq": 1, "qHeads": 2, "kvHeads": 2, "dk": 128, "dv": 17 }, + "attrs": { + "q_num_heads": 2, + "kv_num_heads": 2, + "update_rule": "gated_delta", + "scale": 0.08838834764831843, + "state_window": 8 + }, + "inputs": { + "query": { "shape": [1, 1, 256], "dtype": "float32", "dist": "normal", "seed": 8200, "scale": 0.3 }, + "key": { + "shape": [1, 1, 128], + "dtype": "float32", + "dist": "uniform", + "seed": 8201, + "scale": 0.08838834764831843 + }, + "value": { "shape": [1, 1, 34], "dtype": "float32", "dist": "normal", "seed": 8202, "scale": 0.3 }, + "past_state": { "shape": [8, 1, 2, 128, 17], "dtype": "float32", "dist": "normal", "seed": 8203, "scale": 0.1 }, + "decay": { + "shape": [1, 1, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8204, + "signed": false, + "offset": -0.10536051565782628, + "scale": 0.10536051565782628 + }, + "beta": { + "shape": [1, 1, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8205, + "signed": false, + "offset": 0.1, + "scale": 0.8 + } + }, + "outputs": { + "output": { "shape": [1, 1, 34], "dtype": "float32" }, + "present_state": { "shape": [8, 1, 2, 128, 17], "dtype": "float32" } + }, + "bench": { + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-window-f32-b1-s129-w1-dk128-dv128-kv2-q2", + "preset": "stress", + "provenance": { "notes": "A 129-token sequence with a one-slot rollback window that keeps only the final state." }, + "vars": { "batch": 1, "seq": 129, "qHeads": 2, "kvHeads": 2, "dk": 128, "dv": 128 }, + "attrs": { + "q_num_heads": 2, + "kv_num_heads": 2, + "update_rule": "gated_delta", + "scale": 0.08838834764831843, + "state_window": 1 + }, + "inputs": { + "query": { "shape": [1, 129, 256], "dtype": "float32", "dist": "normal", "seed": 8200, "scale": 0.3 }, + "key": { + "shape": [1, 129, 128], + "dtype": "float32", + "dist": "uniform", + "seed": 8201, + "scale": 0.08838834764831843 + }, + "value": { "shape": [1, 129, 256], "dtype": "float32", "dist": "normal", "seed": 8202, "scale": 0.3 }, + "past_state": { "shape": [1, 1, 2, 128, 128], "dtype": "float32", "dist": "normal", "seed": 8203, "scale": 0.1 }, + "decay": { + "shape": [1, 129, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8204, + "signed": false, + "offset": -0.10536051565782628, + "scale": 0.10536051565782628 + }, + "beta": { + "shape": [1, 129, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8205, + "signed": false, + "offset": 0.1, + "scale": 0.8 + } + }, + "outputs": { + "output": { "shape": [1, 129, 256], "dtype": "float32" }, + "present_state": { "shape": [1, 1, 2, 128, 128], "dtype": "float32" } + }, + "bench": { + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-window-f32-b1-s129-w3-dk6-dv17-kv2-q2", + "preset": "stress", + "provenance": { + "notes": "Gated delta recurrence with a three-slot rollback window and finite inputs, at one of several key widths from 6 to 256." + }, + "vars": { "batch": 1, "seq": 129, "qHeads": 2, "kvHeads": 2, "dk": 6, "dv": 17 }, + "attrs": { + "q_num_heads": 2, + "kv_num_heads": 2, + "update_rule": "gated_delta", + "scale": 0.4082482904638631, + "state_window": 3 + }, + "inputs": { + "query": { "shape": [1, 129, 12], "dtype": "float32", "dist": "normal", "seed": 8200, "scale": 0.3 }, + "key": { + "shape": [1, 129, 6], + "dtype": "float32", + "dist": "uniform", + "seed": 8201, + "scale": 0.08838834764831843 + }, + "value": { "shape": [1, 129, 34], "dtype": "float32", "dist": "normal", "seed": 8202, "scale": 0.3 }, + "past_state": { "shape": [3, 1, 2, 6, 17], "dtype": "float32", "dist": "normal", "seed": 8203, "scale": 0.1 }, + "decay": { + "shape": [1, 129, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8204, + "signed": false, + "offset": -0.10536051565782628, + "scale": 0.10536051565782628 + }, + "beta": { + "shape": [1, 129, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8205, + "signed": false, + "offset": 0.1, + "scale": 0.8 + } + }, + "outputs": { + "output": { "shape": [1, 129, 34], "dtype": "float32" }, + "present_state": { "shape": [3, 1, 2, 6, 17], "dtype": "float32" } + }, + "bench": { + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-window-f32-b1-s129-w3-dk8-dv17-kv2-q2", + "preset": "stress", + "provenance": { + "notes": "Gated delta recurrence with a three-slot rollback window and finite inputs, at one of several key widths from 6 to 256." + }, + "vars": { "batch": 1, "seq": 129, "qHeads": 2, "kvHeads": 2, "dk": 8, "dv": 17 }, + "attrs": { + "q_num_heads": 2, + "kv_num_heads": 2, + "update_rule": "gated_delta", + "scale": 0.35355339059327373, + "state_window": 3 + }, + "inputs": { + "query": { "shape": [1, 129, 16], "dtype": "float32", "dist": "normal", "seed": 8200, "scale": 0.3 }, + "key": { + "shape": [1, 129, 8], + "dtype": "float32", + "dist": "uniform", + "seed": 8201, + "scale": 0.08838834764831843 + }, + "value": { "shape": [1, 129, 34], "dtype": "float32", "dist": "normal", "seed": 8202, "scale": 0.3 }, + "past_state": { "shape": [3, 1, 2, 8, 17], "dtype": "float32", "dist": "normal", "seed": 8203, "scale": 0.1 }, + "decay": { + "shape": [1, 129, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8204, + "signed": false, + "offset": -0.10536051565782628, + "scale": 0.10536051565782628 + }, + "beta": { + "shape": [1, 129, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8205, + "signed": false, + "offset": 0.1, + "scale": 0.8 + } + }, + "outputs": { + "output": { "shape": [1, 129, 34], "dtype": "float32" }, + "present_state": { "shape": [3, 1, 2, 8, 17], "dtype": "float32" } + }, + "bench": { + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-window-f32-b1-s512-w3-dk16-dv128-kv2-q2", + "preset": "stress", + "provenance": { + "notes": "Gated delta recurrence with a three-slot rollback window and finite inputs, at one of several key widths from 6 to 256." + }, + "vars": { "batch": 1, "seq": 512, "qHeads": 2, "kvHeads": 2, "dk": 16, "dv": 128 }, + "attrs": { "q_num_heads": 2, "kv_num_heads": 2, "update_rule": "gated_delta", "scale": 0.25, "state_window": 3 }, + "inputs": { + "query": { "shape": [1, 512, 32], "dtype": "float32", "dist": "normal", "seed": 8200, "scale": 0.3 }, + "key": { + "shape": [1, 512, 16], + "dtype": "float32", + "dist": "uniform", + "seed": 8201, + "scale": 0.08838834764831843 + }, + "value": { "shape": [1, 512, 256], "dtype": "float32", "dist": "normal", "seed": 8202, "scale": 0.3 }, + "past_state": { "shape": [3, 1, 2, 16, 128], "dtype": "float32", "dist": "normal", "seed": 8203, "scale": 0.1 }, + "decay": { + "shape": [1, 512, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8204, + "signed": false, + "offset": -0.10536051565782628, + "scale": 0.10536051565782628 + }, + "beta": { + "shape": [1, 512, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8205, + "signed": false, + "offset": 0.1, + "scale": 0.8 + } + }, + "outputs": { + "output": { "shape": [1, 512, 256], "dtype": "float32" }, + "present_state": { "shape": [3, 1, 2, 16, 128], "dtype": "float32" } + }, + "bench": { + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-window-f32-b1-s512-w3-dk32-dv128-kv2-q2", + "preset": "stress", + "provenance": { + "notes": "Gated delta recurrence with a three-slot rollback window and finite inputs, at one of several key widths from 6 to 256." + }, + "vars": { "batch": 1, "seq": 512, "qHeads": 2, "kvHeads": 2, "dk": 32, "dv": 128 }, + "attrs": { + "q_num_heads": 2, + "kv_num_heads": 2, + "update_rule": "gated_delta", + "scale": 0.17677669529663687, + "state_window": 3 + }, + "inputs": { + "query": { "shape": [1, 512, 64], "dtype": "float32", "dist": "normal", "seed": 8200, "scale": 0.3 }, + "key": { + "shape": [1, 512, 32], + "dtype": "float32", + "dist": "uniform", + "seed": 8201, + "scale": 0.08838834764831843 + }, + "value": { "shape": [1, 512, 256], "dtype": "float32", "dist": "normal", "seed": 8202, "scale": 0.3 }, + "past_state": { "shape": [3, 1, 2, 32, 128], "dtype": "float32", "dist": "normal", "seed": 8203, "scale": 0.1 }, + "decay": { + "shape": [1, 512, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8204, + "signed": false, + "offset": -0.10536051565782628, + "scale": 0.10536051565782628 + }, + "beta": { + "shape": [1, 512, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8205, + "signed": false, + "offset": 0.1, + "scale": 0.8 + } + }, + "outputs": { + "output": { "shape": [1, 512, 256], "dtype": "float32" }, + "present_state": { "shape": [3, 1, 2, 32, 128], "dtype": "float32" } + }, + "bench": { + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-window-f32-b1-s512-w3-dk64-dv128-kv2-q2", + "preset": "stress", + "provenance": { + "notes": "Gated delta recurrence with a three-slot rollback window and finite inputs, at one of several key widths from 6 to 256." + }, + "vars": { "batch": 1, "seq": 512, "qHeads": 2, "kvHeads": 2, "dk": 64, "dv": 128 }, + "attrs": { "q_num_heads": 2, "kv_num_heads": 2, "update_rule": "gated_delta", "scale": 0.125, "state_window": 3 }, + "inputs": { + "query": { "shape": [1, 512, 128], "dtype": "float32", "dist": "normal", "seed": 8200, "scale": 0.3 }, + "key": { + "shape": [1, 512, 64], + "dtype": "float32", + "dist": "uniform", + "seed": 8201, + "scale": 0.08838834764831843 + }, + "value": { "shape": [1, 512, 256], "dtype": "float32", "dist": "normal", "seed": 8202, "scale": 0.3 }, + "past_state": { "shape": [3, 1, 2, 64, 128], "dtype": "float32", "dist": "normal", "seed": 8203, "scale": 0.1 }, + "decay": { + "shape": [1, 512, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8204, + "signed": false, + "offset": -0.10536051565782628, + "scale": 0.10536051565782628 + }, + "beta": { + "shape": [1, 512, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8205, + "signed": false, + "offset": 0.1, + "scale": 0.8 + } + }, + "outputs": { + "output": { "shape": [1, 512, 256], "dtype": "float32" }, + "present_state": { "shape": [3, 1, 2, 64, 128], "dtype": "float32" } + }, + "bench": { + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-window-f32-b1-s129-w3-dk256-dv128-kv2-q2", + "preset": "stress", + "provenance": { + "notes": "Gated delta recurrence with a three-slot rollback window and finite inputs, at one of several key widths from 6 to 256." + }, + "vars": { "batch": 1, "seq": 129, "qHeads": 2, "kvHeads": 2, "dk": 256, "dv": 128 }, + "attrs": { "q_num_heads": 2, "kv_num_heads": 2, "update_rule": "gated_delta", "scale": 0.0625, "state_window": 3 }, + "inputs": { + "query": { "shape": [1, 129, 512], "dtype": "float32", "dist": "normal", "seed": 8200, "scale": 0.3 }, + "key": { + "shape": [1, 129, 256], + "dtype": "float32", + "dist": "uniform", + "seed": 8201, + "scale": 0.08838834764831843 + }, + "value": { "shape": [1, 129, 256], "dtype": "float32", "dist": "normal", "seed": 8202, "scale": 0.3 }, + "past_state": { "shape": [3, 1, 2, 256, 128], "dtype": "float32", "dist": "normal", "seed": 8203, "scale": 0.1 }, + "decay": { + "shape": [1, 129, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8204, + "signed": false, + "offset": -0.10536051565782628, + "scale": 0.10536051565782628 + }, + "beta": { + "shape": [1, 129, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8205, + "signed": false, + "offset": 0.1, + "scale": 0.8 + } + }, + "outputs": { + "output": { "shape": [1, 129, 256], "dtype": "float32" }, + "present_state": { "shape": [3, 1, 2, 256, 128], "dtype": "float32" } + }, + "bench": { + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + } + }, + { + "name": "linear-chunked-gated-delta-head-s1024-dk32-dv32-c16", + "preset": "stress", + "provenance": { + "notes": "Four query heads over two state heads, 32 key and value channels and 1,024 tokens with nonzero incoming state. Log-decays lie between log(0.9) and zero; keys have squared norms bounded by one." + }, + "vars": { "batch": 1, "seq": 1024, "qHeads": 4, "kvHeads": 2, "dk": 32, "dv": 32 }, + "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "gated_delta", "scale": 0.17677669529663687 }, + "inputs": { + "query": { "shape": [1, 1024, 128], "dtype": "float32", "dist": "normal", "seed": 8300, "scale": 0.3 }, + "key": { + "shape": [1, 1024, 64], + "dtype": "float32", + "dist": "uniform", + "seed": 8301, + "scale": 0.17677669529663687 + }, + "value": { "shape": [1, 1024, 64], "dtype": "float32", "dist": "normal", "seed": 8302, "scale": 0.3 }, + "past_state": { "shape": [1, 2, 32, 32], "dtype": "float32", "dist": "normal", "seed": 8303, "scale": 0.1 }, + "decay": { + "shape": [1, 1024, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8304, + "signed": false, + "offset": -0.10536051565782628, + "scale": 0.10536051565782628 + }, + "beta": { + "shape": [1, 1024, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8305, + "signed": false, + "offset": 0.1, + "scale": 0.8 + } + }, + "outputs": { + "output": { "shape": [1, 1024, 128], "dtype": "float32" }, + "present_state": { "shape": [1, 2, 32, 32], "dtype": "float32" } + }, + "bench": { + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + }, + "tunables": { "chunkSize": 16 } + }, + { + "name": "linear-chunked-gated-delta-head-s1024-dk32-dv32-c32", + "preset": "stress", + "provenance": { + "notes": "Four query heads over two state heads, 32 key and value channels and 1,024 tokens with nonzero incoming state. Log-decays lie between log(0.9) and zero; keys have squared norms bounded by one." + }, + "vars": { "batch": 1, "seq": 1024, "qHeads": 4, "kvHeads": 2, "dk": 32, "dv": 32 }, + "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "gated_delta", "scale": 0.17677669529663687 }, + "inputs": { + "query": { "shape": [1, 1024, 128], "dtype": "float32", "dist": "normal", "seed": 8300, "scale": 0.3 }, + "key": { + "shape": [1, 1024, 64], + "dtype": "float32", + "dist": "uniform", + "seed": 8301, + "scale": 0.17677669529663687 + }, + "value": { "shape": [1, 1024, 64], "dtype": "float32", "dist": "normal", "seed": 8302, "scale": 0.3 }, + "past_state": { "shape": [1, 2, 32, 32], "dtype": "float32", "dist": "normal", "seed": 8303, "scale": 0.1 }, + "decay": { + "shape": [1, 1024, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8304, + "signed": false, + "offset": -0.10536051565782628, + "scale": 0.10536051565782628 + }, + "beta": { + "shape": [1, 1024, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8305, + "signed": false, + "offset": 0.1, + "scale": 0.8 + } + }, + "outputs": { + "output": { "shape": [1, 1024, 128], "dtype": "float32" }, + "present_state": { "shape": [1, 2, 32, 32], "dtype": "float32" } + }, + "bench": { + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + }, + "tunables": { "chunkSize": 32 } + }, + { + "name": "linear-chunked-gated-delta-element-s1024-dk32-dv32-c16", + "preset": "stress", + "provenance": { + "notes": "Four query heads over two state heads, 32 key and value channels and 1,024 tokens with nonzero incoming state. Log-decays lie between log(0.9) and zero; keys have squared norms bounded by one." + }, + "vars": { "batch": 1, "seq": 1024, "qHeads": 4, "kvHeads": 2, "dk": 32, "dv": 32 }, + "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "gated_delta", "scale": 0.17677669529663687 }, + "inputs": { + "query": { "shape": [1, 1024, 128], "dtype": "float32", "dist": "normal", "seed": 8300, "scale": 0.3 }, + "key": { + "shape": [1, 1024, 64], + "dtype": "float32", + "dist": "uniform", + "seed": 8301, + "scale": 0.17677669529663687 + }, + "value": { "shape": [1, 1024, 64], "dtype": "float32", "dist": "normal", "seed": 8302, "scale": 0.3 }, + "past_state": { "shape": [1, 2, 32, 32], "dtype": "float32", "dist": "normal", "seed": 8303, "scale": 0.1 }, + "decay": { + "shape": [1, 1024, 64], + "dtype": "float32", + "dist": "uniform", + "seed": 8304, + "signed": false, + "offset": -0.10536051565782628, + "scale": 0.10536051565782628 + }, + "beta": { + "shape": [1, 1024, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8305, + "signed": false, + "offset": 0.1, + "scale": 0.8 + } + }, + "outputs": { + "output": { "shape": [1, 1024, 128], "dtype": "float32" }, + "present_state": { "shape": [1, 2, 32, 32], "dtype": "float32" } + }, + "bench": { + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + }, + "tunables": { "chunkSize": 16 } + }, + { + "name": "linear-chunked-gated-delta-element-s1024-dk32-dv32-c32", + "preset": "stress", + "provenance": { + "notes": "Four query heads over two state heads, 32 key and value channels and 1,024 tokens with nonzero incoming state. Log-decays lie between log(0.9) and zero; keys have squared norms bounded by one." + }, + "vars": { "batch": 1, "seq": 1024, "qHeads": 4, "kvHeads": 2, "dk": 32, "dv": 32 }, + "attrs": { "q_num_heads": 4, "kv_num_heads": 2, "update_rule": "gated_delta", "scale": 0.17677669529663687 }, + "inputs": { + "query": { "shape": [1, 1024, 128], "dtype": "float32", "dist": "normal", "seed": 8300, "scale": 0.3 }, + "key": { + "shape": [1, 1024, 64], + "dtype": "float32", + "dist": "uniform", + "seed": 8301, + "scale": 0.17677669529663687 + }, + "value": { "shape": [1, 1024, 64], "dtype": "float32", "dist": "normal", "seed": 8302, "scale": 0.3 }, + "past_state": { "shape": [1, 2, 32, 32], "dtype": "float32", "dist": "normal", "seed": 8303, "scale": 0.1 }, + "decay": { + "shape": [1, 1024, 64], + "dtype": "float32", + "dist": "uniform", + "seed": 8304, + "signed": false, + "offset": -0.10536051565782628, + "scale": 0.10536051565782628 + }, + "beta": { + "shape": [1, 1024, 2], + "dtype": "float32", + "dist": "uniform", + "seed": 8305, + "signed": false, + "offset": 0.1, + "scale": 0.8 + } + }, + "outputs": { + "output": { "shape": [1, 1024, 128], "dtype": "float32" }, + "present_state": { "shape": [1, 2, 32, 32], "dtype": "float32" } + }, + "bench": { + "metrics": [ + { + "type": "gflops", + "value": "2 * args.batch * args.seq * (args.qHeads + 2 * args.kvHeads) * args.dk * args.dv" + } + ] + }, + "tunables": { "chunkSize": 32 } } ] }