From a4e59bd1a5d401db37f24777144dc838849ddb20 Mon Sep 17 00:00:00 2001 From: JinYan Su <751080330@qq.com> Date: Mon, 31 Aug 2026 16:37:06 +0000 Subject: [PATCH 01/10] qwen38: fuse gate_up GEMM + silu_mul into kern_gemm8_gateup_silu (bs<=8) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit First user of the gemm8 family (tools/kernels-src/gemm8.cu): a streaming bf16 GEMM for M <= 8 token rows, one persistent CTA per GB300 SM pulling weight rows through a TMA smem ring, mma.m16n8k16 via ldmatrix.x4 (f32 accumulate), x staged once in smem; the silu(gate)*up epilogue reproduces vLLM act_and_mul's rounding chain (bf16(gate), bf16(up), bf16(silu), bf16(product)). Applied to every tokens<=8 forward: decode (both manifests), decode_spec / verify / draft (DFlash2); chunked prefill keeps cuBLAS. -64 dispatches in decode / decode_spec / verify, -5 in draft. Cubins are derived (kernels-qwen38*/ gitignored): tools/extract_kernels.sh rebuilds them with nvcc -cubin -arch=sm_103a. kern-attest (A = previous commit's manifest, B = this one, GB300): qwen3.8-27b.json — 64 cuts (gemm+silu_mul -> gemm8_gateup_silu, decode): | decode tokens=1 | A | B measured | delta | | step, eager | 14.391 ms | 13.642 ms | -748 us -5.2% | | step, graph (TPOT) | 11.478 ms | 11.013 ms | -464 us 87->91 tok/s | | sum of 64 cuts | 4.339 ms | 3.659 ms | -679 us -15.7% | | roofline gate_up | 59.6 us 74.8% of peak | 57.2 us 78.0% | (+silu_mul 8.2 us -> 0) | qwen3.8-27b-dflash2.json — same 64 cuts in decode (+ decode_spec/verify/ draft changed, driver stages prefill/decode only): | decode tokens=1 | A | B measured | delta | | step, eager | 15.761 ms | 15.180 ms | -581 us -3.7% | | step, graph (TPOT) | 12.068 ms | 11.631 ms | -437 us 83->86 tok/s | | sum of 64 cuts | 4.405 ms | 3.663 ms | -742 us -16.8% | Verdict: INCONCLUSIVE, as expected for a GEMM re-implementation -- the cut output differs only by f32 accumulation order vs cublasLt. next_token, draft_tokens and verify_tokens are bit-identical on the tap prompt; noise floor clean; fuzz across 6 distributions <= 364 ulp on act, edge/special bit-identical. Spec-path e2e sanity (qwen38_compare.py --spec) at the end of the series. Signed-off-by: JinYan Su <751080330@qq.com> --- examples/qwen3.8-27b-dflash2.json | 7149 +++++------------------------ examples/qwen3.8-27b.json | 2361 ++-------- tools/gen_qwen35.py | 30 +- tools/kernels-src/gemm8.cu | 484 ++ 4 files changed, 2189 insertions(+), 7835 deletions(-) create mode 100644 tools/kernels-src/gemm8.cu diff --git a/examples/qwen3.8-27b-dflash2.json b/examples/qwen3.8-27b-dflash2.json index 97471fb..9b1cb82 100644 --- a/examples/qwen3.8-27b-dflash2.json +++ b/examples/qwen3.8-27b-dflash2.json @@ -6644,6 +6644,63 @@ ] } }, + "gemm8_gateup_silu": { + "params": [ + "out buffer", + "in buffer", + "in buffer", + "i32", + "i32", + "i32" + ], + "impl": { + "steps": [ + { + "symbol": "kern_gemm8_gateup_silu_bf16", + "params": [ + "out buffer", + "in buffer", + "in buffer", + "i32", + "i32", + "i32" + ], + "block": [ + 288, + 1, + 1 + ], + "grid": [ + 152, + 1, + 1 + ], + "args": [ + { + "arg": 0 + }, + { + "arg": 1 + }, + { + "arg": 2 + }, + { + "arg": 3 + }, + { + "arg": 4 + }, + { + "arg": 5 + } + ], + "shared_mem": 224128, + "cubin": "gemm8.cubin" + } + ] + } + }, "copy_rows": { "params": [ "out buffer", @@ -47537,50 +47594,26 @@ ] }, { - "label": "l0.gate_up", - "kernel": "gemm", + "label": "l0.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.0.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.0.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l0.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -48037,50 +48070,26 @@ ] }, { - "label": "l1.gate_up", - "kernel": "gemm", + "label": "l1.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.1.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.1.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l1.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -48537,50 +48546,26 @@ ] }, { - "label": "l2.gate_up", - "kernel": "gemm", + "label": "l2.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.2.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.2.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l2.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -49020,50 +49005,26 @@ ] }, { - "label": "l3.gate_up", - "kernel": "gemm", + "label": "l3.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.3.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.3.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l3.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -49520,50 +49481,26 @@ ] }, { - "label": "l4.gate_up", - "kernel": "gemm", + "label": "l4.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.4.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.4.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l4.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -50020,50 +49957,26 @@ ] }, { - "label": "l5.gate_up", - "kernel": "gemm", + "label": "l5.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.5.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.5.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l5.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -50520,50 +50433,26 @@ ] }, { - "label": "l6.gate_up", - "kernel": "gemm", + "label": "l6.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.6.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.6.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l6.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -51005,50 +50894,26 @@ ] }, { - "label": "l7.gate_up", - "kernel": "gemm", + "label": "l7.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.7.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.7.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l7.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -51505,50 +51370,26 @@ ] }, { - "label": "l8.gate_up", - "kernel": "gemm", + "label": "l8.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.8.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.8.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l8.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -52005,50 +51846,26 @@ ] }, { - "label": "l9.gate_up", - "kernel": "gemm", + "label": "l9.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.9.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.9.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l9.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -52505,50 +52322,26 @@ ] }, { - "label": "l10.gate_up", - "kernel": "gemm", + "label": "l10.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.10.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.10.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l10.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -52990,50 +52783,26 @@ ] }, { - "label": "l11.gate_up", - "kernel": "gemm", + "label": "l11.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.11.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.11.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l11.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -53490,50 +53259,26 @@ ] }, { - "label": "l12.gate_up", - "kernel": "gemm", + "label": "l12.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.12.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.12.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l12.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -53990,50 +53735,26 @@ ] }, { - "label": "l13.gate_up", - "kernel": "gemm", + "label": "l13.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.13.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.13.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l13.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -54490,50 +54211,26 @@ ] }, { - "label": "l14.gate_up", - "kernel": "gemm", + "label": "l14.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.14.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.14.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l14.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -54975,50 +54672,26 @@ ] }, { - "label": "l15.gate_up", - "kernel": "gemm", + "label": "l15.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.15.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.15.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l15.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -55475,50 +55148,26 @@ ] }, { - "label": "l16.gate_up", - "kernel": "gemm", + "label": "l16.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.16.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.16.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l16.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -55975,50 +55624,26 @@ ] }, { - "label": "l17.gate_up", - "kernel": "gemm", + "label": "l17.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.17.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.17.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l17.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -56475,50 +56100,26 @@ ] }, { - "label": "l18.gate_up", - "kernel": "gemm", + "label": "l18.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.18.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.18.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l18.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -56960,50 +56561,26 @@ ] }, { - "label": "l19.gate_up", - "kernel": "gemm", + "label": "l19.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.19.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.19.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l19.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -57460,50 +57037,26 @@ ] }, { - "label": "l20.gate_up", - "kernel": "gemm", + "label": "l20.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.20.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.20.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l20.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -57960,50 +57513,26 @@ ] }, { - "label": "l21.gate_up", - "kernel": "gemm", + "label": "l21.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.21.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.21.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l21.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -58460,50 +57989,26 @@ ] }, { - "label": "l22.gate_up", - "kernel": "gemm", + "label": "l22.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.22.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.22.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l22.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -58945,50 +58450,26 @@ ] }, { - "label": "l23.gate_up", - "kernel": "gemm", + "label": "l23.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.23.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.23.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l23.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -59445,50 +58926,26 @@ ] }, { - "label": "l24.gate_up", - "kernel": "gemm", + "label": "l24.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.24.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.24.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l24.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -59945,50 +59402,26 @@ ] }, { - "label": "l25.gate_up", - "kernel": "gemm", + "label": "l25.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.25.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.25.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l25.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -60445,50 +59878,26 @@ ] }, { - "label": "l26.gate_up", - "kernel": "gemm", + "label": "l26.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.26.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.26.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l26.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -60930,50 +60339,26 @@ ] }, { - "label": "l27.gate_up", - "kernel": "gemm", + "label": "l27.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.27.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.27.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l27.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -61430,50 +60815,26 @@ ] }, { - "label": "l28.gate_up", - "kernel": "gemm", + "label": "l28.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.28.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.28.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l28.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -61930,50 +61291,26 @@ ] }, { - "label": "l29.gate_up", - "kernel": "gemm", + "label": "l29.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.29.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.29.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l29.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -62430,50 +61767,26 @@ ] }, { - "label": "l30.gate_up", - "kernel": "gemm", + "label": "l30.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.30.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.30.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l30.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -62915,50 +62228,26 @@ ] }, { - "label": "l31.gate_up", - "kernel": "gemm", + "label": "l31.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.31.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.31.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l31.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -63415,50 +62704,26 @@ ] }, { - "label": "l32.gate_up", - "kernel": "gemm", + "label": "l32.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.32.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.32.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l32.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -63915,50 +63180,26 @@ ] }, { - "label": "l33.gate_up", - "kernel": "gemm", + "label": "l33.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.33.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.33.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l33.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -64415,50 +63656,26 @@ ] }, { - "label": "l34.gate_up", - "kernel": "gemm", + "label": "l34.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.34.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.34.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l34.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -64900,50 +64117,26 @@ ] }, { - "label": "l35.gate_up", - "kernel": "gemm", + "label": "l35.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.35.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.35.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l35.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -65400,50 +64593,26 @@ ] }, { - "label": "l36.gate_up", - "kernel": "gemm", + "label": "l36.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.36.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.36.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l36.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -65900,50 +65069,26 @@ ] }, { - "label": "l37.gate_up", - "kernel": "gemm", + "label": "l37.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.37.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.37.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l37.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -66400,50 +65545,26 @@ ] }, { - "label": "l38.gate_up", - "kernel": "gemm", + "label": "l38.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.38.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.38.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l38.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -66885,50 +66006,26 @@ ] }, { - "label": "l39.gate_up", - "kernel": "gemm", + "label": "l39.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.39.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.39.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l39.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -67385,50 +66482,26 @@ ] }, { - "label": "l40.gate_up", - "kernel": "gemm", + "label": "l40.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.40.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.40.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l40.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -67885,50 +66958,26 @@ ] }, { - "label": "l41.gate_up", - "kernel": "gemm", + "label": "l41.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.41.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.41.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l41.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -68385,50 +67434,26 @@ ] }, { - "label": "l42.gate_up", - "kernel": "gemm", + "label": "l42.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.42.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.42.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l42.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -68870,50 +67895,26 @@ ] }, { - "label": "l43.gate_up", - "kernel": "gemm", + "label": "l43.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.43.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.43.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l43.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -69370,50 +68371,26 @@ ] }, { - "label": "l44.gate_up", - "kernel": "gemm", + "label": "l44.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.44.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.44.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l44.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -69870,50 +68847,26 @@ ] }, { - "label": "l45.gate_up", - "kernel": "gemm", + "label": "l45.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.45.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.45.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l45.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -70370,50 +69323,26 @@ ] }, { - "label": "l46.gate_up", - "kernel": "gemm", + "label": "l46.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.46.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.46.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l46.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -70855,50 +69784,26 @@ ] }, { - "label": "l47.gate_up", - "kernel": "gemm", + "label": "l47.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.47.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.47.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l47.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -71355,50 +70260,26 @@ ] }, { - "label": "l48.gate_up", - "kernel": "gemm", + "label": "l48.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.48.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.48.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l48.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -71855,50 +70736,26 @@ ] }, { - "label": "l49.gate_up", - "kernel": "gemm", + "label": "l49.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.49.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.49.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l49.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -72355,50 +71212,26 @@ ] }, { - "label": "l50.gate_up", - "kernel": "gemm", + "label": "l50.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.50.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.50.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l50.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -72840,50 +71673,26 @@ ] }, { - "label": "l51.gate_up", - "kernel": "gemm", + "label": "l51.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.51.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.51.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l51.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -73340,50 +72149,26 @@ ] }, { - "label": "l52.gate_up", - "kernel": "gemm", + "label": "l52.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.52.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.52.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l52.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -73840,50 +72625,26 @@ ] }, { - "label": "l53.gate_up", - "kernel": "gemm", + "label": "l53.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.53.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.53.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l53.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -74340,50 +73101,26 @@ ] }, { - "label": "l54.gate_up", - "kernel": "gemm", + "label": "l54.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.54.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.54.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l54.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -74825,50 +73562,26 @@ ] }, { - "label": "l55.gate_up", - "kernel": "gemm", + "label": "l55.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.55.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.55.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l55.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -75325,50 +74038,26 @@ ] }, { - "label": "l56.gate_up", - "kernel": "gemm", + "label": "l56.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.56.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.56.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l56.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -75825,50 +74514,26 @@ ] }, { - "label": "l57.gate_up", - "kernel": "gemm", + "label": "l57.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.57.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.57.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l57.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -76325,50 +74990,26 @@ ] }, { - "label": "l58.gate_up", - "kernel": "gemm", + "label": "l58.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.58.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.58.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l58.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -76810,50 +75451,26 @@ ] }, { - "label": "l59.gate_up", - "kernel": "gemm", + "label": "l59.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.59.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.59.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l59.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -77310,50 +75927,26 @@ ] }, { - "label": "l60.gate_up", - "kernel": "gemm", + "label": "l60.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.60.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.60.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l60.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -77810,50 +76403,26 @@ ] }, { - "label": "l61.gate_up", - "kernel": "gemm", + "label": "l61.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.61.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.61.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l61.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -78310,50 +76879,26 @@ ] }, { - "label": "l62.gate_up", - "kernel": "gemm", + "label": "l62.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.62.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.62.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l62.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -78795,50 +77340,26 @@ ] }, { - "label": "l63.gate_up", - "kernel": "gemm", + "label": "l63.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.63.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.63.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l63.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -79439,50 +77960,26 @@ ] }, { - "label": "l0.gate_up", - "kernel": "gemm", + "label": "l0.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.0.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.0.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l0.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -79939,50 +78436,26 @@ ] }, { - "label": "l1.gate_up", - "kernel": "gemm", + "label": "l1.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.1.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.1.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l1.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -80439,50 +78912,26 @@ ] }, { - "label": "l2.gate_up", - "kernel": "gemm", + "label": "l2.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.2.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.2.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l2.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -80922,50 +79371,26 @@ ] }, { - "label": "l3.gate_up", - "kernel": "gemm", + "label": "l3.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.3.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.3.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l3.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -81422,50 +79847,26 @@ ] }, { - "label": "l4.gate_up", - "kernel": "gemm", + "label": "l4.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.4.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.4.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l4.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -81922,50 +80323,26 @@ ] }, { - "label": "l5.gate_up", - "kernel": "gemm", + "label": "l5.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.5.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.5.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l5.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -82446,50 +80823,26 @@ ] }, { - "label": "l6.gate_up", - "kernel": "gemm", + "label": "l6.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.6.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.6.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l6.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -82931,50 +81284,26 @@ ] }, { - "label": "l7.gate_up", - "kernel": "gemm", + "label": "l7.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.7.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.7.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l7.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -83431,50 +81760,26 @@ ] }, { - "label": "l8.gate_up", - "kernel": "gemm", + "label": "l8.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.8.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.8.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l8.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -83931,50 +82236,26 @@ ] }, { - "label": "l9.gate_up", - "kernel": "gemm", + "label": "l9.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.9.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.9.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l9.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -84431,50 +82712,26 @@ ] }, { - "label": "l10.gate_up", - "kernel": "gemm", + "label": "l10.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.10.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.10.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l10.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -84916,50 +83173,26 @@ ] }, { - "label": "l11.gate_up", - "kernel": "gemm", + "label": "l11.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.11.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.11.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l11.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -85416,50 +83649,26 @@ ] }, { - "label": "l12.gate_up", - "kernel": "gemm", + "label": "l12.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.12.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.12.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l12.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -85916,50 +84125,26 @@ ] }, { - "label": "l13.gate_up", - "kernel": "gemm", + "label": "l13.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.13.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.13.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l13.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -86416,50 +84601,26 @@ ] }, { - "label": "l14.gate_up", - "kernel": "gemm", + "label": "l14.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.14.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.14.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l14.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -86901,50 +85062,26 @@ ] }, { - "label": "l15.gate_up", - "kernel": "gemm", + "label": "l15.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.15.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.15.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l15.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -87401,50 +85538,26 @@ ] }, { - "label": "l16.gate_up", - "kernel": "gemm", + "label": "l16.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.16.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.16.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l16.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -87901,50 +86014,26 @@ ] }, { - "label": "l17.gate_up", - "kernel": "gemm", + "label": "l17.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.17.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.17.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l17.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -88401,50 +86490,26 @@ ] }, { - "label": "l18.gate_up", - "kernel": "gemm", + "label": "l18.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.18.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.18.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l18.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -88886,50 +86951,26 @@ ] }, { - "label": "l19.gate_up", - "kernel": "gemm", + "label": "l19.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.19.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.19.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l19.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -89410,50 +87451,26 @@ ] }, { - "label": "l20.gate_up", - "kernel": "gemm", + "label": "l20.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.20.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.20.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l20.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -89910,50 +87927,26 @@ ] }, { - "label": "l21.gate_up", - "kernel": "gemm", + "label": "l21.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.21.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.21.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l21.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -90410,50 +88403,26 @@ ] }, { - "label": "l22.gate_up", - "kernel": "gemm", + "label": "l22.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.22.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.22.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l22.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -90895,50 +88864,26 @@ ] }, { - "label": "l23.gate_up", - "kernel": "gemm", + "label": "l23.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.23.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.23.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l23.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -91395,50 +89340,26 @@ ] }, { - "label": "l24.gate_up", - "kernel": "gemm", + "label": "l24.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.24.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.24.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l24.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -91895,50 +89816,26 @@ ] }, { - "label": "l25.gate_up", - "kernel": "gemm", + "label": "l25.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.25.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.25.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l25.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -92395,50 +90292,26 @@ ] }, { - "label": "l26.gate_up", - "kernel": "gemm", + "label": "l26.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.26.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.26.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l26.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -92880,50 +90753,26 @@ ] }, { - "label": "l27.gate_up", - "kernel": "gemm", + "label": "l27.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.27.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.27.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l27.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -93380,50 +91229,26 @@ ] }, { - "label": "l28.gate_up", - "kernel": "gemm", + "label": "l28.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.28.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.28.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l28.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -93880,50 +91705,26 @@ ] }, { - "label": "l29.gate_up", - "kernel": "gemm", + "label": "l29.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.29.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.29.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l29.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -94380,50 +92181,26 @@ ] }, { - "label": "l30.gate_up", - "kernel": "gemm", + "label": "l30.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.30.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.30.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l30.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -94865,50 +92642,26 @@ ] }, { - "label": "l31.gate_up", - "kernel": "gemm", + "label": "l31.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.31.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.31.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l31.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -95365,50 +93118,26 @@ ] }, { - "label": "l32.gate_up", - "kernel": "gemm", + "label": "l32.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.32.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.32.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l32.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -95865,50 +93594,26 @@ ] }, { - "label": "l33.gate_up", - "kernel": "gemm", + "label": "l33.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.33.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.33.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l33.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -96389,50 +94094,26 @@ ] }, { - "label": "l34.gate_up", - "kernel": "gemm", + "label": "l34.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.34.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.34.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l34.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -96874,50 +94555,26 @@ ] }, { - "label": "l35.gate_up", - "kernel": "gemm", + "label": "l35.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.35.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.35.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l35.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -97374,50 +95031,26 @@ ] }, { - "label": "l36.gate_up", - "kernel": "gemm", + "label": "l36.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.36.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.36.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l36.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -97874,50 +95507,26 @@ ] }, { - "label": "l37.gate_up", - "kernel": "gemm", + "label": "l37.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.37.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.37.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l37.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -98374,50 +95983,26 @@ ] }, { - "label": "l38.gate_up", - "kernel": "gemm", + "label": "l38.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.38.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.38.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l38.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -98859,50 +96444,26 @@ ] }, { - "label": "l39.gate_up", - "kernel": "gemm", + "label": "l39.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.39.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.39.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l39.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -99359,50 +96920,26 @@ ] }, { - "label": "l40.gate_up", - "kernel": "gemm", + "label": "l40.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.40.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.40.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l40.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -99859,50 +97396,26 @@ ] }, { - "label": "l41.gate_up", - "kernel": "gemm", + "label": "l41.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.41.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.41.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l41.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -100359,50 +97872,26 @@ ] }, { - "label": "l42.gate_up", - "kernel": "gemm", + "label": "l42.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.42.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.42.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l42.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -100844,50 +98333,26 @@ ] }, { - "label": "l43.gate_up", - "kernel": "gemm", + "label": "l43.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.43.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.43.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l43.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -101344,50 +98809,26 @@ ] }, { - "label": "l44.gate_up", - "kernel": "gemm", + "label": "l44.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.44.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.44.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l44.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -101844,50 +99285,26 @@ ] }, { - "label": "l45.gate_up", - "kernel": "gemm", + "label": "l45.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.45.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.45.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l45.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -102344,50 +99761,26 @@ ] }, { - "label": "l46.gate_up", - "kernel": "gemm", + "label": "l46.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.46.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.46.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l46.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -102829,50 +100222,26 @@ ] }, { - "label": "l47.gate_up", - "kernel": "gemm", + "label": "l47.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.47.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.47.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l47.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -103353,50 +100722,26 @@ ] }, { - "label": "l48.gate_up", - "kernel": "gemm", + "label": "l48.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.48.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.48.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l48.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -103853,50 +101198,26 @@ ] }, { - "label": "l49.gate_up", - "kernel": "gemm", + "label": "l49.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.49.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.49.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l49.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -104353,50 +101674,26 @@ ] }, { - "label": "l50.gate_up", - "kernel": "gemm", + "label": "l50.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.50.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.50.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l50.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -104838,50 +102135,26 @@ ] }, { - "label": "l51.gate_up", - "kernel": "gemm", + "label": "l51.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.51.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.51.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l51.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -105338,50 +102611,26 @@ ] }, { - "label": "l52.gate_up", - "kernel": "gemm", + "label": "l52.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.52.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.52.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l52.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -105838,50 +103087,26 @@ ] }, { - "label": "l53.gate_up", - "kernel": "gemm", + "label": "l53.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.53.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.53.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l53.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -106338,50 +103563,26 @@ ] }, { - "label": "l54.gate_up", - "kernel": "gemm", + "label": "l54.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.54.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.54.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l54.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -106823,50 +104024,26 @@ ] }, { - "label": "l55.gate_up", - "kernel": "gemm", + "label": "l55.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.55.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.55.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l55.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -107323,50 +104500,26 @@ ] }, { - "label": "l56.gate_up", - "kernel": "gemm", + "label": "l56.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.56.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.56.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l56.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -107823,50 +104976,26 @@ ] }, { - "label": "l57.gate_up", - "kernel": "gemm", + "label": "l57.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.57.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.57.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l57.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -108323,50 +105452,26 @@ ] }, { - "label": "l58.gate_up", - "kernel": "gemm", + "label": "l58.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.58.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.58.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l58.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -108808,50 +105913,26 @@ ] }, { - "label": "l59.gate_up", - "kernel": "gemm", + "label": "l59.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.59.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.59.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l59.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -109308,50 +106389,26 @@ ] }, { - "label": "l60.gate_up", - "kernel": "gemm", + "label": "l60.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.60.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.60.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l60.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -109808,50 +106865,26 @@ ] }, { - "label": "l61.gate_up", - "kernel": "gemm", + "label": "l61.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.61.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.61.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l61.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -110332,50 +107365,26 @@ ] }, { - "label": "l62.gate_up", - "kernel": "gemm", + "label": "l62.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.62.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.62.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l62.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -110817,50 +107826,26 @@ ] }, { - "label": "l63.gate_up", - "kernel": "gemm", + "label": "l63.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.63.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.63.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l63.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -111461,50 +108446,26 @@ ] }, { - "label": "l0.gate_up", - "kernel": "gemm", + "label": "l0.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.0.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.0.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l0.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -111961,50 +108922,26 @@ ] }, { - "label": "l1.gate_up", - "kernel": "gemm", + "label": "l1.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.1.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.1.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l1.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -112461,50 +109398,26 @@ ] }, { - "label": "l2.gate_up", - "kernel": "gemm", + "label": "l2.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.2.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.2.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l2.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -112944,50 +109857,26 @@ ] }, { - "label": "l3.gate_up", - "kernel": "gemm", + "label": "l3.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.3.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.3.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l3.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -113444,50 +110333,26 @@ ] }, { - "label": "l4.gate_up", - "kernel": "gemm", + "label": "l4.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.4.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.4.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l4.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -113944,50 +110809,26 @@ ] }, { - "label": "l5.gate_up", - "kernel": "gemm", + "label": "l5.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.5.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.5.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l5.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -114468,50 +111309,26 @@ ] }, { - "label": "l6.gate_up", - "kernel": "gemm", + "label": "l6.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.6.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.6.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l6.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -114953,50 +111770,26 @@ ] }, { - "label": "l7.gate_up", - "kernel": "gemm", + "label": "l7.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.7.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.7.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l7.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -115453,50 +112246,26 @@ ] }, { - "label": "l8.gate_up", - "kernel": "gemm", + "label": "l8.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.8.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.8.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l8.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -115953,50 +112722,26 @@ ] }, { - "label": "l9.gate_up", - "kernel": "gemm", + "label": "l9.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.9.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.9.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l9.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -116453,50 +113198,26 @@ ] }, { - "label": "l10.gate_up", - "kernel": "gemm", + "label": "l10.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.10.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.10.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l10.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -116938,50 +113659,26 @@ ] }, { - "label": "l11.gate_up", - "kernel": "gemm", + "label": "l11.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.11.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.11.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l11.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -117438,50 +114135,26 @@ ] }, { - "label": "l12.gate_up", - "kernel": "gemm", + "label": "l12.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.12.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.12.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l12.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -117938,50 +114611,26 @@ ] }, { - "label": "l13.gate_up", - "kernel": "gemm", + "label": "l13.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.13.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.13.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l13.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -118438,50 +115087,26 @@ ] }, { - "label": "l14.gate_up", - "kernel": "gemm", + "label": "l14.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.14.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.14.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l14.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -118923,50 +115548,26 @@ ] }, { - "label": "l15.gate_up", - "kernel": "gemm", + "label": "l15.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.15.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.15.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l15.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -119423,50 +116024,26 @@ ] }, { - "label": "l16.gate_up", - "kernel": "gemm", + "label": "l16.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.16.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.16.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l16.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -119923,50 +116500,26 @@ ] }, { - "label": "l17.gate_up", - "kernel": "gemm", + "label": "l17.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.17.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.17.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l17.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -120423,50 +116976,26 @@ ] }, { - "label": "l18.gate_up", - "kernel": "gemm", + "label": "l18.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.18.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.18.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l18.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -120908,50 +117437,26 @@ ] }, { - "label": "l19.gate_up", - "kernel": "gemm", + "label": "l19.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.19.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.19.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l19.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -121432,50 +117937,26 @@ ] }, { - "label": "l20.gate_up", - "kernel": "gemm", + "label": "l20.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.20.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.20.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l20.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -121932,50 +118413,26 @@ ] }, { - "label": "l21.gate_up", - "kernel": "gemm", + "label": "l21.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.21.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.21.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l21.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -122432,50 +118889,26 @@ ] }, { - "label": "l22.gate_up", - "kernel": "gemm", + "label": "l22.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.22.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.22.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l22.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -122917,50 +119350,26 @@ ] }, { - "label": "l23.gate_up", - "kernel": "gemm", + "label": "l23.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.23.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.23.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l23.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -123417,50 +119826,26 @@ ] }, { - "label": "l24.gate_up", - "kernel": "gemm", + "label": "l24.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.24.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.24.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l24.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -123917,50 +120302,26 @@ ] }, { - "label": "l25.gate_up", - "kernel": "gemm", + "label": "l25.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.25.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.25.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l25.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -124417,50 +120778,26 @@ ] }, { - "label": "l26.gate_up", - "kernel": "gemm", + "label": "l26.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.26.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.26.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l26.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -124902,50 +121239,26 @@ ] }, { - "label": "l27.gate_up", - "kernel": "gemm", + "label": "l27.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.27.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.27.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l27.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -125402,50 +121715,26 @@ ] }, { - "label": "l28.gate_up", - "kernel": "gemm", + "label": "l28.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.28.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.28.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l28.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -125902,50 +122191,26 @@ ] }, { - "label": "l29.gate_up", - "kernel": "gemm", + "label": "l29.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.29.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.29.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l29.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -126402,50 +122667,26 @@ ] }, { - "label": "l30.gate_up", - "kernel": "gemm", + "label": "l30.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.30.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.30.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l30.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -126887,50 +123128,26 @@ ] }, { - "label": "l31.gate_up", - "kernel": "gemm", + "label": "l31.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.31.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.31.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l31.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -127387,50 +123604,26 @@ ] }, { - "label": "l32.gate_up", - "kernel": "gemm", + "label": "l32.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.32.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.32.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l32.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -127887,50 +124080,26 @@ ] }, { - "label": "l33.gate_up", - "kernel": "gemm", + "label": "l33.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.33.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.33.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l33.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -128411,50 +124580,26 @@ ] }, { - "label": "l34.gate_up", - "kernel": "gemm", + "label": "l34.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.34.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.34.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l34.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -128896,50 +125041,26 @@ ] }, { - "label": "l35.gate_up", - "kernel": "gemm", + "label": "l35.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.35.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.35.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l35.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -129396,50 +125517,26 @@ ] }, { - "label": "l36.gate_up", - "kernel": "gemm", + "label": "l36.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.36.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.36.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l36.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -129896,50 +125993,26 @@ ] }, { - "label": "l37.gate_up", - "kernel": "gemm", + "label": "l37.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.37.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.37.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l37.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -130396,50 +126469,26 @@ ] }, { - "label": "l38.gate_up", - "kernel": "gemm", + "label": "l38.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.38.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.38.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l38.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -130881,50 +126930,26 @@ ] }, { - "label": "l39.gate_up", - "kernel": "gemm", + "label": "l39.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.39.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.39.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l39.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -131381,50 +127406,26 @@ ] }, { - "label": "l40.gate_up", - "kernel": "gemm", + "label": "l40.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.40.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.40.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l40.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -131881,50 +127882,26 @@ ] }, { - "label": "l41.gate_up", - "kernel": "gemm", + "label": "l41.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.41.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.41.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l41.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -132381,50 +128358,26 @@ ] }, { - "label": "l42.gate_up", - "kernel": "gemm", + "label": "l42.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.42.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.42.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l42.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -132866,50 +128819,26 @@ ] }, { - "label": "l43.gate_up", - "kernel": "gemm", + "label": "l43.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.43.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.43.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l43.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -133366,50 +129295,26 @@ ] }, { - "label": "l44.gate_up", - "kernel": "gemm", + "label": "l44.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.44.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.44.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l44.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -133866,50 +129771,26 @@ ] }, { - "label": "l45.gate_up", - "kernel": "gemm", + "label": "l45.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.45.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.45.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l45.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -134366,50 +130247,26 @@ ] }, { - "label": "l46.gate_up", - "kernel": "gemm", + "label": "l46.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.46.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.46.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l46.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -134851,50 +130708,26 @@ ] }, { - "label": "l47.gate_up", - "kernel": "gemm", + "label": "l47.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.47.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.47.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l47.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -135375,50 +131208,26 @@ ] }, { - "label": "l48.gate_up", - "kernel": "gemm", + "label": "l48.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.48.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.48.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l48.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -135875,50 +131684,26 @@ ] }, { - "label": "l49.gate_up", - "kernel": "gemm", + "label": "l49.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.49.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.49.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l49.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -136375,50 +132160,26 @@ ] }, { - "label": "l50.gate_up", - "kernel": "gemm", + "label": "l50.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.50.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.50.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l50.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -136860,50 +132621,26 @@ ] }, { - "label": "l51.gate_up", - "kernel": "gemm", + "label": "l51.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.51.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.51.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l51.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -137360,50 +133097,26 @@ ] }, { - "label": "l52.gate_up", - "kernel": "gemm", + "label": "l52.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.52.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.52.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l52.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -137860,50 +133573,26 @@ ] }, { - "label": "l53.gate_up", - "kernel": "gemm", + "label": "l53.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.53.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.53.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l53.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -138360,50 +134049,26 @@ ] }, { - "label": "l54.gate_up", - "kernel": "gemm", + "label": "l54.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.54.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.54.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l54.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -138845,50 +134510,26 @@ ] }, { - "label": "l55.gate_up", - "kernel": "gemm", + "label": "l55.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.55.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.55.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l55.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -139345,50 +134986,26 @@ ] }, { - "label": "l56.gate_up", - "kernel": "gemm", + "label": "l56.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.56.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.56.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l56.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -139845,50 +135462,26 @@ ] }, { - "label": "l57.gate_up", - "kernel": "gemm", + "label": "l57.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.57.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.57.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l57.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -140345,50 +135938,26 @@ ] }, { - "label": "l58.gate_up", - "kernel": "gemm", + "label": "l58.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.58.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.58.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l58.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -140830,50 +136399,26 @@ ] }, { - "label": "l59.gate_up", - "kernel": "gemm", + "label": "l59.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.59.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.59.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l59.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -141330,50 +136875,26 @@ ] }, { - "label": "l60.gate_up", - "kernel": "gemm", + "label": "l60.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.60.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.60.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l60.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -141830,50 +137351,26 @@ ] }, { - "label": "l61.gate_up", - "kernel": "gemm", + "label": "l61.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.61.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.61.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l61.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -142354,50 +137851,26 @@ ] }, { - "label": "l62.gate_up", - "kernel": "gemm", + "label": "l62.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.62.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.62.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l62.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -142839,50 +138312,26 @@ ] }, { - "label": "l63.gate_up", - "kernel": "gemm", + "label": "l63.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.63.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.63.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l63.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -143559,50 +139008,26 @@ ] }, { - "label": "l0.gate_up", - "kernel": "gemm", + "label": "l0.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "y" + "buf": "act" }, { - "buf": "draft.layers.0.mlp.gate_up_proj.weight" + "buf": "y" }, { - "buf": "gate_up" + "buf": "draft.layers.0.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l0.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -144204,50 +139629,26 @@ ] }, { - "label": "l1.gate_up", - "kernel": "gemm", + "label": "l1.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "y" + "buf": "act" }, { - "buf": "draft.layers.1.mlp.gate_up_proj.weight" + "buf": "y" }, { - "buf": "gate_up" + "buf": "draft.layers.1.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l1.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -144849,50 +140250,26 @@ ] }, { - "label": "l2.gate_up", - "kernel": "gemm", + "label": "l2.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "y" + "buf": "act" }, { - "buf": "draft.layers.2.mlp.gate_up_proj.weight" + "buf": "y" }, { - "buf": "gate_up" + "buf": "draft.layers.2.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l2.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -145494,50 +140871,26 @@ ] }, { - "label": "l3.gate_up", - "kernel": "gemm", + "label": "l3.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "y" + "buf": "act" }, { - "buf": "draft.layers.3.mlp.gate_up_proj.weight" + "buf": "y" }, { - "buf": "gate_up" + "buf": "draft.layers.3.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l3.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -146139,50 +141492,26 @@ ] }, { - "label": "l4.gate_up", - "kernel": "gemm", + "label": "l4.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "y" + "buf": "act" }, { - "buf": "draft.layers.4.mlp.gate_up_proj.weight" + "buf": "y" }, { - "buf": "gate_up" + "buf": "draft.layers.4.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l4.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, diff --git a/examples/qwen3.8-27b.json b/examples/qwen3.8-27b.json index eb41957..2635215 100644 --- a/examples/qwen3.8-27b.json +++ b/examples/qwen3.8-27b.json @@ -5883,6 +5883,63 @@ ] } }, + "gemm8_gateup_silu": { + "params": [ + "out buffer", + "in buffer", + "in buffer", + "i32", + "i32", + "i32" + ], + "impl": { + "steps": [ + { + "symbol": "kern_gemm8_gateup_silu_bf16", + "params": [ + "out buffer", + "in buffer", + "in buffer", + "i32", + "i32", + "i32" + ], + "block": [ + 288, + 1, + 1 + ], + "grid": [ + 152, + 1, + 1 + ], + "args": [ + { + "arg": 0 + }, + { + "arg": 1 + }, + { + "arg": 2 + }, + { + "arg": 3 + }, + { + "arg": 4 + }, + { + "arg": 5 + } + ], + "shared_mem": 224128, + "cubin": "gemm8.cubin" + } + ] + } + }, "copy_rows": { "params": [ "out buffer", @@ -45364,50 +45421,26 @@ ] }, { - "label": "l0.gate_up", - "kernel": "gemm", + "label": "l0.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.0.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.0.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l0.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -45700,50 +45733,26 @@ ] }, { - "label": "l1.gate_up", - "kernel": "gemm", + "label": "l1.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.1.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.1.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l1.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -46036,50 +46045,26 @@ ] }, { - "label": "l2.gate_up", - "kernel": "gemm", + "label": "l2.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.2.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.2.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l2.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -46519,50 +46504,26 @@ ] }, { - "label": "l3.gate_up", - "kernel": "gemm", + "label": "l3.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.3.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.3.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l3.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -46855,50 +46816,26 @@ ] }, { - "label": "l4.gate_up", - "kernel": "gemm", + "label": "l4.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.4.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.4.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l4.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -47191,50 +47128,26 @@ ] }, { - "label": "l5.gate_up", - "kernel": "gemm", + "label": "l5.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.5.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.5.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l5.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -47527,50 +47440,26 @@ ] }, { - "label": "l6.gate_up", - "kernel": "gemm", + "label": "l6.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.6.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.6.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l6.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -48012,50 +47901,26 @@ ] }, { - "label": "l7.gate_up", - "kernel": "gemm", + "label": "l7.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.7.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.7.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l7.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -48348,50 +48213,26 @@ ] }, { - "label": "l8.gate_up", - "kernel": "gemm", + "label": "l8.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.8.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.8.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l8.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -48684,50 +48525,26 @@ ] }, { - "label": "l9.gate_up", - "kernel": "gemm", + "label": "l9.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.9.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.9.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l9.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -49020,50 +48837,26 @@ ] }, { - "label": "l10.gate_up", - "kernel": "gemm", + "label": "l10.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.10.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.10.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l10.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -49505,50 +49298,26 @@ ] }, { - "label": "l11.gate_up", - "kernel": "gemm", + "label": "l11.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.11.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.11.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l11.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -49841,50 +49610,26 @@ ] }, { - "label": "l12.gate_up", - "kernel": "gemm", + "label": "l12.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.12.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.12.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l12.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -50177,50 +49922,26 @@ ] }, { - "label": "l13.gate_up", - "kernel": "gemm", + "label": "l13.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.13.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.13.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l13.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -50513,50 +50234,26 @@ ] }, { - "label": "l14.gate_up", - "kernel": "gemm", + "label": "l14.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.14.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.14.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l14.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -50998,50 +50695,26 @@ ] }, { - "label": "l15.gate_up", - "kernel": "gemm", + "label": "l15.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.15.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.15.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l15.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -51334,50 +51007,26 @@ ] }, { - "label": "l16.gate_up", - "kernel": "gemm", + "label": "l16.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.16.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.16.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l16.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -51670,50 +51319,26 @@ ] }, { - "label": "l17.gate_up", - "kernel": "gemm", + "label": "l17.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.17.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.17.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l17.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -52006,50 +51631,26 @@ ] }, { - "label": "l18.gate_up", - "kernel": "gemm", + "label": "l18.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.18.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.18.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l18.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -52491,50 +52092,26 @@ ] }, { - "label": "l19.gate_up", - "kernel": "gemm", + "label": "l19.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.19.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.19.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l19.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -52827,50 +52404,26 @@ ] }, { - "label": "l20.gate_up", - "kernel": "gemm", + "label": "l20.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.20.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.20.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l20.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -53163,50 +52716,26 @@ ] }, { - "label": "l21.gate_up", - "kernel": "gemm", + "label": "l21.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.21.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.21.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l21.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -53499,50 +53028,26 @@ ] }, { - "label": "l22.gate_up", - "kernel": "gemm", + "label": "l22.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.22.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.22.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l22.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -53984,50 +53489,26 @@ ] }, { - "label": "l23.gate_up", - "kernel": "gemm", + "label": "l23.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.23.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.23.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l23.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -54320,50 +53801,26 @@ ] }, { - "label": "l24.gate_up", - "kernel": "gemm", + "label": "l24.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.24.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.24.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l24.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -54656,50 +54113,26 @@ ] }, { - "label": "l25.gate_up", - "kernel": "gemm", + "label": "l25.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.25.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.25.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l25.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -54992,50 +54425,26 @@ ] }, { - "label": "l26.gate_up", - "kernel": "gemm", + "label": "l26.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.26.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.26.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l26.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -55477,50 +54886,26 @@ ] }, { - "label": "l27.gate_up", - "kernel": "gemm", + "label": "l27.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.27.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.27.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l27.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -55813,50 +55198,26 @@ ] }, { - "label": "l28.gate_up", - "kernel": "gemm", + "label": "l28.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.28.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.28.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l28.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -56149,50 +55510,26 @@ ] }, { - "label": "l29.gate_up", - "kernel": "gemm", + "label": "l29.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.29.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.29.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l29.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -56485,50 +55822,26 @@ ] }, { - "label": "l30.gate_up", - "kernel": "gemm", + "label": "l30.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.30.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.30.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l30.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -56970,50 +56283,26 @@ ] }, { - "label": "l31.gate_up", - "kernel": "gemm", + "label": "l31.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.31.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.31.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l31.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -57306,50 +56595,26 @@ ] }, { - "label": "l32.gate_up", - "kernel": "gemm", + "label": "l32.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.32.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.32.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l32.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -57642,50 +56907,26 @@ ] }, { - "label": "l33.gate_up", - "kernel": "gemm", + "label": "l33.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.33.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.33.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l33.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -57978,50 +57219,26 @@ ] }, { - "label": "l34.gate_up", - "kernel": "gemm", + "label": "l34.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.34.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.34.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l34.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -58463,50 +57680,26 @@ ] }, { - "label": "l35.gate_up", - "kernel": "gemm", + "label": "l35.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.35.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.35.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l35.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -58799,50 +57992,26 @@ ] }, { - "label": "l36.gate_up", - "kernel": "gemm", + "label": "l36.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.36.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.36.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l36.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -59135,50 +58304,26 @@ ] }, { - "label": "l37.gate_up", - "kernel": "gemm", + "label": "l37.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.37.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.37.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l37.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -59471,50 +58616,26 @@ ] }, { - "label": "l38.gate_up", - "kernel": "gemm", + "label": "l38.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.38.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.38.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l38.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -59956,50 +59077,26 @@ ] }, { - "label": "l39.gate_up", - "kernel": "gemm", + "label": "l39.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.39.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.39.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l39.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -60292,50 +59389,26 @@ ] }, { - "label": "l40.gate_up", - "kernel": "gemm", + "label": "l40.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.40.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.40.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l40.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -60628,50 +59701,26 @@ ] }, { - "label": "l41.gate_up", - "kernel": "gemm", + "label": "l41.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.41.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.41.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l41.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -60964,50 +60013,26 @@ ] }, { - "label": "l42.gate_up", - "kernel": "gemm", + "label": "l42.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.42.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.42.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l42.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -61449,50 +60474,26 @@ ] }, { - "label": "l43.gate_up", - "kernel": "gemm", + "label": "l43.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.43.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.43.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l43.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -61785,50 +60786,26 @@ ] }, { - "label": "l44.gate_up", - "kernel": "gemm", + "label": "l44.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.44.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.44.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l44.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -62121,50 +61098,26 @@ ] }, { - "label": "l45.gate_up", - "kernel": "gemm", + "label": "l45.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.45.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.45.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l45.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -62457,50 +61410,26 @@ ] }, { - "label": "l46.gate_up", - "kernel": "gemm", + "label": "l46.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.46.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.46.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l46.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -62942,50 +61871,26 @@ ] }, { - "label": "l47.gate_up", - "kernel": "gemm", + "label": "l47.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.47.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.47.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l47.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -63278,50 +62183,26 @@ ] }, { - "label": "l48.gate_up", - "kernel": "gemm", + "label": "l48.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.48.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.48.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l48.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -63614,50 +62495,26 @@ ] }, { - "label": "l49.gate_up", - "kernel": "gemm", + "label": "l49.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.49.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.49.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l49.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -63950,50 +62807,26 @@ ] }, { - "label": "l50.gate_up", - "kernel": "gemm", + "label": "l50.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.50.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.50.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l50.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -64435,50 +63268,26 @@ ] }, { - "label": "l51.gate_up", - "kernel": "gemm", + "label": "l51.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.51.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.51.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l51.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -64771,50 +63580,26 @@ ] }, { - "label": "l52.gate_up", - "kernel": "gemm", + "label": "l52.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.52.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.52.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l52.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -65107,50 +63892,26 @@ ] }, { - "label": "l53.gate_up", - "kernel": "gemm", + "label": "l53.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.53.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.53.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l53.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -65443,50 +64204,26 @@ ] }, { - "label": "l54.gate_up", - "kernel": "gemm", + "label": "l54.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.54.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.54.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l54.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -65928,50 +64665,26 @@ ] }, { - "label": "l55.gate_up", - "kernel": "gemm", + "label": "l55.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.55.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.55.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l55.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -66264,50 +64977,26 @@ ] }, { - "label": "l56.gate_up", - "kernel": "gemm", + "label": "l56.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.56.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.56.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l56.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -66600,50 +65289,26 @@ ] }, { - "label": "l57.gate_up", - "kernel": "gemm", + "label": "l57.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.57.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.57.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l57.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -66936,50 +65601,26 @@ ] }, { - "label": "l58.gate_up", - "kernel": "gemm", + "label": "l58.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.58.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.58.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l58.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -67421,50 +66062,26 @@ ] }, { - "label": "l59.gate_up", - "kernel": "gemm", + "label": "l59.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.59.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.59.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l59.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -67757,50 +66374,26 @@ ] }, { - "label": "l60.gate_up", - "kernel": "gemm", + "label": "l60.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.60.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.60.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l60.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -68093,50 +66686,26 @@ ] }, { - "label": "l61.gate_up", - "kernel": "gemm", + "label": "l61.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.61.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.61.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l61.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -68429,50 +66998,26 @@ ] }, { - "label": "l62.gate_up", - "kernel": "gemm", + "label": "l62.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.62.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.62.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l62.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, @@ -68914,50 +67459,26 @@ ] }, { - "label": "l63.gate_up", - "kernel": "gemm", + "label": "l63.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.63.mlp.gate_up_proj.weight" + "buf": "x" }, { - "buf": "gate_up" + "buf": "model.layers.63.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, - { - "i32": 34816 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l63.silu_mul", - "kernel": "silu_mul", - "args": [ - { - "buf": "act" - }, - { - "buf": "gate_up" - }, { "i32": 17408 }, { - "i32": 0 - }, - { - "f32": 1.0 - }, - { - "i32": 0 + "i32": 5120 } ] }, diff --git a/tools/gen_qwen35.py b/tools/gen_qwen35.py index c6ee5eb..5a7cbc1 100644 --- a/tools/gen_qwen35.py +++ b/tools/gen_qwen35.py @@ -103,6 +103,9 @@ NT_MAX = CHUNK_MAX // FLA_CHUNK # 32 chunks # attention BLOCK_SIZE = 784 # vLLM block_size (constexpr in the kernels) +GEMM8_GRID = 152 # one persistent CTA per GB300 SM +GEMM8_THREADS = 288 # 1 producer + 8 compute warps +GEMM8_SMEM = 224128 # sizeof(Smem) + alignment (gemm8.cu) BLOCK_Q = 5 # unified 2D: query rows per block NUM_SEGMENTS = 16 # unified 3D: grid.z BLOCK_TABLE_LEN = 8 # vLLM block_table_stride @@ -756,6 +759,14 @@ def layer_norm_kernel(src, grid, rows_shape): cubin="gemma_rms_norm.cubin"), "silu_mul": single(silu_sym, ["out buffer", "in buffer", "i32", "i32", "f32", "i32"], blk("silu"), [T, 1, 1]), + # streaming M<=8 GEMM (tools/kernels-src/gemm8.cu): one persistent CTA + # per GB300 SM, weight rows via TMA ring + mma; grid/block/smem are + # compile-time constants of that kernel + "gemm8_gateup_silu": single("kern_gemm8_gateup_silu_bf16", + ["out buffer", "in buffer", "in buffer", + "i32", "i32", "i32"], + [GEMM8_THREADS, 1, 1], [GEMM8_GRID, 1, 1], + shared_mem=GEMM8_SMEM, cubin="gemm8.cubin"), "copy_rows": single("kern_copy_rows_bf16", ["out buffer", "in buffer", "i32", "i32", "i32"], [256, 1, 1], [T, 1, 1], cubin="copy_rows.cubin"), @@ -1103,6 +1114,9 @@ def forward(decode, taps=False, nacc=None, tail=None): next_token), "decode" (row 0 -> next_token), "verify" (all rows -> verify_tokens).""" tail = tail or ("decode" if decode else "prefill") + # bs<=8 forwards (decode / decode_spec / verify) take the streaming + # gemm8 kernels; chunked prefill keeps cuBLAS + small = decode or tail == "verify" ds = [ d("embed", "embedding", [buf("token_ids"), buf("model.embed_tokens.weight"), buf("residual"), T, i32(HIDDEN)]), @@ -1118,11 +1132,17 @@ def forward(decode, taps=False, nacc=None, tail=None): p = f"model.layers.{i}." l = f"l{i}." ds += attn_layer(i, decode) if i in ATTN_LAYERS else gdn_layer(i, decode, nacc) + if small: + mlp = [d(l + "gate_up_silu", "gemm8_gateup_silu", + [buf("act"), buf("x"), buf(p + "mlp.gate_up_proj.weight"), + T, i32(FFN), i32(HIDDEN)])] + else: + mlp = [gemm(l + "gate_up", "x", p + "mlp.gate_up_proj.weight", "gate_up", T, 2 * FFN, HIDDEN), + d(l + "silu_mul", "silu_mul", + [buf("act"), buf("gate_up"), i32(FFN), i32(0), f32(1.0), i32(0)])] ds += [ fused(l + "post_attn_norm", "y", p + "post_attention_layernorm.weight_p1"), - gemm(l + "gate_up", "x", p + "mlp.gate_up_proj.weight", "gate_up", T, 2 * FFN, HIDDEN), - d(l + "silu_mul", "silu_mul", - [buf("act"), buf("gate_up"), i32(FFN), i32(0), f32(1.0), i32(0)]), + *mlp, gemm(l + "down_proj", "act", p + "mlp.down_proj.weight", "y", T, HIDDEN, FFN), ] last = i + 1 == LAYERS @@ -1215,8 +1235,8 @@ def draft(): gemm(l + "mlp_conv_proj", "y", p + "mlp_conv.kernel_projection.weight", "d_coef", T, D_CONV_PROJ, HIDDEN), d_conv(l + "mlp_conv_pre", "y", p + "mlp_conv", 0), - gemm(l + "gate_up", "y", p + "mlp.gate_up_proj.weight", "gate_up", T, 2 * FFN, HIDDEN), - d(l + "silu_mul", "silu_mul", [buf("act"), buf("gate_up"), i32(FFN), i32(0), f32(1.0), i32(0)]), + d(l + "gate_up_silu", "gemm8_gateup_silu", + [buf("act"), buf("y"), buf(p + "mlp.gate_up_proj.weight"), T, i32(FFN), i32(HIDDEN)]), gemm(l + "down_proj", "act", p + "mlp.down_proj.weight", "x", T, HIDDEN, FFN), d_conv(l + "mlp_conv_post", "x", p + "mlp_conv", 1), d_fused(l + ("final_norm" if last else "next_input_norm"), "x", diff --git a/tools/kernels-src/gemm8.cu b/tools/kernels-src/gemm8.cu new file mode 100644 index 0000000..0ce6d33 --- /dev/null +++ b/tools/kernels-src/gemm8.cu @@ -0,0 +1,484 @@ +// Streaming bf16 GEMM for M <= 8 token rows (bs=1 decode and the 8-row +// draft / verify blocks of DFlash2), Blackwell sm_103a. At these shapes the +// weight matrix is the only real traffic: one persistent CTA per SM pulls its +// weight rows through a smem ring with cp.async.bulk (TMA 1D, plain pointers, +// 40 KB stages of 8 rows) and 8 compute warps multiply each stage with +// mma.m16n8k16 via ldmatrix.x4 (bf16 in, f32 accumulate; the 8 weight rows +// are the n8 side, the <= 8 tokens fill half of m16). x is staged once into +// a dedicated smem area (<= 40960 elements); when M*K exceeds it -- or N is +// too small to balance the grid -- K is cut into ranges, tasks are ordered +// range-major so a CTA reloads x only on a range switch, and the f32 range +// partials go to impl scratch with no atomics: the tail that already reads +// every output element sums them there. Smem rows are padded by 16 B so the +// ldmatrix reads are bank-conflict-free (measured 3.5x slower without). +// +// The tail runs after a single end-of-CTA fence + task-count atomic. With +// grid <= %nsmid (one ~200 KB-smem CTA per SM, the launch geometry of every +// call site) all CTAs are co-resident, so CTAs 0..M-1 spin on the counter and +// each finishes one token row in parallel; on any other geometry the CTA that +// finished last does all rows. Counters are back to zero at kernel end. +// +// Entry points differ in what is fused around the GEMM (rounding chains +// reproduce the vLLM / ATen kernels they replace): +// +// kern_gemm8_bf16 y[M,N] = x W^T +// kern_gemm8_gateup_silu_bf16 act = silu(gate) * up over the fused [2F,K] +// gate_up weight (vLLM act_and_mul: bf16(gate), +// bf16(up), bf16(silu), bf16(product)) +// kern_gemm8_dual_bf16 y1 = x W1^T, y2 = x W2^T (one weight stream) +// kern_gemm8_add_norm_bf16 y = x W^T, then per token row the Gemma +// fused_add_rms_norm (kern_gemma_rms_norm.cu +// arithmetic: z = f32(bf16(y)) + f32(res), +// res = bf16(z), ATen-order mean of z^2, +// out = bf16((z * rsqrt(var + eps)) * w1)) +// +// nvcc -cubin -arch=sm_103a -o kernels-qwen38/gemm8.cubin tools/kernels-src/gemm8.cu +#include +#include + +namespace { +constexpr int MMAX = 8; // token rows per launch +constexpr int R = 8; // weight rows per task (one n8 tile) +constexpr int SEG_MAX = 2560; // K elements per weight row per stage +constexpr int PAD = 8; // 16 B row padding: bank shift 4 +constexpr int X_ELEMS = 40960; // x area capacity (M * kseg elements) +constexpr int X_SLOT = X_ELEMS + MMAX * PAD; +constexpr int RING_ELEMS = 69888; // 3 stages of 8 rows at SEG_MAX; 4-5 for split shapes +constexpr int STAGES_MAX = 6; +constexpr int NCW = 8, CTHREADS = NCW * 32, NTHREADS = CTHREADS + 32; +constexpr int BAR_C = 1; // named barrier of the compute warps +constexpr int NT_ATEN = 512; // ATen reduce block (emulated) + +__device__ __forceinline__ uint32_t smem_u32(const void* p) { return (uint32_t)__cvta_generic_to_shared(p); } +__device__ __forceinline__ void mbar_init(uint32_t bar, uint32_t count) { + asm volatile("mbarrier.init.shared::cta.b64 [%0], %1;" ::"r"(bar), "r"(count)); +} +__device__ __forceinline__ void mbar_expect_tx(uint32_t bar, uint32_t bytes) { + asm volatile("mbarrier.arrive.expect_tx.shared::cta.b64 _, [%0], %1;" ::"r"(bar), "r"(bytes) : "memory"); +} +__device__ __forceinline__ void mbar_arrive(uint32_t bar) { + asm volatile("mbarrier.arrive.shared::cta.b64 _, [%0];" ::"r"(bar) : "memory"); +} +__device__ __forceinline__ void mbar_wait(uint32_t bar, uint32_t parity) { + asm volatile( + "{\n.reg .pred p;\nWAIT_%=:\nmbarrier.try_wait.parity.shared::cta.b64 p, [%0], %1;\n@!p bra WAIT_%=;\n}" ::"r"(bar), + "r"(parity) + : "memory"); +} +__device__ __forceinline__ void fence_barrier_init() { asm volatile("fence.mbarrier_init.release.cluster;" ::: "memory"); } +__device__ __forceinline__ void bulk_copy_1d(uint32_t dst, const void* src, uint32_t bytes, uint32_t bar) { + asm volatile("cp.async.bulk.shared::cluster.global.mbarrier::complete_tx::bytes [%0], [%1], %2, [%3];" ::"r"(dst), "l"(src), + "r"(bytes), "r"(bar) + : "memory"); +} +__device__ __forceinline__ void named_bar_sync(int id, int n) { asm volatile("bar.sync %0, %1;" ::"r"(id), "r"(n) : "memory"); } +__device__ __forceinline__ void mma_bf16_16816(float& c0, float& c1, float& c2, float& c3, uint32_t a0, uint32_t a1, uint32_t a2, + uint32_t a3, uint32_t b0, uint32_t b1) { + asm volatile("mma.sync.aligned.m16n8k16.row.col.f32.bf16.bf16.f32 {%0,%1,%2,%3}, {%4,%5,%6,%7}, {%8,%9}, {%0,%1,%2,%3};" + : "+f"(c0), "+f"(c1), "+f"(c2), "+f"(c3) + : "r"(a0), "r"(a1), "r"(a2), "r"(a3), "r"(b0), "r"(b1)); +} +__device__ __forceinline__ void ldsm_x4(uint32_t& r0, uint32_t& r1, uint32_t& r2, uint32_t& r3, uint32_t addr) { + asm volatile("ldmatrix.sync.aligned.m8n8.x4.shared.b16 {%0,%1,%2,%3}, [%4];" : "=r"(r0), "=r"(r1), "=r"(r2), "=r"(r3) : "r"(addr)); +} +__device__ __forceinline__ int ld_acquire(const int* p) { + int v; + asm volatile("ld.acquire.gpu.global.s32 %0, [%1];" : "=r"(v) : "l"(p) : "memory"); + return v; +} +__device__ __forceinline__ uint32_t nsmid() { + uint32_t n; + asm("mov.u32 %0, %%nsmid;" : "=r"(n)); + return n; +} +__device__ __forceinline__ float bf16r(float v) { return __bfloat162float(__float2bfloat16_rn(v)); } + +struct Smem { + alignas(128) __nv_bfloat16 ring[RING_ELEMS]; // stage s: rows [s*8*(seg+PAD), ...) + alignas(128) __nv_bfloat16 x[X_SLOT]; // current K range of x: M rows, stride kseg+PAD + alignas(8) uint64_t full[STAGES_MAX], empty[STAGES_MAX], xfull, xempty; + float red[NCW][MMAX][R]; + int flag; +}; +constexpr int SMEM_BYTES = sizeof(Smem) + 128; + +enum Mode { PLAIN = 0, GATEUP = 1, DUAL = 2, NORM = 3 }; + +struct Args { + const __nv_bfloat16* x; // [M, ldx] + const __nv_bfloat16* W; // [N, K] (GATEUP: [2F, K]) + const __nv_bfloat16* W2; // DUAL: rows >= N1 + __nv_bfloat16* y; // PLAIN out [M, N]; DUAL y1; GATEUP act [M, F]; NORM: y scratch [M, N] + __nv_bfloat16* y2; // DUAL y2 [M, N2] + float* partial; // [nranges, MMAX, N] f32 scratch, or nullptr (GATEUP / DUAL: never split) + int* gcnt; // [2] i32 scratch: finished tasks / finished rows, zero at rest + int M, N, N1, K, ldx; +}; + +// K ranges: as many as x capacity demands, and at least enough tasks to +// balance the grid when the mode can split (partial != nullptr). +__device__ __forceinline__ int pick_nranges(const Args& a, int nblk) { + int ks = 1; + while ((long long)a.M * ((a.K + ks - 1) / ks + 31 & ~31) > X_ELEMS) ks++; + const int kseg = (a.K + ks - 1) / ks + 31 & ~31; // K % 32 == 0 keeps every stage in whole ldmatrix pairs + return (a.K + kseg - 1) / kseg; +} + +template +__device__ __forceinline__ const __nv_bfloat16* row_ptr(const Args& a, int row) { + if (MODE == GATEUP) { // logical rows are (gate j, up j) pairs + const int j = row >> 1; + return a.W + (size_t)((row & 1) ? a.N + j : j) * a.K; + } + if (MODE == DUAL) return row < a.N1 ? a.W + (size_t)row * a.K : a.W2 + (size_t)(row - a.N1) * a.K; + return a.W + (size_t)row * a.K; +} + +// Output (m, row) of one range. Called by 64 threads (m = ct/8, r = ct%8) of +// two full warps, so the pair shuffle of GATEUP is convergent. +template +__device__ __forceinline__ void emit(const Args& a, int split, int nranges, int m, int row, bool valid, float v) { + if (nranges > 1) { // f32 range partial; the tail folds them + if (valid) a.partial[((size_t)split * MMAX + m) * a.N + row] = v; + return; + } + if (MODE == GATEUP) { + const float other = __shfl_down_sync(0xffffffffu, v, 1); + if (valid && (row & 1) == 0) { + const float g = bf16r(v), u = bf16r(other); + const float sg = bf16r(g / (1.0f + expf(-g))); + a.y[(size_t)m * a.N + (row >> 1)] = __float2bfloat16_rn(sg * u); + } + return; + } + if (!valid) return; + if (MODE == DUAL) { + if (row < a.N1) a.y[(size_t)m * a.N1 + row] = __float2bfloat16_rn(v); + else a.y2[(size_t)m * (a.N - a.N1) + row - a.N1] = __float2bfloat16_rn(v); + } else { + a.y[(size_t)m * a.N + row] = __float2bfloat16_rn(v); + } +} + +// The streaming GEMM proper. Returns (in every thread) whether this CTA +// finished the grid's last task (tail duty when the grid is oversubscribed). +template +__device__ __forceinline__ bool gemm8_core(const Args& a, Smem& s) { + const int warp = threadIdx.x / 32, lane = threadIdx.x % 32; + const int nrows = MODE == GATEUP ? 2 * a.N : a.N; + const int nblk = (nrows + R - 1) / R; + const int nranges = pick_nranges(a, nblk); + const int kseg = (a.K + nranges - 1) / nranges + 31 & ~31; + const int nst0 = (kseg + SEG_MAX - 1) / SEG_MAX; + const int seg = (kseg + nst0 - 1) / nst0 + 31 & ~31; // stage slot width, whole ldmatrix pairs + const int srow = seg + PAD, xrow = kseg + PAD; // smem row strides + const int nstages = min(STAGES_MAX, RING_ELEMS / (R * srow)); + const int ntasks = nblk * nranges; + if (threadIdx.x == 0) { + for (int i = 0; i < nstages; i++) { + mbar_init(smem_u32(&s.full[i]), 1); + mbar_init(smem_u32(&s.empty[i]), NCW); + } + mbar_init(smem_u32(&s.xfull), 1); + mbar_init(smem_u32(&s.xempty), NCW); + fence_barrier_init(); + s.flag = 0; + } + __syncthreads(); + if (warp == 0) { + if (lane == 0) { + int stage = 0; + uint32_t phase = 0, xphase = 0; + int cur_split = -1; + for (int t = blockIdx.x; t < ntasks; t += gridDim.x) { + const int split = t / nblk, blk = t - split * nblk; // range-major + const int r0 = blk * R, rows = min(R, nrows - r0); + const int k0 = split * kseg, klen = min(kseg, a.K - k0); + if (split != cur_split) { // stage this range of x (consumers have released the old one) + mbar_wait(smem_u32(&s.xempty), xphase); + mbar_expect_tx(smem_u32(&s.xfull), a.M * klen * 2); + for (int m = 0; m < a.M; m++) + bulk_copy_1d(smem_u32(&s.x[m * xrow]), a.x + (size_t)m * a.ldx + k0, klen * 2, smem_u32(&s.xfull)); + xphase ^= 1; + cur_split = split; + } + for (int st = 0, off = 0; off < klen; st++, off += seg) { + const int len = min(seg, klen - off); + mbar_wait(smem_u32(&s.empty[stage]), phase ^ 1); + mbar_expect_tx(smem_u32(&s.full[stage]), rows * len * 2); + __nv_bfloat16* dst = &s.ring[stage * R * srow]; + for (int r = 0; r < rows; r++) + bulk_copy_1d(smem_u32(dst + r * srow), row_ptr(a, r0 + r) + k0 + off, len * 2, smem_u32(&s.full[stage])); + if (++stage == nstages) { stage = 0; phase ^= 1; } + } + } + } + __syncthreads(); // matches the compute warps' final barrier + return s.flag != 0; + } + const int ct = threadIdx.x - 32, cw = warp - 1; + int stage = 0; + uint32_t phase = 0, xphase = 0; + int cur_split = -1; + for (int t = blockIdx.x; t < ntasks; t += gridDim.x) { + const int split = t / nblk, blk = t - split * nblk; + const int r0 = blk * R, rows = min(R, nrows - r0); + const int klen = min(kseg, a.K - split * kseg); + if (split != cur_split) { // release the old x range, wait for the new one + if (lane == 0) mbar_arrive(smem_u32(&s.xempty)); + mbar_wait(smem_u32(&s.xfull), xphase); + xphase ^= 1; + cur_split = split; + } + // ldmatrix.x4 row addresses: lane l supplies row l%8 of the 8x8 matrix + // (l/8) = k tile-half; matrices (k 0-7, 8-15, 16-23, 24-31) of a 32-k + // pair of tiles come back as (b0, b1, b0', b1') / (a0, a2, a0', a2'). + // x rows beyond M are never emitted: clamp them onto row M-1 (broadcast). + const uint32_t xbase = smem_u32(&s.x[min(lane & 7, a.M - 1) * xrow + (lane >> 3) * 8]); + float c[4][4]; +#pragma unroll + for (int j = 0; j < 4; j++) c[j][0] = c[j][1] = c[j][2] = c[j][3] = 0.f; + for (int st = 0, off = 0; off < klen; st++, off += seg) { + const int npairs = min(seg, klen - off) / 32; // len % 32 == 0 (every K is) + mbar_wait(smem_u32(&s.full[stage]), phase); + const uint32_t wbase = smem_u32(&s.ring[stage * R * srow + (lane & 7) * srow + (lane >> 3) * 8]); + const uint32_t xoff = xbase + off * 2; + int pr = cw; + for (; pr + NCW < npairs; pr += 2 * NCW) { + uint32_t a0[4], a2[4], b0[4], b1[4]; +#pragma unroll + for (int j = 0; j < 2; j++) { + const uint32_t o = (pr + j * NCW) * 64; // 32 elements * 2 B + ldsm_x4(a0[2 * j], a2[2 * j], a0[2 * j + 1], a2[2 * j + 1], xoff + o); + ldsm_x4(b0[2 * j], b1[2 * j], b0[2 * j + 1], b1[2 * j + 1], wbase + o); + } +#pragma unroll + for (int j = 0; j < 4; j++) mma_bf16_16816(c[j][0], c[j][1], c[j][2], c[j][3], a0[j], 0u, a2[j], 0u, b0[j], b1[j]); + } + if (pr < npairs) { + uint32_t a0[2], a2[2], b0[2], b1[2]; + ldsm_x4(a0[0], a2[0], a0[1], a2[1], xoff + pr * 64); + ldsm_x4(b0[0], b1[0], b0[1], b1[1], wbase + pr * 64); + mma_bf16_16816(c[0][0], c[0][1], c[0][2], c[0][3], a0[0], 0u, a2[0], 0u, b0[0], b1[0]); + mma_bf16_16816(c[1][0], c[1][1], c[1][2], c[1][3], a0[1], 0u, a2[1], 0u, b0[1], b1[1]); + } + __syncwarp(); + if (lane == 0) mbar_arrive(smem_u32(&s.empty[stage])); + if (++stage == nstages) { stage = 0; phase ^= 1; } + } + // (c0, c1) = out[token q = lane/4][rows 2p, 2p+1], p = lane%4 + s.red[cw][lane >> 2][2 * (lane & 3)] = (c[0][0] + c[1][0]) + (c[2][0] + c[3][0]); + s.red[cw][lane >> 2][2 * (lane & 3) + 1] = (c[0][1] + c[1][1]) + (c[2][1] + c[3][1]); + named_bar_sync(BAR_C, CTHREADS); + if (ct < MMAX * R) { + const int m = ct >> 3, r = ct & 7; + float v = 0.f; +#pragma unroll + for (int w = 0; w < NCW; w++) v += s.red[w][m][r]; + emit(a, split, nranges, m, r0 + r, m < a.M && r < rows, v); + } + named_bar_sync(BAR_C, CTHREADS); + } + if (ct == 0) { // one thread of the compute warps + const int my = (ntasks - (int)blockIdx.x + (int)gridDim.x - 1) / (int)gridDim.x; + if (my > 0 && a.gcnt) { + __threadfence(); + const int old = atomicAdd(a.gcnt, my); + if (old + my == ntasks) { __threadfence(); s.flag = 1; } + } + } + __syncthreads(); + return s.flag != 0; +} + +// ---- tail: fold range partials, optionally Gemma fused_add_rms_norm ---- +__device__ __forceinline__ int last_pow2(int n) { + n |= (n >> 1); n |= (n >> 2); n |= (n >> 4); n |= (n >> 8); n |= (n >> 16); + return (n - (n >> 1)) > 0 ? (n - (n >> 1)) : 1; +} +// ATen ReduceConfig::set_block_dimension(dim0 = N/4, dim1 = rows), mnt=512. +__device__ __forceinline__ int aten_block_width(int dim0, int dim1) { + const int max_threads = NT_ATEN; + int dim0_pow2 = dim0 < max_threads ? last_pow2(dim0) : max_threads; + int dim1_pow2 = dim1 < max_threads ? last_pow2(dim1) : max_threads; + int block_width = min(dim0_pow2, 32); + int block_height = min(dim1_pow2, max_threads / block_width); + block_width = min(dim0_pow2, max_threads / block_height); + return block_width; +} +// Sum of z[j]^2 over j in [0, N) in ATen's order (sq[j] = fmul_rn(z, z), then +// the vectorized-by-4 reduction of kern_gemma_rms_norm.cu) for W virtual +// lanes emulated by NTHREADS threads (lane l = t + v*NTHREADS); the result is +// returned in every thread. +__device__ float aten_row_sumsq(const float* __restrict__ z, int N, int W, float* __restrict__ s) { + const int t = threadIdx.x; + constexpr int VL = (NT_ATEN + NTHREADS - 1) / NTHREADS; + if (t < 32) s[t] = 0.f; + __syncthreads(); +#pragma unroll + for (int v = 0; v < VL; v++) { + const int l = t + v * NTHREADS; + if (l < W) { + float acc[4] = {0.f, 0.f, 0.f, 0.f}; + for (int idx = l; idx * 4 + 3 < N; idx += W) { + const float4 x4 = *reinterpret_cast(z + idx * 4); + acc[0] += __fmul_rn(x4.x, x4.x); acc[1] += __fmul_rn(x4.y, x4.y); + acc[2] += __fmul_rn(x4.z, x4.z); acc[3] += __fmul_rn(x4.w, x4.w); + } + s[l] = ((acc[0] + acc[1]) + acc[2]) + acc[3]; + } + } + __syncthreads(); + for (int off = W / 2; off >= 32; off >>= 1) { +#pragma unroll + for (int v = 0; v < VL; v++) { + const int l = t + v * NTHREADS; + if (l < off && l + off < W) s[l] += s[l + off]; + } + __syncthreads(); + } + float value = t < 32 ? s[t] : 0.f; + if (t < 32) { + for (int off = 16; off > 0; off >>= 1) value += __shfl_down_sync(0xffffffffu, value, off); + if (t == 0) s[0] = value; + } + __syncthreads(); + return s[0]; +} + +// The f32 GEMM value of elements [j8, j8+4) of row m: the folded range +// partials, or the y scratch when the GEMM ran unsplit. +__device__ __forceinline__ float4 ysum4(const Args& a, int nranges, int m, int j) { + if (nranges == 1) { + const __nv_bfloat162 lo = __ldcg(reinterpret_cast(a.y + (size_t)m * a.N + j)); + const __nv_bfloat162 hi = __ldcg(reinterpret_cast(a.y + (size_t)m * a.N + j + 2)); + const float2 l = __bfloat1622float2(lo), h = __bfloat1622float2(hi); + return make_float4(l.x, l.y, h.x, h.y); + } + // guarded full unroll: all range loads issue before the adds need them + float4 p[8]; +#pragma unroll + for (int sp = 0; sp < 8; sp++) + if (sp < nranges) p[sp] = __ldcg(reinterpret_cast(a.partial + ((size_t)sp * MMAX + m) * a.N + j)); + float4 v = p[0]; +#pragma unroll + for (int sp = 1; sp < 8; sp++) + if (sp < nranges) { v.x += p[sp].x; v.y += p[sp].y; v.z += p[sp].z; v.w += p[sp].w; } + return v; +} + +// Rows [m0, m1) of the tail. NORM: vLLM's Gemma fused_add_rms_norm with +// ATen's reduction width for the launch's M rows; z lives in smem (ring). +// PLAIN: just fold the partials to bf16 y. +template +__device__ void tail_rows(const Args& a, int nranges, int m0, int m1, const float* w1, __nv_bfloat16* res, __nv_bfloat16* out, + float eps, float* __restrict__ z, float* __restrict__ s) { + const int N = a.N; + for (int m = m0; m < m1; m++) { + for (int j = threadIdx.x * 4; j < N; j += NTHREADS * 4) { + float4 v = ysum4(a, nranges, m, j); + if (MODE == NORM) { + __nv_bfloat16* rr = res + (size_t)m * N + j; + v.x = bf16r(v.x); v.y = bf16r(v.y); v.z = bf16r(v.z); v.w = bf16r(v.w); // the bf16 y rounding + const float2 r0 = __bfloat1622float2(*reinterpret_cast(rr)); + const float2 r1 = __bfloat1622float2(*reinterpret_cast(rr + 2)); + v.x = __fadd_rn(v.x, r0.x); v.y = __fadd_rn(v.y, r0.y); + v.z = __fadd_rn(v.z, r1.x); v.w = __fadd_rn(v.w, r1.y); + *reinterpret_cast<__nv_bfloat162*>(rr) = __floats2bfloat162_rn(v.x, v.y); + *reinterpret_cast<__nv_bfloat162*>(rr + 2) = __floats2bfloat162_rn(v.z, v.w); + *reinterpret_cast(z + j) = v; + } else { + __nv_bfloat16* yy = a.y + (size_t)m * N + j; + *reinterpret_cast<__nv_bfloat162*>(yy) = __floats2bfloat162_rn(v.x, v.y); + *reinterpret_cast<__nv_bfloat162*>(yy + 2) = __floats2bfloat162_rn(v.z, v.w); + } + } + if (MODE != NORM) continue; + __syncthreads(); + const int W = aten_block_width(N / 4, a.M); + const float sum = aten_row_sumsq(z, N, W, s); + const float factor = (float)a.M / (float)((long long)a.M * (long long)N); + const float var = __fmul_rn(sum, factor); + const float r = rsqrtf(__fadd_rn(var, eps)); + for (int j = threadIdx.x * 4; j < N; j += NTHREADS * 4) { + const float4 zv = *reinterpret_cast(z + j); + const float4 w0 = *reinterpret_cast(w1 + j); + __nv_bfloat162 o0 = __floats2bfloat162_rn(__fmul_rn(__fmul_rn(zv.x, r), w0.x), __fmul_rn(__fmul_rn(zv.y, r), w0.y)); + __nv_bfloat162 o1 = __floats2bfloat162_rn(__fmul_rn(__fmul_rn(zv.z, r), w0.z), __fmul_rn(__fmul_rn(zv.w, r), w0.w)); + *reinterpret_cast<__nv_bfloat162*>(out + (size_t)m * N + j) = o0; + *reinterpret_cast<__nv_bfloat162*>(out + (size_t)m * N + j + 2) = o1; + } + __syncthreads(); + } +} + +// Tail driver: cooperative one-row-per-CTA when the whole grid is resident, +// else all rows in the CTA that finished last. +template +__device__ __forceinline__ void run_tail(const Args& a, Smem& s, bool last, __nv_bfloat16* res, const float* w1, + __nv_bfloat16* out, float eps) { + const int nrows = MODE == GATEUP ? 2 * a.N : a.N; + const int nblk = (nrows + R - 1) / R; + const int nranges = pick_nranges(a, nblk); + if (MODE != NORM && nranges == 1) return; // nothing left to do + static_assert(sizeof(s.ring) >= 6144 * 4, "z row: N <= 6144"); + float* z = reinterpret_cast(&s.ring[0]); + if (gridDim.x <= nsmid()) { + if ((int)blockIdx.x >= a.M) return; + if (threadIdx.x == 0) + while (ld_acquire(a.gcnt) < nblk * nranges) __nanosleep(64); + __syncthreads(); + tail_rows(a, nranges, blockIdx.x, blockIdx.x + 1, w1, res, out, eps, z, &s.red[0][0][0]); + __syncthreads(); + if (threadIdx.x == 0 && atomicAdd(a.gcnt + 1, 1) == a.M - 1) { + a.gcnt[1] = 0; + a.gcnt[0] = 0; + __threadfence(); + } + } else if (last) { + __threadfence(); + tail_rows(a, nranges, 0, a.M, w1, res, out, eps, z, &s.red[0][0][0]); + __syncthreads(); + if (threadIdx.x == 0) { *a.gcnt = 0; __threadfence(); } + } +} +} // namespace + +#define GEMM8_SMEM \ + extern __shared__ char smem_raw[]; \ + Smem& s = *reinterpret_cast((reinterpret_cast(smem_raw) + 127) & ~uintptr_t(127)) + +extern "C" __global__ void __launch_bounds__(NTHREADS, 1) +kern_gemm8_bf16(__nv_bfloat16* __restrict__ y, const __nv_bfloat16* __restrict__ x, const __nv_bfloat16* __restrict__ W, + float* __restrict__ partial, int* __restrict__ gcnt, int M, int N, int K) { + GEMM8_SMEM; + Args a{x, W, nullptr, y, nullptr, partial, gcnt, M, N, 0, K, K}; + const bool last = gemm8_core(a, s); + run_tail(a, s, last, nullptr, nullptr, nullptr, 0.f); +} + +extern "C" __global__ void __launch_bounds__(NTHREADS, 1) +kern_gemm8_gateup_silu_bf16(__nv_bfloat16* __restrict__ act, const __nv_bfloat16* __restrict__ x, + const __nv_bfloat16* __restrict__ W, int M, int F, int K) { + GEMM8_SMEM; + Args a{x, W, nullptr, act, nullptr, nullptr, nullptr, M, F, 0, K, K}; // M*K <= X_ELEMS: never splits + gemm8_core(a, s); +} + +extern "C" __global__ void __launch_bounds__(NTHREADS, 1) +kern_gemm8_dual_bf16(__nv_bfloat16* __restrict__ y1, __nv_bfloat16* __restrict__ y2, const __nv_bfloat16* __restrict__ x, + const __nv_bfloat16* __restrict__ W1, const __nv_bfloat16* __restrict__ W2, int M, int N1, int N2, int K) { + GEMM8_SMEM; + Args a{x, W1, W2, y1, y2, nullptr, nullptr, M, N1 + N2, N1, K, K}; // M*K <= X_ELEMS: never splits + gemm8_core(a, s); +} + +extern "C" __global__ void __launch_bounds__(NTHREADS, 1) +kern_gemm8_add_norm_bf16(__nv_bfloat16* __restrict__ out, const __nv_bfloat16* __restrict__ x, const __nv_bfloat16* __restrict__ W, + __nv_bfloat16* __restrict__ res, const float* __restrict__ w1, __nv_bfloat16* __restrict__ y, + float* __restrict__ partial, int* __restrict__ gcnt, int M, int N, int K, float eps) { + GEMM8_SMEM; + Args a{x, W, nullptr, y, nullptr, partial, gcnt, M, N, 0, K, K}; + const bool last = gemm8_core(a, s); + run_tail(a, s, last, res, w1, out, eps); +} From 773eff539267a833b9c1714fc109eb9bc4ae899a Mon Sep 17 00:00:00 2001 From: JinYan Su <751080330@qq.com> Date: Mon, 31 Aug 2026 16:40:05 +0000 Subject: [PATCH 02/10] qwen38: fuse down GEMM + residual add + next input norm (bs<=8) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit kern_gemm8_add_norm_bf16: the down_proj GEMM with the following fused_add_rms_norm folded into its tail. K=17408 splits into ranges that fit the x smem area (f32 range partials in impl scratch, no atomics on the hot path); after one end-of-CTA fence + task-count atomic, CTAs 0..M-1 each normalize one token row (all 152 CTAs are co-resident at ~220 KB smem / CTA; on any other geometry the last CTA does all rows). The tail reproduces the ATen chain of kern_gemma_rms_norm.cu, including the bf16 rounding of the GEMM output that cublasLt used to store. Replaces gemm(down_proj) + gemma_fused_norm in decode / decode_spec / verify (target layers; the draft's down_proj feeds a grouped conv instead of a norm and keeps cuBLAS). -64 dispatches per program; the y buffer leaves the decode dataflow. gcnt scratch is declared `out` although the kernel reads it: its contents are zero at rest (alloc_zeros + self-reset in the tail). kern-attest (A = previous commit, B = this one, GB300): qwen3.8-27b.json — 64 cuts (gemm+gemma_fused_norm -> gemm8_add_norm): | decode tokens=1 | A | B measured | delta | | step, eager | 13.654 ms | 13.521 ms | -133 us -1.0% | | step, graph (TPOT) | 11.031 ms | 10.937 ms | -94 us 91 tok/s | | sum of 64 cuts | 3.148 ms | 2.875 ms | -272 us -8.6% | qwen3.8-27b-dflash2.json — same 64 cuts in decode: | step, eager | 14.999 ms | 14.663 ms | −336.0 µs −2.2% | | step, graph (TPOT) | 11.559 ms | 11.381 ms | −177.9 µs −1.5% | | Σ 64 cuts (the swap) | 3.162 ms | 2.868 ms | −293.9 µs −9.3% | Verdict: INCONCLUSIVE as in the previous commit (f32 accumulation order vs cublasLt inside the cut); next_token / draft_tokens / verify_tokens bit-identical on the tap prompt, noise floor clean, fuzz <= 7 ulp on uniform/normal/laplace/outliers, <= 194 ulp on edge, special bit-identical. Signed-off-by: JinYan Su <751080330@qq.com> --- examples/qwen3.8-27b-dflash2.json | 7019 ++++++----------------------- examples/qwen3.8-27b.json | 2411 ++-------- tools/gen_qwen35.py | 41 +- 3 files changed, 1784 insertions(+), 7687 deletions(-) diff --git a/examples/qwen3.8-27b-dflash2.json b/examples/qwen3.8-27b-dflash2.json index 9b1cb82..b0b12bb 100644 --- a/examples/qwen3.8-27b-dflash2.json +++ b/examples/qwen3.8-27b-dflash2.json @@ -6701,6 +6701,113 @@ ] } }, + "gemm8_add_norm": { + "params": [ + "out buffer", + "in buffer", + "in buffer", + "inout buffer", + "in buffer", + "i32", + "i32", + "i32", + "f32" + ], + "impl": { + "scratch": { + "y": { + "dtype": "bf16", + "shape": [ + 8, + 5120 + ] + }, + "partial": { + "dtype": "f32", + "shape": [ + 8, + 8, + 5120 + ] + }, + "gcnt": { + "dtype": "i32", + "shape": [ + 2 + ] + } + }, + "steps": [ + { + "symbol": "kern_gemm8_add_norm_bf16", + "params": [ + "out buffer", + "in buffer", + "in buffer", + "inout buffer", + "in buffer", + "out buffer", + "out buffer", + "out buffer", + "i32", + "i32", + "i32", + "f32" + ], + "block": [ + 288, + 1, + 1 + ], + "grid": [ + 152, + 1, + 1 + ], + "args": [ + { + "arg": 0 + }, + { + "arg": 1 + }, + { + "arg": 2 + }, + { + "arg": 3 + }, + { + "arg": 4 + }, + { + "scratch": "y" + }, + { + "scratch": "partial" + }, + { + "scratch": "gcnt" + }, + { + "arg": 5 + }, + { + "arg": 6 + }, + { + "arg": 7 + }, + { + "arg": 8 + } + ], + "shared_mem": 224128, + "cubin": "gemm8.cubin" + } + ] + } + }, "copy_rows": { "params": [ "out buffer", @@ -47618,38 +47725,17 @@ ] }, { - "label": "l0.down_proj", - "kernel": "gemm", + "label": "l0.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.0.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l0.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.0.mlp.down_proj.weight" }, { "buf": "residual" @@ -47657,9 +47743,6 @@ { "buf": "model.layers.1.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -47667,7 +47750,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -48094,38 +48177,17 @@ ] }, { - "label": "l1.down_proj", - "kernel": "gemm", + "label": "l1.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.1.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l1.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.1.mlp.down_proj.weight" }, { "buf": "residual" @@ -48133,9 +48195,6 @@ { "buf": "model.layers.2.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -48143,7 +48202,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -48570,38 +48629,17 @@ ] }, { - "label": "l2.down_proj", - "kernel": "gemm", + "label": "l2.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.2.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l2.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.2.mlp.down_proj.weight" }, { "buf": "residual" @@ -48609,9 +48647,6 @@ { "buf": "model.layers.3.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -48619,7 +48654,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -49029,38 +49064,17 @@ ] }, { - "label": "l3.down_proj", - "kernel": "gemm", + "label": "l3.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.3.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l3.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.3.mlp.down_proj.weight" }, { "buf": "residual" @@ -49068,9 +49082,6 @@ { "buf": "model.layers.4.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -49078,7 +49089,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -49505,38 +49516,17 @@ ] }, { - "label": "l4.down_proj", - "kernel": "gemm", + "label": "l4.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.4.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l4.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.4.mlp.down_proj.weight" }, { "buf": "residual" @@ -49544,9 +49534,6 @@ { "buf": "model.layers.5.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -49554,7 +49541,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -49981,38 +49968,17 @@ ] }, { - "label": "l5.down_proj", - "kernel": "gemm", + "label": "l5.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.5.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l5.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.5.mlp.down_proj.weight" }, { "buf": "residual" @@ -50020,9 +49986,6 @@ { "buf": "model.layers.6.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -50030,7 +49993,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -50457,38 +50420,17 @@ ] }, { - "label": "l6.down_proj", - "kernel": "gemm", + "label": "l6.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.6.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l6.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.6.mlp.down_proj.weight" }, { "buf": "residual" @@ -50496,9 +50438,6 @@ { "buf": "model.layers.7.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -50506,7 +50445,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -50918,38 +50857,17 @@ ] }, { - "label": "l7.down_proj", - "kernel": "gemm", + "label": "l7.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.7.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l7.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.7.mlp.down_proj.weight" }, { "buf": "residual" @@ -50957,9 +50875,6 @@ { "buf": "model.layers.8.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -50967,7 +50882,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -51394,38 +51309,17 @@ ] }, { - "label": "l8.down_proj", - "kernel": "gemm", + "label": "l8.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.8.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l8.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.8.mlp.down_proj.weight" }, { "buf": "residual" @@ -51433,9 +51327,6 @@ { "buf": "model.layers.9.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -51443,7 +51334,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -51870,38 +51761,17 @@ ] }, { - "label": "l9.down_proj", - "kernel": "gemm", + "label": "l9.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.9.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l9.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.9.mlp.down_proj.weight" }, { "buf": "residual" @@ -51909,9 +51779,6 @@ { "buf": "model.layers.10.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -51919,7 +51786,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -52346,38 +52213,17 @@ ] }, { - "label": "l10.down_proj", - "kernel": "gemm", + "label": "l10.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.10.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l10.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.10.mlp.down_proj.weight" }, { "buf": "residual" @@ -52385,9 +52231,6 @@ { "buf": "model.layers.11.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -52395,7 +52238,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -52807,38 +52650,17 @@ ] }, { - "label": "l11.down_proj", - "kernel": "gemm", + "label": "l11.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.11.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l11.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.11.mlp.down_proj.weight" }, { "buf": "residual" @@ -52846,9 +52668,6 @@ { "buf": "model.layers.12.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -52856,7 +52675,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -53283,38 +53102,17 @@ ] }, { - "label": "l12.down_proj", - "kernel": "gemm", + "label": "l12.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.12.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l12.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.12.mlp.down_proj.weight" }, { "buf": "residual" @@ -53322,9 +53120,6 @@ { "buf": "model.layers.13.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -53332,7 +53127,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -53759,38 +53554,17 @@ ] }, { - "label": "l13.down_proj", - "kernel": "gemm", + "label": "l13.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.13.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l13.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.13.mlp.down_proj.weight" }, { "buf": "residual" @@ -53798,9 +53572,6 @@ { "buf": "model.layers.14.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -53808,7 +53579,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -54235,38 +54006,17 @@ ] }, { - "label": "l14.down_proj", - "kernel": "gemm", + "label": "l14.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.14.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l14.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.14.mlp.down_proj.weight" }, { "buf": "residual" @@ -54274,9 +54024,6 @@ { "buf": "model.layers.15.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -54284,7 +54031,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -54696,38 +54443,17 @@ ] }, { - "label": "l15.down_proj", - "kernel": "gemm", + "label": "l15.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.15.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l15.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.15.mlp.down_proj.weight" }, { "buf": "residual" @@ -54735,9 +54461,6 @@ { "buf": "model.layers.16.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -54745,7 +54468,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -55172,38 +54895,17 @@ ] }, { - "label": "l16.down_proj", - "kernel": "gemm", + "label": "l16.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.16.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l16.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.16.mlp.down_proj.weight" }, { "buf": "residual" @@ -55211,9 +54913,6 @@ { "buf": "model.layers.17.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -55221,7 +54920,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -55648,38 +55347,17 @@ ] }, { - "label": "l17.down_proj", - "kernel": "gemm", + "label": "l17.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.17.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l17.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.17.mlp.down_proj.weight" }, { "buf": "residual" @@ -55687,9 +55365,6 @@ { "buf": "model.layers.18.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -55697,7 +55372,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -56124,38 +55799,17 @@ ] }, { - "label": "l18.down_proj", - "kernel": "gemm", + "label": "l18.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.18.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l18.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.18.mlp.down_proj.weight" }, { "buf": "residual" @@ -56163,9 +55817,6 @@ { "buf": "model.layers.19.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -56173,7 +55824,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -56585,38 +56236,17 @@ ] }, { - "label": "l19.down_proj", - "kernel": "gemm", + "label": "l19.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.19.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l19.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.19.mlp.down_proj.weight" }, { "buf": "residual" @@ -56624,9 +56254,6 @@ { "buf": "model.layers.20.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -56634,7 +56261,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -57061,38 +56688,17 @@ ] }, { - "label": "l20.down_proj", - "kernel": "gemm", + "label": "l20.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.20.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l20.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.20.mlp.down_proj.weight" }, { "buf": "residual" @@ -57100,9 +56706,6 @@ { "buf": "model.layers.21.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -57110,7 +56713,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -57537,38 +57140,17 @@ ] }, { - "label": "l21.down_proj", - "kernel": "gemm", + "label": "l21.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.21.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l21.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.21.mlp.down_proj.weight" }, { "buf": "residual" @@ -57576,9 +57158,6 @@ { "buf": "model.layers.22.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -57586,7 +57165,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -58013,38 +57592,17 @@ ] }, { - "label": "l22.down_proj", - "kernel": "gemm", + "label": "l22.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.22.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l22.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.22.mlp.down_proj.weight" }, { "buf": "residual" @@ -58052,9 +57610,6 @@ { "buf": "model.layers.23.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -58062,7 +57617,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -58474,38 +58029,17 @@ ] }, { - "label": "l23.down_proj", - "kernel": "gemm", + "label": "l23.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.23.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l23.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.23.mlp.down_proj.weight" }, { "buf": "residual" @@ -58513,9 +58047,6 @@ { "buf": "model.layers.24.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -58523,7 +58054,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -58950,38 +58481,17 @@ ] }, { - "label": "l24.down_proj", - "kernel": "gemm", + "label": "l24.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.24.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l24.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.24.mlp.down_proj.weight" }, { "buf": "residual" @@ -58989,9 +58499,6 @@ { "buf": "model.layers.25.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -58999,7 +58506,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -59426,38 +58933,17 @@ ] }, { - "label": "l25.down_proj", - "kernel": "gemm", + "label": "l25.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.25.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l25.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.25.mlp.down_proj.weight" }, { "buf": "residual" @@ -59465,9 +58951,6 @@ { "buf": "model.layers.26.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -59475,7 +58958,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -59902,38 +59385,17 @@ ] }, { - "label": "l26.down_proj", - "kernel": "gemm", + "label": "l26.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.26.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l26.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.26.mlp.down_proj.weight" }, { "buf": "residual" @@ -59941,9 +59403,6 @@ { "buf": "model.layers.27.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -59951,7 +59410,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -60363,38 +59822,17 @@ ] }, { - "label": "l27.down_proj", - "kernel": "gemm", + "label": "l27.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.27.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l27.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.27.mlp.down_proj.weight" }, { "buf": "residual" @@ -60402,9 +59840,6 @@ { "buf": "model.layers.28.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -60412,7 +59847,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -60839,38 +60274,17 @@ ] }, { - "label": "l28.down_proj", - "kernel": "gemm", + "label": "l28.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.28.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l28.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.28.mlp.down_proj.weight" }, { "buf": "residual" @@ -60878,9 +60292,6 @@ { "buf": "model.layers.29.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -60888,7 +60299,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -61315,38 +60726,17 @@ ] }, { - "label": "l29.down_proj", - "kernel": "gemm", + "label": "l29.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.29.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l29.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.29.mlp.down_proj.weight" }, { "buf": "residual" @@ -61354,9 +60744,6 @@ { "buf": "model.layers.30.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -61364,7 +60751,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -61791,38 +61178,17 @@ ] }, { - "label": "l30.down_proj", - "kernel": "gemm", + "label": "l30.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.30.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l30.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.30.mlp.down_proj.weight" }, { "buf": "residual" @@ -61830,9 +61196,6 @@ { "buf": "model.layers.31.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -61840,7 +61203,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -62252,38 +61615,17 @@ ] }, { - "label": "l31.down_proj", - "kernel": "gemm", + "label": "l31.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.31.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l31.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.31.mlp.down_proj.weight" }, { "buf": "residual" @@ -62291,9 +61633,6 @@ { "buf": "model.layers.32.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -62301,7 +61640,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -62728,38 +62067,17 @@ ] }, { - "label": "l32.down_proj", - "kernel": "gemm", + "label": "l32.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.32.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l32.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.32.mlp.down_proj.weight" }, { "buf": "residual" @@ -62767,9 +62085,6 @@ { "buf": "model.layers.33.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -62777,7 +62092,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -63204,38 +62519,17 @@ ] }, { - "label": "l33.down_proj", - "kernel": "gemm", + "label": "l33.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.33.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l33.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.33.mlp.down_proj.weight" }, { "buf": "residual" @@ -63243,9 +62537,6 @@ { "buf": "model.layers.34.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -63253,7 +62544,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -63680,38 +62971,17 @@ ] }, { - "label": "l34.down_proj", - "kernel": "gemm", + "label": "l34.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.34.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l34.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.34.mlp.down_proj.weight" }, { "buf": "residual" @@ -63719,9 +62989,6 @@ { "buf": "model.layers.35.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -63729,7 +62996,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -64141,38 +63408,17 @@ ] }, { - "label": "l35.down_proj", - "kernel": "gemm", + "label": "l35.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.35.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l35.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.35.mlp.down_proj.weight" }, { "buf": "residual" @@ -64180,9 +63426,6 @@ { "buf": "model.layers.36.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -64190,7 +63433,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -64617,38 +63860,17 @@ ] }, { - "label": "l36.down_proj", - "kernel": "gemm", + "label": "l36.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.36.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l36.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.36.mlp.down_proj.weight" }, { "buf": "residual" @@ -64656,9 +63878,6 @@ { "buf": "model.layers.37.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -64666,7 +63885,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -65093,38 +64312,17 @@ ] }, { - "label": "l37.down_proj", - "kernel": "gemm", + "label": "l37.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.37.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l37.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.37.mlp.down_proj.weight" }, { "buf": "residual" @@ -65132,9 +64330,6 @@ { "buf": "model.layers.38.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -65142,7 +64337,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -65569,38 +64764,17 @@ ] }, { - "label": "l38.down_proj", - "kernel": "gemm", + "label": "l38.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.38.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l38.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.38.mlp.down_proj.weight" }, { "buf": "residual" @@ -65608,9 +64782,6 @@ { "buf": "model.layers.39.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -65618,7 +64789,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -66030,38 +65201,17 @@ ] }, { - "label": "l39.down_proj", - "kernel": "gemm", + "label": "l39.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.39.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l39.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.39.mlp.down_proj.weight" }, { "buf": "residual" @@ -66069,9 +65219,6 @@ { "buf": "model.layers.40.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -66079,7 +65226,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -66506,38 +65653,17 @@ ] }, { - "label": "l40.down_proj", - "kernel": "gemm", + "label": "l40.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.40.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l40.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.40.mlp.down_proj.weight" }, { "buf": "residual" @@ -66545,9 +65671,6 @@ { "buf": "model.layers.41.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -66555,7 +65678,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -66982,38 +66105,17 @@ ] }, { - "label": "l41.down_proj", - "kernel": "gemm", + "label": "l41.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.41.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l41.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.41.mlp.down_proj.weight" }, { "buf": "residual" @@ -67021,9 +66123,6 @@ { "buf": "model.layers.42.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -67031,7 +66130,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -67458,38 +66557,17 @@ ] }, { - "label": "l42.down_proj", - "kernel": "gemm", + "label": "l42.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.42.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l42.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.42.mlp.down_proj.weight" }, { "buf": "residual" @@ -67497,9 +66575,6 @@ { "buf": "model.layers.43.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -67507,7 +66582,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -67919,38 +66994,17 @@ ] }, { - "label": "l43.down_proj", - "kernel": "gemm", + "label": "l43.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.43.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l43.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.43.mlp.down_proj.weight" }, { "buf": "residual" @@ -67958,9 +67012,6 @@ { "buf": "model.layers.44.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -67968,7 +67019,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -68395,38 +67446,17 @@ ] }, { - "label": "l44.down_proj", - "kernel": "gemm", + "label": "l44.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.44.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l44.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.44.mlp.down_proj.weight" }, { "buf": "residual" @@ -68434,9 +67464,6 @@ { "buf": "model.layers.45.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -68444,7 +67471,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -68871,38 +67898,17 @@ ] }, { - "label": "l45.down_proj", - "kernel": "gemm", + "label": "l45.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.45.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l45.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.45.mlp.down_proj.weight" }, { "buf": "residual" @@ -68910,9 +67916,6 @@ { "buf": "model.layers.46.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -68920,7 +67923,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -69347,38 +68350,17 @@ ] }, { - "label": "l46.down_proj", - "kernel": "gemm", + "label": "l46.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.46.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l46.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.46.mlp.down_proj.weight" }, { "buf": "residual" @@ -69386,9 +68368,6 @@ { "buf": "model.layers.47.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -69396,7 +68375,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -69808,38 +68787,17 @@ ] }, { - "label": "l47.down_proj", - "kernel": "gemm", + "label": "l47.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.47.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l47.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.47.mlp.down_proj.weight" }, { "buf": "residual" @@ -69847,9 +68805,6 @@ { "buf": "model.layers.48.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -69857,7 +68812,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -70284,38 +69239,17 @@ ] }, { - "label": "l48.down_proj", - "kernel": "gemm", + "label": "l48.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.48.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l48.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.48.mlp.down_proj.weight" }, { "buf": "residual" @@ -70323,9 +69257,6 @@ { "buf": "model.layers.49.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -70333,7 +69264,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -70760,38 +69691,17 @@ ] }, { - "label": "l49.down_proj", - "kernel": "gemm", + "label": "l49.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.49.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l49.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.49.mlp.down_proj.weight" }, { "buf": "residual" @@ -70799,9 +69709,6 @@ { "buf": "model.layers.50.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -70809,7 +69716,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -71236,38 +70143,17 @@ ] }, { - "label": "l50.down_proj", - "kernel": "gemm", + "label": "l50.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.50.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l50.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.50.mlp.down_proj.weight" }, { "buf": "residual" @@ -71275,9 +70161,6 @@ { "buf": "model.layers.51.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -71285,7 +70168,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -71697,38 +70580,17 @@ ] }, { - "label": "l51.down_proj", - "kernel": "gemm", + "label": "l51.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.51.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l51.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.51.mlp.down_proj.weight" }, { "buf": "residual" @@ -71736,9 +70598,6 @@ { "buf": "model.layers.52.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -71746,7 +70605,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -72173,38 +71032,17 @@ ] }, { - "label": "l52.down_proj", - "kernel": "gemm", + "label": "l52.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.52.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l52.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.52.mlp.down_proj.weight" }, { "buf": "residual" @@ -72212,9 +71050,6 @@ { "buf": "model.layers.53.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -72222,7 +71057,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -72649,38 +71484,17 @@ ] }, { - "label": "l53.down_proj", - "kernel": "gemm", + "label": "l53.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.53.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l53.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.53.mlp.down_proj.weight" }, { "buf": "residual" @@ -72688,9 +71502,6 @@ { "buf": "model.layers.54.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -72698,7 +71509,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -73125,38 +71936,17 @@ ] }, { - "label": "l54.down_proj", - "kernel": "gemm", + "label": "l54.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.54.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l54.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.54.mlp.down_proj.weight" }, { "buf": "residual" @@ -73164,9 +71954,6 @@ { "buf": "model.layers.55.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -73174,7 +71961,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -73586,38 +72373,17 @@ ] }, { - "label": "l55.down_proj", - "kernel": "gemm", + "label": "l55.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.55.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l55.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.55.mlp.down_proj.weight" }, { "buf": "residual" @@ -73625,9 +72391,6 @@ { "buf": "model.layers.56.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -73635,7 +72398,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -74062,38 +72825,17 @@ ] }, { - "label": "l56.down_proj", - "kernel": "gemm", + "label": "l56.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.56.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l56.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.56.mlp.down_proj.weight" }, { "buf": "residual" @@ -74101,9 +72843,6 @@ { "buf": "model.layers.57.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -74111,7 +72850,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -74538,38 +73277,17 @@ ] }, { - "label": "l57.down_proj", - "kernel": "gemm", + "label": "l57.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.57.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l57.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.57.mlp.down_proj.weight" }, { "buf": "residual" @@ -74577,9 +73295,6 @@ { "buf": "model.layers.58.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -74587,7 +73302,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -75014,38 +73729,17 @@ ] }, { - "label": "l58.down_proj", - "kernel": "gemm", + "label": "l58.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.58.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l58.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.58.mlp.down_proj.weight" }, { "buf": "residual" @@ -75053,9 +73747,6 @@ { "buf": "model.layers.59.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -75063,7 +73754,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -75475,38 +74166,17 @@ ] }, { - "label": "l59.down_proj", - "kernel": "gemm", + "label": "l59.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.59.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l59.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.59.mlp.down_proj.weight" }, { "buf": "residual" @@ -75514,9 +74184,6 @@ { "buf": "model.layers.60.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -75524,7 +74191,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -75951,38 +74618,17 @@ ] }, { - "label": "l60.down_proj", - "kernel": "gemm", + "label": "l60.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.60.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l60.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.60.mlp.down_proj.weight" }, { "buf": "residual" @@ -75990,9 +74636,6 @@ { "buf": "model.layers.61.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -76000,7 +74643,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -76427,38 +75070,17 @@ ] }, { - "label": "l61.down_proj", - "kernel": "gemm", + "label": "l61.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.61.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l61.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.61.mlp.down_proj.weight" }, { "buf": "residual" @@ -76466,9 +75088,6 @@ { "buf": "model.layers.62.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -76476,7 +75095,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -76903,38 +75522,17 @@ ] }, { - "label": "l62.down_proj", - "kernel": "gemm", + "label": "l62.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.62.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l62.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.62.mlp.down_proj.weight" }, { "buf": "residual" @@ -76942,9 +75540,6 @@ { "buf": "model.layers.63.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -76952,7 +75547,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -77364,38 +75959,17 @@ ] }, { - "label": "l63.down_proj", - "kernel": "gemm", + "label": "l63.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.63.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l63.final_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.63.mlp.down_proj.weight" }, { "buf": "residual" @@ -77403,9 +75977,6 @@ { "buf": "model.norm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -77413,7 +75984,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -77984,38 +76555,17 @@ ] }, { - "label": "l0.down_proj", - "kernel": "gemm", + "label": "l0.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.0.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l0.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.0.mlp.down_proj.weight" }, { "buf": "residual" @@ -78023,9 +76573,6 @@ { "buf": "model.layers.1.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -78033,7 +76580,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -78460,38 +77007,17 @@ ] }, { - "label": "l1.down_proj", - "kernel": "gemm", + "label": "l1.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.1.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l1.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.1.mlp.down_proj.weight" }, { "buf": "residual" @@ -78499,9 +77025,6 @@ { "buf": "model.layers.2.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -78509,7 +77032,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -78936,38 +77459,17 @@ ] }, { - "label": "l2.down_proj", - "kernel": "gemm", + "label": "l2.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.2.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l2.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.2.mlp.down_proj.weight" }, { "buf": "residual" @@ -78975,9 +77477,6 @@ { "buf": "model.layers.3.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -78985,7 +77484,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -79395,38 +77894,17 @@ ] }, { - "label": "l3.down_proj", - "kernel": "gemm", + "label": "l3.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.3.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l3.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.3.mlp.down_proj.weight" }, { "buf": "residual" @@ -79434,9 +77912,6 @@ { "buf": "model.layers.4.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -79444,7 +77919,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -79871,38 +78346,17 @@ ] }, { - "label": "l4.down_proj", - "kernel": "gemm", + "label": "l4.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.4.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l4.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.4.mlp.down_proj.weight" }, { "buf": "residual" @@ -79910,9 +78364,6 @@ { "buf": "model.layers.5.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -79920,7 +78371,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -80347,38 +78798,17 @@ ] }, { - "label": "l5.down_proj", - "kernel": "gemm", + "label": "l5.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.5.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l5.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.5.mlp.down_proj.weight" }, { "buf": "residual" @@ -80386,9 +78816,6 @@ { "buf": "model.layers.6.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -80396,7 +78823,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -80847,38 +79274,17 @@ ] }, { - "label": "l6.down_proj", - "kernel": "gemm", + "label": "l6.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.6.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l6.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.6.mlp.down_proj.weight" }, { "buf": "residual" @@ -80886,9 +79292,6 @@ { "buf": "model.layers.7.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -80896,7 +79299,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -81308,38 +79711,17 @@ ] }, { - "label": "l7.down_proj", - "kernel": "gemm", + "label": "l7.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.7.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l7.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.7.mlp.down_proj.weight" }, { "buf": "residual" @@ -81347,9 +79729,6 @@ { "buf": "model.layers.8.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -81357,7 +79736,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -81784,38 +80163,17 @@ ] }, { - "label": "l8.down_proj", - "kernel": "gemm", + "label": "l8.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.8.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l8.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.8.mlp.down_proj.weight" }, { "buf": "residual" @@ -81823,9 +80181,6 @@ { "buf": "model.layers.9.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -81833,7 +80188,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -82260,38 +80615,17 @@ ] }, { - "label": "l9.down_proj", - "kernel": "gemm", + "label": "l9.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.9.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l9.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.9.mlp.down_proj.weight" }, { "buf": "residual" @@ -82299,9 +80633,6 @@ { "buf": "model.layers.10.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -82309,7 +80640,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -82736,38 +81067,17 @@ ] }, { - "label": "l10.down_proj", - "kernel": "gemm", + "label": "l10.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.10.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l10.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.10.mlp.down_proj.weight" }, { "buf": "residual" @@ -82775,9 +81085,6 @@ { "buf": "model.layers.11.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -82785,7 +81092,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -83197,38 +81504,17 @@ ] }, { - "label": "l11.down_proj", - "kernel": "gemm", + "label": "l11.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.11.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l11.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.11.mlp.down_proj.weight" }, { "buf": "residual" @@ -83236,9 +81522,6 @@ { "buf": "model.layers.12.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -83246,7 +81529,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -83673,38 +81956,17 @@ ] }, { - "label": "l12.down_proj", - "kernel": "gemm", + "label": "l12.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.12.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l12.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.12.mlp.down_proj.weight" }, { "buf": "residual" @@ -83712,9 +81974,6 @@ { "buf": "model.layers.13.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -83722,7 +81981,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -84149,38 +82408,17 @@ ] }, { - "label": "l13.down_proj", - "kernel": "gemm", + "label": "l13.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.13.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l13.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.13.mlp.down_proj.weight" }, { "buf": "residual" @@ -84188,9 +82426,6 @@ { "buf": "model.layers.14.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -84198,7 +82433,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -84625,38 +82860,17 @@ ] }, { - "label": "l14.down_proj", - "kernel": "gemm", + "label": "l14.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.14.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l14.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.14.mlp.down_proj.weight" }, { "buf": "residual" @@ -84664,9 +82878,6 @@ { "buf": "model.layers.15.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -84674,7 +82885,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -85086,38 +83297,17 @@ ] }, { - "label": "l15.down_proj", - "kernel": "gemm", + "label": "l15.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.15.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l15.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.15.mlp.down_proj.weight" }, { "buf": "residual" @@ -85125,9 +83315,6 @@ { "buf": "model.layers.16.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -85135,7 +83322,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -85562,38 +83749,17 @@ ] }, { - "label": "l16.down_proj", - "kernel": "gemm", + "label": "l16.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.16.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l16.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.16.mlp.down_proj.weight" }, { "buf": "residual" @@ -85601,9 +83767,6 @@ { "buf": "model.layers.17.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -85611,7 +83774,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -86038,38 +84201,17 @@ ] }, { - "label": "l17.down_proj", - "kernel": "gemm", + "label": "l17.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.17.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l17.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.17.mlp.down_proj.weight" }, { "buf": "residual" @@ -86077,9 +84219,6 @@ { "buf": "model.layers.18.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -86087,7 +84226,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -86514,38 +84653,17 @@ ] }, { - "label": "l18.down_proj", - "kernel": "gemm", + "label": "l18.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.18.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l18.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.18.mlp.down_proj.weight" }, { "buf": "residual" @@ -86553,9 +84671,6 @@ { "buf": "model.layers.19.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -86563,7 +84678,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -86975,38 +85090,17 @@ ] }, { - "label": "l19.down_proj", - "kernel": "gemm", + "label": "l19.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.19.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l19.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.19.mlp.down_proj.weight" }, { "buf": "residual" @@ -87014,9 +85108,6 @@ { "buf": "model.layers.20.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -87024,7 +85115,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -87475,38 +85566,17 @@ ] }, { - "label": "l20.down_proj", - "kernel": "gemm", + "label": "l20.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.20.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l20.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.20.mlp.down_proj.weight" }, { "buf": "residual" @@ -87514,9 +85584,6 @@ { "buf": "model.layers.21.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -87524,7 +85591,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -87951,38 +86018,17 @@ ] }, { - "label": "l21.down_proj", - "kernel": "gemm", + "label": "l21.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.21.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l21.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.21.mlp.down_proj.weight" }, { "buf": "residual" @@ -87990,9 +86036,6 @@ { "buf": "model.layers.22.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -88000,7 +86043,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -88427,38 +86470,17 @@ ] }, { - "label": "l22.down_proj", - "kernel": "gemm", + "label": "l22.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.22.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l22.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.22.mlp.down_proj.weight" }, { "buf": "residual" @@ -88466,9 +86488,6 @@ { "buf": "model.layers.23.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -88476,7 +86495,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -88888,38 +86907,17 @@ ] }, { - "label": "l23.down_proj", - "kernel": "gemm", + "label": "l23.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.23.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l23.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.23.mlp.down_proj.weight" }, { "buf": "residual" @@ -88927,9 +86925,6 @@ { "buf": "model.layers.24.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -88937,7 +86932,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -89364,38 +87359,17 @@ ] }, { - "label": "l24.down_proj", - "kernel": "gemm", + "label": "l24.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.24.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l24.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.24.mlp.down_proj.weight" }, { "buf": "residual" @@ -89403,9 +87377,6 @@ { "buf": "model.layers.25.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -89413,7 +87384,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -89840,38 +87811,17 @@ ] }, { - "label": "l25.down_proj", - "kernel": "gemm", + "label": "l25.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.25.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l25.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.25.mlp.down_proj.weight" }, { "buf": "residual" @@ -89879,9 +87829,6 @@ { "buf": "model.layers.26.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -89889,7 +87836,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -90316,38 +88263,17 @@ ] }, { - "label": "l26.down_proj", - "kernel": "gemm", + "label": "l26.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.26.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l26.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.26.mlp.down_proj.weight" }, { "buf": "residual" @@ -90355,9 +88281,6 @@ { "buf": "model.layers.27.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -90365,7 +88288,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -90777,38 +88700,17 @@ ] }, { - "label": "l27.down_proj", - "kernel": "gemm", + "label": "l27.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.27.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l27.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.27.mlp.down_proj.weight" }, { "buf": "residual" @@ -90816,9 +88718,6 @@ { "buf": "model.layers.28.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -90826,7 +88725,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -91253,38 +89152,17 @@ ] }, { - "label": "l28.down_proj", - "kernel": "gemm", + "label": "l28.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.28.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l28.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.28.mlp.down_proj.weight" }, { "buf": "residual" @@ -91292,9 +89170,6 @@ { "buf": "model.layers.29.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -91302,7 +89177,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -91729,38 +89604,17 @@ ] }, { - "label": "l29.down_proj", - "kernel": "gemm", + "label": "l29.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.29.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l29.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.29.mlp.down_proj.weight" }, { "buf": "residual" @@ -91768,9 +89622,6 @@ { "buf": "model.layers.30.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -91778,7 +89629,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -92205,38 +90056,17 @@ ] }, { - "label": "l30.down_proj", - "kernel": "gemm", + "label": "l30.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.30.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l30.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.30.mlp.down_proj.weight" }, { "buf": "residual" @@ -92244,9 +90074,6 @@ { "buf": "model.layers.31.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -92254,7 +90081,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -92666,38 +90493,17 @@ ] }, { - "label": "l31.down_proj", - "kernel": "gemm", + "label": "l31.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.31.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l31.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.31.mlp.down_proj.weight" }, { "buf": "residual" @@ -92705,9 +90511,6 @@ { "buf": "model.layers.32.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -92715,7 +90518,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -93142,38 +90945,17 @@ ] }, { - "label": "l32.down_proj", - "kernel": "gemm", + "label": "l32.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.32.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l32.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.32.mlp.down_proj.weight" }, { "buf": "residual" @@ -93181,9 +90963,6 @@ { "buf": "model.layers.33.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -93191,7 +90970,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -93618,38 +91397,17 @@ ] }, { - "label": "l33.down_proj", - "kernel": "gemm", + "label": "l33.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.33.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l33.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.33.mlp.down_proj.weight" }, { "buf": "residual" @@ -93657,9 +91415,6 @@ { "buf": "model.layers.34.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -93667,7 +91422,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -94118,38 +91873,17 @@ ] }, { - "label": "l34.down_proj", - "kernel": "gemm", + "label": "l34.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.34.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l34.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.34.mlp.down_proj.weight" }, { "buf": "residual" @@ -94157,9 +91891,6 @@ { "buf": "model.layers.35.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -94167,7 +91898,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -94579,38 +92310,17 @@ ] }, { - "label": "l35.down_proj", - "kernel": "gemm", + "label": "l35.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.35.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l35.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.35.mlp.down_proj.weight" }, { "buf": "residual" @@ -94618,9 +92328,6 @@ { "buf": "model.layers.36.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -94628,7 +92335,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -95055,38 +92762,17 @@ ] }, { - "label": "l36.down_proj", - "kernel": "gemm", + "label": "l36.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.36.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l36.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.36.mlp.down_proj.weight" }, { "buf": "residual" @@ -95094,9 +92780,6 @@ { "buf": "model.layers.37.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -95104,7 +92787,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -95531,38 +93214,17 @@ ] }, { - "label": "l37.down_proj", - "kernel": "gemm", + "label": "l37.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.37.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l37.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.37.mlp.down_proj.weight" }, { "buf": "residual" @@ -95570,9 +93232,6 @@ { "buf": "model.layers.38.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -95580,7 +93239,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -96007,38 +93666,17 @@ ] }, { - "label": "l38.down_proj", - "kernel": "gemm", + "label": "l38.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.38.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l38.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.38.mlp.down_proj.weight" }, { "buf": "residual" @@ -96046,9 +93684,6 @@ { "buf": "model.layers.39.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -96056,7 +93691,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -96468,38 +94103,17 @@ ] }, { - "label": "l39.down_proj", - "kernel": "gemm", + "label": "l39.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.39.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l39.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.39.mlp.down_proj.weight" }, { "buf": "residual" @@ -96507,9 +94121,6 @@ { "buf": "model.layers.40.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -96517,7 +94128,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -96944,38 +94555,17 @@ ] }, { - "label": "l40.down_proj", - "kernel": "gemm", + "label": "l40.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.40.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l40.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.40.mlp.down_proj.weight" }, { "buf": "residual" @@ -96983,9 +94573,6 @@ { "buf": "model.layers.41.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -96993,7 +94580,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -97420,38 +95007,17 @@ ] }, { - "label": "l41.down_proj", - "kernel": "gemm", + "label": "l41.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.41.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l41.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.41.mlp.down_proj.weight" }, { "buf": "residual" @@ -97459,9 +95025,6 @@ { "buf": "model.layers.42.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -97469,7 +95032,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -97896,38 +95459,17 @@ ] }, { - "label": "l42.down_proj", - "kernel": "gemm", + "label": "l42.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.42.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l42.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.42.mlp.down_proj.weight" }, { "buf": "residual" @@ -97935,9 +95477,6 @@ { "buf": "model.layers.43.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -97945,7 +95484,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -98357,38 +95896,17 @@ ] }, { - "label": "l43.down_proj", - "kernel": "gemm", + "label": "l43.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.43.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l43.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.43.mlp.down_proj.weight" }, { "buf": "residual" @@ -98396,9 +95914,6 @@ { "buf": "model.layers.44.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -98406,7 +95921,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -98833,38 +96348,17 @@ ] }, { - "label": "l44.down_proj", - "kernel": "gemm", + "label": "l44.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.44.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l44.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.44.mlp.down_proj.weight" }, { "buf": "residual" @@ -98872,9 +96366,6 @@ { "buf": "model.layers.45.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -98882,7 +96373,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -99309,38 +96800,17 @@ ] }, { - "label": "l45.down_proj", - "kernel": "gemm", + "label": "l45.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.45.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l45.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.45.mlp.down_proj.weight" }, { "buf": "residual" @@ -99348,9 +96818,6 @@ { "buf": "model.layers.46.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -99358,7 +96825,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -99785,38 +97252,17 @@ ] }, { - "label": "l46.down_proj", - "kernel": "gemm", + "label": "l46.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.46.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l46.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.46.mlp.down_proj.weight" }, { "buf": "residual" @@ -99824,9 +97270,6 @@ { "buf": "model.layers.47.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -99834,7 +97277,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -100246,38 +97689,17 @@ ] }, { - "label": "l47.down_proj", - "kernel": "gemm", + "label": "l47.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.47.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l47.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.47.mlp.down_proj.weight" }, { "buf": "residual" @@ -100285,9 +97707,6 @@ { "buf": "model.layers.48.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -100295,7 +97714,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -100746,38 +98165,17 @@ ] }, { - "label": "l48.down_proj", - "kernel": "gemm", + "label": "l48.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.48.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l48.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.48.mlp.down_proj.weight" }, { "buf": "residual" @@ -100785,9 +98183,6 @@ { "buf": "model.layers.49.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -100795,7 +98190,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -101222,38 +98617,17 @@ ] }, { - "label": "l49.down_proj", - "kernel": "gemm", + "label": "l49.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.49.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l49.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.49.mlp.down_proj.weight" }, { "buf": "residual" @@ -101261,9 +98635,6 @@ { "buf": "model.layers.50.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -101271,7 +98642,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -101698,38 +99069,17 @@ ] }, { - "label": "l50.down_proj", - "kernel": "gemm", + "label": "l50.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.50.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l50.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.50.mlp.down_proj.weight" }, { "buf": "residual" @@ -101737,9 +99087,6 @@ { "buf": "model.layers.51.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -101747,7 +99094,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -102159,38 +99506,17 @@ ] }, { - "label": "l51.down_proj", - "kernel": "gemm", + "label": "l51.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.51.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l51.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.51.mlp.down_proj.weight" }, { "buf": "residual" @@ -102198,9 +99524,6 @@ { "buf": "model.layers.52.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -102208,7 +99531,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -102635,38 +99958,17 @@ ] }, { - "label": "l52.down_proj", - "kernel": "gemm", + "label": "l52.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.52.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l52.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.52.mlp.down_proj.weight" }, { "buf": "residual" @@ -102674,9 +99976,6 @@ { "buf": "model.layers.53.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -102684,7 +99983,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -103111,38 +100410,17 @@ ] }, { - "label": "l53.down_proj", - "kernel": "gemm", + "label": "l53.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.53.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l53.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.53.mlp.down_proj.weight" }, { "buf": "residual" @@ -103150,9 +100428,6 @@ { "buf": "model.layers.54.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -103160,7 +100435,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -103587,38 +100862,17 @@ ] }, { - "label": "l54.down_proj", - "kernel": "gemm", + "label": "l54.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.54.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l54.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.54.mlp.down_proj.weight" }, { "buf": "residual" @@ -103626,9 +100880,6 @@ { "buf": "model.layers.55.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -103636,7 +100887,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -104048,38 +101299,17 @@ ] }, { - "label": "l55.down_proj", - "kernel": "gemm", + "label": "l55.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.55.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l55.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.55.mlp.down_proj.weight" }, { "buf": "residual" @@ -104087,9 +101317,6 @@ { "buf": "model.layers.56.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -104097,7 +101324,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -104524,38 +101751,17 @@ ] }, { - "label": "l56.down_proj", - "kernel": "gemm", + "label": "l56.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.56.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l56.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.56.mlp.down_proj.weight" }, { "buf": "residual" @@ -104563,9 +101769,6 @@ { "buf": "model.layers.57.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -104573,7 +101776,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -105000,38 +102203,17 @@ ] }, { - "label": "l57.down_proj", - "kernel": "gemm", + "label": "l57.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.57.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l57.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.57.mlp.down_proj.weight" }, { "buf": "residual" @@ -105039,9 +102221,6 @@ { "buf": "model.layers.58.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -105049,7 +102228,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -105476,38 +102655,17 @@ ] }, { - "label": "l58.down_proj", - "kernel": "gemm", + "label": "l58.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.58.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l58.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.58.mlp.down_proj.weight" }, { "buf": "residual" @@ -105515,9 +102673,6 @@ { "buf": "model.layers.59.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -105525,7 +102680,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -105937,38 +103092,17 @@ ] }, { - "label": "l59.down_proj", - "kernel": "gemm", + "label": "l59.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.59.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l59.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.59.mlp.down_proj.weight" }, { "buf": "residual" @@ -105976,9 +103110,6 @@ { "buf": "model.layers.60.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -105986,7 +103117,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -106413,38 +103544,17 @@ ] }, { - "label": "l60.down_proj", - "kernel": "gemm", + "label": "l60.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.60.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l60.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.60.mlp.down_proj.weight" }, { "buf": "residual" @@ -106452,9 +103562,6 @@ { "buf": "model.layers.61.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -106462,7 +103569,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -106889,38 +103996,17 @@ ] }, { - "label": "l61.down_proj", - "kernel": "gemm", + "label": "l61.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.61.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l61.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.61.mlp.down_proj.weight" }, { "buf": "residual" @@ -106928,9 +104014,6 @@ { "buf": "model.layers.62.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -106938,7 +104021,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -107389,38 +104472,17 @@ ] }, { - "label": "l62.down_proj", - "kernel": "gemm", + "label": "l62.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.62.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l62.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.62.mlp.down_proj.weight" }, { "buf": "residual" @@ -107428,9 +104490,6 @@ { "buf": "model.layers.63.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -107438,7 +104497,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -107850,38 +104909,17 @@ ] }, { - "label": "l63.down_proj", - "kernel": "gemm", + "label": "l63.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.63.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l63.final_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.63.mlp.down_proj.weight" }, { "buf": "residual" @@ -107889,9 +104927,6 @@ { "buf": "model.norm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -107899,7 +104934,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -108470,38 +105505,17 @@ ] }, { - "label": "l0.down_proj", - "kernel": "gemm", + "label": "l0.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.0.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l0.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.0.mlp.down_proj.weight" }, { "buf": "residual" @@ -108509,9 +105523,6 @@ { "buf": "model.layers.1.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -108519,7 +105530,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -108946,38 +105957,17 @@ ] }, { - "label": "l1.down_proj", - "kernel": "gemm", + "label": "l1.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.1.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l1.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.1.mlp.down_proj.weight" }, { "buf": "residual" @@ -108985,9 +105975,6 @@ { "buf": "model.layers.2.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -108995,7 +105982,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -109422,38 +106409,17 @@ ] }, { - "label": "l2.down_proj", - "kernel": "gemm", + "label": "l2.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.2.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l2.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.2.mlp.down_proj.weight" }, { "buf": "residual" @@ -109461,9 +106427,6 @@ { "buf": "model.layers.3.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -109471,7 +106434,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -109881,38 +106844,17 @@ ] }, { - "label": "l3.down_proj", - "kernel": "gemm", + "label": "l3.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.3.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l3.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.3.mlp.down_proj.weight" }, { "buf": "residual" @@ -109920,9 +106862,6 @@ { "buf": "model.layers.4.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -109930,7 +106869,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -110357,38 +107296,17 @@ ] }, { - "label": "l4.down_proj", - "kernel": "gemm", + "label": "l4.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.4.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l4.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.4.mlp.down_proj.weight" }, { "buf": "residual" @@ -110396,9 +107314,6 @@ { "buf": "model.layers.5.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -110406,7 +107321,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -110833,38 +107748,17 @@ ] }, { - "label": "l5.down_proj", - "kernel": "gemm", + "label": "l5.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.5.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l5.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.5.mlp.down_proj.weight" }, { "buf": "residual" @@ -110872,9 +107766,6 @@ { "buf": "model.layers.6.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -110882,7 +107773,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -111333,38 +108224,17 @@ ] }, { - "label": "l6.down_proj", - "kernel": "gemm", + "label": "l6.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.6.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l6.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.6.mlp.down_proj.weight" }, { "buf": "residual" @@ -111372,9 +108242,6 @@ { "buf": "model.layers.7.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -111382,7 +108249,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -111794,38 +108661,17 @@ ] }, { - "label": "l7.down_proj", - "kernel": "gemm", + "label": "l7.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.7.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l7.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.7.mlp.down_proj.weight" }, { "buf": "residual" @@ -111833,9 +108679,6 @@ { "buf": "model.layers.8.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -111843,7 +108686,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -112270,38 +109113,17 @@ ] }, { - "label": "l8.down_proj", - "kernel": "gemm", + "label": "l8.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.8.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l8.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.8.mlp.down_proj.weight" }, { "buf": "residual" @@ -112309,9 +109131,6 @@ { "buf": "model.layers.9.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -112319,7 +109138,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -112746,38 +109565,17 @@ ] }, { - "label": "l9.down_proj", - "kernel": "gemm", + "label": "l9.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.9.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l9.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.9.mlp.down_proj.weight" }, { "buf": "residual" @@ -112785,9 +109583,6 @@ { "buf": "model.layers.10.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -112795,7 +109590,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -113222,38 +110017,17 @@ ] }, { - "label": "l10.down_proj", - "kernel": "gemm", + "label": "l10.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.10.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l10.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.10.mlp.down_proj.weight" }, { "buf": "residual" @@ -113261,9 +110035,6 @@ { "buf": "model.layers.11.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -113271,7 +110042,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -113683,38 +110454,17 @@ ] }, { - "label": "l11.down_proj", - "kernel": "gemm", + "label": "l11.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.11.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l11.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.11.mlp.down_proj.weight" }, { "buf": "residual" @@ -113722,9 +110472,6 @@ { "buf": "model.layers.12.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -113732,7 +110479,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -114159,38 +110906,17 @@ ] }, { - "label": "l12.down_proj", - "kernel": "gemm", + "label": "l12.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.12.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l12.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.12.mlp.down_proj.weight" }, { "buf": "residual" @@ -114198,9 +110924,6 @@ { "buf": "model.layers.13.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -114208,7 +110931,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -114635,38 +111358,17 @@ ] }, { - "label": "l13.down_proj", - "kernel": "gemm", + "label": "l13.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.13.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l13.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.13.mlp.down_proj.weight" }, { "buf": "residual" @@ -114674,9 +111376,6 @@ { "buf": "model.layers.14.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -114684,7 +111383,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -115111,38 +111810,17 @@ ] }, { - "label": "l14.down_proj", - "kernel": "gemm", + "label": "l14.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.14.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l14.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.14.mlp.down_proj.weight" }, { "buf": "residual" @@ -115150,9 +111828,6 @@ { "buf": "model.layers.15.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -115160,7 +111835,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -115572,38 +112247,17 @@ ] }, { - "label": "l15.down_proj", - "kernel": "gemm", + "label": "l15.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.15.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l15.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.15.mlp.down_proj.weight" }, { "buf": "residual" @@ -115611,9 +112265,6 @@ { "buf": "model.layers.16.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -115621,7 +112272,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -116048,38 +112699,17 @@ ] }, { - "label": "l16.down_proj", - "kernel": "gemm", + "label": "l16.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.16.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l16.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.16.mlp.down_proj.weight" }, { "buf": "residual" @@ -116087,9 +112717,6 @@ { "buf": "model.layers.17.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -116097,7 +112724,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -116524,38 +113151,17 @@ ] }, { - "label": "l17.down_proj", - "kernel": "gemm", + "label": "l17.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.17.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l17.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.17.mlp.down_proj.weight" }, { "buf": "residual" @@ -116563,9 +113169,6 @@ { "buf": "model.layers.18.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -116573,7 +113176,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -117000,38 +113603,17 @@ ] }, { - "label": "l18.down_proj", - "kernel": "gemm", + "label": "l18.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.18.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l18.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.18.mlp.down_proj.weight" }, { "buf": "residual" @@ -117039,9 +113621,6 @@ { "buf": "model.layers.19.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -117049,7 +113628,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -117461,38 +114040,17 @@ ] }, { - "label": "l19.down_proj", - "kernel": "gemm", + "label": "l19.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.19.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l19.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.19.mlp.down_proj.weight" }, { "buf": "residual" @@ -117500,9 +114058,6 @@ { "buf": "model.layers.20.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -117510,7 +114065,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -117961,38 +114516,17 @@ ] }, { - "label": "l20.down_proj", - "kernel": "gemm", + "label": "l20.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.20.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l20.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.20.mlp.down_proj.weight" }, { "buf": "residual" @@ -118000,9 +114534,6 @@ { "buf": "model.layers.21.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -118010,7 +114541,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -118437,38 +114968,17 @@ ] }, { - "label": "l21.down_proj", - "kernel": "gemm", + "label": "l21.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.21.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l21.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.21.mlp.down_proj.weight" }, { "buf": "residual" @@ -118476,9 +114986,6 @@ { "buf": "model.layers.22.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -118486,7 +114993,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -118913,38 +115420,17 @@ ] }, { - "label": "l22.down_proj", - "kernel": "gemm", + "label": "l22.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.22.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l22.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.22.mlp.down_proj.weight" }, { "buf": "residual" @@ -118952,9 +115438,6 @@ { "buf": "model.layers.23.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -118962,7 +115445,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -119374,38 +115857,17 @@ ] }, { - "label": "l23.down_proj", - "kernel": "gemm", + "label": "l23.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.23.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l23.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.23.mlp.down_proj.weight" }, { "buf": "residual" @@ -119413,9 +115875,6 @@ { "buf": "model.layers.24.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -119423,7 +115882,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -119850,38 +116309,17 @@ ] }, { - "label": "l24.down_proj", - "kernel": "gemm", + "label": "l24.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.24.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l24.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.24.mlp.down_proj.weight" }, { "buf": "residual" @@ -119889,9 +116327,6 @@ { "buf": "model.layers.25.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -119899,7 +116334,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -120326,38 +116761,17 @@ ] }, { - "label": "l25.down_proj", - "kernel": "gemm", + "label": "l25.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.25.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l25.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.25.mlp.down_proj.weight" }, { "buf": "residual" @@ -120365,9 +116779,6 @@ { "buf": "model.layers.26.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -120375,7 +116786,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -120802,38 +117213,17 @@ ] }, { - "label": "l26.down_proj", - "kernel": "gemm", + "label": "l26.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.26.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l26.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.26.mlp.down_proj.weight" }, { "buf": "residual" @@ -120841,9 +117231,6 @@ { "buf": "model.layers.27.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -120851,7 +117238,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -121263,38 +117650,17 @@ ] }, { - "label": "l27.down_proj", - "kernel": "gemm", + "label": "l27.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.27.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l27.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.27.mlp.down_proj.weight" }, { "buf": "residual" @@ -121302,9 +117668,6 @@ { "buf": "model.layers.28.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -121312,7 +117675,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -121739,38 +118102,17 @@ ] }, { - "label": "l28.down_proj", - "kernel": "gemm", + "label": "l28.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.28.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l28.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.28.mlp.down_proj.weight" }, { "buf": "residual" @@ -121778,9 +118120,6 @@ { "buf": "model.layers.29.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -121788,7 +118127,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -122215,38 +118554,17 @@ ] }, { - "label": "l29.down_proj", - "kernel": "gemm", + "label": "l29.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.29.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l29.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.29.mlp.down_proj.weight" }, { "buf": "residual" @@ -122254,9 +118572,6 @@ { "buf": "model.layers.30.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -122264,7 +118579,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -122691,38 +119006,17 @@ ] }, { - "label": "l30.down_proj", - "kernel": "gemm", + "label": "l30.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.30.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l30.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.30.mlp.down_proj.weight" }, { "buf": "residual" @@ -122730,9 +119024,6 @@ { "buf": "model.layers.31.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -122740,7 +119031,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -123152,38 +119443,17 @@ ] }, { - "label": "l31.down_proj", - "kernel": "gemm", + "label": "l31.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.31.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l31.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.31.mlp.down_proj.weight" }, { "buf": "residual" @@ -123191,9 +119461,6 @@ { "buf": "model.layers.32.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -123201,7 +119468,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -123628,38 +119895,17 @@ ] }, { - "label": "l32.down_proj", - "kernel": "gemm", + "label": "l32.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.32.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l32.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.32.mlp.down_proj.weight" }, { "buf": "residual" @@ -123667,9 +119913,6 @@ { "buf": "model.layers.33.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -123677,7 +119920,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -124104,38 +120347,17 @@ ] }, { - "label": "l33.down_proj", - "kernel": "gemm", + "label": "l33.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.33.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l33.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.33.mlp.down_proj.weight" }, { "buf": "residual" @@ -124143,9 +120365,6 @@ { "buf": "model.layers.34.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -124153,7 +120372,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -124604,38 +120823,17 @@ ] }, { - "label": "l34.down_proj", - "kernel": "gemm", + "label": "l34.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.34.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l34.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.34.mlp.down_proj.weight" }, { "buf": "residual" @@ -124643,9 +120841,6 @@ { "buf": "model.layers.35.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -124653,7 +120848,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -125065,38 +121260,17 @@ ] }, { - "label": "l35.down_proj", - "kernel": "gemm", + "label": "l35.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.35.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l35.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.35.mlp.down_proj.weight" }, { "buf": "residual" @@ -125104,9 +121278,6 @@ { "buf": "model.layers.36.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -125114,7 +121285,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -125541,38 +121712,17 @@ ] }, { - "label": "l36.down_proj", - "kernel": "gemm", + "label": "l36.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.36.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l36.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.36.mlp.down_proj.weight" }, { "buf": "residual" @@ -125580,9 +121730,6 @@ { "buf": "model.layers.37.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -125590,7 +121737,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -126017,38 +122164,17 @@ ] }, { - "label": "l37.down_proj", - "kernel": "gemm", + "label": "l37.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.37.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l37.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.37.mlp.down_proj.weight" }, { "buf": "residual" @@ -126056,9 +122182,6 @@ { "buf": "model.layers.38.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -126066,7 +122189,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -126493,38 +122616,17 @@ ] }, { - "label": "l38.down_proj", - "kernel": "gemm", + "label": "l38.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.38.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l38.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.38.mlp.down_proj.weight" }, { "buf": "residual" @@ -126532,9 +122634,6 @@ { "buf": "model.layers.39.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -126542,7 +122641,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -126954,38 +123053,17 @@ ] }, { - "label": "l39.down_proj", - "kernel": "gemm", + "label": "l39.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.39.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l39.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.39.mlp.down_proj.weight" }, { "buf": "residual" @@ -126993,9 +123071,6 @@ { "buf": "model.layers.40.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -127003,7 +123078,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -127430,38 +123505,17 @@ ] }, { - "label": "l40.down_proj", - "kernel": "gemm", + "label": "l40.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.40.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l40.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.40.mlp.down_proj.weight" }, { "buf": "residual" @@ -127469,9 +123523,6 @@ { "buf": "model.layers.41.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -127479,7 +123530,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -127906,38 +123957,17 @@ ] }, { - "label": "l41.down_proj", - "kernel": "gemm", + "label": "l41.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.41.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l41.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.41.mlp.down_proj.weight" }, { "buf": "residual" @@ -127945,9 +123975,6 @@ { "buf": "model.layers.42.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -127955,7 +123982,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -128382,38 +124409,17 @@ ] }, { - "label": "l42.down_proj", - "kernel": "gemm", + "label": "l42.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.42.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l42.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.42.mlp.down_proj.weight" }, { "buf": "residual" @@ -128421,9 +124427,6 @@ { "buf": "model.layers.43.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -128431,7 +124434,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -128843,38 +124846,17 @@ ] }, { - "label": "l43.down_proj", - "kernel": "gemm", + "label": "l43.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.43.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l43.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.43.mlp.down_proj.weight" }, { "buf": "residual" @@ -128882,9 +124864,6 @@ { "buf": "model.layers.44.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -128892,7 +124871,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -129319,38 +125298,17 @@ ] }, { - "label": "l44.down_proj", - "kernel": "gemm", + "label": "l44.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.44.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l44.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.44.mlp.down_proj.weight" }, { "buf": "residual" @@ -129358,9 +125316,6 @@ { "buf": "model.layers.45.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -129368,7 +125323,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -129795,38 +125750,17 @@ ] }, { - "label": "l45.down_proj", - "kernel": "gemm", + "label": "l45.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.45.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l45.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.45.mlp.down_proj.weight" }, { "buf": "residual" @@ -129834,9 +125768,6 @@ { "buf": "model.layers.46.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -129844,7 +125775,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -130271,38 +126202,17 @@ ] }, { - "label": "l46.down_proj", - "kernel": "gemm", + "label": "l46.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.46.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l46.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.46.mlp.down_proj.weight" }, { "buf": "residual" @@ -130310,9 +126220,6 @@ { "buf": "model.layers.47.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -130320,7 +126227,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -130732,38 +126639,17 @@ ] }, { - "label": "l47.down_proj", - "kernel": "gemm", + "label": "l47.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.47.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l47.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.47.mlp.down_proj.weight" }, { "buf": "residual" @@ -130771,9 +126657,6 @@ { "buf": "model.layers.48.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -130781,7 +126664,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -131232,38 +127115,17 @@ ] }, { - "label": "l48.down_proj", - "kernel": "gemm", + "label": "l48.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.48.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l48.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.48.mlp.down_proj.weight" }, { "buf": "residual" @@ -131271,9 +127133,6 @@ { "buf": "model.layers.49.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -131281,7 +127140,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -131708,38 +127567,17 @@ ] }, { - "label": "l49.down_proj", - "kernel": "gemm", + "label": "l49.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.49.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l49.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.49.mlp.down_proj.weight" }, { "buf": "residual" @@ -131747,9 +127585,6 @@ { "buf": "model.layers.50.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -131757,7 +127592,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -132184,38 +128019,17 @@ ] }, { - "label": "l50.down_proj", - "kernel": "gemm", + "label": "l50.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.50.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l50.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.50.mlp.down_proj.weight" }, { "buf": "residual" @@ -132223,9 +128037,6 @@ { "buf": "model.layers.51.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -132233,7 +128044,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -132645,38 +128456,17 @@ ] }, { - "label": "l51.down_proj", - "kernel": "gemm", + "label": "l51.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.51.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l51.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.51.mlp.down_proj.weight" }, { "buf": "residual" @@ -132684,9 +128474,6 @@ { "buf": "model.layers.52.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -132694,7 +128481,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -133121,38 +128908,17 @@ ] }, { - "label": "l52.down_proj", - "kernel": "gemm", + "label": "l52.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.52.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l52.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.52.mlp.down_proj.weight" }, { "buf": "residual" @@ -133160,9 +128926,6 @@ { "buf": "model.layers.53.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -133170,7 +128933,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -133597,38 +129360,17 @@ ] }, { - "label": "l53.down_proj", - "kernel": "gemm", + "label": "l53.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.53.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l53.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.53.mlp.down_proj.weight" }, { "buf": "residual" @@ -133636,9 +129378,6 @@ { "buf": "model.layers.54.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -133646,7 +129385,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -134073,38 +129812,17 @@ ] }, { - "label": "l54.down_proj", - "kernel": "gemm", + "label": "l54.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.54.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l54.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.54.mlp.down_proj.weight" }, { "buf": "residual" @@ -134112,9 +129830,6 @@ { "buf": "model.layers.55.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -134122,7 +129837,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -134534,38 +130249,17 @@ ] }, { - "label": "l55.down_proj", - "kernel": "gemm", + "label": "l55.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.55.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l55.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.55.mlp.down_proj.weight" }, { "buf": "residual" @@ -134573,9 +130267,6 @@ { "buf": "model.layers.56.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -134583,7 +130274,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -135010,38 +130701,17 @@ ] }, { - "label": "l56.down_proj", - "kernel": "gemm", + "label": "l56.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.56.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l56.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.56.mlp.down_proj.weight" }, { "buf": "residual" @@ -135049,9 +130719,6 @@ { "buf": "model.layers.57.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -135059,7 +130726,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -135486,38 +131153,17 @@ ] }, { - "label": "l57.down_proj", - "kernel": "gemm", + "label": "l57.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.57.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l57.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.57.mlp.down_proj.weight" }, { "buf": "residual" @@ -135525,9 +131171,6 @@ { "buf": "model.layers.58.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -135535,7 +131178,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -135962,38 +131605,17 @@ ] }, { - "label": "l58.down_proj", - "kernel": "gemm", + "label": "l58.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.58.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l58.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.58.mlp.down_proj.weight" }, { "buf": "residual" @@ -136001,9 +131623,6 @@ { "buf": "model.layers.59.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -136011,7 +131630,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -136423,38 +132042,17 @@ ] }, { - "label": "l59.down_proj", - "kernel": "gemm", + "label": "l59.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.59.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l59.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.59.mlp.down_proj.weight" }, { "buf": "residual" @@ -136462,9 +132060,6 @@ { "buf": "model.layers.60.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -136472,7 +132067,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -136899,38 +132494,17 @@ ] }, { - "label": "l60.down_proj", - "kernel": "gemm", + "label": "l60.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.60.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l60.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.60.mlp.down_proj.weight" }, { "buf": "residual" @@ -136938,9 +132512,6 @@ { "buf": "model.layers.61.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -136948,7 +132519,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -137375,38 +132946,17 @@ ] }, { - "label": "l61.down_proj", - "kernel": "gemm", + "label": "l61.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.61.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l61.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.61.mlp.down_proj.weight" }, { "buf": "residual" @@ -137414,9 +132964,6 @@ { "buf": "model.layers.62.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -137424,7 +132971,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -137875,38 +133422,17 @@ ] }, { - "label": "l62.down_proj", - "kernel": "gemm", + "label": "l62.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.62.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l62.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.62.mlp.down_proj.weight" }, { "buf": "residual" @@ -137914,9 +133440,6 @@ { "buf": "model.layers.63.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -137924,7 +133447,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -138336,38 +133859,17 @@ ] }, { - "label": "l63.down_proj", - "kernel": "gemm", + "label": "l63.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.63.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l63.final_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.63.mlp.down_proj.weight" }, { "buf": "residual" @@ -138375,9 +133877,6 @@ { "buf": "model.norm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -138385,7 +133884,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 diff --git a/examples/qwen3.8-27b.json b/examples/qwen3.8-27b.json index 2635215..8bce876 100644 --- a/examples/qwen3.8-27b.json +++ b/examples/qwen3.8-27b.json @@ -5940,6 +5940,113 @@ ] } }, + "gemm8_add_norm": { + "params": [ + "out buffer", + "in buffer", + "in buffer", + "inout buffer", + "in buffer", + "i32", + "i32", + "i32", + "f32" + ], + "impl": { + "scratch": { + "y": { + "dtype": "bf16", + "shape": [ + 8, + 5120 + ] + }, + "partial": { + "dtype": "f32", + "shape": [ + 8, + 8, + 5120 + ] + }, + "gcnt": { + "dtype": "i32", + "shape": [ + 2 + ] + } + }, + "steps": [ + { + "symbol": "kern_gemm8_add_norm_bf16", + "params": [ + "out buffer", + "in buffer", + "in buffer", + "inout buffer", + "in buffer", + "out buffer", + "out buffer", + "out buffer", + "i32", + "i32", + "i32", + "f32" + ], + "block": [ + 288, + 1, + 1 + ], + "grid": [ + 152, + 1, + 1 + ], + "args": [ + { + "arg": 0 + }, + { + "arg": 1 + }, + { + "arg": 2 + }, + { + "arg": 3 + }, + { + "arg": 4 + }, + { + "scratch": "y" + }, + { + "scratch": "partial" + }, + { + "scratch": "gcnt" + }, + { + "arg": 5 + }, + { + "arg": 6 + }, + { + "arg": 7 + }, + { + "arg": 8 + } + ], + "shared_mem": 224128, + "cubin": "gemm8.cubin" + } + ] + } + }, "copy_rows": { "params": [ "out buffer", @@ -45445,38 +45552,17 @@ ] }, { - "label": "l0.down_proj", - "kernel": "gemm", + "label": "l0.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.0.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l0.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.0.mlp.down_proj.weight" }, { "buf": "residual" @@ -45484,9 +45570,6 @@ { "buf": "model.layers.1.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -45494,7 +45577,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -45757,38 +45840,17 @@ ] }, { - "label": "l1.down_proj", - "kernel": "gemm", + "label": "l1.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.1.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l1.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.1.mlp.down_proj.weight" }, { "buf": "residual" @@ -45796,9 +45858,6 @@ { "buf": "model.layers.2.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -45806,7 +45865,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -46069,38 +46128,17 @@ ] }, { - "label": "l2.down_proj", - "kernel": "gemm", + "label": "l2.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.2.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l2.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.2.mlp.down_proj.weight" }, { "buf": "residual" @@ -46108,9 +46146,6 @@ { "buf": "model.layers.3.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -46118,7 +46153,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -46528,38 +46563,17 @@ ] }, { - "label": "l3.down_proj", - "kernel": "gemm", + "label": "l3.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.3.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l3.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.3.mlp.down_proj.weight" }, { "buf": "residual" @@ -46567,9 +46581,6 @@ { "buf": "model.layers.4.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -46577,7 +46588,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -46840,38 +46851,17 @@ ] }, { - "label": "l4.down_proj", - "kernel": "gemm", + "label": "l4.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.4.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l4.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.4.mlp.down_proj.weight" }, { "buf": "residual" @@ -46879,9 +46869,6 @@ { "buf": "model.layers.5.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -46889,7 +46876,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -47152,38 +47139,17 @@ ] }, { - "label": "l5.down_proj", - "kernel": "gemm", + "label": "l5.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.5.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l5.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.5.mlp.down_proj.weight" }, { "buf": "residual" @@ -47191,9 +47157,6 @@ { "buf": "model.layers.6.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -47201,7 +47164,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -47464,38 +47427,17 @@ ] }, { - "label": "l6.down_proj", - "kernel": "gemm", + "label": "l6.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.6.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l6.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.6.mlp.down_proj.weight" }, { "buf": "residual" @@ -47503,9 +47445,6 @@ { "buf": "model.layers.7.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -47513,7 +47452,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -47925,38 +47864,17 @@ ] }, { - "label": "l7.down_proj", - "kernel": "gemm", + "label": "l7.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.7.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l7.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.7.mlp.down_proj.weight" }, { "buf": "residual" @@ -47964,9 +47882,6 @@ { "buf": "model.layers.8.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -47974,7 +47889,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -48237,38 +48152,17 @@ ] }, { - "label": "l8.down_proj", - "kernel": "gemm", + "label": "l8.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.8.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l8.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.8.mlp.down_proj.weight" }, { "buf": "residual" @@ -48276,9 +48170,6 @@ { "buf": "model.layers.9.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -48286,7 +48177,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -48549,38 +48440,17 @@ ] }, { - "label": "l9.down_proj", - "kernel": "gemm", + "label": "l9.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.9.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l9.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.9.mlp.down_proj.weight" }, { "buf": "residual" @@ -48588,9 +48458,6 @@ { "buf": "model.layers.10.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -48598,7 +48465,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -48861,38 +48728,17 @@ ] }, { - "label": "l10.down_proj", - "kernel": "gemm", + "label": "l10.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.10.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l10.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.10.mlp.down_proj.weight" }, { "buf": "residual" @@ -48900,9 +48746,6 @@ { "buf": "model.layers.11.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -48910,7 +48753,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -49322,38 +49165,17 @@ ] }, { - "label": "l11.down_proj", - "kernel": "gemm", + "label": "l11.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.11.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l11.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.11.mlp.down_proj.weight" }, { "buf": "residual" @@ -49361,9 +49183,6 @@ { "buf": "model.layers.12.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -49371,7 +49190,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -49634,38 +49453,17 @@ ] }, { - "label": "l12.down_proj", - "kernel": "gemm", + "label": "l12.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.12.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l12.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.12.mlp.down_proj.weight" }, { "buf": "residual" @@ -49673,9 +49471,6 @@ { "buf": "model.layers.13.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -49683,7 +49478,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -49946,38 +49741,17 @@ ] }, { - "label": "l13.down_proj", - "kernel": "gemm", + "label": "l13.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.13.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l13.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.13.mlp.down_proj.weight" }, { "buf": "residual" @@ -49985,9 +49759,6 @@ { "buf": "model.layers.14.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -49995,7 +49766,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -50258,38 +50029,17 @@ ] }, { - "label": "l14.down_proj", - "kernel": "gemm", + "label": "l14.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.14.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l14.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.14.mlp.down_proj.weight" }, { "buf": "residual" @@ -50297,9 +50047,6 @@ { "buf": "model.layers.15.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -50307,7 +50054,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -50719,38 +50466,17 @@ ] }, { - "label": "l15.down_proj", - "kernel": "gemm", + "label": "l15.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.15.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l15.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.15.mlp.down_proj.weight" }, { "buf": "residual" @@ -50758,9 +50484,6 @@ { "buf": "model.layers.16.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -50768,7 +50491,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -51031,38 +50754,17 @@ ] }, { - "label": "l16.down_proj", - "kernel": "gemm", + "label": "l16.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.16.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l16.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.16.mlp.down_proj.weight" }, { "buf": "residual" @@ -51070,9 +50772,6 @@ { "buf": "model.layers.17.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -51080,7 +50779,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -51343,38 +51042,17 @@ ] }, { - "label": "l17.down_proj", - "kernel": "gemm", + "label": "l17.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.17.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l17.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.17.mlp.down_proj.weight" }, { "buf": "residual" @@ -51382,9 +51060,6 @@ { "buf": "model.layers.18.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -51392,7 +51067,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -51655,38 +51330,17 @@ ] }, { - "label": "l18.down_proj", - "kernel": "gemm", + "label": "l18.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.18.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l18.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.18.mlp.down_proj.weight" }, { "buf": "residual" @@ -51694,9 +51348,6 @@ { "buf": "model.layers.19.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -51704,7 +51355,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -52116,38 +51767,17 @@ ] }, { - "label": "l19.down_proj", - "kernel": "gemm", + "label": "l19.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.19.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l19.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.19.mlp.down_proj.weight" }, { "buf": "residual" @@ -52155,9 +51785,6 @@ { "buf": "model.layers.20.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -52165,7 +51792,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -52428,38 +52055,17 @@ ] }, { - "label": "l20.down_proj", - "kernel": "gemm", + "label": "l20.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.20.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l20.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.20.mlp.down_proj.weight" }, { "buf": "residual" @@ -52467,9 +52073,6 @@ { "buf": "model.layers.21.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -52477,7 +52080,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -52740,38 +52343,17 @@ ] }, { - "label": "l21.down_proj", - "kernel": "gemm", + "label": "l21.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.21.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l21.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.21.mlp.down_proj.weight" }, { "buf": "residual" @@ -52779,9 +52361,6 @@ { "buf": "model.layers.22.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -52789,7 +52368,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -53052,38 +52631,17 @@ ] }, { - "label": "l22.down_proj", - "kernel": "gemm", + "label": "l22.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.22.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l22.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.22.mlp.down_proj.weight" }, { "buf": "residual" @@ -53091,9 +52649,6 @@ { "buf": "model.layers.23.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -53101,7 +52656,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -53513,38 +53068,17 @@ ] }, { - "label": "l23.down_proj", - "kernel": "gemm", + "label": "l23.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.23.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l23.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.23.mlp.down_proj.weight" }, { "buf": "residual" @@ -53552,9 +53086,6 @@ { "buf": "model.layers.24.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -53562,7 +53093,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -53825,38 +53356,17 @@ ] }, { - "label": "l24.down_proj", - "kernel": "gemm", + "label": "l24.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.24.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l24.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.24.mlp.down_proj.weight" }, { "buf": "residual" @@ -53864,9 +53374,6 @@ { "buf": "model.layers.25.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -53874,7 +53381,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -54137,38 +53644,17 @@ ] }, { - "label": "l25.down_proj", - "kernel": "gemm", + "label": "l25.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.25.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l25.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.25.mlp.down_proj.weight" }, { "buf": "residual" @@ -54176,9 +53662,6 @@ { "buf": "model.layers.26.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -54186,7 +53669,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -54449,38 +53932,17 @@ ] }, { - "label": "l26.down_proj", - "kernel": "gemm", + "label": "l26.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.26.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l26.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.26.mlp.down_proj.weight" }, { "buf": "residual" @@ -54488,9 +53950,6 @@ { "buf": "model.layers.27.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -54498,7 +53957,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -54910,38 +54369,17 @@ ] }, { - "label": "l27.down_proj", - "kernel": "gemm", + "label": "l27.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.27.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l27.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.27.mlp.down_proj.weight" }, { "buf": "residual" @@ -54949,9 +54387,6 @@ { "buf": "model.layers.28.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -54959,7 +54394,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -55222,38 +54657,17 @@ ] }, { - "label": "l28.down_proj", - "kernel": "gemm", + "label": "l28.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.28.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l28.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.28.mlp.down_proj.weight" }, { "buf": "residual" @@ -55261,9 +54675,6 @@ { "buf": "model.layers.29.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -55271,7 +54682,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -55534,38 +54945,17 @@ ] }, { - "label": "l29.down_proj", - "kernel": "gemm", + "label": "l29.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.29.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l29.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.29.mlp.down_proj.weight" }, { "buf": "residual" @@ -55573,9 +54963,6 @@ { "buf": "model.layers.30.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -55583,7 +54970,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -55846,38 +55233,17 @@ ] }, { - "label": "l30.down_proj", - "kernel": "gemm", + "label": "l30.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.30.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l30.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.30.mlp.down_proj.weight" }, { "buf": "residual" @@ -55885,9 +55251,6 @@ { "buf": "model.layers.31.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -55895,7 +55258,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -56307,38 +55670,17 @@ ] }, { - "label": "l31.down_proj", - "kernel": "gemm", + "label": "l31.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.31.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l31.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.31.mlp.down_proj.weight" }, { "buf": "residual" @@ -56346,9 +55688,6 @@ { "buf": "model.layers.32.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -56356,7 +55695,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -56619,38 +55958,17 @@ ] }, { - "label": "l32.down_proj", - "kernel": "gemm", + "label": "l32.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.32.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l32.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.32.mlp.down_proj.weight" }, { "buf": "residual" @@ -56658,9 +55976,6 @@ { "buf": "model.layers.33.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -56668,7 +55983,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -56931,38 +56246,17 @@ ] }, { - "label": "l33.down_proj", - "kernel": "gemm", + "label": "l33.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.33.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l33.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.33.mlp.down_proj.weight" }, { "buf": "residual" @@ -56970,9 +56264,6 @@ { "buf": "model.layers.34.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -56980,7 +56271,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -57243,38 +56534,17 @@ ] }, { - "label": "l34.down_proj", - "kernel": "gemm", + "label": "l34.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.34.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l34.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.34.mlp.down_proj.weight" }, { "buf": "residual" @@ -57282,9 +56552,6 @@ { "buf": "model.layers.35.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -57292,7 +56559,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -57704,38 +56971,17 @@ ] }, { - "label": "l35.down_proj", - "kernel": "gemm", + "label": "l35.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.35.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l35.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.35.mlp.down_proj.weight" }, { "buf": "residual" @@ -57743,9 +56989,6 @@ { "buf": "model.layers.36.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -57753,7 +56996,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -58016,38 +57259,17 @@ ] }, { - "label": "l36.down_proj", - "kernel": "gemm", + "label": "l36.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.36.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l36.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.36.mlp.down_proj.weight" }, { "buf": "residual" @@ -58055,9 +57277,6 @@ { "buf": "model.layers.37.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -58065,7 +57284,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -58328,38 +57547,17 @@ ] }, { - "label": "l37.down_proj", - "kernel": "gemm", + "label": "l37.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.37.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l37.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.37.mlp.down_proj.weight" }, { "buf": "residual" @@ -58367,9 +57565,6 @@ { "buf": "model.layers.38.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -58377,7 +57572,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -58640,38 +57835,17 @@ ] }, { - "label": "l38.down_proj", - "kernel": "gemm", + "label": "l38.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.38.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l38.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.38.mlp.down_proj.weight" }, { "buf": "residual" @@ -58679,9 +57853,6 @@ { "buf": "model.layers.39.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -58689,7 +57860,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -59101,38 +58272,17 @@ ] }, { - "label": "l39.down_proj", - "kernel": "gemm", + "label": "l39.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.39.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l39.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.39.mlp.down_proj.weight" }, { "buf": "residual" @@ -59140,9 +58290,6 @@ { "buf": "model.layers.40.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -59150,7 +58297,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -59413,38 +58560,17 @@ ] }, { - "label": "l40.down_proj", - "kernel": "gemm", + "label": "l40.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.40.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l40.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.40.mlp.down_proj.weight" }, { "buf": "residual" @@ -59452,9 +58578,6 @@ { "buf": "model.layers.41.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -59462,7 +58585,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -59725,38 +58848,17 @@ ] }, { - "label": "l41.down_proj", - "kernel": "gemm", + "label": "l41.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.41.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l41.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.41.mlp.down_proj.weight" }, { "buf": "residual" @@ -59764,9 +58866,6 @@ { "buf": "model.layers.42.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -59774,7 +58873,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -60037,38 +59136,17 @@ ] }, { - "label": "l42.down_proj", - "kernel": "gemm", + "label": "l42.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.42.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l42.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.42.mlp.down_proj.weight" }, { "buf": "residual" @@ -60076,9 +59154,6 @@ { "buf": "model.layers.43.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -60086,7 +59161,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -60498,38 +59573,17 @@ ] }, { - "label": "l43.down_proj", - "kernel": "gemm", + "label": "l43.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.43.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l43.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.43.mlp.down_proj.weight" }, { "buf": "residual" @@ -60537,9 +59591,6 @@ { "buf": "model.layers.44.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -60547,7 +59598,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -60810,38 +59861,17 @@ ] }, { - "label": "l44.down_proj", - "kernel": "gemm", + "label": "l44.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.44.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l44.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.44.mlp.down_proj.weight" }, { "buf": "residual" @@ -60849,9 +59879,6 @@ { "buf": "model.layers.45.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -60859,7 +59886,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -61122,38 +60149,17 @@ ] }, { - "label": "l45.down_proj", - "kernel": "gemm", + "label": "l45.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.45.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l45.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.45.mlp.down_proj.weight" }, { "buf": "residual" @@ -61161,9 +60167,6 @@ { "buf": "model.layers.46.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -61171,7 +60174,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -61434,38 +60437,17 @@ ] }, { - "label": "l46.down_proj", - "kernel": "gemm", + "label": "l46.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.46.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l46.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.46.mlp.down_proj.weight" }, { "buf": "residual" @@ -61473,9 +60455,6 @@ { "buf": "model.layers.47.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -61483,7 +60462,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -61895,38 +60874,17 @@ ] }, { - "label": "l47.down_proj", - "kernel": "gemm", + "label": "l47.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.47.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l47.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.47.mlp.down_proj.weight" }, { "buf": "residual" @@ -61934,9 +60892,6 @@ { "buf": "model.layers.48.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -61944,7 +60899,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -62207,38 +61162,17 @@ ] }, { - "label": "l48.down_proj", - "kernel": "gemm", + "label": "l48.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.48.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l48.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.48.mlp.down_proj.weight" }, { "buf": "residual" @@ -62246,9 +61180,6 @@ { "buf": "model.layers.49.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -62256,7 +61187,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -62519,38 +61450,17 @@ ] }, { - "label": "l49.down_proj", - "kernel": "gemm", + "label": "l49.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.49.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l49.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.49.mlp.down_proj.weight" }, { "buf": "residual" @@ -62558,9 +61468,6 @@ { "buf": "model.layers.50.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -62568,7 +61475,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -62831,38 +61738,17 @@ ] }, { - "label": "l50.down_proj", - "kernel": "gemm", + "label": "l50.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.50.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l50.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.50.mlp.down_proj.weight" }, { "buf": "residual" @@ -62870,9 +61756,6 @@ { "buf": "model.layers.51.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -62880,7 +61763,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -63292,38 +62175,17 @@ ] }, { - "label": "l51.down_proj", - "kernel": "gemm", + "label": "l51.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.51.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l51.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.51.mlp.down_proj.weight" }, { "buf": "residual" @@ -63331,9 +62193,6 @@ { "buf": "model.layers.52.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -63341,7 +62200,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -63604,38 +62463,17 @@ ] }, { - "label": "l52.down_proj", - "kernel": "gemm", + "label": "l52.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.52.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l52.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.52.mlp.down_proj.weight" }, { "buf": "residual" @@ -63643,9 +62481,6 @@ { "buf": "model.layers.53.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -63653,7 +62488,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -63916,38 +62751,17 @@ ] }, { - "label": "l53.down_proj", - "kernel": "gemm", + "label": "l53.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.53.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l53.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.53.mlp.down_proj.weight" }, { "buf": "residual" @@ -63955,9 +62769,6 @@ { "buf": "model.layers.54.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -63965,7 +62776,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -64228,38 +63039,17 @@ ] }, { - "label": "l54.down_proj", - "kernel": "gemm", + "label": "l54.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.54.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l54.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.54.mlp.down_proj.weight" }, { "buf": "residual" @@ -64267,9 +63057,6 @@ { "buf": "model.layers.55.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -64277,7 +63064,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -64689,38 +63476,17 @@ ] }, { - "label": "l55.down_proj", - "kernel": "gemm", + "label": "l55.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.55.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l55.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.55.mlp.down_proj.weight" }, { "buf": "residual" @@ -64728,9 +63494,6 @@ { "buf": "model.layers.56.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -64738,7 +63501,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -65001,38 +63764,17 @@ ] }, { - "label": "l56.down_proj", - "kernel": "gemm", + "label": "l56.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.56.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l56.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.56.mlp.down_proj.weight" }, { "buf": "residual" @@ -65040,9 +63782,6 @@ { "buf": "model.layers.57.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -65050,7 +63789,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -65313,38 +64052,17 @@ ] }, { - "label": "l57.down_proj", - "kernel": "gemm", + "label": "l57.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.57.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l57.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.57.mlp.down_proj.weight" }, { "buf": "residual" @@ -65352,9 +64070,6 @@ { "buf": "model.layers.58.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -65362,7 +64077,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -65625,38 +64340,17 @@ ] }, { - "label": "l58.down_proj", - "kernel": "gemm", + "label": "l58.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.58.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l58.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.58.mlp.down_proj.weight" }, { "buf": "residual" @@ -65664,9 +64358,6 @@ { "buf": "model.layers.59.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -65674,7 +64365,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -66086,38 +64777,17 @@ ] }, { - "label": "l59.down_proj", - "kernel": "gemm", + "label": "l59.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.59.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l59.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.59.mlp.down_proj.weight" }, { "buf": "residual" @@ -66125,9 +64795,6 @@ { "buf": "model.layers.60.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -66135,7 +64802,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -66398,38 +65065,17 @@ ] }, { - "label": "l60.down_proj", - "kernel": "gemm", + "label": "l60.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.60.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l60.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.60.mlp.down_proj.weight" }, { "buf": "residual" @@ -66437,9 +65083,6 @@ { "buf": "model.layers.61.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -66447,7 +65090,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -66710,38 +65353,17 @@ ] }, { - "label": "l61.down_proj", - "kernel": "gemm", + "label": "l61.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.61.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l61.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.61.mlp.down_proj.weight" }, { "buf": "residual" @@ -66749,9 +65371,6 @@ { "buf": "model.layers.62.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -66759,7 +65378,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -67022,38 +65641,17 @@ ] }, { - "label": "l62.down_proj", - "kernel": "gemm", + "label": "l62.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.62.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l62.next_input_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.62.mlp.down_proj.weight" }, { "buf": "residual" @@ -67061,9 +65659,6 @@ { "buf": "model.layers.63.input_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -67071,7 +65666,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -67483,38 +66078,17 @@ ] }, { - "label": "l63.down_proj", - "kernel": "gemm", + "label": "l63.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "act" - }, - { - "buf": "model.layers.63.mlp.down_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 17408 - } - ] - }, - { - "label": "l63.final_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "act" }, { - "buf": "y" + "buf": "model.layers.63.mlp.down_proj.weight" }, { "buf": "residual" @@ -67522,9 +66096,6 @@ { "buf": "model.norm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -67532,7 +66103,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 17408 }, { "f32": 9.999999974752427e-07 diff --git a/tools/gen_qwen35.py b/tools/gen_qwen35.py index 5a7cbc1..f3205ee 100644 --- a/tools/gen_qwen35.py +++ b/tools/gen_qwen35.py @@ -703,6 +703,12 @@ def tri(tag, params, grid, src=pre, **kw): return single(TRITON[tag], params, blk(tag, src), grid, shared_mem=smem(tag, src) or None, cubin=cubin, sha256=sha, **kw) + # gcnt is declared `out`: the kernel does read it (atomic task counter), + # but its contents are zero at rest -- alloc_zeros at load, and the tail + # resets it before the dispatch ends + GEMM8_AN_PARAMS = ["out buffer", "in buffer", "in buffer", "inout buffer", + "in buffer", "out buffer", "out buffer", "out buffer", + "i32", "i32", "i32", "f32"] GEMMA_PARAMS = ["out buffer", "in buffer", "in buffer", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "f32"] GEMMA_FUSED_PARAMS = ["out buffer", "in buffer", "inout buffer", @@ -767,6 +773,22 @@ def layer_norm_kernel(src, grid, rows_shape): "i32", "i32", "i32"], [GEMM8_THREADS, 1, 1], [GEMM8_GRID, 1, 1], shared_mem=GEMM8_SMEM, cubin="gemm8.cubin"), + # down GEMM + residual add + Gemma fused_add_rms_norm of the next + # layer input (gemm8's split-K partials, y and the task counters are + # impl scratch; the norm tail reproduces kern_gemma_rms_norm.cu) + "gemm8_add_norm": { + "params": GEMM8_AN_PARAMS[:5] + GEMM8_AN_PARAMS[8:], + "impl": { + "scratch": {"y": {"dtype": "bf16", "shape": [8, HIDDEN]}, + "partial": {"dtype": "f32", "shape": [8, 8, HIDDEN]}, + "gcnt": {"dtype": "i32", "shape": [2]}}, + "steps": [step("kern_gemm8_add_norm_bf16", GEMM8_AN_PARAMS, + [GEMM8_THREADS, 1, 1], [GEMM8_GRID, 1, 1], + [a(0), a(1), a(2), a(3), a(4), scr("y"), scr("partial"), scr("gcnt"), + a(5), a(6), a(7), a(8)], + shared_mem=GEMM8_SMEM, cubin="gemm8.cubin")], + }, + }, "copy_rows": single("kern_copy_rows_bf16", ["out buffer", "in buffer", "i32", "i32", "i32"], [256, 1, 1], [T, 1, 1], cubin="copy_rows.cubin"), @@ -1140,14 +1162,19 @@ def forward(decode, taps=False, nacc=None, tail=None): mlp = [gemm(l + "gate_up", "x", p + "mlp.gate_up_proj.weight", "gate_up", T, 2 * FFN, HIDDEN), d(l + "silu_mul", "silu_mul", [buf("act"), buf("gate_up"), i32(FFN), i32(0), f32(1.0), i32(0)])] - ds += [ - fused(l + "post_attn_norm", "y", p + "post_attention_layernorm.weight_p1"), - *mlp, - gemm(l + "down_proj", "act", p + "mlp.down_proj.weight", "y", T, HIDDEN, FFN), - ] last = i + 1 == LAYERS - ds.append(fused(l + ("final_norm" if last else "next_input_norm"), "y", - "model.norm.weight_p1" if last else f"model.layers.{i + 1}.input_layernorm.weight_p1")) + wnorm = "model.norm.weight_p1" if last else f"model.layers.{i + 1}.input_layernorm.weight_p1" + nlabel = l + ("final_norm" if last else "next_input_norm") + ds.append(fused(l + "post_attn_norm", "y", p + "post_attention_layernorm.weight_p1")) + ds += mlp + if small: + # down GEMM + residual add + next input norm in one dispatch + ds.append(d(l + "down_norm", "gemm8_add_norm", + [buf("x"), buf("act"), buf(p + "mlp.down_proj.weight"), buf("residual"), + buf(wnorm), T, i32(HIDDEN), i32(FFN), f32(eps)])) + else: + ds.append(gemm(l + "down_proj", "act", p + "mlp.down_proj.weight", "y", T, HIDDEN, FFN)) + ds.append(fused(nlabel, "y", wnorm)) if taps and i in TAPS: # residual now holds hidden + residual = the input of layer # i+1, vLLM's aux hidden state; fc's column block j, β=1 From 30294a381836146c8de2e4dfa47a84a254fab574 Mon Sep 17 00:00:00 2001 From: JinYan Su <751080330@qq.com> Date: Mon, 31 Aug 2026 16:41:44 +0000 Subject: [PATCH 03/10] qwen38: fuse o_proj / out_proj GEMM + residual add + post-attention norm (bs<=8) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same kern_gemm8_add_norm_bf16 as the down_proj commit, now also closing every layer's attention side: the attention layers' o_proj (gated input, K=6144) and the GDN layers' out_proj (core_attn_out, K=6144) fold the residual add and gemma_fused_norm(post_attention_layernorm) into the GEMM tail. Replaces gemm + gemma_fused_norm in decode / decode_spec / verify; -64 dispatches per program (decode 614 -> 550); together with the previous commit the bf16 `y` buffer is gone from the small-batch dataflow entirely (o_proj/out_proj wrote y, the norm read it back). kern-attest (A = previous commit, B = this one, GB300): qwen3.8-27b.json — 64 cuts (gemm+gemma_fused_norm -> gemm8_add_norm): | decode tokens=1 | A | B measured | delta | | step, eager | 13.527 ms | 12.973 ms | -554 us -4.1% | | step, graph (TPOT) | 10.960 ms | 10.829 ms | -132 us 91->92 tok/s | | sum of 64 cuts | 2.121 ms | 1.693 ms | -428 us -20.2% | qwen3.8-27b-dflash2.json — same 64 cuts in decode: | decode tokens=1 | A | B measured | delta | | step, eager | 14.776 ms | 14.284 ms | -492 us -3.3% | | step, graph (TPOT) | 11.499 ms | 11.272 ms | -228 us 87->89 tok/s | | sum of 64 cuts | 2.140 ms | 1.685 ms | -454 us -21.2% | Verdict: INCONCLUSIVE (accumulation order inside the cut, as before); next_token / draft_tokens / verify_tokens bit-identical on the tap prompt, noise floor clean. Fuzz: <= 61 ulp on uniform/normal/laplace/outliers, special bit-identical; the `edge` round (+-inf frontier inputs) yields NaN on both sides with differing bit patterns (max |delta| 0.0, 5113 nan) -- inf through a GEMM + rsqrt norm is NaN either way, the two sides just canonicalize differently; finite activations never reach it. Signed-off-by: JinYan Su <751080330@qq.com> --- examples/qwen3.8-27b-dflash2.json | 6912 +++++------------------------ examples/qwen3.8-27b.json | 2368 ++-------- tools/gen_qwen35.py | 14 +- 3 files changed, 1580 insertions(+), 7714 deletions(-) diff --git a/examples/qwen3.8-27b-dflash2.json b/examples/qwen3.8-27b-dflash2.json index b0b12bb..f5eb0ac 100644 --- a/examples/qwen3.8-27b-dflash2.json +++ b/examples/qwen3.8-27b-dflash2.json @@ -47644,38 +47644,17 @@ ] }, { - "label": "l0.out_proj", - "kernel": "gemm", + "label": "l0.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.0.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l0.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.0.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -47683,9 +47662,6 @@ { "buf": "model.layers.0.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -47693,7 +47669,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -48096,38 +48072,17 @@ ] }, { - "label": "l1.out_proj", - "kernel": "gemm", + "label": "l1.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.1.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l1.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.1.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -48135,9 +48090,6 @@ { "buf": "model.layers.1.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -48145,7 +48097,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -48548,38 +48500,17 @@ ] }, { - "label": "l2.out_proj", - "kernel": "gemm", + "label": "l2.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.2.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l2.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.2.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -48587,9 +48518,6 @@ { "buf": "model.layers.2.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -48597,7 +48525,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -48983,38 +48911,17 @@ ] }, { - "label": "l3.o_proj", - "kernel": "gemm", + "label": "l3.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.3.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l3.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.3.self_attn.o_proj.weight" }, { "buf": "residual" @@ -49022,9 +48929,6 @@ { "buf": "model.layers.3.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -49032,7 +48936,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -49435,38 +49339,17 @@ ] }, { - "label": "l4.out_proj", - "kernel": "gemm", + "label": "l4.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.4.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l4.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.4.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -49474,9 +49357,6 @@ { "buf": "model.layers.4.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -49484,7 +49364,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -49887,38 +49767,17 @@ ] }, { - "label": "l5.out_proj", - "kernel": "gemm", + "label": "l5.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.5.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l5.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.5.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -49926,9 +49785,6 @@ { "buf": "model.layers.5.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -49936,7 +49792,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -50339,38 +50195,17 @@ ] }, { - "label": "l6.out_proj", - "kernel": "gemm", + "label": "l6.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.6.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l6.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.6.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -50378,9 +50213,6 @@ { "buf": "model.layers.6.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -50388,7 +50220,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -50776,38 +50608,17 @@ ] }, { - "label": "l7.o_proj", - "kernel": "gemm", + "label": "l7.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.7.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l7.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.7.self_attn.o_proj.weight" }, { "buf": "residual" @@ -50815,9 +50626,6 @@ { "buf": "model.layers.7.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -50825,7 +50633,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -51228,38 +51036,17 @@ ] }, { - "label": "l8.out_proj", - "kernel": "gemm", + "label": "l8.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.8.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l8.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.8.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -51267,9 +51054,6 @@ { "buf": "model.layers.8.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -51277,7 +51061,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -51680,38 +51464,17 @@ ] }, { - "label": "l9.out_proj", - "kernel": "gemm", + "label": "l9.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.9.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l9.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.9.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -51719,9 +51482,6 @@ { "buf": "model.layers.9.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -51729,7 +51489,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -52132,38 +51892,17 @@ ] }, { - "label": "l10.out_proj", - "kernel": "gemm", + "label": "l10.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.10.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l10.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.10.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -52171,9 +51910,6 @@ { "buf": "model.layers.10.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -52181,7 +51917,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -52569,38 +52305,17 @@ ] }, { - "label": "l11.o_proj", - "kernel": "gemm", + "label": "l11.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.11.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l11.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.11.self_attn.o_proj.weight" }, { "buf": "residual" @@ -52608,9 +52323,6 @@ { "buf": "model.layers.11.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -52618,7 +52330,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -53021,38 +52733,17 @@ ] }, { - "label": "l12.out_proj", - "kernel": "gemm", + "label": "l12.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.12.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l12.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.12.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -53060,9 +52751,6 @@ { "buf": "model.layers.12.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -53070,7 +52758,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -53473,38 +53161,17 @@ ] }, { - "label": "l13.out_proj", - "kernel": "gemm", + "label": "l13.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.13.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l13.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.13.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -53512,9 +53179,6 @@ { "buf": "model.layers.13.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -53522,7 +53186,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -53925,38 +53589,17 @@ ] }, { - "label": "l14.out_proj", - "kernel": "gemm", + "label": "l14.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.14.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l14.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.14.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -53964,9 +53607,6 @@ { "buf": "model.layers.14.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -53974,7 +53614,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -54362,38 +54002,17 @@ ] }, { - "label": "l15.o_proj", - "kernel": "gemm", + "label": "l15.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.15.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l15.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.15.self_attn.o_proj.weight" }, { "buf": "residual" @@ -54401,9 +54020,6 @@ { "buf": "model.layers.15.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -54411,7 +54027,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -54814,38 +54430,17 @@ ] }, { - "label": "l16.out_proj", - "kernel": "gemm", + "label": "l16.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.16.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l16.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.16.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -54853,9 +54448,6 @@ { "buf": "model.layers.16.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -54863,7 +54455,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -55266,38 +54858,17 @@ ] }, { - "label": "l17.out_proj", - "kernel": "gemm", + "label": "l17.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.17.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l17.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.17.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -55305,9 +54876,6 @@ { "buf": "model.layers.17.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -55315,7 +54883,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -55718,38 +55286,17 @@ ] }, { - "label": "l18.out_proj", - "kernel": "gemm", + "label": "l18.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.18.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l18.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.18.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -55757,9 +55304,6 @@ { "buf": "model.layers.18.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -55767,7 +55311,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -56155,38 +55699,17 @@ ] }, { - "label": "l19.o_proj", - "kernel": "gemm", + "label": "l19.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.19.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l19.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.19.self_attn.o_proj.weight" }, { "buf": "residual" @@ -56194,9 +55717,6 @@ { "buf": "model.layers.19.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -56204,7 +55724,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -56607,38 +56127,17 @@ ] }, { - "label": "l20.out_proj", - "kernel": "gemm", + "label": "l20.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.20.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l20.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.20.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -56646,9 +56145,6 @@ { "buf": "model.layers.20.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -56656,7 +56152,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -57059,38 +56555,17 @@ ] }, { - "label": "l21.out_proj", - "kernel": "gemm", + "label": "l21.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.21.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l21.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.21.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -57098,9 +56573,6 @@ { "buf": "model.layers.21.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -57108,7 +56580,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -57511,38 +56983,17 @@ ] }, { - "label": "l22.out_proj", - "kernel": "gemm", + "label": "l22.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.22.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l22.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.22.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -57550,9 +57001,6 @@ { "buf": "model.layers.22.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -57560,7 +57008,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -57948,38 +57396,17 @@ ] }, { - "label": "l23.o_proj", - "kernel": "gemm", + "label": "l23.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.23.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l23.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.23.self_attn.o_proj.weight" }, { "buf": "residual" @@ -57987,9 +57414,6 @@ { "buf": "model.layers.23.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -57997,7 +57421,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -58400,38 +57824,17 @@ ] }, { - "label": "l24.out_proj", - "kernel": "gemm", + "label": "l24.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.24.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l24.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.24.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -58439,9 +57842,6 @@ { "buf": "model.layers.24.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -58449,7 +57849,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -58852,38 +58252,17 @@ ] }, { - "label": "l25.out_proj", - "kernel": "gemm", + "label": "l25.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.25.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l25.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.25.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -58891,9 +58270,6 @@ { "buf": "model.layers.25.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -58901,7 +58277,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -59304,38 +58680,17 @@ ] }, { - "label": "l26.out_proj", - "kernel": "gemm", + "label": "l26.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.26.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l26.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.26.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -59343,9 +58698,6 @@ { "buf": "model.layers.26.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -59353,7 +58705,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -59741,38 +59093,17 @@ ] }, { - "label": "l27.o_proj", - "kernel": "gemm", + "label": "l27.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.27.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l27.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.27.self_attn.o_proj.weight" }, { "buf": "residual" @@ -59780,9 +59111,6 @@ { "buf": "model.layers.27.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -59790,7 +59118,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -60193,38 +59521,17 @@ ] }, { - "label": "l28.out_proj", - "kernel": "gemm", + "label": "l28.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.28.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l28.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.28.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -60232,9 +59539,6 @@ { "buf": "model.layers.28.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -60242,7 +59546,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -60645,38 +59949,17 @@ ] }, { - "label": "l29.out_proj", - "kernel": "gemm", + "label": "l29.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.29.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l29.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.29.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -60684,9 +59967,6 @@ { "buf": "model.layers.29.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -60694,7 +59974,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -61097,38 +60377,17 @@ ] }, { - "label": "l30.out_proj", - "kernel": "gemm", + "label": "l30.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.30.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l30.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.30.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -61136,9 +60395,6 @@ { "buf": "model.layers.30.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -61146,7 +60402,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -61534,38 +60790,17 @@ ] }, { - "label": "l31.o_proj", - "kernel": "gemm", + "label": "l31.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.31.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l31.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.31.self_attn.o_proj.weight" }, { "buf": "residual" @@ -61573,9 +60808,6 @@ { "buf": "model.layers.31.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -61583,7 +60815,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -61986,38 +61218,17 @@ ] }, { - "label": "l32.out_proj", - "kernel": "gemm", + "label": "l32.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.32.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l32.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.32.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -62025,9 +61236,6 @@ { "buf": "model.layers.32.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -62035,7 +61243,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -62438,38 +61646,17 @@ ] }, { - "label": "l33.out_proj", - "kernel": "gemm", + "label": "l33.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.33.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l33.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.33.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -62477,9 +61664,6 @@ { "buf": "model.layers.33.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -62487,7 +61671,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -62890,38 +62074,17 @@ ] }, { - "label": "l34.out_proj", - "kernel": "gemm", + "label": "l34.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.34.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l34.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.34.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -62929,9 +62092,6 @@ { "buf": "model.layers.34.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -62939,7 +62099,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -63327,38 +62487,17 @@ ] }, { - "label": "l35.o_proj", - "kernel": "gemm", + "label": "l35.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.35.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l35.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.35.self_attn.o_proj.weight" }, { "buf": "residual" @@ -63366,9 +62505,6 @@ { "buf": "model.layers.35.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -63376,7 +62512,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -63779,38 +62915,17 @@ ] }, { - "label": "l36.out_proj", - "kernel": "gemm", + "label": "l36.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.36.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l36.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.36.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -63818,9 +62933,6 @@ { "buf": "model.layers.36.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -63828,7 +62940,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -64231,38 +63343,17 @@ ] }, { - "label": "l37.out_proj", - "kernel": "gemm", + "label": "l37.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.37.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l37.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.37.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -64270,9 +63361,6 @@ { "buf": "model.layers.37.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -64280,7 +63368,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -64683,38 +63771,17 @@ ] }, { - "label": "l38.out_proj", - "kernel": "gemm", + "label": "l38.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.38.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l38.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.38.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -64722,9 +63789,6 @@ { "buf": "model.layers.38.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -64732,7 +63796,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -65120,38 +64184,17 @@ ] }, { - "label": "l39.o_proj", - "kernel": "gemm", + "label": "l39.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.39.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l39.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.39.self_attn.o_proj.weight" }, { "buf": "residual" @@ -65159,9 +64202,6 @@ { "buf": "model.layers.39.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -65169,7 +64209,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -65572,38 +64612,17 @@ ] }, { - "label": "l40.out_proj", - "kernel": "gemm", + "label": "l40.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.40.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l40.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.40.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -65611,9 +64630,6 @@ { "buf": "model.layers.40.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -65621,7 +64637,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -66024,38 +65040,17 @@ ] }, { - "label": "l41.out_proj", - "kernel": "gemm", + "label": "l41.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.41.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l41.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.41.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -66063,9 +65058,6 @@ { "buf": "model.layers.41.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -66073,7 +65065,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -66476,38 +65468,17 @@ ] }, { - "label": "l42.out_proj", - "kernel": "gemm", + "label": "l42.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.42.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l42.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.42.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -66515,9 +65486,6 @@ { "buf": "model.layers.42.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -66525,7 +65493,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -66913,38 +65881,17 @@ ] }, { - "label": "l43.o_proj", - "kernel": "gemm", + "label": "l43.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.43.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l43.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.43.self_attn.o_proj.weight" }, { "buf": "residual" @@ -66952,9 +65899,6 @@ { "buf": "model.layers.43.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -66962,7 +65906,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -67365,38 +66309,17 @@ ] }, { - "label": "l44.out_proj", - "kernel": "gemm", + "label": "l44.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.44.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l44.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.44.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -67404,9 +66327,6 @@ { "buf": "model.layers.44.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -67414,7 +66334,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -67817,38 +66737,17 @@ ] }, { - "label": "l45.out_proj", - "kernel": "gemm", + "label": "l45.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.45.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l45.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.45.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -67856,9 +66755,6 @@ { "buf": "model.layers.45.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -67866,7 +66762,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -68269,38 +67165,17 @@ ] }, { - "label": "l46.out_proj", - "kernel": "gemm", + "label": "l46.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.46.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l46.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.46.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -68308,9 +67183,6 @@ { "buf": "model.layers.46.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -68318,7 +67190,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -68706,38 +67578,17 @@ ] }, { - "label": "l47.o_proj", - "kernel": "gemm", + "label": "l47.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.47.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l47.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.47.self_attn.o_proj.weight" }, { "buf": "residual" @@ -68745,9 +67596,6 @@ { "buf": "model.layers.47.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -68755,7 +67603,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -69158,38 +68006,17 @@ ] }, { - "label": "l48.out_proj", - "kernel": "gemm", + "label": "l48.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.48.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l48.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.48.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -69197,9 +68024,6 @@ { "buf": "model.layers.48.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -69207,7 +68031,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -69610,38 +68434,17 @@ ] }, { - "label": "l49.out_proj", - "kernel": "gemm", + "label": "l49.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.49.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l49.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.49.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -69649,9 +68452,6 @@ { "buf": "model.layers.49.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -69659,7 +68459,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -70062,38 +68862,17 @@ ] }, { - "label": "l50.out_proj", - "kernel": "gemm", + "label": "l50.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.50.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l50.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.50.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -70101,9 +68880,6 @@ { "buf": "model.layers.50.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -70111,7 +68887,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -70499,38 +69275,17 @@ ] }, { - "label": "l51.o_proj", - "kernel": "gemm", + "label": "l51.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.51.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l51.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.51.self_attn.o_proj.weight" }, { "buf": "residual" @@ -70538,9 +69293,6 @@ { "buf": "model.layers.51.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -70548,7 +69300,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -70951,38 +69703,17 @@ ] }, { - "label": "l52.out_proj", - "kernel": "gemm", + "label": "l52.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.52.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l52.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.52.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -70990,9 +69721,6 @@ { "buf": "model.layers.52.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -71000,7 +69728,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -71403,38 +70131,17 @@ ] }, { - "label": "l53.out_proj", - "kernel": "gemm", + "label": "l53.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.53.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l53.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.53.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -71442,9 +70149,6 @@ { "buf": "model.layers.53.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -71452,7 +70156,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -71855,38 +70559,17 @@ ] }, { - "label": "l54.out_proj", - "kernel": "gemm", + "label": "l54.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.54.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l54.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.54.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -71894,9 +70577,6 @@ { "buf": "model.layers.54.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -71904,7 +70584,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -72292,38 +70972,17 @@ ] }, { - "label": "l55.o_proj", - "kernel": "gemm", + "label": "l55.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.55.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l55.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.55.self_attn.o_proj.weight" }, { "buf": "residual" @@ -72331,9 +70990,6 @@ { "buf": "model.layers.55.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -72341,7 +70997,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -72744,38 +71400,17 @@ ] }, { - "label": "l56.out_proj", - "kernel": "gemm", + "label": "l56.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.56.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l56.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.56.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -72783,9 +71418,6 @@ { "buf": "model.layers.56.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -72793,7 +71425,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -73196,38 +71828,17 @@ ] }, { - "label": "l57.out_proj", - "kernel": "gemm", + "label": "l57.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.57.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l57.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.57.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -73235,9 +71846,6 @@ { "buf": "model.layers.57.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -73245,7 +71853,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -73648,38 +72256,17 @@ ] }, { - "label": "l58.out_proj", - "kernel": "gemm", + "label": "l58.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.58.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l58.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.58.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -73687,9 +72274,6 @@ { "buf": "model.layers.58.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -73697,7 +72281,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -74085,38 +72669,17 @@ ] }, { - "label": "l59.o_proj", - "kernel": "gemm", + "label": "l59.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.59.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l59.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.59.self_attn.o_proj.weight" }, { "buf": "residual" @@ -74124,9 +72687,6 @@ { "buf": "model.layers.59.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -74134,7 +72694,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -74537,38 +73097,17 @@ ] }, { - "label": "l60.out_proj", - "kernel": "gemm", + "label": "l60.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.60.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l60.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.60.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -74576,9 +73115,6 @@ { "buf": "model.layers.60.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -74586,7 +73122,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -74989,38 +73525,17 @@ ] }, { - "label": "l61.out_proj", - "kernel": "gemm", + "label": "l61.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.61.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l61.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.61.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -75028,9 +73543,6 @@ { "buf": "model.layers.61.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -75038,7 +73550,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -75441,38 +73953,17 @@ ] }, { - "label": "l62.out_proj", - "kernel": "gemm", + "label": "l62.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.62.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l62.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.62.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -75480,9 +73971,6 @@ { "buf": "model.layers.62.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -75490,7 +73978,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -75878,38 +74366,17 @@ ] }, { - "label": "l63.o_proj", - "kernel": "gemm", + "label": "l63.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.63.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l63.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.63.self_attn.o_proj.weight" }, { "buf": "residual" @@ -75917,9 +74384,6 @@ { "buf": "model.layers.63.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -75927,7 +74391,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -76474,38 +74938,17 @@ ] }, { - "label": "l0.out_proj", - "kernel": "gemm", + "label": "l0.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.0.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l0.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.0.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -76513,9 +74956,6 @@ { "buf": "model.layers.0.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -76523,7 +74963,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -76926,38 +75366,17 @@ ] }, { - "label": "l1.out_proj", - "kernel": "gemm", + "label": "l1.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.1.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l1.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.1.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -76965,9 +75384,6 @@ { "buf": "model.layers.1.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -76975,7 +75391,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -77378,38 +75794,17 @@ ] }, { - "label": "l2.out_proj", - "kernel": "gemm", + "label": "l2.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.2.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l2.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.2.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -77417,9 +75812,6 @@ { "buf": "model.layers.2.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -77427,7 +75819,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -77813,38 +76205,17 @@ ] }, { - "label": "l3.o_proj", - "kernel": "gemm", + "label": "l3.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.3.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l3.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.3.self_attn.o_proj.weight" }, { "buf": "residual" @@ -77852,9 +76223,6 @@ { "buf": "model.layers.3.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -77862,7 +76230,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -78265,38 +76633,17 @@ ] }, { - "label": "l4.out_proj", - "kernel": "gemm", + "label": "l4.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.4.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l4.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.4.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -78304,9 +76651,6 @@ { "buf": "model.layers.4.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -78314,7 +76658,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -78717,38 +77061,17 @@ ] }, { - "label": "l5.out_proj", - "kernel": "gemm", + "label": "l5.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.5.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l5.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.5.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -78756,9 +77079,6 @@ { "buf": "model.layers.5.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -78766,7 +77086,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -79193,38 +77513,17 @@ ] }, { - "label": "l6.out_proj", - "kernel": "gemm", + "label": "l6.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.6.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l6.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.6.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -79232,9 +77531,6 @@ { "buf": "model.layers.6.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -79242,7 +77538,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -79630,38 +77926,17 @@ ] }, { - "label": "l7.o_proj", - "kernel": "gemm", + "label": "l7.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.7.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l7.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.7.self_attn.o_proj.weight" }, { "buf": "residual" @@ -79669,9 +77944,6 @@ { "buf": "model.layers.7.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -79679,7 +77951,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -80082,38 +78354,17 @@ ] }, { - "label": "l8.out_proj", - "kernel": "gemm", + "label": "l8.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.8.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l8.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.8.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -80121,9 +78372,6 @@ { "buf": "model.layers.8.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -80131,7 +78379,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -80534,38 +78782,17 @@ ] }, { - "label": "l9.out_proj", - "kernel": "gemm", + "label": "l9.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.9.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l9.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.9.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -80573,9 +78800,6 @@ { "buf": "model.layers.9.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -80583,7 +78807,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -80986,38 +79210,17 @@ ] }, { - "label": "l10.out_proj", - "kernel": "gemm", + "label": "l10.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.10.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l10.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.10.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -81025,9 +79228,6 @@ { "buf": "model.layers.10.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -81035,7 +79235,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -81423,38 +79623,17 @@ ] }, { - "label": "l11.o_proj", - "kernel": "gemm", + "label": "l11.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.11.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l11.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.11.self_attn.o_proj.weight" }, { "buf": "residual" @@ -81462,9 +79641,6 @@ { "buf": "model.layers.11.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -81472,7 +79648,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -81875,38 +80051,17 @@ ] }, { - "label": "l12.out_proj", - "kernel": "gemm", + "label": "l12.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.12.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l12.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.12.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -81914,9 +80069,6 @@ { "buf": "model.layers.12.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -81924,7 +80076,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -82327,38 +80479,17 @@ ] }, { - "label": "l13.out_proj", - "kernel": "gemm", + "label": "l13.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.13.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l13.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.13.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -82366,9 +80497,6 @@ { "buf": "model.layers.13.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -82376,7 +80504,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -82779,38 +80907,17 @@ ] }, { - "label": "l14.out_proj", - "kernel": "gemm", + "label": "l14.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.14.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l14.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.14.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -82818,9 +80925,6 @@ { "buf": "model.layers.14.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -82828,7 +80932,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -83216,38 +81320,17 @@ ] }, { - "label": "l15.o_proj", - "kernel": "gemm", + "label": "l15.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.15.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l15.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.15.self_attn.o_proj.weight" }, { "buf": "residual" @@ -83255,9 +81338,6 @@ { "buf": "model.layers.15.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -83265,7 +81345,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -83668,38 +81748,17 @@ ] }, { - "label": "l16.out_proj", - "kernel": "gemm", + "label": "l16.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.16.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l16.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.16.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -83707,9 +81766,6 @@ { "buf": "model.layers.16.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -83717,7 +81773,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -84120,38 +82176,17 @@ ] }, { - "label": "l17.out_proj", - "kernel": "gemm", + "label": "l17.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.17.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l17.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.17.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -84159,9 +82194,6 @@ { "buf": "model.layers.17.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -84169,7 +82201,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -84572,38 +82604,17 @@ ] }, { - "label": "l18.out_proj", - "kernel": "gemm", + "label": "l18.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.18.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l18.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.18.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -84611,9 +82622,6 @@ { "buf": "model.layers.18.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -84621,7 +82629,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -85009,38 +83017,17 @@ ] }, { - "label": "l19.o_proj", - "kernel": "gemm", + "label": "l19.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.19.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l19.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.19.self_attn.o_proj.weight" }, { "buf": "residual" @@ -85048,9 +83035,6 @@ { "buf": "model.layers.19.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -85058,7 +83042,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -85485,38 +83469,17 @@ ] }, { - "label": "l20.out_proj", - "kernel": "gemm", + "label": "l20.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.20.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l20.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.20.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -85524,9 +83487,6 @@ { "buf": "model.layers.20.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -85534,7 +83494,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -85937,38 +83897,17 @@ ] }, { - "label": "l21.out_proj", - "kernel": "gemm", + "label": "l21.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.21.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l21.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.21.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -85976,9 +83915,6 @@ { "buf": "model.layers.21.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -85986,7 +83922,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -86389,38 +84325,17 @@ ] }, { - "label": "l22.out_proj", - "kernel": "gemm", + "label": "l22.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.22.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l22.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.22.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -86428,9 +84343,6 @@ { "buf": "model.layers.22.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -86438,7 +84350,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -86826,38 +84738,17 @@ ] }, { - "label": "l23.o_proj", - "kernel": "gemm", + "label": "l23.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.23.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l23.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.23.self_attn.o_proj.weight" }, { "buf": "residual" @@ -86865,9 +84756,6 @@ { "buf": "model.layers.23.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -86875,7 +84763,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -87278,38 +85166,17 @@ ] }, { - "label": "l24.out_proj", - "kernel": "gemm", + "label": "l24.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.24.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l24.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.24.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -87317,9 +85184,6 @@ { "buf": "model.layers.24.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -87327,7 +85191,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -87730,38 +85594,17 @@ ] }, { - "label": "l25.out_proj", - "kernel": "gemm", + "label": "l25.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.25.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l25.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.25.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -87769,9 +85612,6 @@ { "buf": "model.layers.25.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -87779,7 +85619,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -88182,38 +86022,17 @@ ] }, { - "label": "l26.out_proj", - "kernel": "gemm", + "label": "l26.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.26.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l26.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.26.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -88221,9 +86040,6 @@ { "buf": "model.layers.26.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -88231,7 +86047,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -88619,38 +86435,17 @@ ] }, { - "label": "l27.o_proj", - "kernel": "gemm", + "label": "l27.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.27.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l27.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.27.self_attn.o_proj.weight" }, { "buf": "residual" @@ -88658,9 +86453,6 @@ { "buf": "model.layers.27.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -88668,7 +86460,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -89071,38 +86863,17 @@ ] }, { - "label": "l28.out_proj", - "kernel": "gemm", + "label": "l28.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.28.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l28.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.28.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -89110,9 +86881,6 @@ { "buf": "model.layers.28.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -89120,7 +86888,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -89523,38 +87291,17 @@ ] }, { - "label": "l29.out_proj", - "kernel": "gemm", + "label": "l29.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.29.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l29.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.29.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -89562,9 +87309,6 @@ { "buf": "model.layers.29.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -89572,7 +87316,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -89975,38 +87719,17 @@ ] }, { - "label": "l30.out_proj", - "kernel": "gemm", + "label": "l30.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.30.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l30.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.30.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -90014,9 +87737,6 @@ { "buf": "model.layers.30.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -90024,7 +87744,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -90412,38 +88132,17 @@ ] }, { - "label": "l31.o_proj", - "kernel": "gemm", + "label": "l31.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.31.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l31.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.31.self_attn.o_proj.weight" }, { "buf": "residual" @@ -90451,9 +88150,6 @@ { "buf": "model.layers.31.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -90461,7 +88157,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -90864,38 +88560,17 @@ ] }, { - "label": "l32.out_proj", - "kernel": "gemm", + "label": "l32.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.32.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l32.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.32.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -90903,9 +88578,6 @@ { "buf": "model.layers.32.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -90913,7 +88585,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -91316,38 +88988,17 @@ ] }, { - "label": "l33.out_proj", - "kernel": "gemm", + "label": "l33.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.33.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l33.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.33.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -91355,9 +89006,6 @@ { "buf": "model.layers.33.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -91365,7 +89013,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -91792,38 +89440,17 @@ ] }, { - "label": "l34.out_proj", - "kernel": "gemm", + "label": "l34.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.34.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l34.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.34.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -91831,9 +89458,6 @@ { "buf": "model.layers.34.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -91841,7 +89465,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -92229,38 +89853,17 @@ ] }, { - "label": "l35.o_proj", - "kernel": "gemm", + "label": "l35.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.35.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l35.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.35.self_attn.o_proj.weight" }, { "buf": "residual" @@ -92268,9 +89871,6 @@ { "buf": "model.layers.35.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -92278,7 +89878,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -92681,38 +90281,17 @@ ] }, { - "label": "l36.out_proj", - "kernel": "gemm", + "label": "l36.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.36.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l36.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.36.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -92720,9 +90299,6 @@ { "buf": "model.layers.36.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -92730,7 +90306,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -93133,38 +90709,17 @@ ] }, { - "label": "l37.out_proj", - "kernel": "gemm", + "label": "l37.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.37.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l37.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.37.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -93172,9 +90727,6 @@ { "buf": "model.layers.37.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -93182,7 +90734,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -93585,38 +91137,17 @@ ] }, { - "label": "l38.out_proj", - "kernel": "gemm", + "label": "l38.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.38.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l38.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.38.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -93624,9 +91155,6 @@ { "buf": "model.layers.38.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -93634,7 +91162,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -94022,38 +91550,17 @@ ] }, { - "label": "l39.o_proj", - "kernel": "gemm", + "label": "l39.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.39.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l39.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.39.self_attn.o_proj.weight" }, { "buf": "residual" @@ -94061,9 +91568,6 @@ { "buf": "model.layers.39.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -94071,7 +91575,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -94474,38 +91978,17 @@ ] }, { - "label": "l40.out_proj", - "kernel": "gemm", + "label": "l40.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.40.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l40.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.40.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -94513,9 +91996,6 @@ { "buf": "model.layers.40.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -94523,7 +92003,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -94926,38 +92406,17 @@ ] }, { - "label": "l41.out_proj", - "kernel": "gemm", + "label": "l41.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.41.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l41.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.41.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -94965,9 +92424,6 @@ { "buf": "model.layers.41.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -94975,7 +92431,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -95378,38 +92834,17 @@ ] }, { - "label": "l42.out_proj", - "kernel": "gemm", + "label": "l42.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.42.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l42.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.42.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -95417,9 +92852,6 @@ { "buf": "model.layers.42.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -95427,7 +92859,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -95815,38 +93247,17 @@ ] }, { - "label": "l43.o_proj", - "kernel": "gemm", + "label": "l43.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.43.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l43.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.43.self_attn.o_proj.weight" }, { "buf": "residual" @@ -95854,9 +93265,6 @@ { "buf": "model.layers.43.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -95864,7 +93272,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -96267,38 +93675,17 @@ ] }, { - "label": "l44.out_proj", - "kernel": "gemm", + "label": "l44.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.44.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l44.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.44.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -96306,9 +93693,6 @@ { "buf": "model.layers.44.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -96316,7 +93700,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -96719,38 +94103,17 @@ ] }, { - "label": "l45.out_proj", - "kernel": "gemm", + "label": "l45.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.45.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l45.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.45.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -96758,9 +94121,6 @@ { "buf": "model.layers.45.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -96768,7 +94128,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -97171,38 +94531,17 @@ ] }, { - "label": "l46.out_proj", - "kernel": "gemm", + "label": "l46.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.46.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l46.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.46.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -97210,9 +94549,6 @@ { "buf": "model.layers.46.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -97220,7 +94556,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -97608,38 +94944,17 @@ ] }, { - "label": "l47.o_proj", - "kernel": "gemm", + "label": "l47.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.47.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l47.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.47.self_attn.o_proj.weight" }, { "buf": "residual" @@ -97647,9 +94962,6 @@ { "buf": "model.layers.47.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -97657,7 +94969,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -98084,38 +95396,17 @@ ] }, { - "label": "l48.out_proj", - "kernel": "gemm", + "label": "l48.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.48.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l48.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.48.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -98123,9 +95414,6 @@ { "buf": "model.layers.48.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -98133,7 +95421,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -98536,38 +95824,17 @@ ] }, { - "label": "l49.out_proj", - "kernel": "gemm", + "label": "l49.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.49.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l49.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.49.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -98575,9 +95842,6 @@ { "buf": "model.layers.49.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -98585,7 +95849,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -98988,38 +96252,17 @@ ] }, { - "label": "l50.out_proj", - "kernel": "gemm", + "label": "l50.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.50.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l50.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.50.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -99027,9 +96270,6 @@ { "buf": "model.layers.50.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -99037,7 +96277,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -99425,38 +96665,17 @@ ] }, { - "label": "l51.o_proj", - "kernel": "gemm", + "label": "l51.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.51.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l51.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.51.self_attn.o_proj.weight" }, { "buf": "residual" @@ -99464,9 +96683,6 @@ { "buf": "model.layers.51.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -99474,7 +96690,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -99877,38 +97093,17 @@ ] }, { - "label": "l52.out_proj", - "kernel": "gemm", + "label": "l52.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.52.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l52.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.52.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -99916,9 +97111,6 @@ { "buf": "model.layers.52.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -99926,7 +97118,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -100329,38 +97521,17 @@ ] }, { - "label": "l53.out_proj", - "kernel": "gemm", + "label": "l53.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.53.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l53.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.53.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -100368,9 +97539,6 @@ { "buf": "model.layers.53.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -100378,7 +97546,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -100781,38 +97949,17 @@ ] }, { - "label": "l54.out_proj", - "kernel": "gemm", + "label": "l54.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.54.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l54.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.54.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -100820,9 +97967,6 @@ { "buf": "model.layers.54.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -100830,7 +97974,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -101218,38 +98362,17 @@ ] }, { - "label": "l55.o_proj", - "kernel": "gemm", + "label": "l55.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.55.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l55.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.55.self_attn.o_proj.weight" }, { "buf": "residual" @@ -101257,9 +98380,6 @@ { "buf": "model.layers.55.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -101267,7 +98387,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -101670,38 +98790,17 @@ ] }, { - "label": "l56.out_proj", - "kernel": "gemm", + "label": "l56.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.56.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l56.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.56.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -101709,9 +98808,6 @@ { "buf": "model.layers.56.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -101719,7 +98815,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -102122,38 +99218,17 @@ ] }, { - "label": "l57.out_proj", - "kernel": "gemm", + "label": "l57.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.57.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l57.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.57.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -102161,9 +99236,6 @@ { "buf": "model.layers.57.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -102171,7 +99243,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -102574,38 +99646,17 @@ ] }, { - "label": "l58.out_proj", - "kernel": "gemm", + "label": "l58.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.58.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l58.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.58.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -102613,9 +99664,6 @@ { "buf": "model.layers.58.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -102623,7 +99671,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -103011,38 +100059,17 @@ ] }, { - "label": "l59.o_proj", - "kernel": "gemm", + "label": "l59.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.59.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l59.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.59.self_attn.o_proj.weight" }, { "buf": "residual" @@ -103050,9 +100077,6 @@ { "buf": "model.layers.59.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -103060,7 +100084,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -103463,38 +100487,17 @@ ] }, { - "label": "l60.out_proj", - "kernel": "gemm", + "label": "l60.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.60.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l60.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.60.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -103502,9 +100505,6 @@ { "buf": "model.layers.60.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -103512,7 +100512,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -103915,38 +100915,17 @@ ] }, { - "label": "l61.out_proj", - "kernel": "gemm", + "label": "l61.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.61.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l61.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.61.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -103954,9 +100933,6 @@ { "buf": "model.layers.61.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -103964,7 +100940,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -104391,38 +101367,17 @@ ] }, { - "label": "l62.out_proj", - "kernel": "gemm", + "label": "l62.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.62.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l62.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.62.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -104430,9 +101385,6 @@ { "buf": "model.layers.62.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -104440,7 +101392,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -104828,38 +101780,17 @@ ] }, { - "label": "l63.o_proj", - "kernel": "gemm", + "label": "l63.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.63.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l63.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.63.self_attn.o_proj.weight" }, { "buf": "residual" @@ -104867,9 +101798,6 @@ { "buf": "model.layers.63.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -104877,7 +101805,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -105424,38 +102352,17 @@ ] }, { - "label": "l0.out_proj", - "kernel": "gemm", + "label": "l0.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.0.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l0.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.0.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -105463,9 +102370,6 @@ { "buf": "model.layers.0.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -105473,7 +102377,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -105876,38 +102780,17 @@ ] }, { - "label": "l1.out_proj", - "kernel": "gemm", + "label": "l1.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.1.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l1.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.1.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -105915,9 +102798,6 @@ { "buf": "model.layers.1.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -105925,7 +102805,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -106328,38 +103208,17 @@ ] }, { - "label": "l2.out_proj", - "kernel": "gemm", + "label": "l2.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.2.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l2.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.2.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -106367,9 +103226,6 @@ { "buf": "model.layers.2.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -106377,7 +103233,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -106763,38 +103619,17 @@ ] }, { - "label": "l3.o_proj", - "kernel": "gemm", + "label": "l3.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.3.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l3.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.3.self_attn.o_proj.weight" }, { "buf": "residual" @@ -106802,9 +103637,6 @@ { "buf": "model.layers.3.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -106812,7 +103644,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -107215,38 +104047,17 @@ ] }, { - "label": "l4.out_proj", - "kernel": "gemm", + "label": "l4.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.4.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l4.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.4.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -107254,9 +104065,6 @@ { "buf": "model.layers.4.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -107264,7 +104072,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -107667,38 +104475,17 @@ ] }, { - "label": "l5.out_proj", - "kernel": "gemm", + "label": "l5.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.5.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l5.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.5.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -107706,9 +104493,6 @@ { "buf": "model.layers.5.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -107716,7 +104500,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -108143,38 +104927,17 @@ ] }, { - "label": "l6.out_proj", - "kernel": "gemm", + "label": "l6.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.6.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l6.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.6.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -108182,9 +104945,6 @@ { "buf": "model.layers.6.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -108192,7 +104952,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -108580,38 +105340,17 @@ ] }, { - "label": "l7.o_proj", - "kernel": "gemm", + "label": "l7.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.7.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l7.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.7.self_attn.o_proj.weight" }, { "buf": "residual" @@ -108619,9 +105358,6 @@ { "buf": "model.layers.7.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -108629,7 +105365,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -109032,38 +105768,17 @@ ] }, { - "label": "l8.out_proj", - "kernel": "gemm", + "label": "l8.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.8.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l8.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.8.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -109071,9 +105786,6 @@ { "buf": "model.layers.8.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -109081,7 +105793,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -109484,38 +106196,17 @@ ] }, { - "label": "l9.out_proj", - "kernel": "gemm", + "label": "l9.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.9.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l9.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.9.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -109523,9 +106214,6 @@ { "buf": "model.layers.9.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -109533,7 +106221,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -109936,38 +106624,17 @@ ] }, { - "label": "l10.out_proj", - "kernel": "gemm", + "label": "l10.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.10.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l10.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.10.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -109975,9 +106642,6 @@ { "buf": "model.layers.10.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -109985,7 +106649,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -110373,38 +107037,17 @@ ] }, { - "label": "l11.o_proj", - "kernel": "gemm", + "label": "l11.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.11.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l11.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.11.self_attn.o_proj.weight" }, { "buf": "residual" @@ -110412,9 +107055,6 @@ { "buf": "model.layers.11.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -110422,7 +107062,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -110825,38 +107465,17 @@ ] }, { - "label": "l12.out_proj", - "kernel": "gemm", + "label": "l12.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.12.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l12.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.12.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -110864,9 +107483,6 @@ { "buf": "model.layers.12.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -110874,7 +107490,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -111277,38 +107893,17 @@ ] }, { - "label": "l13.out_proj", - "kernel": "gemm", + "label": "l13.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.13.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l13.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.13.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -111316,9 +107911,6 @@ { "buf": "model.layers.13.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -111326,7 +107918,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -111729,38 +108321,17 @@ ] }, { - "label": "l14.out_proj", - "kernel": "gemm", + "label": "l14.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.14.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l14.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.14.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -111768,9 +108339,6 @@ { "buf": "model.layers.14.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -111778,7 +108346,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -112166,38 +108734,17 @@ ] }, { - "label": "l15.o_proj", - "kernel": "gemm", + "label": "l15.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.15.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l15.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.15.self_attn.o_proj.weight" }, { "buf": "residual" @@ -112205,9 +108752,6 @@ { "buf": "model.layers.15.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -112215,7 +108759,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -112618,38 +109162,17 @@ ] }, { - "label": "l16.out_proj", - "kernel": "gemm", + "label": "l16.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.16.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l16.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.16.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -112657,9 +109180,6 @@ { "buf": "model.layers.16.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -112667,7 +109187,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -113070,38 +109590,17 @@ ] }, { - "label": "l17.out_proj", - "kernel": "gemm", + "label": "l17.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.17.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l17.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.17.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -113109,9 +109608,6 @@ { "buf": "model.layers.17.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -113119,7 +109615,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -113522,38 +110018,17 @@ ] }, { - "label": "l18.out_proj", - "kernel": "gemm", + "label": "l18.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.18.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l18.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.18.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -113561,9 +110036,6 @@ { "buf": "model.layers.18.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -113571,7 +110043,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -113959,38 +110431,17 @@ ] }, { - "label": "l19.o_proj", - "kernel": "gemm", + "label": "l19.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.19.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l19.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.19.self_attn.o_proj.weight" }, { "buf": "residual" @@ -113998,9 +110449,6 @@ { "buf": "model.layers.19.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -114008,7 +110456,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -114435,38 +110883,17 @@ ] }, { - "label": "l20.out_proj", - "kernel": "gemm", + "label": "l20.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.20.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l20.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.20.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -114474,9 +110901,6 @@ { "buf": "model.layers.20.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -114484,7 +110908,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -114887,38 +111311,17 @@ ] }, { - "label": "l21.out_proj", - "kernel": "gemm", + "label": "l21.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.21.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l21.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.21.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -114926,9 +111329,6 @@ { "buf": "model.layers.21.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -114936,7 +111336,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -115339,38 +111739,17 @@ ] }, { - "label": "l22.out_proj", - "kernel": "gemm", + "label": "l22.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.22.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l22.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.22.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -115378,9 +111757,6 @@ { "buf": "model.layers.22.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -115388,7 +111764,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -115776,38 +112152,17 @@ ] }, { - "label": "l23.o_proj", - "kernel": "gemm", + "label": "l23.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.23.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l23.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.23.self_attn.o_proj.weight" }, { "buf": "residual" @@ -115815,9 +112170,6 @@ { "buf": "model.layers.23.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -115825,7 +112177,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -116228,38 +112580,17 @@ ] }, { - "label": "l24.out_proj", - "kernel": "gemm", + "label": "l24.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.24.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l24.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.24.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -116267,9 +112598,6 @@ { "buf": "model.layers.24.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -116277,7 +112605,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -116680,38 +113008,17 @@ ] }, { - "label": "l25.out_proj", - "kernel": "gemm", + "label": "l25.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.25.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l25.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.25.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -116719,9 +113026,6 @@ { "buf": "model.layers.25.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -116729,7 +113033,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -117132,38 +113436,17 @@ ] }, { - "label": "l26.out_proj", - "kernel": "gemm", + "label": "l26.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.26.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l26.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.26.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -117171,9 +113454,6 @@ { "buf": "model.layers.26.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -117181,7 +113461,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -117569,38 +113849,17 @@ ] }, { - "label": "l27.o_proj", - "kernel": "gemm", + "label": "l27.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.27.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l27.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.27.self_attn.o_proj.weight" }, { "buf": "residual" @@ -117608,9 +113867,6 @@ { "buf": "model.layers.27.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -117618,7 +113874,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -118021,38 +114277,17 @@ ] }, { - "label": "l28.out_proj", - "kernel": "gemm", + "label": "l28.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.28.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l28.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.28.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -118060,9 +114295,6 @@ { "buf": "model.layers.28.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -118070,7 +114302,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -118473,38 +114705,17 @@ ] }, { - "label": "l29.out_proj", - "kernel": "gemm", + "label": "l29.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.29.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l29.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.29.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -118512,9 +114723,6 @@ { "buf": "model.layers.29.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -118522,7 +114730,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -118925,38 +115133,17 @@ ] }, { - "label": "l30.out_proj", - "kernel": "gemm", + "label": "l30.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.30.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l30.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.30.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -118964,9 +115151,6 @@ { "buf": "model.layers.30.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -118974,7 +115158,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -119362,38 +115546,17 @@ ] }, { - "label": "l31.o_proj", - "kernel": "gemm", + "label": "l31.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.31.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l31.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.31.self_attn.o_proj.weight" }, { "buf": "residual" @@ -119401,9 +115564,6 @@ { "buf": "model.layers.31.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -119411,7 +115571,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -119814,38 +115974,17 @@ ] }, { - "label": "l32.out_proj", - "kernel": "gemm", + "label": "l32.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.32.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l32.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.32.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -119853,9 +115992,6 @@ { "buf": "model.layers.32.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -119863,7 +115999,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -120266,38 +116402,17 @@ ] }, { - "label": "l33.out_proj", - "kernel": "gemm", + "label": "l33.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.33.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l33.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.33.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -120305,9 +116420,6 @@ { "buf": "model.layers.33.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -120315,7 +116427,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -120742,38 +116854,17 @@ ] }, { - "label": "l34.out_proj", - "kernel": "gemm", + "label": "l34.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.34.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l34.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.34.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -120781,9 +116872,6 @@ { "buf": "model.layers.34.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -120791,7 +116879,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -121179,38 +117267,17 @@ ] }, { - "label": "l35.o_proj", - "kernel": "gemm", + "label": "l35.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.35.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l35.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.35.self_attn.o_proj.weight" }, { "buf": "residual" @@ -121218,9 +117285,6 @@ { "buf": "model.layers.35.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -121228,7 +117292,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -121631,38 +117695,17 @@ ] }, { - "label": "l36.out_proj", - "kernel": "gemm", + "label": "l36.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.36.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l36.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.36.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -121670,9 +117713,6 @@ { "buf": "model.layers.36.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -121680,7 +117720,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -122083,38 +118123,17 @@ ] }, { - "label": "l37.out_proj", - "kernel": "gemm", + "label": "l37.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.37.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l37.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.37.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -122122,9 +118141,6 @@ { "buf": "model.layers.37.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -122132,7 +118148,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -122535,38 +118551,17 @@ ] }, { - "label": "l38.out_proj", - "kernel": "gemm", + "label": "l38.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.38.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l38.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.38.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -122574,9 +118569,6 @@ { "buf": "model.layers.38.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -122584,7 +118576,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -122972,38 +118964,17 @@ ] }, { - "label": "l39.o_proj", - "kernel": "gemm", + "label": "l39.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.39.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l39.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.39.self_attn.o_proj.weight" }, { "buf": "residual" @@ -123011,9 +118982,6 @@ { "buf": "model.layers.39.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -123021,7 +118989,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -123424,38 +119392,17 @@ ] }, { - "label": "l40.out_proj", - "kernel": "gemm", + "label": "l40.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.40.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l40.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.40.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -123463,9 +119410,6 @@ { "buf": "model.layers.40.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -123473,7 +119417,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -123876,38 +119820,17 @@ ] }, { - "label": "l41.out_proj", - "kernel": "gemm", + "label": "l41.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.41.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l41.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.41.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -123915,9 +119838,6 @@ { "buf": "model.layers.41.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -123925,7 +119845,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -124328,38 +120248,17 @@ ] }, { - "label": "l42.out_proj", - "kernel": "gemm", + "label": "l42.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.42.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l42.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.42.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -124367,9 +120266,6 @@ { "buf": "model.layers.42.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -124377,7 +120273,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -124765,38 +120661,17 @@ ] }, { - "label": "l43.o_proj", - "kernel": "gemm", + "label": "l43.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.43.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l43.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.43.self_attn.o_proj.weight" }, { "buf": "residual" @@ -124804,9 +120679,6 @@ { "buf": "model.layers.43.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -124814,7 +120686,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -125217,38 +121089,17 @@ ] }, { - "label": "l44.out_proj", - "kernel": "gemm", + "label": "l44.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.44.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l44.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.44.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -125256,9 +121107,6 @@ { "buf": "model.layers.44.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -125266,7 +121114,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -125669,38 +121517,17 @@ ] }, { - "label": "l45.out_proj", - "kernel": "gemm", + "label": "l45.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.45.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l45.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.45.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -125708,9 +121535,6 @@ { "buf": "model.layers.45.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -125718,7 +121542,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -126121,38 +121945,17 @@ ] }, { - "label": "l46.out_proj", - "kernel": "gemm", + "label": "l46.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.46.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l46.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.46.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -126160,9 +121963,6 @@ { "buf": "model.layers.46.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -126170,7 +121970,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -126558,38 +122358,17 @@ ] }, { - "label": "l47.o_proj", - "kernel": "gemm", + "label": "l47.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.47.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l47.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.47.self_attn.o_proj.weight" }, { "buf": "residual" @@ -126597,9 +122376,6 @@ { "buf": "model.layers.47.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -126607,7 +122383,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -127034,38 +122810,17 @@ ] }, { - "label": "l48.out_proj", - "kernel": "gemm", + "label": "l48.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.48.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l48.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.48.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -127073,9 +122828,6 @@ { "buf": "model.layers.48.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -127083,7 +122835,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -127486,38 +123238,17 @@ ] }, { - "label": "l49.out_proj", - "kernel": "gemm", + "label": "l49.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.49.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l49.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.49.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -127525,9 +123256,6 @@ { "buf": "model.layers.49.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -127535,7 +123263,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -127938,38 +123666,17 @@ ] }, { - "label": "l50.out_proj", - "kernel": "gemm", + "label": "l50.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.50.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l50.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.50.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -127977,9 +123684,6 @@ { "buf": "model.layers.50.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -127987,7 +123691,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -128375,38 +124079,17 @@ ] }, { - "label": "l51.o_proj", - "kernel": "gemm", + "label": "l51.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.51.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l51.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.51.self_attn.o_proj.weight" }, { "buf": "residual" @@ -128414,9 +124097,6 @@ { "buf": "model.layers.51.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -128424,7 +124104,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -128827,38 +124507,17 @@ ] }, { - "label": "l52.out_proj", - "kernel": "gemm", + "label": "l52.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.52.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l52.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.52.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -128866,9 +124525,6 @@ { "buf": "model.layers.52.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -128876,7 +124532,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -129279,38 +124935,17 @@ ] }, { - "label": "l53.out_proj", - "kernel": "gemm", + "label": "l53.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.53.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l53.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.53.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -129318,9 +124953,6 @@ { "buf": "model.layers.53.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -129328,7 +124960,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -129731,38 +125363,17 @@ ] }, { - "label": "l54.out_proj", - "kernel": "gemm", + "label": "l54.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.54.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l54.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.54.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -129770,9 +125381,6 @@ { "buf": "model.layers.54.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -129780,7 +125388,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -130168,38 +125776,17 @@ ] }, { - "label": "l55.o_proj", - "kernel": "gemm", + "label": "l55.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.55.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l55.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.55.self_attn.o_proj.weight" }, { "buf": "residual" @@ -130207,9 +125794,6 @@ { "buf": "model.layers.55.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -130217,7 +125801,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -130620,38 +126204,17 @@ ] }, { - "label": "l56.out_proj", - "kernel": "gemm", + "label": "l56.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.56.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l56.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.56.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -130659,9 +126222,6 @@ { "buf": "model.layers.56.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -130669,7 +126229,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -131072,38 +126632,17 @@ ] }, { - "label": "l57.out_proj", - "kernel": "gemm", + "label": "l57.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.57.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l57.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.57.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -131111,9 +126650,6 @@ { "buf": "model.layers.57.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -131121,7 +126657,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -131524,38 +127060,17 @@ ] }, { - "label": "l58.out_proj", - "kernel": "gemm", + "label": "l58.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.58.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l58.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.58.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -131563,9 +127078,6 @@ { "buf": "model.layers.58.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -131573,7 +127085,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -131961,38 +127473,17 @@ ] }, { - "label": "l59.o_proj", - "kernel": "gemm", + "label": "l59.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.59.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l59.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.59.self_attn.o_proj.weight" }, { "buf": "residual" @@ -132000,9 +127491,6 @@ { "buf": "model.layers.59.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -132010,7 +127498,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -132413,38 +127901,17 @@ ] }, { - "label": "l60.out_proj", - "kernel": "gemm", + "label": "l60.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.60.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l60.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.60.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -132452,9 +127919,6 @@ { "buf": "model.layers.60.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -132462,7 +127926,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -132865,38 +128329,17 @@ ] }, { - "label": "l61.out_proj", - "kernel": "gemm", + "label": "l61.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.61.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l61.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.61.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -132904,9 +128347,6 @@ { "buf": "model.layers.61.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -132914,7 +128354,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -133341,38 +128781,17 @@ ] }, { - "label": "l62.out_proj", - "kernel": "gemm", + "label": "l62.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.62.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l62.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.62.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -133380,9 +128799,6 @@ { "buf": "model.layers.62.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -133390,7 +128806,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -133778,38 +129194,17 @@ ] }, { - "label": "l63.o_proj", - "kernel": "gemm", + "label": "l63.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.63.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l63.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.63.self_attn.o_proj.weight" }, { "buf": "residual" @@ -133817,9 +129212,6 @@ { "buf": "model.layers.63.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -133827,7 +129219,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 diff --git a/examples/qwen3.8-27b.json b/examples/qwen3.8-27b.json index 8bce876..45c1383 100644 --- a/examples/qwen3.8-27b.json +++ b/examples/qwen3.8-27b.json @@ -45471,38 +45471,17 @@ ] }, { - "label": "l0.out_proj", - "kernel": "gemm", + "label": "l0.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.0.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l0.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.0.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -45510,9 +45489,6 @@ { "buf": "model.layers.0.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -45520,7 +45496,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -45759,38 +45735,17 @@ ] }, { - "label": "l1.out_proj", - "kernel": "gemm", + "label": "l1.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.1.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l1.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.1.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -45798,9 +45753,6 @@ { "buf": "model.layers.1.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -45808,7 +45760,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -46047,38 +45999,17 @@ ] }, { - "label": "l2.out_proj", - "kernel": "gemm", + "label": "l2.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.2.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l2.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.2.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -46086,9 +46017,6 @@ { "buf": "model.layers.2.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -46096,7 +46024,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -46482,38 +46410,17 @@ ] }, { - "label": "l3.o_proj", - "kernel": "gemm", + "label": "l3.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.3.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l3.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.3.self_attn.o_proj.weight" }, { "buf": "residual" @@ -46521,9 +46428,6 @@ { "buf": "model.layers.3.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -46531,7 +46435,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -46770,38 +46674,17 @@ ] }, { - "label": "l4.out_proj", - "kernel": "gemm", + "label": "l4.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.4.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l4.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.4.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -46809,9 +46692,6 @@ { "buf": "model.layers.4.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -46819,7 +46699,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -47058,38 +46938,17 @@ ] }, { - "label": "l5.out_proj", - "kernel": "gemm", + "label": "l5.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.5.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l5.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.5.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -47097,9 +46956,6 @@ { "buf": "model.layers.5.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -47107,7 +46963,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -47346,38 +47202,17 @@ ] }, { - "label": "l6.out_proj", - "kernel": "gemm", + "label": "l6.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.6.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l6.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.6.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -47385,9 +47220,6 @@ { "buf": "model.layers.6.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -47395,7 +47227,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -47783,9 +47615,12 @@ ] }, { - "label": "l7.o_proj", - "kernel": "gemm", + "label": "l7.o_norm", + "kernel": "gemm8_add_norm", "args": [ + { + "buf": "x" + }, { "buf": "gated" }, @@ -47793,7 +47628,10 @@ "buf": "model.layers.7.self_attn.o_proj.weight" }, { - "buf": "y" + "buf": "residual" + }, + { + "buf": "model.layers.7.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -47803,36 +47641,6 @@ }, { "i32": 6144 - } - ] - }, - { - "label": "l7.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "y" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.7.post_attention_layernorm.weight_p1" - }, - { - "i32": 5120 - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 5120 }, { "f32": 9.999999974752427e-07 @@ -48071,38 +47879,17 @@ ] }, { - "label": "l8.out_proj", - "kernel": "gemm", + "label": "l8.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.8.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l8.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.8.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -48110,9 +47897,6 @@ { "buf": "model.layers.8.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -48120,7 +47904,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -48359,38 +48143,17 @@ ] }, { - "label": "l9.out_proj", - "kernel": "gemm", + "label": "l9.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.9.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l9.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.9.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -48398,9 +48161,6 @@ { "buf": "model.layers.9.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -48408,7 +48168,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -48647,38 +48407,17 @@ ] }, { - "label": "l10.out_proj", - "kernel": "gemm", + "label": "l10.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.10.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l10.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.10.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -48686,9 +48425,6 @@ { "buf": "model.layers.10.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -48696,7 +48432,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -49084,38 +48820,17 @@ ] }, { - "label": "l11.o_proj", - "kernel": "gemm", + "label": "l11.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.11.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l11.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.11.self_attn.o_proj.weight" }, { "buf": "residual" @@ -49123,9 +48838,6 @@ { "buf": "model.layers.11.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -49133,7 +48845,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -49372,38 +49084,17 @@ ] }, { - "label": "l12.out_proj", - "kernel": "gemm", + "label": "l12.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.12.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l12.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.12.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -49411,9 +49102,6 @@ { "buf": "model.layers.12.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -49421,7 +49109,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -49660,38 +49348,17 @@ ] }, { - "label": "l13.out_proj", - "kernel": "gemm", + "label": "l13.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.13.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l13.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.13.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -49699,9 +49366,6 @@ { "buf": "model.layers.13.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -49709,7 +49373,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -49948,9 +49612,12 @@ ] }, { - "label": "l14.out_proj", - "kernel": "gemm", + "label": "l14.out_norm", + "kernel": "gemm8_add_norm", "args": [ + { + "buf": "x" + }, { "buf": "core_attn_out" }, @@ -49958,7 +49625,10 @@ "buf": "model.layers.14.linear_attn.out_proj.weight" }, { - "buf": "y" + "buf": "residual" + }, + { + "buf": "model.layers.14.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -49968,39 +49638,9 @@ }, { "i32": 6144 - } - ] - }, - { - "label": "l14.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "y" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.14.post_attention_layernorm.weight_p1" - }, - { - "i32": 5120 - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 5120 - }, - { - "f32": 9.999999974752427e-07 + }, + { + "f32": 9.999999974752427e-07 } ] }, @@ -50385,38 +50025,17 @@ ] }, { - "label": "l15.o_proj", - "kernel": "gemm", + "label": "l15.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.15.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l15.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.15.self_attn.o_proj.weight" }, { "buf": "residual" @@ -50424,9 +50043,6 @@ { "buf": "model.layers.15.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -50434,7 +50050,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -50673,38 +50289,17 @@ ] }, { - "label": "l16.out_proj", - "kernel": "gemm", + "label": "l16.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.16.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l16.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.16.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -50712,9 +50307,6 @@ { "buf": "model.layers.16.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -50722,7 +50314,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -50961,38 +50553,17 @@ ] }, { - "label": "l17.out_proj", - "kernel": "gemm", + "label": "l17.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.17.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l17.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.17.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -51000,9 +50571,6 @@ { "buf": "model.layers.17.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -51010,7 +50578,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -51249,38 +50817,17 @@ ] }, { - "label": "l18.out_proj", - "kernel": "gemm", + "label": "l18.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.18.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l18.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.18.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -51288,9 +50835,6 @@ { "buf": "model.layers.18.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -51298,7 +50842,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -51686,38 +51230,17 @@ ] }, { - "label": "l19.o_proj", - "kernel": "gemm", + "label": "l19.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.19.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l19.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.19.self_attn.o_proj.weight" }, { "buf": "residual" @@ -51725,9 +51248,6 @@ { "buf": "model.layers.19.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -51735,7 +51255,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -51974,38 +51494,17 @@ ] }, { - "label": "l20.out_proj", - "kernel": "gemm", + "label": "l20.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.20.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l20.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.20.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -52013,9 +51512,6 @@ { "buf": "model.layers.20.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -52023,7 +51519,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -52262,9 +51758,12 @@ ] }, { - "label": "l21.out_proj", - "kernel": "gemm", + "label": "l21.out_norm", + "kernel": "gemm8_add_norm", "args": [ + { + "buf": "x" + }, { "buf": "core_attn_out" }, @@ -52272,7 +51771,10 @@ "buf": "model.layers.21.linear_attn.out_proj.weight" }, { - "buf": "y" + "buf": "residual" + }, + { + "buf": "model.layers.21.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -52282,39 +51784,9 @@ }, { "i32": 6144 - } - ] - }, - { - "label": "l21.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "y" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.21.post_attention_layernorm.weight_p1" - }, - { - "i32": 5120 - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 5120 - }, - { - "f32": 9.999999974752427e-07 + }, + { + "f32": 9.999999974752427e-07 } ] }, @@ -52550,38 +52022,17 @@ ] }, { - "label": "l22.out_proj", - "kernel": "gemm", + "label": "l22.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.22.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l22.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.22.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -52589,9 +52040,6 @@ { "buf": "model.layers.22.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -52599,7 +52047,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -52987,38 +52435,17 @@ ] }, { - "label": "l23.o_proj", - "kernel": "gemm", + "label": "l23.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.23.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l23.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.23.self_attn.o_proj.weight" }, { "buf": "residual" @@ -53026,9 +52453,6 @@ { "buf": "model.layers.23.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -53036,7 +52460,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -53275,38 +52699,17 @@ ] }, { - "label": "l24.out_proj", - "kernel": "gemm", + "label": "l24.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.24.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l24.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.24.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -53314,9 +52717,6 @@ { "buf": "model.layers.24.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -53324,7 +52724,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -53563,38 +52963,17 @@ ] }, { - "label": "l25.out_proj", - "kernel": "gemm", + "label": "l25.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.25.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l25.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.25.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -53602,9 +52981,6 @@ { "buf": "model.layers.25.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -53612,7 +52988,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -53851,38 +53227,17 @@ ] }, { - "label": "l26.out_proj", - "kernel": "gemm", + "label": "l26.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.26.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l26.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.26.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -53890,9 +53245,6 @@ { "buf": "model.layers.26.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -53900,7 +53252,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -54288,38 +53640,17 @@ ] }, { - "label": "l27.o_proj", - "kernel": "gemm", + "label": "l27.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.27.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l27.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.27.self_attn.o_proj.weight" }, { "buf": "residual" @@ -54327,9 +53658,6 @@ { "buf": "model.layers.27.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -54337,7 +53665,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -54576,9 +53904,12 @@ ] }, { - "label": "l28.out_proj", - "kernel": "gemm", + "label": "l28.out_norm", + "kernel": "gemm8_add_norm", "args": [ + { + "buf": "x" + }, { "buf": "core_attn_out" }, @@ -54586,7 +53917,10 @@ "buf": "model.layers.28.linear_attn.out_proj.weight" }, { - "buf": "y" + "buf": "residual" + }, + { + "buf": "model.layers.28.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -54596,39 +53930,9 @@ }, { "i32": 6144 - } - ] - }, - { - "label": "l28.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "y" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.28.post_attention_layernorm.weight_p1" - }, - { - "i32": 5120 - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 5120 - }, - { - "f32": 9.999999974752427e-07 + }, + { + "f32": 9.999999974752427e-07 } ] }, @@ -54864,38 +54168,17 @@ ] }, { - "label": "l29.out_proj", - "kernel": "gemm", + "label": "l29.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.29.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l29.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.29.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -54903,9 +54186,6 @@ { "buf": "model.layers.29.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -54913,7 +54193,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -55152,38 +54432,17 @@ ] }, { - "label": "l30.out_proj", - "kernel": "gemm", + "label": "l30.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.30.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l30.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.30.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -55191,9 +54450,6 @@ { "buf": "model.layers.30.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -55201,7 +54457,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -55589,38 +54845,17 @@ ] }, { - "label": "l31.o_proj", - "kernel": "gemm", + "label": "l31.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.31.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l31.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.31.self_attn.o_proj.weight" }, { "buf": "residual" @@ -55628,9 +54863,6 @@ { "buf": "model.layers.31.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -55638,7 +54870,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -55877,38 +55109,17 @@ ] }, { - "label": "l32.out_proj", - "kernel": "gemm", + "label": "l32.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.32.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l32.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.32.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -55916,9 +55127,6 @@ { "buf": "model.layers.32.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -55926,7 +55134,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -56165,38 +55373,17 @@ ] }, { - "label": "l33.out_proj", - "kernel": "gemm", + "label": "l33.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.33.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l33.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.33.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -56204,9 +55391,6 @@ { "buf": "model.layers.33.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -56214,7 +55398,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -56453,38 +55637,17 @@ ] }, { - "label": "l34.out_proj", - "kernel": "gemm", + "label": "l34.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.34.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l34.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.34.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -56492,9 +55655,6 @@ { "buf": "model.layers.34.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -56502,7 +55662,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -56890,38 +56050,17 @@ ] }, { - "label": "l35.o_proj", - "kernel": "gemm", + "label": "l35.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.35.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l35.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.35.self_attn.o_proj.weight" }, { "buf": "residual" @@ -56929,9 +56068,6 @@ { "buf": "model.layers.35.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -56939,7 +56075,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -57178,38 +56314,17 @@ ] }, { - "label": "l36.out_proj", - "kernel": "gemm", + "label": "l36.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.36.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l36.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.36.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -57217,9 +56332,6 @@ { "buf": "model.layers.36.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -57227,7 +56339,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -57466,38 +56578,17 @@ ] }, { - "label": "l37.out_proj", - "kernel": "gemm", + "label": "l37.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.37.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l37.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.37.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -57505,9 +56596,6 @@ { "buf": "model.layers.37.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -57515,7 +56603,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -57754,38 +56842,17 @@ ] }, { - "label": "l38.out_proj", - "kernel": "gemm", + "label": "l38.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.38.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l38.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.38.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -57793,9 +56860,6 @@ { "buf": "model.layers.38.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -57803,7 +56867,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -58191,38 +57255,17 @@ ] }, { - "label": "l39.o_proj", - "kernel": "gemm", + "label": "l39.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.39.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l39.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.39.self_attn.o_proj.weight" }, { "buf": "residual" @@ -58230,9 +57273,6 @@ { "buf": "model.layers.39.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -58240,7 +57280,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -58479,38 +57519,17 @@ ] }, { - "label": "l40.out_proj", - "kernel": "gemm", + "label": "l40.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.40.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l40.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.40.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -58518,9 +57537,6 @@ { "buf": "model.layers.40.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -58528,7 +57544,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -58767,38 +57783,17 @@ ] }, { - "label": "l41.out_proj", - "kernel": "gemm", + "label": "l41.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.41.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l41.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.41.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -58806,9 +57801,6 @@ { "buf": "model.layers.41.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -58816,7 +57808,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -59041,61 +58033,37 @@ "i32": 128 }, { - "i32": 48 - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l42.out_proj", - "kernel": "gemm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.42.linear_attn.out_proj.weight" - }, - { - "buf": "y" + "i32": 48 }, { - "sym": "tokens" + "f32": 9.999999974752427e-07 }, { - "i32": 5120 + "i64": 0 }, { - "i32": 6144 + "i64": 0 } ] }, { - "label": "l42.post_attn_norm", - "kernel": "gemma_fused_norm", + "label": "l42.out_norm", + "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "y" + "buf": "core_attn_out" }, { - "buf": "residual" + "buf": "model.layers.42.linear_attn.out_proj.weight" }, { - "buf": "model.layers.42.post_attention_layernorm.weight_p1" + "buf": "residual" }, { - "i32": 5120 + "buf": "model.layers.42.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -59104,7 +58072,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -59492,38 +58460,17 @@ ] }, { - "label": "l43.o_proj", - "kernel": "gemm", + "label": "l43.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.43.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l43.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.43.self_attn.o_proj.weight" }, { "buf": "residual" @@ -59531,9 +58478,6 @@ { "buf": "model.layers.43.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -59541,7 +58485,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -59780,38 +58724,17 @@ ] }, { - "label": "l44.out_proj", - "kernel": "gemm", + "label": "l44.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.44.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l44.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.44.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -59819,9 +58742,6 @@ { "buf": "model.layers.44.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -59829,7 +58749,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -60068,38 +58988,17 @@ ] }, { - "label": "l45.out_proj", - "kernel": "gemm", + "label": "l45.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.45.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l45.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.45.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -60107,9 +59006,6 @@ { "buf": "model.layers.45.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -60117,7 +59013,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -60356,38 +59252,17 @@ ] }, { - "label": "l46.out_proj", - "kernel": "gemm", + "label": "l46.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.46.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l46.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.46.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -60395,9 +59270,6 @@ { "buf": "model.layers.46.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -60405,7 +59277,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -60793,38 +59665,17 @@ ] }, { - "label": "l47.o_proj", - "kernel": "gemm", + "label": "l47.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.47.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l47.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.47.self_attn.o_proj.weight" }, { "buf": "residual" @@ -60832,9 +59683,6 @@ { "buf": "model.layers.47.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -60842,7 +59690,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -61081,38 +59929,17 @@ ] }, { - "label": "l48.out_proj", - "kernel": "gemm", + "label": "l48.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.48.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l48.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.48.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -61120,9 +59947,6 @@ { "buf": "model.layers.48.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -61130,7 +59954,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -61355,61 +60179,37 @@ "i32": 128 }, { - "i32": 48 - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l49.out_proj", - "kernel": "gemm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.49.linear_attn.out_proj.weight" - }, - { - "buf": "y" + "i32": 48 }, { - "sym": "tokens" + "f32": 9.999999974752427e-07 }, { - "i32": 5120 + "i64": 0 }, { - "i32": 6144 + "i64": 0 } ] }, { - "label": "l49.post_attn_norm", - "kernel": "gemma_fused_norm", + "label": "l49.out_norm", + "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "y" + "buf": "core_attn_out" }, { - "buf": "residual" + "buf": "model.layers.49.linear_attn.out_proj.weight" }, { - "buf": "model.layers.49.post_attention_layernorm.weight_p1" + "buf": "residual" }, { - "i32": 5120 + "buf": "model.layers.49.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -61418,7 +60218,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -61657,38 +60457,17 @@ ] }, { - "label": "l50.out_proj", - "kernel": "gemm", + "label": "l50.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.50.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l50.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.50.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -61696,9 +60475,6 @@ { "buf": "model.layers.50.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -61706,7 +60482,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -62094,38 +60870,17 @@ ] }, { - "label": "l51.o_proj", - "kernel": "gemm", + "label": "l51.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.51.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l51.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.51.self_attn.o_proj.weight" }, { "buf": "residual" @@ -62133,9 +60888,6 @@ { "buf": "model.layers.51.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -62143,7 +60895,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -62382,38 +61134,17 @@ ] }, { - "label": "l52.out_proj", - "kernel": "gemm", + "label": "l52.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.52.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l52.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.52.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -62421,9 +61152,6 @@ { "buf": "model.layers.52.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -62431,7 +61159,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -62670,38 +61398,17 @@ ] }, { - "label": "l53.out_proj", - "kernel": "gemm", + "label": "l53.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.53.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l53.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.53.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -62709,9 +61416,6 @@ { "buf": "model.layers.53.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -62719,7 +61423,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -62958,38 +61662,17 @@ ] }, { - "label": "l54.out_proj", - "kernel": "gemm", + "label": "l54.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.54.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l54.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.54.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -62997,9 +61680,6 @@ { "buf": "model.layers.54.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -63007,7 +61687,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -63395,38 +62075,17 @@ ] }, { - "label": "l55.o_proj", - "kernel": "gemm", + "label": "l55.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.55.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l55.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.55.self_attn.o_proj.weight" }, { "buf": "residual" @@ -63434,9 +62093,6 @@ { "buf": "model.layers.55.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -63444,7 +62100,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -63683,47 +62339,23 @@ ] }, { - "label": "l56.out_proj", - "kernel": "gemm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.56.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l56.post_attn_norm", - "kernel": "gemma_fused_norm", + "label": "l56.out_norm", + "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "y" + "buf": "core_attn_out" }, { - "buf": "residual" + "buf": "model.layers.56.linear_attn.out_proj.weight" }, { - "buf": "model.layers.56.post_attention_layernorm.weight_p1" + "buf": "residual" }, { - "i32": 5120 + "buf": "model.layers.56.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -63732,7 +62364,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -63971,38 +62603,17 @@ ] }, { - "label": "l57.out_proj", - "kernel": "gemm", + "label": "l57.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.57.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l57.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.57.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -64010,9 +62621,6 @@ { "buf": "model.layers.57.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -64020,7 +62628,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -64259,38 +62867,17 @@ ] }, { - "label": "l58.out_proj", - "kernel": "gemm", + "label": "l58.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.58.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l58.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.58.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -64298,9 +62885,6 @@ { "buf": "model.layers.58.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -64308,7 +62892,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -64696,38 +63280,17 @@ ] }, { - "label": "l59.o_proj", - "kernel": "gemm", + "label": "l59.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.59.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l59.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.59.self_attn.o_proj.weight" }, { "buf": "residual" @@ -64735,9 +63298,6 @@ { "buf": "model.layers.59.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -64745,7 +63305,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -64984,38 +63544,17 @@ ] }, { - "label": "l60.out_proj", - "kernel": "gemm", + "label": "l60.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.60.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l60.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.60.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -65023,9 +63562,6 @@ { "buf": "model.layers.60.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -65033,7 +63569,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -65272,38 +63808,17 @@ ] }, { - "label": "l61.out_proj", - "kernel": "gemm", + "label": "l61.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.61.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l61.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.61.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -65311,9 +63826,6 @@ { "buf": "model.layers.61.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -65321,7 +63833,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -65560,38 +64072,17 @@ ] }, { - "label": "l62.out_proj", - "kernel": "gemm", + "label": "l62.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.62.linear_attn.out_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l62.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "y" + "buf": "model.layers.62.linear_attn.out_proj.weight" }, { "buf": "residual" @@ -65599,9 +64090,6 @@ { "buf": "model.layers.62.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -65609,7 +64097,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -65997,38 +64485,17 @@ ] }, { - "label": "l63.o_proj", - "kernel": "gemm", + "label": "l63.o_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "gated" - }, - { - "buf": "model.layers.63.self_attn.o_proj.weight" - }, - { - "buf": "y" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 + "buf": "x" }, { - "i32": 6144 - } - ] - }, - { - "label": "l63.post_attn_norm", - "kernel": "gemma_fused_norm", - "args": [ - { - "buf": "x" + "buf": "gated" }, { - "buf": "y" + "buf": "model.layers.63.self_attn.o_proj.weight" }, { "buf": "residual" @@ -66036,9 +64503,6 @@ { "buf": "model.layers.63.post_attention_layernorm.weight_p1" }, - { - "i32": 5120 - }, { "sym": "tokens" }, @@ -66046,7 +64510,7 @@ "i32": 5120 }, { - "i32": 5120 + "i32": 6144 }, { "f32": 9.999999974752427e-07 diff --git a/tools/gen_qwen35.py b/tools/gen_qwen35.py index f3205ee..cfc611a 100644 --- a/tools/gen_qwen35.py +++ b/tools/gen_qwen35.py @@ -1153,7 +1153,16 @@ def forward(decode, taps=False, nacc=None, tail=None): for i in range(LAYERS): p = f"model.layers.{i}." l = f"l{i}." - ds += attn_layer(i, decode) if i in ATTN_LAYERS else gdn_layer(i, decode, nacc) + lay = attn_layer(i, decode) if i in ATTN_LAYERS else gdn_layer(i, decode, nacc) + if small: + # o_proj / out_proj GEMM + residual add + post-attention norm + attn = i in ATTN_LAYERS + lay[-1] = d(l + ("o_norm" if attn else "out_norm"), "gemm8_add_norm", + [buf("x"), buf("gated" if attn else "core_attn_out"), + buf(p + ("self_attn.o_proj.weight" if attn else "linear_attn.out_proj.weight")), + buf("residual"), buf(p + "post_attention_layernorm.weight_p1"), + T, i32(HIDDEN), i32(Q_DIM if attn else GDN_V), f32(eps)]) + ds += lay if small: mlp = [d(l + "gate_up_silu", "gemm8_gateup_silu", [buf("act"), buf("x"), buf(p + "mlp.gate_up_proj.weight"), @@ -1165,7 +1174,8 @@ def forward(decode, taps=False, nacc=None, tail=None): last = i + 1 == LAYERS wnorm = "model.norm.weight_p1" if last else f"model.layers.{i + 1}.input_layernorm.weight_p1" nlabel = l + ("final_norm" if last else "next_input_norm") - ds.append(fused(l + "post_attn_norm", "y", p + "post_attention_layernorm.weight_p1")) + if not small: + ds.append(fused(l + "post_attn_norm", "y", p + "post_attention_layernorm.weight_p1")) ds += mlp if small: # down GEMM + residual add + next input norm in one dispatch From 2a167a91806096e0396e14cb4dfd1f66e441b6ce Mon Sep 17 00:00:00 2001 From: JinYan Su <751080330@qq.com> Date: Mon, 31 Aug 2026 16:46:44 +0000 Subject: [PATCH 04/10] qwen38: fuse GDN in_proj_qkvz + in_proj_ba into one weight stream (bs<=8) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New kern_gemm8_dual_bf16 in gemm8.cu: the 48 GDN layers each project x into qkvz (N=16384) and ba (N=96) from the same input; the two nvjet GEMMs become one persistent-CTA pass that streams W_qkvz and W_ba back-to-back over one x staging, writing both outputs. ba alone is far too small to reach peak (96 rows), qkvz+ba together run at the same streaming rate as the big GEMMs. Replaces 2 gemms with 1 dispatch in decode / decode_spec / verify; decode 550 -> 502 dispatches. kern-attest (A = previous commit, B = this one, GB300): qwen3.8-27b.json — 48 cuts (gemm+gemm -> gemm8_dual): | decode tokens=1 | A | B measured | delta | | step, eager | 12.969 ms | 12.566 ms | -403 us -3.1% | | step, graph (TPOT) | 10.749 ms | 10.624 ms | -125 us 93->94 tok/s | | sum of 48 cuts | 1.929 ms | 1.496 ms | -433 us -22.5% | qwen3.8-27b-dflash2.json — same 48 cuts in decode: | decode tokens=1 | A | B measured | delta | | step, eager | 14.351 ms | 13.880 ms | -471 us -3.3% | | step, graph (TPOT) | 11.296 ms | 11.118 ms | -178 us 89->90 tok/s | | sum of 48 cuts | 1.963 ms | 1.484 ms | -479 us -24.4% | Roofline: 2x gemm 20.1 us each (52.5% of peak) -> 1x gemm8_dual 31.2 us (67.7% of peak). Verdict: INCONCLUSIVE (f32 accumulation order vs nvjet split-K inside the cut; downstream lockstep taps amplify through the GDN recurrence exactly as in the previous commits); next_token / draft_tokens / verify_tokens bit-identical, noise floor clean, fuzz <= 54 ulp on 0.4% of elements, special bit-identical. Signed-off-by: JinYan Su <751080330@qq.com> --- examples/qwen3.8-27b-dflash2.json | 4248 ++++++++--------------------- examples/qwen3.8-27b.json | 1464 +++------- tools/gen_qwen35.py | 24 +- 3 files changed, 1506 insertions(+), 4230 deletions(-) diff --git a/examples/qwen3.8-27b-dflash2.json b/examples/qwen3.8-27b-dflash2.json index f5eb0ac..ad56e1c 100644 --- a/examples/qwen3.8-27b-dflash2.json +++ b/examples/qwen3.8-27b-dflash2.json @@ -6701,6 +6701,78 @@ ] } }, + "gemm8_dual": { + "params": [ + "out buffer", + "out buffer", + "in buffer", + "in buffer", + "in buffer", + "i32", + "i32", + "i32", + "i32" + ], + "impl": { + "steps": [ + { + "symbol": "kern_gemm8_dual_bf16", + "params": [ + "out buffer", + "out buffer", + "in buffer", + "in buffer", + "in buffer", + "i32", + "i32", + "i32", + "i32" + ], + "block": [ + 288, + 1, + 1 + ], + "grid": [ + 152, + 1, + 1 + ], + "args": [ + { + "arg": 0 + }, + { + "arg": 1 + }, + { + "arg": 2 + }, + { + "arg": 3 + }, + { + "arg": 4 + }, + { + "arg": 5 + }, + { + "arg": 6 + }, + { + "arg": 7 + }, + { + "arg": 8 + } + ], + "shared_mem": 224128, + "cubin": "gemm8.cubin" + } + ] + } + }, "gemm8_add_norm": { "params": [ "out buffer", @@ -47307,44 +47379,29 @@ ] }, { - "label": "l0.in_proj_qkvz", - "kernel": "gemm", + "label": "l0.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.0.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l0.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.0.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.0.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -47734,44 +47791,29 @@ ] }, { - "label": "l1.in_proj_qkvz", - "kernel": "gemm", + "label": "l1.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.1.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l1.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.1.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.1.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -48162,44 +48204,29 @@ ] }, { - "label": "l2.in_proj_qkvz", - "kernel": "gemm", + "label": "l2.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.2.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l2.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.2.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.2.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -49001,44 +49028,29 @@ ] }, { - "label": "l4.in_proj_qkvz", - "kernel": "gemm", + "label": "l4.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.4.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l4.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.4.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.4.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -49429,44 +49441,29 @@ ] }, { - "label": "l5.in_proj_qkvz", - "kernel": "gemm", + "label": "l5.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.5.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l5.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.5.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.5.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -49857,44 +49854,29 @@ ] }, { - "label": "l6.in_proj_qkvz", - "kernel": "gemm", + "label": "l6.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.6.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l6.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.6.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.6.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -50698,44 +50680,29 @@ ] }, { - "label": "l8.in_proj_qkvz", - "kernel": "gemm", + "label": "l8.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.8.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l8.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.8.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.8.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -51126,44 +51093,29 @@ ] }, { - "label": "l9.in_proj_qkvz", - "kernel": "gemm", + "label": "l9.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.9.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l9.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.9.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.9.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -51554,44 +51506,29 @@ ] }, { - "label": "l10.in_proj_qkvz", - "kernel": "gemm", + "label": "l10.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.10.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l10.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.10.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.10.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -52395,44 +52332,29 @@ ] }, { - "label": "l12.in_proj_qkvz", - "kernel": "gemm", + "label": "l12.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.12.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l12.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.12.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.12.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -52823,44 +52745,29 @@ ] }, { - "label": "l13.in_proj_qkvz", - "kernel": "gemm", + "label": "l13.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.13.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l13.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.13.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.13.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -53251,44 +53158,29 @@ ] }, { - "label": "l14.in_proj_qkvz", - "kernel": "gemm", + "label": "l14.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.14.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l14.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.14.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.14.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -54092,44 +53984,29 @@ ] }, { - "label": "l16.in_proj_qkvz", - "kernel": "gemm", + "label": "l16.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.16.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l16.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.16.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.16.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -54520,44 +54397,29 @@ ] }, { - "label": "l17.in_proj_qkvz", - "kernel": "gemm", + "label": "l17.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.17.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l17.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.17.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.17.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -54948,44 +54810,29 @@ ] }, { - "label": "l18.in_proj_qkvz", - "kernel": "gemm", + "label": "l18.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.18.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l18.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.18.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.18.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -55789,44 +55636,29 @@ ] }, { - "label": "l20.in_proj_qkvz", - "kernel": "gemm", + "label": "l20.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.20.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l20.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.20.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.20.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -56217,44 +56049,29 @@ ] }, { - "label": "l21.in_proj_qkvz", - "kernel": "gemm", + "label": "l21.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.21.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l21.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.21.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.21.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -56645,44 +56462,29 @@ ] }, { - "label": "l22.in_proj_qkvz", - "kernel": "gemm", + "label": "l22.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.22.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l22.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.22.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.22.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -57486,44 +57288,29 @@ ] }, { - "label": "l24.in_proj_qkvz", - "kernel": "gemm", + "label": "l24.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.24.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l24.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.24.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.24.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -57914,44 +57701,29 @@ ] }, { - "label": "l25.in_proj_qkvz", - "kernel": "gemm", + "label": "l25.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.25.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l25.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.25.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.25.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -58342,44 +58114,29 @@ ] }, { - "label": "l26.in_proj_qkvz", - "kernel": "gemm", + "label": "l26.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.26.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l26.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.26.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.26.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -59183,44 +58940,29 @@ ] }, { - "label": "l28.in_proj_qkvz", - "kernel": "gemm", + "label": "l28.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.28.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l28.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.28.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.28.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -59611,44 +59353,29 @@ ] }, { - "label": "l29.in_proj_qkvz", - "kernel": "gemm", + "label": "l29.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.29.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l29.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.29.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.29.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -60039,44 +59766,29 @@ ] }, { - "label": "l30.in_proj_qkvz", - "kernel": "gemm", + "label": "l30.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.30.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l30.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.30.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.30.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -60880,44 +60592,29 @@ ] }, { - "label": "l32.in_proj_qkvz", - "kernel": "gemm", + "label": "l32.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.32.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l32.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.32.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.32.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -61308,44 +61005,29 @@ ] }, { - "label": "l33.in_proj_qkvz", - "kernel": "gemm", + "label": "l33.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.33.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l33.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.33.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.33.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -61736,44 +61418,29 @@ ] }, { - "label": "l34.in_proj_qkvz", - "kernel": "gemm", + "label": "l34.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.34.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l34.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.34.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.34.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -62577,44 +62244,29 @@ ] }, { - "label": "l36.in_proj_qkvz", - "kernel": "gemm", + "label": "l36.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.36.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l36.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.36.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.36.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -63005,44 +62657,29 @@ ] }, { - "label": "l37.in_proj_qkvz", - "kernel": "gemm", + "label": "l37.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.37.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l37.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.37.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.37.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -63433,44 +63070,29 @@ ] }, { - "label": "l38.in_proj_qkvz", - "kernel": "gemm", + "label": "l38.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.38.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l38.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.38.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.38.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -64274,44 +63896,29 @@ ] }, { - "label": "l40.in_proj_qkvz", - "kernel": "gemm", + "label": "l40.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.40.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l40.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.40.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.40.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -64702,44 +64309,29 @@ ] }, { - "label": "l41.in_proj_qkvz", - "kernel": "gemm", + "label": "l41.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.41.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l41.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.41.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.41.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -65130,44 +64722,29 @@ ] }, { - "label": "l42.in_proj_qkvz", - "kernel": "gemm", + "label": "l42.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.42.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l42.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.42.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.42.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -65971,44 +65548,29 @@ ] }, { - "label": "l44.in_proj_qkvz", - "kernel": "gemm", + "label": "l44.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.44.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l44.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.44.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.44.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -66399,44 +65961,29 @@ ] }, { - "label": "l45.in_proj_qkvz", - "kernel": "gemm", + "label": "l45.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.45.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l45.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.45.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.45.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -66827,44 +66374,29 @@ ] }, { - "label": "l46.in_proj_qkvz", - "kernel": "gemm", + "label": "l46.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.46.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l46.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.46.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.46.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -67668,44 +67200,29 @@ ] }, { - "label": "l48.in_proj_qkvz", - "kernel": "gemm", + "label": "l48.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.48.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l48.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.48.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.48.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -68096,44 +67613,29 @@ ] }, { - "label": "l49.in_proj_qkvz", - "kernel": "gemm", + "label": "l49.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.49.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l49.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.49.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.49.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -68524,44 +68026,29 @@ ] }, { - "label": "l50.in_proj_qkvz", - "kernel": "gemm", + "label": "l50.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.50.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l50.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.50.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.50.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -69365,44 +68852,29 @@ ] }, { - "label": "l52.in_proj_qkvz", - "kernel": "gemm", + "label": "l52.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.52.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l52.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.52.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.52.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -69793,44 +69265,29 @@ ] }, { - "label": "l53.in_proj_qkvz", - "kernel": "gemm", + "label": "l53.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.53.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l53.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.53.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.53.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -70221,44 +69678,29 @@ ] }, { - "label": "l54.in_proj_qkvz", - "kernel": "gemm", + "label": "l54.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.54.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l54.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.54.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.54.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -71062,44 +70504,29 @@ ] }, { - "label": "l56.in_proj_qkvz", - "kernel": "gemm", + "label": "l56.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.56.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l56.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.56.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.56.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -71490,44 +70917,29 @@ ] }, { - "label": "l57.in_proj_qkvz", - "kernel": "gemm", + "label": "l57.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.57.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l57.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.57.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.57.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -71918,44 +71330,29 @@ ] }, { - "label": "l58.in_proj_qkvz", - "kernel": "gemm", + "label": "l58.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.58.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l58.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.58.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.58.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -72759,44 +72156,29 @@ ] }, { - "label": "l60.in_proj_qkvz", - "kernel": "gemm", + "label": "l60.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.60.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l60.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.60.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.60.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -73187,44 +72569,29 @@ ] }, { - "label": "l61.in_proj_qkvz", - "kernel": "gemm", + "label": "l61.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.61.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l61.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.61.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.61.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -73615,44 +72982,29 @@ ] }, { - "label": "l62.in_proj_qkvz", - "kernel": "gemm", + "label": "l62.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.62.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l62.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.62.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.62.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -74601,44 +73953,29 @@ ] }, { - "label": "l0.in_proj_qkvz", - "kernel": "gemm", + "label": "l0.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.0.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l0.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.0.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.0.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -75028,44 +74365,29 @@ ] }, { - "label": "l1.in_proj_qkvz", - "kernel": "gemm", + "label": "l1.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.1.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l1.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.1.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.1.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -75456,44 +74778,29 @@ ] }, { - "label": "l2.in_proj_qkvz", - "kernel": "gemm", + "label": "l2.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.2.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l2.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.2.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.2.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -76295,44 +75602,29 @@ ] }, { - "label": "l4.in_proj_qkvz", - "kernel": "gemm", + "label": "l4.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.4.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l4.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.4.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.4.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -76723,44 +76015,29 @@ ] }, { - "label": "l5.in_proj_qkvz", - "kernel": "gemm", + "label": "l5.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.5.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l5.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.5.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.5.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -77175,44 +76452,29 @@ ] }, { - "label": "l6.in_proj_qkvz", - "kernel": "gemm", + "label": "l6.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.6.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l6.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.6.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.6.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -78016,44 +77278,29 @@ ] }, { - "label": "l8.in_proj_qkvz", - "kernel": "gemm", + "label": "l8.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.8.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l8.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.8.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.8.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -78444,44 +77691,29 @@ ] }, { - "label": "l9.in_proj_qkvz", - "kernel": "gemm", + "label": "l9.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.9.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l9.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.9.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.9.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -78872,44 +78104,29 @@ ] }, { - "label": "l10.in_proj_qkvz", - "kernel": "gemm", + "label": "l10.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.10.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l10.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.10.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.10.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -79713,44 +78930,29 @@ ] }, { - "label": "l12.in_proj_qkvz", - "kernel": "gemm", + "label": "l12.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.12.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l12.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.12.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.12.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -80141,44 +79343,29 @@ ] }, { - "label": "l13.in_proj_qkvz", - "kernel": "gemm", + "label": "l13.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.13.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l13.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.13.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.13.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -80569,44 +79756,29 @@ ] }, { - "label": "l14.in_proj_qkvz", - "kernel": "gemm", + "label": "l14.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.14.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l14.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.14.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.14.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -81410,44 +80582,29 @@ ] }, { - "label": "l16.in_proj_qkvz", - "kernel": "gemm", + "label": "l16.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.16.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l16.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.16.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.16.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -81838,44 +80995,29 @@ ] }, { - "label": "l17.in_proj_qkvz", - "kernel": "gemm", + "label": "l17.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.17.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l17.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.17.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.17.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -82266,44 +81408,29 @@ ] }, { - "label": "l18.in_proj_qkvz", - "kernel": "gemm", + "label": "l18.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.18.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l18.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.18.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.18.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -83131,44 +82258,29 @@ ] }, { - "label": "l20.in_proj_qkvz", - "kernel": "gemm", + "label": "l20.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.20.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l20.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.20.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.20.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -83559,44 +82671,29 @@ ] }, { - "label": "l21.in_proj_qkvz", - "kernel": "gemm", + "label": "l21.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.21.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l21.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.21.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.21.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -83987,44 +83084,29 @@ ] }, { - "label": "l22.in_proj_qkvz", - "kernel": "gemm", + "label": "l22.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.22.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l22.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.22.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.22.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -84828,44 +83910,29 @@ ] }, { - "label": "l24.in_proj_qkvz", - "kernel": "gemm", + "label": "l24.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.24.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l24.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.24.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.24.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -85256,44 +84323,29 @@ ] }, { - "label": "l25.in_proj_qkvz", - "kernel": "gemm", + "label": "l25.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.25.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l25.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.25.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.25.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -85684,44 +84736,29 @@ ] }, { - "label": "l26.in_proj_qkvz", - "kernel": "gemm", + "label": "l26.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.26.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l26.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.26.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.26.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -86525,44 +85562,29 @@ ] }, { - "label": "l28.in_proj_qkvz", - "kernel": "gemm", + "label": "l28.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.28.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l28.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.28.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.28.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -86953,44 +85975,29 @@ ] }, { - "label": "l29.in_proj_qkvz", - "kernel": "gemm", + "label": "l29.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.29.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l29.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.29.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.29.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -87381,44 +86388,29 @@ ] }, { - "label": "l30.in_proj_qkvz", - "kernel": "gemm", + "label": "l30.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.30.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l30.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.30.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.30.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -88222,44 +87214,29 @@ ] }, { - "label": "l32.in_proj_qkvz", - "kernel": "gemm", + "label": "l32.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.32.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l32.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.32.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.32.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -88650,44 +87627,29 @@ ] }, { - "label": "l33.in_proj_qkvz", - "kernel": "gemm", + "label": "l33.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.33.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l33.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.33.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.33.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -89102,44 +88064,29 @@ ] }, { - "label": "l34.in_proj_qkvz", - "kernel": "gemm", + "label": "l34.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.34.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l34.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.34.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.34.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -89943,44 +88890,29 @@ ] }, { - "label": "l36.in_proj_qkvz", - "kernel": "gemm", + "label": "l36.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.36.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l36.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.36.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.36.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -90371,44 +89303,29 @@ ] }, { - "label": "l37.in_proj_qkvz", - "kernel": "gemm", + "label": "l37.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.37.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l37.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.37.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.37.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -90799,44 +89716,29 @@ ] }, { - "label": "l38.in_proj_qkvz", - "kernel": "gemm", + "label": "l38.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.38.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l38.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.38.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.38.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -91640,44 +90542,29 @@ ] }, { - "label": "l40.in_proj_qkvz", - "kernel": "gemm", + "label": "l40.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.40.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l40.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.40.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.40.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -92068,44 +90955,29 @@ ] }, { - "label": "l41.in_proj_qkvz", - "kernel": "gemm", + "label": "l41.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.41.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l41.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.41.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.41.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -92496,44 +91368,29 @@ ] }, { - "label": "l42.in_proj_qkvz", - "kernel": "gemm", + "label": "l42.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.42.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l42.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.42.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.42.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -93337,44 +92194,29 @@ ] }, { - "label": "l44.in_proj_qkvz", - "kernel": "gemm", + "label": "l44.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.44.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l44.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.44.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.44.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -93765,44 +92607,29 @@ ] }, { - "label": "l45.in_proj_qkvz", - "kernel": "gemm", + "label": "l45.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.45.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l45.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.45.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.45.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -94193,44 +93020,29 @@ ] }, { - "label": "l46.in_proj_qkvz", - "kernel": "gemm", + "label": "l46.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.46.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l46.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.46.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.46.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -95058,44 +93870,29 @@ ] }, { - "label": "l48.in_proj_qkvz", - "kernel": "gemm", + "label": "l48.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.48.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l48.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.48.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.48.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -95486,44 +94283,29 @@ ] }, { - "label": "l49.in_proj_qkvz", - "kernel": "gemm", + "label": "l49.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.49.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l49.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.49.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.49.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -95914,44 +94696,29 @@ ] }, { - "label": "l50.in_proj_qkvz", - "kernel": "gemm", + "label": "l50.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.50.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l50.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.50.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.50.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -96755,44 +95522,29 @@ ] }, { - "label": "l52.in_proj_qkvz", - "kernel": "gemm", + "label": "l52.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.52.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l52.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.52.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.52.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -97183,44 +95935,29 @@ ] }, { - "label": "l53.in_proj_qkvz", - "kernel": "gemm", + "label": "l53.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.53.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l53.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.53.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.53.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -97611,44 +96348,29 @@ ] }, { - "label": "l54.in_proj_qkvz", - "kernel": "gemm", + "label": "l54.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.54.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l54.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.54.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.54.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -98452,44 +97174,29 @@ ] }, { - "label": "l56.in_proj_qkvz", - "kernel": "gemm", + "label": "l56.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.56.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l56.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.56.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.56.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -98880,44 +97587,29 @@ ] }, { - "label": "l57.in_proj_qkvz", - "kernel": "gemm", + "label": "l57.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.57.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l57.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.57.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.57.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -99308,44 +98000,29 @@ ] }, { - "label": "l58.in_proj_qkvz", - "kernel": "gemm", + "label": "l58.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.58.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l58.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.58.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.58.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -100149,44 +98826,29 @@ ] }, { - "label": "l60.in_proj_qkvz", - "kernel": "gemm", + "label": "l60.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.60.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l60.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.60.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.60.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -100577,44 +99239,29 @@ ] }, { - "label": "l61.in_proj_qkvz", - "kernel": "gemm", + "label": "l61.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.61.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l61.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.61.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.61.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -101029,44 +99676,29 @@ ] }, { - "label": "l62.in_proj_qkvz", - "kernel": "gemm", + "label": "l62.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.62.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l62.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.62.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.62.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -102015,44 +100647,29 @@ ] }, { - "label": "l0.in_proj_qkvz", - "kernel": "gemm", + "label": "l0.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.0.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l0.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.0.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.0.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -102442,44 +101059,29 @@ ] }, { - "label": "l1.in_proj_qkvz", - "kernel": "gemm", + "label": "l1.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.1.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l1.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.1.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.1.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -102870,44 +101472,29 @@ ] }, { - "label": "l2.in_proj_qkvz", - "kernel": "gemm", + "label": "l2.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.2.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l2.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.2.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.2.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -103709,44 +102296,29 @@ ] }, { - "label": "l4.in_proj_qkvz", - "kernel": "gemm", + "label": "l4.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.4.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l4.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.4.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.4.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -104137,44 +102709,29 @@ ] }, { - "label": "l5.in_proj_qkvz", - "kernel": "gemm", + "label": "l5.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.5.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l5.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.5.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.5.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -104589,44 +103146,29 @@ ] }, { - "label": "l6.in_proj_qkvz", - "kernel": "gemm", + "label": "l6.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.6.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l6.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.6.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.6.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -105430,44 +103972,29 @@ ] }, { - "label": "l8.in_proj_qkvz", - "kernel": "gemm", + "label": "l8.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.8.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l8.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.8.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.8.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -105858,44 +104385,29 @@ ] }, { - "label": "l9.in_proj_qkvz", - "kernel": "gemm", + "label": "l9.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.9.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l9.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.9.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.9.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -106286,44 +104798,29 @@ ] }, { - "label": "l10.in_proj_qkvz", - "kernel": "gemm", + "label": "l10.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.10.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l10.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.10.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.10.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -107127,44 +105624,29 @@ ] }, { - "label": "l12.in_proj_qkvz", - "kernel": "gemm", + "label": "l12.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.12.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l12.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.12.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.12.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -107555,44 +106037,29 @@ ] }, { - "label": "l13.in_proj_qkvz", - "kernel": "gemm", + "label": "l13.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.13.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l13.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.13.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.13.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -107983,44 +106450,29 @@ ] }, { - "label": "l14.in_proj_qkvz", - "kernel": "gemm", + "label": "l14.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.14.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l14.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.14.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.14.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -108824,44 +107276,29 @@ ] }, { - "label": "l16.in_proj_qkvz", - "kernel": "gemm", + "label": "l16.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.16.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l16.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.16.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.16.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -109252,44 +107689,29 @@ ] }, { - "label": "l17.in_proj_qkvz", - "kernel": "gemm", + "label": "l17.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.17.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l17.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.17.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.17.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -109680,44 +108102,29 @@ ] }, { - "label": "l18.in_proj_qkvz", - "kernel": "gemm", + "label": "l18.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.18.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l18.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.18.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.18.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -110545,44 +108952,29 @@ ] }, { - "label": "l20.in_proj_qkvz", - "kernel": "gemm", + "label": "l20.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.20.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l20.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.20.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.20.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -110973,44 +109365,29 @@ ] }, { - "label": "l21.in_proj_qkvz", - "kernel": "gemm", + "label": "l21.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.21.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l21.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.21.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.21.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -111401,44 +109778,29 @@ ] }, { - "label": "l22.in_proj_qkvz", - "kernel": "gemm", + "label": "l22.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.22.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l22.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.22.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.22.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -112242,44 +110604,29 @@ ] }, { - "label": "l24.in_proj_qkvz", - "kernel": "gemm", + "label": "l24.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.24.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l24.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.24.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.24.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -112670,44 +111017,29 @@ ] }, { - "label": "l25.in_proj_qkvz", - "kernel": "gemm", + "label": "l25.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.25.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l25.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.25.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.25.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -113098,44 +111430,29 @@ ] }, { - "label": "l26.in_proj_qkvz", - "kernel": "gemm", + "label": "l26.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.26.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l26.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.26.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.26.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -113939,44 +112256,29 @@ ] }, { - "label": "l28.in_proj_qkvz", - "kernel": "gemm", + "label": "l28.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.28.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l28.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.28.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.28.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -114367,44 +112669,29 @@ ] }, { - "label": "l29.in_proj_qkvz", - "kernel": "gemm", + "label": "l29.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.29.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l29.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.29.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.29.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -114795,44 +113082,29 @@ ] }, { - "label": "l30.in_proj_qkvz", - "kernel": "gemm", + "label": "l30.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.30.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l30.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.30.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.30.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -115636,44 +113908,29 @@ ] }, { - "label": "l32.in_proj_qkvz", - "kernel": "gemm", + "label": "l32.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.32.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l32.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.32.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.32.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -116064,44 +114321,29 @@ ] }, { - "label": "l33.in_proj_qkvz", - "kernel": "gemm", + "label": "l33.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.33.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l33.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.33.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.33.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -116516,44 +114758,29 @@ ] }, { - "label": "l34.in_proj_qkvz", - "kernel": "gemm", + "label": "l34.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.34.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l34.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.34.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.34.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -117357,44 +115584,29 @@ ] }, { - "label": "l36.in_proj_qkvz", - "kernel": "gemm", + "label": "l36.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.36.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l36.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.36.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.36.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -117785,44 +115997,29 @@ ] }, { - "label": "l37.in_proj_qkvz", - "kernel": "gemm", + "label": "l37.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.37.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l37.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.37.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.37.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -118213,44 +116410,29 @@ ] }, { - "label": "l38.in_proj_qkvz", - "kernel": "gemm", + "label": "l38.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.38.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l38.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.38.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.38.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -119054,44 +117236,29 @@ ] }, { - "label": "l40.in_proj_qkvz", - "kernel": "gemm", + "label": "l40.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.40.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l40.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.40.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.40.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -119482,44 +117649,29 @@ ] }, { - "label": "l41.in_proj_qkvz", - "kernel": "gemm", + "label": "l41.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.41.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l41.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.41.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.41.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -119910,44 +118062,29 @@ ] }, { - "label": "l42.in_proj_qkvz", - "kernel": "gemm", + "label": "l42.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.42.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l42.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.42.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.42.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -120751,44 +118888,29 @@ ] }, { - "label": "l44.in_proj_qkvz", - "kernel": "gemm", + "label": "l44.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.44.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l44.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.44.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.44.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -121179,44 +119301,29 @@ ] }, { - "label": "l45.in_proj_qkvz", - "kernel": "gemm", + "label": "l45.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.45.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l45.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.45.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.45.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -121607,44 +119714,29 @@ ] }, { - "label": "l46.in_proj_qkvz", - "kernel": "gemm", + "label": "l46.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.46.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l46.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.46.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.46.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -122472,44 +120564,29 @@ ] }, { - "label": "l48.in_proj_qkvz", - "kernel": "gemm", + "label": "l48.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.48.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l48.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.48.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.48.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -122900,44 +120977,29 @@ ] }, { - "label": "l49.in_proj_qkvz", - "kernel": "gemm", + "label": "l49.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.49.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l49.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.49.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.49.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -123328,44 +121390,29 @@ ] }, { - "label": "l50.in_proj_qkvz", - "kernel": "gemm", + "label": "l50.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.50.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l50.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.50.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.50.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -124169,44 +122216,29 @@ ] }, { - "label": "l52.in_proj_qkvz", - "kernel": "gemm", + "label": "l52.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.52.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l52.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.52.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.52.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -124597,44 +122629,29 @@ ] }, { - "label": "l53.in_proj_qkvz", - "kernel": "gemm", + "label": "l53.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.53.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l53.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.53.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.53.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -125025,44 +123042,29 @@ ] }, { - "label": "l54.in_proj_qkvz", - "kernel": "gemm", + "label": "l54.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.54.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l54.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.54.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.54.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -125866,44 +123868,29 @@ ] }, { - "label": "l56.in_proj_qkvz", - "kernel": "gemm", + "label": "l56.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.56.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l56.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.56.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.56.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -126294,44 +124281,29 @@ ] }, { - "label": "l57.in_proj_qkvz", - "kernel": "gemm", + "label": "l57.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.57.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l57.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.57.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.57.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -126722,44 +124694,29 @@ ] }, { - "label": "l58.in_proj_qkvz", - "kernel": "gemm", + "label": "l58.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.58.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l58.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.58.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.58.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -127563,44 +125520,29 @@ ] }, { - "label": "l60.in_proj_qkvz", - "kernel": "gemm", + "label": "l60.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.60.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l60.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.60.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.60.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -127991,44 +125933,29 @@ ] }, { - "label": "l61.in_proj_qkvz", - "kernel": "gemm", + "label": "l61.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.61.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l61.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.61.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.61.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -128443,44 +126370,29 @@ ] }, { - "label": "l62.in_proj_qkvz", - "kernel": "gemm", + "label": "l62.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.62.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l62.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.62.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.62.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 diff --git a/examples/qwen3.8-27b.json b/examples/qwen3.8-27b.json index 45c1383..6092d9a 100644 --- a/examples/qwen3.8-27b.json +++ b/examples/qwen3.8-27b.json @@ -5940,6 +5940,78 @@ ] } }, + "gemm8_dual": { + "params": [ + "out buffer", + "out buffer", + "in buffer", + "in buffer", + "in buffer", + "i32", + "i32", + "i32", + "i32" + ], + "impl": { + "steps": [ + { + "symbol": "kern_gemm8_dual_bf16", + "params": [ + "out buffer", + "out buffer", + "in buffer", + "in buffer", + "in buffer", + "i32", + "i32", + "i32", + "i32" + ], + "block": [ + 288, + 1, + 1 + ], + "grid": [ + 152, + 1, + 1 + ], + "args": [ + { + "arg": 0 + }, + { + "arg": 1 + }, + { + "arg": 2 + }, + { + "arg": 3 + }, + { + "arg": 4 + }, + { + "arg": 5 + }, + { + "arg": 6 + }, + { + "arg": 7 + }, + { + "arg": 8 + } + ], + "shared_mem": 224128, + "cubin": "gemm8.cubin" + } + ] + } + }, "gemm8_add_norm": { "params": [ "out buffer", @@ -45297,44 +45369,29 @@ ] }, { - "label": "l0.in_proj_qkvz", - "kernel": "gemm", + "label": "l0.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.0.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l0.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.0.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.0.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -45561,44 +45618,29 @@ ] }, { - "label": "l1.in_proj_qkvz", - "kernel": "gemm", + "label": "l1.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.1.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l1.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.1.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.1.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -45825,44 +45867,29 @@ ] }, { - "label": "l2.in_proj_qkvz", - "kernel": "gemm", + "label": "l2.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.2.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l2.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.2.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.2.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -46500,44 +46527,29 @@ ] }, { - "label": "l4.in_proj_qkvz", - "kernel": "gemm", + "label": "l4.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.4.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l4.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.4.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.4.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -46764,44 +46776,29 @@ ] }, { - "label": "l5.in_proj_qkvz", - "kernel": "gemm", + "label": "l5.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.5.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l5.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.5.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.5.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -47028,44 +47025,29 @@ ] }, { - "label": "l6.in_proj_qkvz", - "kernel": "gemm", + "label": "l6.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.6.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l6.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.6.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.6.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -47705,44 +47687,29 @@ ] }, { - "label": "l8.in_proj_qkvz", - "kernel": "gemm", + "label": "l8.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.8.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l8.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.8.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.8.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -47969,44 +47936,29 @@ ] }, { - "label": "l9.in_proj_qkvz", - "kernel": "gemm", + "label": "l9.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.9.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l9.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.9.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.9.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -48233,44 +48185,29 @@ ] }, { - "label": "l10.in_proj_qkvz", - "kernel": "gemm", + "label": "l10.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.10.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l10.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.10.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.10.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -48910,44 +48847,29 @@ ] }, { - "label": "l12.in_proj_qkvz", - "kernel": "gemm", + "label": "l12.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.12.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l12.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.12.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.12.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -49174,44 +49096,29 @@ ] }, { - "label": "l13.in_proj_qkvz", - "kernel": "gemm", + "label": "l13.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.13.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l13.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.13.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.13.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -49438,44 +49345,29 @@ ] }, { - "label": "l14.in_proj_qkvz", - "kernel": "gemm", + "label": "l14.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.14.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l14.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.14.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.14.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -50115,44 +50007,29 @@ ] }, { - "label": "l16.in_proj_qkvz", - "kernel": "gemm", + "label": "l16.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.16.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l16.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.16.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.16.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -50379,44 +50256,29 @@ ] }, { - "label": "l17.in_proj_qkvz", - "kernel": "gemm", + "label": "l17.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.17.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l17.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.17.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.17.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -50643,44 +50505,29 @@ ] }, { - "label": "l18.in_proj_qkvz", - "kernel": "gemm", + "label": "l18.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.18.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l18.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.18.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.18.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -51320,44 +51167,29 @@ ] }, { - "label": "l20.in_proj_qkvz", - "kernel": "gemm", + "label": "l20.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.20.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l20.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.20.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.20.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -51584,44 +51416,29 @@ ] }, { - "label": "l21.in_proj_qkvz", - "kernel": "gemm", + "label": "l21.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.21.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l21.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.21.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.21.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -51848,44 +51665,29 @@ ] }, { - "label": "l22.in_proj_qkvz", - "kernel": "gemm", + "label": "l22.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.22.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l22.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.22.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.22.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -52525,44 +52327,29 @@ ] }, { - "label": "l24.in_proj_qkvz", - "kernel": "gemm", + "label": "l24.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.24.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l24.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.24.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.24.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -52789,44 +52576,29 @@ ] }, { - "label": "l25.in_proj_qkvz", - "kernel": "gemm", + "label": "l25.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.25.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l25.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.25.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.25.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -53053,44 +52825,29 @@ ] }, { - "label": "l26.in_proj_qkvz", - "kernel": "gemm", + "label": "l26.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.26.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l26.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.26.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.26.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -53730,44 +53487,29 @@ ] }, { - "label": "l28.in_proj_qkvz", - "kernel": "gemm", + "label": "l28.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.28.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l28.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.28.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.28.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -53994,44 +53736,29 @@ ] }, { - "label": "l29.in_proj_qkvz", - "kernel": "gemm", + "label": "l29.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.29.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l29.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.29.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.29.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -54258,44 +53985,29 @@ ] }, { - "label": "l30.in_proj_qkvz", - "kernel": "gemm", + "label": "l30.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.30.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l30.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.30.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.30.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -54935,44 +54647,29 @@ ] }, { - "label": "l32.in_proj_qkvz", - "kernel": "gemm", + "label": "l32.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.32.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l32.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.32.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.32.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -55199,44 +54896,29 @@ ] }, { - "label": "l33.in_proj_qkvz", - "kernel": "gemm", + "label": "l33.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.33.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l33.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.33.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.33.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -55463,44 +55145,29 @@ ] }, { - "label": "l34.in_proj_qkvz", - "kernel": "gemm", + "label": "l34.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.34.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l34.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.34.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.34.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -56140,44 +55807,29 @@ ] }, { - "label": "l36.in_proj_qkvz", - "kernel": "gemm", + "label": "l36.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.36.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l36.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.36.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.36.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -56404,44 +56056,29 @@ ] }, { - "label": "l37.in_proj_qkvz", - "kernel": "gemm", + "label": "l37.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.37.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l37.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.37.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.37.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -56668,44 +56305,29 @@ ] }, { - "label": "l38.in_proj_qkvz", - "kernel": "gemm", + "label": "l38.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.38.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l38.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.38.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.38.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -57345,44 +56967,29 @@ ] }, { - "label": "l40.in_proj_qkvz", - "kernel": "gemm", + "label": "l40.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.40.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l40.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.40.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.40.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -57609,44 +57216,29 @@ ] }, { - "label": "l41.in_proj_qkvz", - "kernel": "gemm", + "label": "l41.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.41.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l41.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.41.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.41.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -57873,44 +57465,29 @@ ] }, { - "label": "l42.in_proj_qkvz", - "kernel": "gemm", + "label": "l42.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.42.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l42.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.42.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.42.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -58550,44 +58127,29 @@ ] }, { - "label": "l44.in_proj_qkvz", - "kernel": "gemm", + "label": "l44.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.44.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l44.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.44.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.44.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -58814,44 +58376,29 @@ ] }, { - "label": "l45.in_proj_qkvz", - "kernel": "gemm", + "label": "l45.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.45.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l45.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.45.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.45.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -59078,44 +58625,29 @@ ] }, { - "label": "l46.in_proj_qkvz", - "kernel": "gemm", + "label": "l46.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.46.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l46.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.46.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.46.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -59755,44 +59287,29 @@ ] }, { - "label": "l48.in_proj_qkvz", - "kernel": "gemm", + "label": "l48.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.48.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l48.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.48.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.48.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -60019,44 +59536,29 @@ ] }, { - "label": "l49.in_proj_qkvz", - "kernel": "gemm", + "label": "l49.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.49.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l49.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.49.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.49.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -60283,44 +59785,29 @@ ] }, { - "label": "l50.in_proj_qkvz", - "kernel": "gemm", + "label": "l50.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.50.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l50.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.50.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.50.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -60960,44 +60447,29 @@ ] }, { - "label": "l52.in_proj_qkvz", - "kernel": "gemm", + "label": "l52.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.52.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l52.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.52.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.52.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -61224,44 +60696,29 @@ ] }, { - "label": "l53.in_proj_qkvz", - "kernel": "gemm", + "label": "l53.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.53.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l53.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.53.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.53.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -61488,44 +60945,29 @@ ] }, { - "label": "l54.in_proj_qkvz", - "kernel": "gemm", + "label": "l54.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.54.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l54.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.54.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.54.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -62165,44 +61607,29 @@ ] }, { - "label": "l56.in_proj_qkvz", - "kernel": "gemm", + "label": "l56.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.56.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l56.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.56.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.56.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -62429,44 +61856,29 @@ ] }, { - "label": "l57.in_proj_qkvz", - "kernel": "gemm", + "label": "l57.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.57.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l57.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.57.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.57.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -62693,44 +62105,29 @@ ] }, { - "label": "l58.in_proj_qkvz", - "kernel": "gemm", + "label": "l58.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.58.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l58.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.58.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.58.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -63370,44 +62767,29 @@ ] }, { - "label": "l60.in_proj_qkvz", - "kernel": "gemm", + "label": "l60.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.60.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l60.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.60.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.60.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -63634,44 +63016,29 @@ ] }, { - "label": "l61.in_proj_qkvz", - "kernel": "gemm", + "label": "l61.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.61.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l61.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.61.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.61.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 @@ -63898,44 +63265,29 @@ ] }, { - "label": "l62.in_proj_qkvz", - "kernel": "gemm", + "label": "l62.in_proj", + "kernel": "gemm8_dual", "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.62.linear_attn.in_proj_qkvz.weight" - }, { "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i32": 16384 + "buf": "x" }, { - "i32": 5120 - } - ] - }, - { - "label": "l62.in_proj_ba", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.62.linear_attn.in_proj_qkvz.weight" }, { "buf": "model.layers.62.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { "i32": 96 diff --git a/tools/gen_qwen35.py b/tools/gen_qwen35.py index cfc611a..4eb6555 100644 --- a/tools/gen_qwen35.py +++ b/tools/gen_qwen35.py @@ -776,6 +776,12 @@ def layer_norm_kernel(src, grid, rows_shape): # down GEMM + residual add + Gemma fused_add_rms_norm of the next # layer input (gemm8's split-K partials, y and the task counters are # impl scratch; the norm tail reproduces kern_gemma_rms_norm.cu) + # two weights sharing one x: in_proj_qkvz + in_proj_ba per GDN layer + "gemm8_dual": single("kern_gemm8_dual_bf16", + ["out buffer", "out buffer", "in buffer", + "in buffer", "in buffer", "i32", "i32", "i32", "i32"], + [GEMM8_THREADS, 1, 1], [GEMM8_GRID, 1, 1], + shared_mem=GEMM8_SMEM, cubin="gemm8.cubin"), "gemm8_add_norm": { "params": GEMM8_AN_PARAMS[:5] + GEMM8_AN_PARAMS[8:], "impl": { @@ -995,7 +1001,7 @@ def fused(label, x_in, w): [buf("x"), buf(x_in), buf("residual"), buf(w), i32(HIDDEN), T, i32(HIDDEN), i32(HIDDEN), f32(eps)]) - def gdn_layer(i, decode, nacc=None): + def gdn_layer(i, decode, nacc=None, small=False): """decode=False: the chunked FLA prefill chain. decode=True: the recurrent chain — Stage 1's packed kernels, or, when `nacc` names the num_accepted_tokens buffer, vLLM's speculative kernels over the @@ -1006,10 +1012,16 @@ def gdn_layer(i, decode, nacc=None): line = g + 1 idx = buf(line_table, 4 * line) page = gdn_page(i) - ds = [ - gemm(l + "in_proj_qkvz", "x", p + "in_proj_qkvz.weight", "qkvz", T, QKVZ_DIM, HIDDEN), - gemm(l + "in_proj_ba", "x", p + "in_proj_ba.weight", "ba", T, BA_DIM, HIDDEN), - ] + if small: + # one weight stream for both input projections + ds = [d(l + "in_proj", "gemm8_dual", + [buf("qkvz"), buf("ba"), buf("x"), buf(p + "in_proj_qkvz.weight"), + buf(p + "in_proj_ba.weight"), T, i32(QKVZ_DIM), i32(BA_DIM), i32(HIDDEN)])] + else: + ds = [ + gemm(l + "in_proj_qkvz", "x", p + "in_proj_qkvz.weight", "qkvz", T, QKVZ_DIM, HIDDEN), + gemm(l + "in_proj_ba", "x", p + "in_proj_ba.weight", "ba", T, BA_DIM, HIDDEN), + ] a_ = buf("ba", GDN_V_HEADS * BF16) # ba row = [b | a] b_ = buf("ba") if not decode and nacc is None: @@ -1153,7 +1165,7 @@ def forward(decode, taps=False, nacc=None, tail=None): for i in range(LAYERS): p = f"model.layers.{i}." l = f"l{i}." - lay = attn_layer(i, decode) if i in ATTN_LAYERS else gdn_layer(i, decode, nacc) + lay = attn_layer(i, decode) if i in ATTN_LAYERS else gdn_layer(i, decode, nacc, small) if small: # o_proj / out_proj GEMM + residual add + post-attention norm attn = i in ATTN_LAYERS From 10b9ded1993c961d665705563adb22ddcd0d9e77 Mon Sep 17 00:00:00 2001 From: JinYan Su <751080330@qq.com> Date: Mon, 31 Aug 2026 16:56:39 +0000 Subject: [PATCH 05/10] qwen38: fuse the sigmoid attention gate into o_proj + add + norm (bs<=8) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New kern_gemm8_sgate_add_norm_bf16 in gemm8.cu: the 16 gated-attention layers compute gated = attn_out * sigmoid(gate) (gate is the strided per-head [q | gate] view of the qkv projection) and feed it to o_proj. kern_sigmoid_mul_bf16 launches [tokens, 1, 1] blocks -- at decode that is ONE CTA on the whole GPU, ~19 us of pure latency. The fused kernel's compute warps build x = bf16(f32(attn) * bf16(sigmoid(f32(gate)))) (the exact sigmoid_mul.cu chain) straight into the x staging smem at each K range switch; 8-element aligned batches make the gate/attn loads and the smem store one 16 B vector each, so the fill hides under the first weight stages (o_proj+gate+add+norm 22.6 us vs 22.8 us for the unfused GEMM alone). Replaces sigmoid_mul + gemm8_add_norm in decode / decode_spec / verify; decode 502 -> 486 dispatches, and the `gated` buffer leaves the small-batch dataflow. kern-attest (A = previous commit, B = this one, GB300): qwen3.8-27b.json — 16 cuts (sigmoid_mul+gemm8_add_norm -> gemm8_sgate_add_norm): | decode tokens=1 | A | B measured | delta | | step, eager | 12.551 ms | 12.298 ms | -253 us -2.0% | | step, graph (TPOT) | 10.561 ms | 10.366 ms | -195 us 95->96 tok/s | | sum of 16 cuts | 733.8 us | 448.8 us | -285 us -38.8% | qwen3.8-27b-dflash2.json — same 16 cuts in decode: | decode tokens=1 | A | B measured | delta | | step, eager | 13.869 ms | 13.599 ms | -270 us -1.9% | | step, graph (TPOT) | 11.154 ms | 10.927 ms | -227 us 90->92 tok/s | | sum of 16 cuts | 694.7 us | 454.7 us | -240 us -34.5% | Verdict: plain PASS -- bit-identical at every cut on real and synthesized inputs (uniform/normal/laplace/outliers/edge/special all bit-identical), next_token / draft_tokens / verify_tokens bit-identical, noise floor clean. Spec manifest INCONCLUSIVE only because the workload driver cannot stage decode_spec / verify (same cuts, fuzz bit-identical there too). Signed-off-by: JinYan Su <751080330@qq.com> --- examples/qwen3.8-27b-dflash2.json | 1999 ++++++++++------------------- examples/qwen3.8-27b.json | 751 +++++------ tools/gen_qwen35.py | 45 +- tools/kernels-src/gemm8.cu | 61 +- 4 files changed, 1110 insertions(+), 1746 deletions(-) diff --git a/examples/qwen3.8-27b-dflash2.json b/examples/qwen3.8-27b-dflash2.json index ad56e1c..555e3a5 100644 --- a/examples/qwen3.8-27b-dflash2.json +++ b/examples/qwen3.8-27b-dflash2.json @@ -6773,6 +6773,133 @@ ] } }, + "gemm8_sgate_add_norm": { + "params": [ + "out buffer", + "in buffer", + "in buffer", + "in buffer", + "inout buffer", + "in buffer", + "i32", + "i32", + "i32", + "i32", + "i32", + "i32", + "f32" + ], + "impl": { + "scratch": { + "y": { + "dtype": "bf16", + "shape": [ + 8, + 5120 + ] + }, + "partial": { + "dtype": "f32", + "shape": [ + 8, + 8, + 5120 + ] + }, + "gcnt": { + "dtype": "i32", + "shape": [ + 2 + ] + } + }, + "steps": [ + { + "symbol": "kern_gemm8_sgate_add_norm_bf16", + "params": [ + "out buffer", + "in buffer", + "in buffer", + "in buffer", + "inout buffer", + "in buffer", + "out buffer", + "out buffer", + "out buffer", + "i32", + "i32", + "i32", + "i32", + "i32", + "i32", + "f32" + ], + "block": [ + 288, + 1, + 1 + ], + "grid": [ + 152, + 1, + 1 + ], + "args": [ + { + "arg": 0 + }, + { + "arg": 1 + }, + { + "arg": 2 + }, + { + "arg": 3 + }, + { + "arg": 4 + }, + { + "arg": 5 + }, + { + "scratch": "y" + }, + { + "scratch": "partial" + }, + { + "scratch": "gcnt" + }, + { + "arg": 6 + }, + { + "arg": 7 + }, + { + "arg": 8 + }, + { + "arg": 9 + }, + { + "arg": 10 + }, + { + "arg": 11 + }, + { + "arg": 12 + } + ], + "shared_mem": 224128, + "cubin": "gemm8.cubin" + } + ] + } + }, "gemm8_add_norm": { "params": [ "out buffer", @@ -48910,11 +49037,11 @@ ] }, { - "label": "l3.gate", - "kernel": "sigmoid_mul", + "label": "l3.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -48923,30 +49050,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l3.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.3.self_attn.o_proj.weight" }, @@ -48965,6 +49068,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -50562,11 +50674,11 @@ ] }, { - "label": "l7.gate", - "kernel": "sigmoid_mul", + "label": "l7.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -50575,30 +50687,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l7.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.7.self_attn.o_proj.weight" }, @@ -50617,6 +50705,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -52214,11 +52311,11 @@ ] }, { - "label": "l11.gate", - "kernel": "sigmoid_mul", + "label": "l11.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -52227,30 +52324,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l11.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.11.self_attn.o_proj.weight" }, @@ -52269,6 +52342,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -53866,11 +53948,11 @@ ] }, { - "label": "l15.gate", - "kernel": "sigmoid_mul", + "label": "l15.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -53879,30 +53961,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l15.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.15.self_attn.o_proj.weight" }, @@ -53921,6 +53979,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -55518,11 +55585,11 @@ ] }, { - "label": "l19.gate", - "kernel": "sigmoid_mul", + "label": "l19.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -55531,30 +55598,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l19.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.19.self_attn.o_proj.weight" }, @@ -55573,6 +55616,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -57170,11 +57222,11 @@ ] }, { - "label": "l23.gate", - "kernel": "sigmoid_mul", + "label": "l23.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -57183,30 +57235,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l23.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.23.self_attn.o_proj.weight" }, @@ -57225,6 +57253,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -58822,11 +58859,11 @@ ] }, { - "label": "l27.gate", - "kernel": "sigmoid_mul", + "label": "l27.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -58835,30 +58872,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l27.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.27.self_attn.o_proj.weight" }, @@ -58877,6 +58890,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -60474,11 +60496,11 @@ ] }, { - "label": "l31.gate", - "kernel": "sigmoid_mul", + "label": "l31.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -60487,30 +60509,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l31.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.31.self_attn.o_proj.weight" }, @@ -60529,6 +60527,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -62126,11 +62133,11 @@ ] }, { - "label": "l35.gate", - "kernel": "sigmoid_mul", + "label": "l35.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -62139,30 +62146,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l35.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.35.self_attn.o_proj.weight" }, @@ -62181,6 +62164,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -63778,11 +63770,11 @@ ] }, { - "label": "l39.gate", - "kernel": "sigmoid_mul", + "label": "l39.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -63791,30 +63783,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l39.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.39.self_attn.o_proj.weight" }, @@ -63833,6 +63801,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -65430,11 +65407,11 @@ ] }, { - "label": "l43.gate", - "kernel": "sigmoid_mul", + "label": "l43.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -65443,30 +65420,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l43.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.43.self_attn.o_proj.weight" }, @@ -65485,6 +65438,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -67082,11 +67044,11 @@ ] }, { - "label": "l47.gate", - "kernel": "sigmoid_mul", + "label": "l47.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -67095,30 +67057,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l47.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.47.self_attn.o_proj.weight" }, @@ -67137,6 +67075,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -68734,11 +68681,11 @@ ] }, { - "label": "l51.gate", - "kernel": "sigmoid_mul", + "label": "l51.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -68747,30 +68694,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l51.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.51.self_attn.o_proj.weight" }, @@ -68789,6 +68712,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -70386,11 +70318,11 @@ ] }, { - "label": "l55.gate", - "kernel": "sigmoid_mul", + "label": "l55.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -70399,30 +70331,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l55.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.55.self_attn.o_proj.weight" }, @@ -70441,6 +70349,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -72038,11 +71955,11 @@ ] }, { - "label": "l59.gate", - "kernel": "sigmoid_mul", + "label": "l59.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -72051,30 +71968,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l59.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.59.self_attn.o_proj.weight" }, @@ -72093,6 +71986,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -73690,11 +73592,11 @@ ] }, { - "label": "l63.gate", - "kernel": "sigmoid_mul", + "label": "l63.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -73703,30 +73605,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l63.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.63.self_attn.o_proj.weight" }, @@ -73745,6 +73623,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -75484,11 +75371,11 @@ ] }, { - "label": "l3.gate", - "kernel": "sigmoid_mul", + "label": "l3.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -75497,30 +75384,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l3.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.3.self_attn.o_proj.weight" }, @@ -75539,6 +75402,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -77160,11 +77032,11 @@ ] }, { - "label": "l7.gate", - "kernel": "sigmoid_mul", + "label": "l7.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -77173,30 +77045,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l7.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.7.self_attn.o_proj.weight" }, @@ -77215,6 +77063,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -78812,11 +78669,11 @@ ] }, { - "label": "l11.gate", - "kernel": "sigmoid_mul", + "label": "l11.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -78825,30 +78682,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l11.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.11.self_attn.o_proj.weight" }, @@ -78867,6 +78700,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -80464,11 +80306,11 @@ ] }, { - "label": "l15.gate", - "kernel": "sigmoid_mul", + "label": "l15.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -80477,30 +80319,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l15.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.15.self_attn.o_proj.weight" }, @@ -80519,6 +80337,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -82116,11 +81943,11 @@ ] }, { - "label": "l19.gate", - "kernel": "sigmoid_mul", + "label": "l19.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -82129,30 +81956,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l19.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.19.self_attn.o_proj.weight" }, @@ -82171,6 +81974,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -83792,11 +83604,11 @@ ] }, { - "label": "l23.gate", - "kernel": "sigmoid_mul", + "label": "l23.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -83805,30 +83617,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l23.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.23.self_attn.o_proj.weight" }, @@ -83847,6 +83635,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -85444,11 +85241,11 @@ ] }, { - "label": "l27.gate", - "kernel": "sigmoid_mul", + "label": "l27.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -85457,30 +85254,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l27.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.27.self_attn.o_proj.weight" }, @@ -85499,6 +85272,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -87096,11 +86878,11 @@ ] }, { - "label": "l31.gate", - "kernel": "sigmoid_mul", + "label": "l31.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -87109,30 +86891,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l31.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.31.self_attn.o_proj.weight" }, @@ -87151,6 +86909,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -88772,11 +88539,11 @@ ] }, { - "label": "l35.gate", - "kernel": "sigmoid_mul", + "label": "l35.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -88785,30 +88552,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l35.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.35.self_attn.o_proj.weight" }, @@ -88827,6 +88570,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -90424,11 +90176,11 @@ ] }, { - "label": "l39.gate", - "kernel": "sigmoid_mul", + "label": "l39.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -90437,30 +90189,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l39.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.39.self_attn.o_proj.weight" }, @@ -90479,6 +90207,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -92076,11 +91813,11 @@ ] }, { - "label": "l43.gate", - "kernel": "sigmoid_mul", + "label": "l43.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -92089,30 +91826,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l43.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.43.self_attn.o_proj.weight" }, @@ -92131,6 +91844,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -93728,11 +93450,11 @@ ] }, { - "label": "l47.gate", - "kernel": "sigmoid_mul", + "label": "l47.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -93741,30 +93463,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l47.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.47.self_attn.o_proj.weight" }, @@ -93783,6 +93481,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -95404,11 +95111,11 @@ ] }, { - "label": "l51.gate", - "kernel": "sigmoid_mul", + "label": "l51.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -95417,30 +95124,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l51.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.51.self_attn.o_proj.weight" }, @@ -95459,6 +95142,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -97056,11 +96748,11 @@ ] }, { - "label": "l55.gate", - "kernel": "sigmoid_mul", + "label": "l55.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -97069,30 +96761,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l55.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.55.self_attn.o_proj.weight" }, @@ -97111,6 +96779,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -98708,11 +98385,11 @@ ] }, { - "label": "l59.gate", - "kernel": "sigmoid_mul", + "label": "l59.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -98721,30 +98398,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l59.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.59.self_attn.o_proj.weight" }, @@ -98763,6 +98416,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -100384,11 +100046,11 @@ ] }, { - "label": "l63.gate", - "kernel": "sigmoid_mul", + "label": "l63.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -100397,30 +100059,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l63.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.63.self_attn.o_proj.weight" }, @@ -100439,6 +100077,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -102178,11 +101825,11 @@ ] }, { - "label": "l3.gate", - "kernel": "sigmoid_mul", + "label": "l3.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -102191,30 +101838,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l3.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.3.self_attn.o_proj.weight" }, @@ -102233,6 +101856,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -103854,11 +103486,11 @@ ] }, { - "label": "l7.gate", - "kernel": "sigmoid_mul", + "label": "l7.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -103867,30 +103499,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l7.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.7.self_attn.o_proj.weight" }, @@ -103909,6 +103517,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -105506,11 +105123,11 @@ ] }, { - "label": "l11.gate", - "kernel": "sigmoid_mul", + "label": "l11.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -105519,30 +105136,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l11.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.11.self_attn.o_proj.weight" }, @@ -105561,6 +105154,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -107158,11 +106760,11 @@ ] }, { - "label": "l15.gate", - "kernel": "sigmoid_mul", + "label": "l15.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -107171,30 +106773,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l15.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.15.self_attn.o_proj.weight" }, @@ -107213,6 +106791,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -108810,11 +108397,11 @@ ] }, { - "label": "l19.gate", - "kernel": "sigmoid_mul", + "label": "l19.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -108823,30 +108410,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l19.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.19.self_attn.o_proj.weight" }, @@ -108865,6 +108428,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -110486,11 +110058,11 @@ ] }, { - "label": "l23.gate", - "kernel": "sigmoid_mul", + "label": "l23.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -110499,30 +110071,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l23.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.23.self_attn.o_proj.weight" }, @@ -110541,6 +110089,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -112138,11 +111695,11 @@ ] }, { - "label": "l27.gate", - "kernel": "sigmoid_mul", + "label": "l27.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -112151,30 +111708,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l27.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.27.self_attn.o_proj.weight" }, @@ -112193,6 +111726,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -113790,11 +113332,11 @@ ] }, { - "label": "l31.gate", - "kernel": "sigmoid_mul", + "label": "l31.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -113803,30 +113345,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l31.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.31.self_attn.o_proj.weight" }, @@ -113845,6 +113363,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -115466,11 +114993,11 @@ ] }, { - "label": "l35.gate", - "kernel": "sigmoid_mul", + "label": "l35.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -115479,30 +115006,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l35.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.35.self_attn.o_proj.weight" }, @@ -115521,6 +115024,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -117118,11 +116630,11 @@ ] }, { - "label": "l39.gate", - "kernel": "sigmoid_mul", + "label": "l39.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -117131,30 +116643,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l39.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.39.self_attn.o_proj.weight" }, @@ -117173,6 +116661,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -118770,11 +118267,11 @@ ] }, { - "label": "l43.gate", - "kernel": "sigmoid_mul", + "label": "l43.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -118783,30 +118280,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l43.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.43.self_attn.o_proj.weight" }, @@ -118825,6 +118298,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -120422,11 +119904,11 @@ ] }, { - "label": "l47.gate", - "kernel": "sigmoid_mul", + "label": "l47.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -120435,30 +119917,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l47.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.47.self_attn.o_proj.weight" }, @@ -120477,6 +119935,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -122098,11 +121565,11 @@ ] }, { - "label": "l51.gate", - "kernel": "sigmoid_mul", + "label": "l51.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -122111,30 +121578,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l51.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.51.self_attn.o_proj.weight" }, @@ -122153,6 +121596,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -123750,11 +123202,11 @@ ] }, { - "label": "l55.gate", - "kernel": "sigmoid_mul", + "label": "l55.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -123763,30 +123215,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l55.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.55.self_attn.o_proj.weight" }, @@ -123805,6 +123233,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -125402,11 +124839,11 @@ ] }, { - "label": "l59.gate", - "kernel": "sigmoid_mul", + "label": "l59.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -125415,30 +124852,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l59.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.59.self_attn.o_proj.weight" }, @@ -125457,6 +124870,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -127078,11 +126500,11 @@ ] }, { - "label": "l63.gate", - "kernel": "sigmoid_mul", + "label": "l63.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -127091,30 +126513,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l63.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.63.self_attn.o_proj.weight" }, @@ -127133,6 +126531,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } diff --git a/examples/qwen3.8-27b.json b/examples/qwen3.8-27b.json index 6092d9a..5399ce4 100644 --- a/examples/qwen3.8-27b.json +++ b/examples/qwen3.8-27b.json @@ -6012,6 +6012,133 @@ ] } }, + "gemm8_sgate_add_norm": { + "params": [ + "out buffer", + "in buffer", + "in buffer", + "in buffer", + "inout buffer", + "in buffer", + "i32", + "i32", + "i32", + "i32", + "i32", + "i32", + "f32" + ], + "impl": { + "scratch": { + "y": { + "dtype": "bf16", + "shape": [ + 8, + 5120 + ] + }, + "partial": { + "dtype": "f32", + "shape": [ + 8, + 8, + 5120 + ] + }, + "gcnt": { + "dtype": "i32", + "shape": [ + 2 + ] + } + }, + "steps": [ + { + "symbol": "kern_gemm8_sgate_add_norm_bf16", + "params": [ + "out buffer", + "in buffer", + "in buffer", + "in buffer", + "inout buffer", + "in buffer", + "out buffer", + "out buffer", + "out buffer", + "i32", + "i32", + "i32", + "i32", + "i32", + "i32", + "f32" + ], + "block": [ + 288, + 1, + 1 + ], + "grid": [ + 152, + 1, + 1 + ], + "args": [ + { + "arg": 0 + }, + { + "arg": 1 + }, + { + "arg": 2 + }, + { + "arg": 3 + }, + { + "arg": 4 + }, + { + "arg": 5 + }, + { + "scratch": "y" + }, + { + "scratch": "partial" + }, + { + "scratch": "gcnt" + }, + { + "arg": 6 + }, + { + "arg": 7 + }, + { + "arg": 8 + }, + { + "arg": 9 + }, + { + "arg": 10 + }, + { + "arg": 11 + }, + { + "arg": 12 + } + ], + "shared_mem": 224128, + "cubin": "gemm8.cubin" + } + ] + } + }, "gemm8_add_norm": { "params": [ "out buffer", @@ -46409,11 +46536,11 @@ ] }, { - "label": "l3.gate", - "kernel": "sigmoid_mul", + "label": "l3.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -46422,30 +46549,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l3.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.3.self_attn.o_proj.weight" }, @@ -46464,6 +46567,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -47569,11 +47681,11 @@ ] }, { - "label": "l7.gate", - "kernel": "sigmoid_mul", + "label": "l7.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -47582,30 +47694,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l7.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.7.self_attn.o_proj.weight" }, @@ -47624,6 +47712,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -48729,11 +48826,11 @@ ] }, { - "label": "l11.gate", - "kernel": "sigmoid_mul", + "label": "l11.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -48742,30 +48839,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l11.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.11.self_attn.o_proj.weight" }, @@ -48784,6 +48857,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -49889,11 +49971,11 @@ ] }, { - "label": "l15.gate", - "kernel": "sigmoid_mul", + "label": "l15.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -49902,30 +49984,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l15.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.15.self_attn.o_proj.weight" }, @@ -49944,6 +50002,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -51049,11 +51116,11 @@ ] }, { - "label": "l19.gate", - "kernel": "sigmoid_mul", + "label": "l19.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -51062,30 +51129,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l19.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.19.self_attn.o_proj.weight" }, @@ -51104,6 +51147,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -52209,11 +52261,11 @@ ] }, { - "label": "l23.gate", - "kernel": "sigmoid_mul", + "label": "l23.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -52222,30 +52274,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l23.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.23.self_attn.o_proj.weight" }, @@ -52264,6 +52292,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -53369,11 +53406,11 @@ ] }, { - "label": "l27.gate", - "kernel": "sigmoid_mul", + "label": "l27.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -53382,30 +53419,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l27.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.27.self_attn.o_proj.weight" }, @@ -53424,6 +53437,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -54529,11 +54551,11 @@ ] }, { - "label": "l31.gate", - "kernel": "sigmoid_mul", + "label": "l31.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -54542,30 +54564,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l31.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.31.self_attn.o_proj.weight" }, @@ -54584,6 +54582,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -55689,11 +55696,11 @@ ] }, { - "label": "l35.gate", - "kernel": "sigmoid_mul", + "label": "l35.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -55702,30 +55709,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l35.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.35.self_attn.o_proj.weight" }, @@ -55744,6 +55727,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -56849,11 +56841,11 @@ ] }, { - "label": "l39.gate", - "kernel": "sigmoid_mul", + "label": "l39.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -56862,30 +56854,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l39.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.39.self_attn.o_proj.weight" }, @@ -56904,6 +56872,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -58009,11 +57986,11 @@ ] }, { - "label": "l43.gate", - "kernel": "sigmoid_mul", + "label": "l43.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -58022,30 +57999,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l43.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.43.self_attn.o_proj.weight" }, @@ -58064,6 +58017,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -59169,11 +59131,11 @@ ] }, { - "label": "l47.gate", - "kernel": "sigmoid_mul", + "label": "l47.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -59182,30 +59144,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l47.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.47.self_attn.o_proj.weight" }, @@ -59224,6 +59162,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -60329,11 +60276,11 @@ ] }, { - "label": "l51.gate", - "kernel": "sigmoid_mul", + "label": "l51.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -60342,30 +60289,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l51.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.51.self_attn.o_proj.weight" }, @@ -60384,6 +60307,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -61489,11 +61421,11 @@ ] }, { - "label": "l55.gate", - "kernel": "sigmoid_mul", + "label": "l55.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -61502,30 +61434,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l55.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.55.self_attn.o_proj.weight" }, @@ -61544,6 +61452,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -62649,11 +62566,11 @@ ] }, { - "label": "l59.gate", - "kernel": "sigmoid_mul", + "label": "l59.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -62662,30 +62579,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l59.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.59.self_attn.o_proj.weight" }, @@ -62704,6 +62597,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } @@ -63809,11 +63711,11 @@ ] }, { - "label": "l63.gate", - "kernel": "sigmoid_mul", + "label": "l63.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "gated" + "buf": "x" }, { "buf": "attn_out" @@ -63822,30 +63724,6 @@ "buf": "qkv", "offset": 512 }, - { - "i32": 24 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - } - ] - }, - { - "label": "l63.o_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "gated" - }, { "buf": "model.layers.63.self_attn.o_proj.weight" }, @@ -63864,6 +63742,15 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } diff --git a/tools/gen_qwen35.py b/tools/gen_qwen35.py index 4eb6555..6e14574 100644 --- a/tools/gen_qwen35.py +++ b/tools/gen_qwen35.py @@ -709,6 +709,9 @@ def tri(tag, params, grid, src=pre, **kw): GEMM8_AN_PARAMS = ["out buffer", "in buffer", "in buffer", "inout buffer", "in buffer", "out buffer", "out buffer", "out buffer", "i32", "i32", "i32", "f32"] + GEMM8_SG_PARAMS = ["out buffer", "in buffer", "in buffer", "in buffer", + "inout buffer", "in buffer", "out buffer", "out buffer", + "out buffer", "i32", "i32", "i32", "i32", "i32", "i32", "f32"] GEMMA_PARAMS = ["out buffer", "in buffer", "in buffer", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "f32"] GEMMA_FUSED_PARAMS = ["out buffer", "in buffer", "inout buffer", @@ -782,6 +785,21 @@ def layer_norm_kernel(src, grid, rows_shape): "in buffer", "in buffer", "i32", "i32", "i32", "i32"], [GEMM8_THREADS, 1, 1], [GEMM8_GRID, 1, 1], shared_mem=GEMM8_SMEM, cubin="gemm8.cubin"), + # o_proj + the sigmoid gate on its input + residual add + post-attention + # norm: x = attn * sigmoid(gate) is built inside the GEMM + "gemm8_sgate_add_norm": { + "params": GEMM8_SG_PARAMS[:6] + GEMM8_SG_PARAMS[9:], + "impl": { + "scratch": {"y": {"dtype": "bf16", "shape": [8, HIDDEN]}, + "partial": {"dtype": "f32", "shape": [8, 8, HIDDEN]}, + "gcnt": {"dtype": "i32", "shape": [2]}}, + "steps": [step("kern_gemm8_sgate_add_norm_bf16", GEMM8_SG_PARAMS, + [GEMM8_THREADS, 1, 1], [GEMM8_GRID, 1, 1], + [a(0), a(1), a(2), a(3), a(4), a(5), scr("y"), scr("partial"), scr("gcnt"), + a(6), a(7), a(8), a(9), a(10), a(11), a(12)], + shared_mem=GEMM8_SMEM, cubin="gemm8.cubin")], + }, + }, "gemm8_add_norm": { "params": GEMM8_AN_PARAMS[:5] + GEMM8_AN_PARAMS[8:], "impl": { @@ -1104,13 +1122,13 @@ def gdn_layer(i, decode, nacc=None, small=False): ds.append(gemm(l + "out_proj", "core_attn_out", p + "out_proj.weight", "y", T, HIDDEN, GDN_V)) return ds - def attn_layer(i, decode): + def attn_layer(i, decode, small=False): p = f"model.layers.{i}.self_attn." l = f"l{i}." koff = ATTN_LAYERS.index(i) * LAYER_KV_BYTES ks, vs = buf("kv_scales"), buf("kv_scales", 4) kv_k, kv_v = state("kv", koff), state("kv", koff + V_BYTE_OFF) - return [ + ds = [ gemm(l + "qkv_proj", "x", p + "qkv_proj.weight", "qkv", T, QKV_DIM, HIDDEN), d(l + "q_norm", "gemma_norm_qhead", [buf("q_n"), buf("qkv"), buf(p + "q_norm.weight_p1"), i32(HEAD_DIM), @@ -1139,6 +1157,14 @@ def attn_layer(i, decode): i32(QKV_DIM), i32(2 * HEAD_DIM)]), gemm(l + "o_proj", "gated", p + "o_proj.weight", "y", T, HIDDEN, Q_DIM), ] + if small: + # sigmoid gate + o_proj + residual add + post-attention norm + ds[-2:] = [d(l + "o_norm", "gemm8_sgate_add_norm", + [buf("x"), buf("attn_out"), buf("qkv", GATE_OFF * BF16), buf(p + "o_proj.weight"), + buf("residual"), buf(f"model.layers.{i}.post_attention_layernorm.weight_p1"), + T, i32(HIDDEN), i32(Q_DIM), i32(HEAD_DIM), i32(QKV_DIM), i32(2 * HEAD_DIM), + f32(eps)])] + return ds def forward(decode, taps=False, nacc=None, tail=None): """Target forward. decode: recurrent GDN + split-KV attention (else @@ -1165,15 +1191,14 @@ def forward(decode, taps=False, nacc=None, tail=None): for i in range(LAYERS): p = f"model.layers.{i}." l = f"l{i}." - lay = attn_layer(i, decode) if i in ATTN_LAYERS else gdn_layer(i, decode, nacc, small) - if small: - # o_proj / out_proj GEMM + residual add + post-attention norm - attn = i in ATTN_LAYERS - lay[-1] = d(l + ("o_norm" if attn else "out_norm"), "gemm8_add_norm", - [buf("x"), buf("gated" if attn else "core_attn_out"), - buf(p + ("self_attn.o_proj.weight" if attn else "linear_attn.out_proj.weight")), + lay = attn_layer(i, decode, small) if i in ATTN_LAYERS else gdn_layer(i, decode, nacc, small) + if small and i not in ATTN_LAYERS: + # out_proj GEMM + residual add + post-attention norm (the + # attention layers fold their sigmoid gate in too: attn_layer) + lay[-1] = d(l + "out_norm", "gemm8_add_norm", + [buf("x"), buf("core_attn_out"), buf(p + "linear_attn.out_proj.weight"), buf("residual"), buf(p + "post_attention_layernorm.weight_p1"), - T, i32(HIDDEN), i32(Q_DIM if attn else GDN_V), f32(eps)]) + T, i32(HIDDEN), i32(GDN_V), f32(eps)]) ds += lay if small: mlp = [d(l + "gate_up_silu", "gemm8_gateup_silu", diff --git a/tools/kernels-src/gemm8.cu b/tools/kernels-src/gemm8.cu index 0ce6d33..3fd18c8 100644 --- a/tools/kernels-src/gemm8.cu +++ b/tools/kernels-src/gemm8.cu @@ -31,6 +31,11 @@ // arithmetic: z = f32(bf16(y)) + f32(res), // res = bf16(z), ATen-order mean of z^2, // out = bf16((z * rsqrt(var + eps)) * w1)) +// kern_gemm8_sgate_add_norm_bf16 the add_norm chain with x computed on +// the fly as attn * sigmoid(gate) (the +// sigmoid_mul.cu chain: g = bf16(sigmoid +// f32), x = bf16(f32(attn) * g)) -- o_proj +// of the gated-attention layers // // nvcc -cubin -arch=sm_103a -o kernels-qwen38/gemm8.cubin tools/kernels-src/gemm8.cu #include @@ -102,7 +107,7 @@ struct Smem { }; constexpr int SMEM_BYTES = sizeof(Smem) + 128; -enum Mode { PLAIN = 0, GATEUP = 1, DUAL = 2, NORM = 3 }; +enum Mode { PLAIN = 0, GATEUP = 1, DUAL = 2, NORM = 3, SGATE = 4 }; struct Args { const __nv_bfloat16* x; // [M, ldx] @@ -113,6 +118,8 @@ struct Args { float* partial; // [nranges, MMAX, N] f32 scratch, or nullptr (GATEUP / DUAL: never split) int* gcnt; // [2] i32 scratch: finished tasks / finished rows, zero at rest int M, N, N1, K, ldx; + const __nv_bfloat16* gate; // SGATE: strided gate view; x is then attn [M, ldx] + int head_dim, gate_ts, gate_hs; }; // K ranges: as many as x capacity demands, and at least enough tasks to @@ -194,7 +201,7 @@ __device__ __forceinline__ bool gemm8_core(const Args& a, Smem& s) { const int split = t / nblk, blk = t - split * nblk; // range-major const int r0 = blk * R, rows = min(R, nrows - r0); const int k0 = split * kseg, klen = min(kseg, a.K - k0); - if (split != cur_split) { // stage this range of x (consumers have released the old one) + if (MODE != SGATE && split != cur_split) { // stage this range of x (consumers have released the old one) mbar_wait(smem_u32(&s.xempty), xphase); mbar_expect_tx(smem_u32(&s.xfull), a.M * klen * 2); for (int m = 0; m < a.M; m++) @@ -225,9 +232,35 @@ __device__ __forceinline__ bool gemm8_core(const Args& a, Smem& s) { const int r0 = blk * R, rows = min(R, nrows - r0); const int klen = min(kseg, a.K - split * kseg); if (split != cur_split) { // release the old x range, wait for the new one - if (lane == 0) mbar_arrive(smem_u32(&s.xempty)); - mbar_wait(smem_u32(&s.xfull), xphase); - xphase ^= 1; + if (MODE == SGATE) { // the compute warps make this range of x themselves + const int k0 = split * kseg, total = a.M * klen; + named_bar_sync(BAR_C, CTHREADS); // everyone is done reading the old range + // 8 consecutive elements per thread: klen, head_dim and the batch + // stride are all multiples of 8, so a batch never crosses a token row + // or a head boundary and both loads and the smem store are one 16 B + // vector each (elementwise scalar code here is latency-bound) + for (int i0 = ct * 8; i0 < total; i0 += CTHREADS * 8) { + const int m = i0 / klen, kk = i0 - m * klen, k = k0 + kk; + const int h = k / a.head_dim, hd = k - h * a.head_dim; + const uint4 gq = *reinterpret_cast(a.gate + (size_t)m * a.gate_ts + (size_t)h * a.gate_hs + hd); + const uint4 aq = *reinterpret_cast(a.x + (size_t)m * a.ldx + k); + const __nv_bfloat16* gv = reinterpret_cast(&gq); + const __nv_bfloat16* av = reinterpret_cast(&aq); + uint4 oq; + __nv_bfloat16* ov = reinterpret_cast<__nv_bfloat16*>(&oq); +#pragma unroll + for (int j = 0; j < 8; j++) { + const float g = bf16r(1.0f / (1.0f + expf(-__bfloat162float(gv[j])))); + ov[j] = __float2bfloat16_rn(__bfloat162float(av[j]) * g); + } + *reinterpret_cast(&s.x[m * xrow + kk]) = oq; + } + named_bar_sync(BAR_C, CTHREADS); + } else { + if (lane == 0) mbar_arrive(smem_u32(&s.xempty)); + mbar_wait(smem_u32(&s.xfull), xphase); + xphase ^= 1; + } cur_split = split; } // ldmatrix.x4 row addresses: lane l supplies row l%8 of the 8x8 matrix @@ -377,7 +410,7 @@ __device__ void tail_rows(const Args& a, int nranges, int m0, int m1, const floa for (int m = m0; m < m1; m++) { for (int j = threadIdx.x * 4; j < N; j += NTHREADS * 4) { float4 v = ysum4(a, nranges, m, j); - if (MODE == NORM) { + if (MODE >= NORM) { __nv_bfloat16* rr = res + (size_t)m * N + j; v.x = bf16r(v.x); v.y = bf16r(v.y); v.z = bf16r(v.z); v.w = bf16r(v.w); // the bf16 y rounding const float2 r0 = __bfloat1622float2(*reinterpret_cast(rr)); @@ -393,7 +426,7 @@ __device__ void tail_rows(const Args& a, int nranges, int m0, int m1, const floa *reinterpret_cast<__nv_bfloat162*>(yy + 2) = __floats2bfloat162_rn(v.z, v.w); } } - if (MODE != NORM) continue; + if (MODE < NORM) continue; __syncthreads(); const int W = aten_block_width(N / 4, a.M); const float sum = aten_row_sumsq(z, N, W, s); @@ -420,7 +453,7 @@ __device__ __forceinline__ void run_tail(const Args& a, Smem& s, bool last, __nv const int nrows = MODE == GATEUP ? 2 * a.N : a.N; const int nblk = (nrows + R - 1) / R; const int nranges = pick_nranges(a, nblk); - if (MODE != NORM && nranges == 1) return; // nothing left to do + if (MODE == PLAIN && nranges == 1) return; // nothing left to do static_assert(sizeof(s.ring) >= 6144 * 4, "z row: N <= 6144"); float* z = reinterpret_cast(&s.ring[0]); if (gridDim.x <= nsmid()) { @@ -473,6 +506,18 @@ kern_gemm8_dual_bf16(__nv_bfloat16* __restrict__ y1, __nv_bfloat16* __restrict__ gemm8_core(a, s); } +extern "C" __global__ void __launch_bounds__(NTHREADS, 1) +kern_gemm8_sgate_add_norm_bf16(__nv_bfloat16* __restrict__ out, const __nv_bfloat16* __restrict__ attn, + const __nv_bfloat16* __restrict__ gate, const __nv_bfloat16* __restrict__ W, + __nv_bfloat16* __restrict__ res, const float* __restrict__ w1, __nv_bfloat16* __restrict__ y, + float* __restrict__ partial, int* __restrict__ gcnt, int M, int N, int K, int head_dim, + int gate_tstride, int gate_hstride, float eps) { + GEMM8_SMEM; + Args a{attn, W, nullptr, y, nullptr, partial, gcnt, M, N, 0, K, K, gate, head_dim, gate_tstride, gate_hstride}; + const bool last = gemm8_core(a, s); + run_tail(a, s, last, res, w1, out, eps); +} + extern "C" __global__ void __launch_bounds__(NTHREADS, 1) kern_gemm8_add_norm_bf16(__nv_bfloat16* __restrict__ out, const __nv_bfloat16* __restrict__ x, const __nv_bfloat16* __restrict__ W, __nv_bfloat16* __restrict__ res, const float* __restrict__ w1, __nv_bfloat16* __restrict__ y, From bfd82af1f667013a0992fcf23be529ef49850ba6 Mon Sep 17 00:00:00 2001 From: JinYan Su <751080330@qq.com> Date: Mon, 31 Aug 2026 18:20:13 +0000 Subject: [PATCH 06/10] qwen38 dflash2: fuse the spec-decode GDN chain into one kernel The speculative-path GDN chain of every linear-attention layer was seven dispatches (conv_update_spec + post_conv + a/b copies + recurrent_spec + z copy + gated_norm); kern_gdn_spec_bf16 (tools/kernels-src/gdn_spec.cu) does the whole chain in one launch across the decode, decode_spec and verify programs of the DFlash2 manifest (the plain manifest is untouched), reproducing every buffer write of the chain: the in-place qkvz conv writeback, the token-major conv state roll from the accepted-token offset, the per-token SSM checkpoints to spec_slots, the double q/k l2norm the pinned pair actually computes (post_conv sqrt.approx+rcp.approx form to bf16, then the recurrent rsqrt form on the reloaded values), both softplus flavors of the gating, and the gated RMSNorm. Division inside the Triton kernels is rcp.approx + mul, not IEEE division; the fused kernel replicates those instructions. kern-attest (A = previous commit, B = this), dflash2 decode program: step, eager 13.423 ms -> 11.998 ms (-1424 us, -10.6%) step, graph (TPOT) 10.814 ms -> 10.516 ms (-299 us, -2.8%, 92 -> 95 tok/s) sum of 48 cuts 2.240 ms -> 710.4 us (-68.3%) next_token, draft_tokens and verify_tokens are bit-identical; the layer-0 cut is bit-identical on every buffer, later cuts sit inside A's own replay band (the cuts mutate the GDN state and cannot be replayed idempotently; the noise floor shows the same lockstep pattern on A vs A). The verdict is INCONCLUSIVE only because the driver cannot stage decode_spec/verify; those run the same fused cut, and tools/qwen38_compare.py --spec covers them end to end: against vLLM the divergence points move from the baseline's [66,93,62,255,178]-class near-ties to [66,139,147,91,91], and spec-vs-plain (kern as its own oracle) matches [89,93,62,91,91] with two prompts token-for-token identical to the previous commit's spec path. Signed-off-by: JinYan Su <751080330@qq.com> --- examples/qwen3.8-27b-dflash2.json | 59822 ++++++++-------------------- tools/gen_qwen35.py | 86 +- tools/kernels-src/gdn_spec.cu | 369 + 3 files changed, 16139 insertions(+), 44138 deletions(-) create mode 100644 tools/kernels-src/gdn_spec.cu diff --git a/examples/qwen3.8-27b-dflash2.json b/examples/qwen3.8-27b-dflash2.json index 555e3a5..d45411d 100644 --- a/examples/qwen3.8-27b-dflash2.json +++ b/examples/qwen3.8-27b-dflash2.json @@ -8784,49 +8784,111 @@ ] } }, - "conv_update_spec": { + "gdn_spec": { "params": [ - "in buffer", + "inout buffer", "in buffer", "inout ptr", + "inout ptr", + "in buffer", "in buffer", "in buffer", "in buffer", + "in buffer", + "in buffer", + "in buffer", "out buffer", + "in buffer", + "out buffer", + "out buffer", + "out buffer", + "out buffer", + "out buffer", + "out buffer", + "out buffer", + "out buffer", + "f32", + "f32", "i32", "i32", - "i64", - "i64", - "i64", - "i64" + "i32", + "i32", + "i32" ], "impl": { + "scratch": { + "xcnt": { + "dtype": "i32", + "shape": [ + 16 + ] + }, + "hpart": { + "dtype": "f32", + "shape": [ + 8, + 48, + 4 + ] + }, + "hcnt": { + "dtype": "i32", + "shape": [ + 48 + ] + }, + "gcnt": { + "dtype": "i32", + "shape": [ + 1 + ] + } + }, "steps": [ { - "symbol": "_causal_conv1d_update_kernel", + "symbol": "kern_gdn_spec_bf16", "params": [ + "inout buffer", "in buffer", - "in buffer", + "inout ptr", "inout ptr", "in buffer", "in buffer", "in buffer", + "in buffer", + "in buffer", + "in buffer", + "in buffer", + "out buffer", + "in buffer", + "out buffer", + "out buffer", + "out buffer", + "out buffer", + "out buffer", "out buffer", + "out buffer", + "out buffer", + "out buffer", + "out buffer", + "out buffer", + "out buffer", + "f32", + "f32", "i32", "i32", - "i64", - "i64", - "i64", - "i64" + "i32", + "i32", + "i32" ], "block": [ - 128, + 256, 1, 1 ], "grid": [ + 192, 1, - 40, 1 ], "args": [ @@ -8868,138 +8930,66 @@ }, { "arg": 12 - } - ], - "cubin": "159465ea16be.cubin", - "sha256": "159465ea16be78a5440e457e32159ace2a074114488122dc35be1b30962006b1" - } - ] - } - }, - "recurrent_spec": { - "params": [ - "in buffer", - "in buffer", - "in buffer", - "in buffer", - "f32", - "f32", - "in buffer", - "in buffer", - "in buffer", - "out buffer", - "inout ptr", - "inout ptr", - "in buffer", - "in buffer", - "in buffer", - "f32", - "i64", - "i64", - "i64", - "i64" - ], - "impl": { - "steps": [ - { - "symbol": "fused_sigmoid_gating_delta_rule_update_kernel", - "params": [ - "in buffer", - "in buffer", - "in buffer", - "in buffer", - "f32", - "f32", - "in buffer", - "in buffer", - "in buffer", - "out buffer", - "inout ptr", - "inout ptr", - "in buffer", - "in buffer", - "in buffer", - "f32", - "i64", - "i64", - "i64", - "i64" - ], - "block": [ - 128, - 1, - 1 - ], - "grid": [ - 1, - 4, - 48 - ], - "args": [ - { - "arg": 0 }, { - "arg": 1 + "arg": 13 }, { - "arg": 2 + "arg": 14 }, { - "arg": 3 + "arg": 15 }, { - "arg": 4 + "arg": 16 }, { - "arg": 5 + "arg": 17 }, { - "arg": 6 + "arg": 18 }, { - "arg": 7 + "arg": 19 }, { - "arg": 8 + "arg": 20 }, { - "arg": 9 + "scratch": "xcnt" }, { - "arg": 10 + "scratch": "hpart" }, { - "arg": 11 + "scratch": "hcnt" }, { - "arg": 12 + "scratch": "gcnt" }, { - "arg": 13 + "arg": 21 }, { - "arg": 14 + "arg": 22 }, { - "arg": 15 + "arg": 23 }, { - "arg": 16 + "arg": 24 }, { - "arg": 17 + "arg": 25 }, { - "arg": 18 + "arg": 26 }, { - "arg": 19 + "arg": 27 } ], - "shared_mem": 512, - "cubin": "786e2578f9bd.cubin", - "sha256": "786e2578f9bd5555dbb6babb53c89016aea1a1c2752f1bb0ad76b9904ad3330a" + "cubin": "gdn_spec.cubin" } ] } @@ -47539,8 +47529,8 @@ ] }, { - "label": "l0.conv_update", - "kernel": "conv_update_spec", + "label": "l0.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" @@ -47551,6 +47541,10 @@ { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", "offset": 4 @@ -47562,47 +47556,22 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots" }, { - "i64": 0 - } - ] - }, - { - "label": "l0.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.0.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.0.linear_attn.dt_bias" }, { - "buf": "model.layers.0.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.0.linear_attn.dt_bias" + "buf": "model.layers.0.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -47619,85 +47588,6 @@ { "buf": "beta" }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l0.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l0.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l0.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.0.linear_attn.A_log" - }, { "buf": "a_c" }, @@ -47705,125 +47595,28 @@ "buf": "b_c" }, { - "buf": "model.layers.0.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots" - }, - { - "buf": "gdn.one" + "buf": "z_c" }, { "f32": 0.0883883461356163 }, { - "i64": 1 + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l0.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l0.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.0.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, @@ -47951,8 +47744,8 @@ ] }, { - "label": "l1.conv_update", - "kernel": "conv_update_spec", + "label": "l1.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" @@ -47963,6 +47756,10 @@ { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", "offset": 8 @@ -47974,47 +47771,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 32 }, { - "i64": 0 - } - ] - }, - { - "label": "l1.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.1.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.1.linear_attn.dt_bias" }, { - "buf": "model.layers.1.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.1.linear_attn.dt_bias" + "buf": "model.layers.1.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -48031,85 +47804,6 @@ { "buf": "beta" }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l1.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l1.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l1.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.1.linear_attn.A_log" - }, { "buf": "a_c" }, @@ -48117,126 +47811,28 @@ "buf": "b_c" }, { - "buf": "model.layers.1.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 32 - }, - { - "buf": "gdn.one" + "buf": "z_c" }, { "f32": 0.0883883461356163 }, { - "i64": 1 + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l1.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l1.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.1.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, @@ -48364,8 +47960,8 @@ ] }, { - "label": "l2.conv_update", - "kernel": "conv_update_spec", + "label": "l2.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" @@ -48376,6 +47972,10 @@ { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", "offset": 12 @@ -48387,47 +47987,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 64 }, { - "i64": 0 - } - ] - }, - { - "label": "l2.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.2.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.2.linear_attn.dt_bias" }, { - "buf": "model.layers.2.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.2.linear_attn.dt_bias" + "buf": "model.layers.2.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -48444,85 +48020,6 @@ { "buf": "beta" }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l2.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l2.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l2.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.2.linear_attn.A_log" - }, { "buf": "a_c" }, @@ -48530,126 +48027,28 @@ "buf": "b_c" }, { - "buf": "model.layers.2.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 64 - }, - { - "buf": "gdn.one" + "buf": "z_c" }, { "f32": 0.0883883461356163 }, { - "i64": 1 + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l2.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l2.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.2.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, @@ -49173,8 +48572,8 @@ ] }, { - "label": "l4.conv_update", - "kernel": "conv_update_spec", + "label": "l4.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" @@ -49185,6 +48584,10 @@ { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", "offset": 16 @@ -49196,37 +48599,7 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l4.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", + "buf": "gdn.spec_slots", "offset": 96 }, { @@ -49238,6 +48611,12 @@ { "buf": "model.layers.4.linear_attn.dt_bias" }, + { + "buf": "core_attn_out" + }, + { + "buf": "model.layers.4.linear_attn.norm.weight" + }, { "buf": "gdn_q" }, @@ -49254,216 +48633,255 @@ "buf": "beta" }, { - "i32": 16384 + "buf": "a_c" }, { - "i32": 96 + "buf": "b_c" }, { - "i32": 96 + "buf": "z_c" }, { - "i32": 2048 + "f32": 0.0883883461356163 }, { - "i32": 2048 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 385 }, { - "i64": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l4.a_copy", - "kernel": "copy_rows", + "label": "l4.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.4.linear_attn.out_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l4.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.4.post_attention_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 6144 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l4.recurrent", - "kernel": "recurrent_spec", + "label": "l4.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "model.layers.4.linear_attn.A_log" + "buf": "act" }, { - "buf": "a_c" + "buf": "x" }, { - "buf": "b_c" + "buf": "model.layers.4.mlp.gate_up_proj.weight" }, { - "buf": "model.layers.4.linear_attn.dt_bias" + "sym": "tokens" }, { - "f32": 1.0 + "i32": 17408 }, { - "f32": 20.0 + "i32": 5120 + } + ] + }, + { + "label": "l4.down_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "buf": "gdn_q" + "buf": "act" }, { - "buf": "gdn_k" + "buf": "model.layers.4.mlp.down_proj.weight" }, { - "buf": "gdn_v" + "buf": "residual" }, { - "buf": "core_attn_out" + "buf": "model.layers.5.input_layernorm.weight_p1" }, { - "state": "gdn", - "offset": 204800 + "sym": "tokens" }, { - "state": "gdn", - "offset": 204800 + "i32": 5120 }, { - "buf": "cu_seqlens_q" + "i32": 17408 }, { - "buf": "gdn.spec_slots", - "offset": 96 + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l5.in_proj", + "kernel": "gemm8_dual", + "args": [ + { + "buf": "qkvz" }, { - "buf": "gdn.one" + "buf": "ba" }, { - "f32": 0.0883883461356163 + "buf": "x" }, { - "i64": 1 + "buf": "model.layers.5.linear_attn.in_proj_qkvz.weight" + }, + { + "buf": "model.layers.5.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 16384 }, { - "i64": 0 + "i32": 96 + }, + { + "i32": 5120 } ] }, { - "label": "l4.z_copy", - "kernel": "copy_rows", + "label": "l5.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "z_c" + "buf": "qkvz" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "model.layers.5.linear_attn.conv1d.weight" }, { - "i32": 6144 + "state": "gdn" }, { - "i32": 16384 + "state": "gdn", + "offset": 204800 }, { - "i32": 6144 - } - ] - }, - { - "label": "l4.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "gdn.spec_line_index", + "offset": 20 + }, { - "buf": "core_attn_out" + "buf": "gdn.one" + }, + { + "buf": "cu_seqlens_q" + }, + { + "buf": "gdn.spec_slots", + "offset": 128 + }, + { + "buf": "ba" + }, + { + "buf": "model.layers.5.linear_attn.A_log" + }, + { + "buf": "model.layers.5.linear_attn.dt_bias" }, { "buf": "core_attn_out" }, { - "buf": "model.layers.4.linear_attn.norm.weight" + "buf": "model.layers.5.linear_attn.norm.weight" }, { - "buf": "z_c" + "buf": "gdn_q" }, { - "i32": 128 + "buf": "gdn_k" }, { - "i32": 128 + "buf": "gdn_v" }, { - "i32": 128 + "buf": "g" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "beta" + }, + { + "buf": "a_c" + }, + { + "buf": "b_c" + }, + { + "buf": "z_c" + }, + { + "f32": 0.0883883461356163 }, { "f32": 9.999999974752427e-07 }, { - "i64": 0 + "sym": "tokens" }, { - "i64": 0 + "i32": 385 + }, + { + "i32": 1703936 + }, + { + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l4.out_norm", + "label": "l5.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -49473,13 +48891,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.4.linear_attn.out_proj.weight" + "buf": "model.layers.5.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.4.post_attention_layernorm.weight_p1" + "buf": "model.layers.5.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -49496,7 +48914,7 @@ ] }, { - "label": "l4.gate_up_silu", + "label": "l5.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -49506,7 +48924,7 @@ "buf": "x" }, { - "buf": "model.layers.4.mlp.gate_up_proj.weight" + "buf": "model.layers.5.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -49520,7 +48938,7 @@ ] }, { - "label": "l4.down_norm", + "label": "l5.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -49530,13 +48948,13 @@ "buf": "act" }, { - "buf": "model.layers.4.mlp.down_proj.weight" + "buf": "model.layers.5.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.5.input_layernorm.weight_p1" + "buf": "model.layers.6.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -49553,7 +48971,7 @@ ] }, { - "label": "l5.in_proj", + "label": "l6.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -49566,10 +48984,10 @@ "buf": "x" }, { - "buf": "model.layers.5.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.6.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.5.linear_attn.in_proj_ba.weight" + "buf": "model.layers.6.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -49586,21 +49004,25 @@ ] }, { - "label": "l5.conv_update", - "kernel": "conv_update_spec", + "label": "l6.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.5.linear_attn.conv1d.weight" + "buf": "model.layers.6.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 20 + "offset": 24 }, { "buf": "gdn.one" @@ -49609,47 +49031,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 160 }, { - "i64": 0 - } - ] - }, - { - "label": "l5.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.6.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.6.linear_attn.dt_bias" }, { - "buf": "model.layers.5.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.5.linear_attn.dt_bias" + "buf": "model.layers.6.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -49667,192 +49065,166 @@ "buf": "beta" }, { - "i32": 16384 + "buf": "a_c" }, { - "i32": 96 + "buf": "b_c" }, { - "i32": 96 + "buf": "z_c" }, { - "i32": 2048 + "f32": 0.0883883461356163 }, { - "i32": 2048 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 385 }, { - "i64": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l5.a_copy", - "kernel": "copy_rows", + "label": "l6.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.6.linear_attn.out_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l5.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.6.post_attention_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 6144 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l5.recurrent", - "kernel": "recurrent_spec", + "label": "l6.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "model.layers.5.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.5.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 + "buf": "act" }, { - "buf": "gdn_q" + "buf": "x" }, { - "buf": "gdn_k" + "buf": "model.layers.6.mlp.gate_up_proj.weight" }, { - "buf": "gdn_v" + "sym": "tokens" }, { - "buf": "core_attn_out" + "i32": 17408 }, { - "state": "gdn", - "offset": 204800 - }, + "i32": 5120 + } + ] + }, + { + "label": "l6.down_norm", + "kernel": "gemm8_add_norm", + "args": [ { - "state": "gdn", - "offset": 204800 + "buf": "x" }, { - "buf": "cu_seqlens_q" + "buf": "act" }, { - "buf": "gdn.spec_slots", - "offset": 128 + "buf": "model.layers.6.mlp.down_proj.weight" }, { - "buf": "gdn.one" + "buf": "residual" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.7.input_layernorm.weight_p1" }, { - "i64": 1 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 5120 }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l5.z_copy", - "kernel": "copy_rows", + "label": "l7.qkv_proj", + "kernel": "gemm", "args": [ { - "buf": "z_c" + "buf": "x" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "model.layers.7.self_attn.qkv_proj.weight" }, { - "i32": 6144 + "buf": "qkv" }, { - "i32": 16384 + "sym": "tokens" }, { - "i32": 6144 + "i32": 14336 + }, + { + "i32": 5120 } ] }, { - "label": "l5.gated_norm", - "kernel": "gated_norm", + "label": "l7.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.5.linear_attn.norm.weight" - }, - { - "buf": "z_c" + "buf": "q_n" }, { - "i32": 128 + "buf": "qkv" }, { - "i32": 128 + "buf": "model.layers.7.self_attn.q_norm.weight_p1" }, { - "i32": 128 + "i32": 256 }, { "expr": { @@ -49860,48 +49232,71 @@ { "sym": "tokens" }, - 48 + 24 ] } }, { - "f32": 9.999999974752427e-07 + "i32": 24 }, { - "i64": 0 + "i32": 14336 }, { - "i64": 0 + "i32": 512 + }, + { + "i32": 6144 + }, + { + "i32": 256 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l5.out_norm", - "kernel": "gemm8_add_norm", + "label": "l7.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "x" + "buf": "k_n" }, { - "buf": "core_attn_out" + "buf": "qkv", + "offset": 24576 }, { - "buf": "model.layers.5.linear_attn.out_proj.weight" + "buf": "model.layers.7.self_attn.k_norm.weight_p1" }, { - "buf": "residual" + "i32": 256 }, { - "buf": "model.layers.5.post_attention_layernorm.weight_p1" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { - "sym": "tokens" + "i32": 4 }, { - "i32": 5120 + "i32": 14336 }, { - "i32": 6144 + "i32": 256 + }, + { + "i32": 1024 + }, + { + "i32": 256 }, { "f32": 9.999999974752427e-07 @@ -49909,196 +49304,174 @@ ] }, { - "label": "l5.gate_up_silu", - "kernel": "gemm8_gateup_silu", + "label": "l7.rope", + "kernel": "mrope", "args": [ { - "buf": "act" + "buf": "q_n" }, { - "buf": "x" + "buf": "k_n" }, { - "buf": "model.layers.5.mlp.gate_up_proj.weight" + "buf": "cos_g" }, { - "sym": "tokens" + "buf": "sin_g" }, { - "i32": 17408 + "i32": 0 }, { - "i32": 5120 + "i64": 0 + }, + { + "i64": 0 } ] }, { - "label": "l5.down_norm", - "kernel": "gemm8_add_norm", + "label": "l7.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "x" - }, - { - "buf": "act" + "buf": "k_n" }, { - "buf": "model.layers.5.mlp.down_proj.weight" + "buf": "qkv", + "offset": 26624 }, { - "buf": "residual" + "state": "kv", + "offset": 3211264 }, { - "buf": "model.layers.6.input_layernorm.weight_p1" + "state": "kv", + "offset": 3211776 }, { - "sym": "tokens" + "buf": "slot_mapping" }, { - "i32": 5120 + "buf": "kv_scales" }, { - "i32": 17408 + "buf": "kv_scales", + "offset": 4 }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l6.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" + "i64": 1024 }, { - "buf": "ba" + "i64": 14336 }, { - "buf": "x" + "i64": 25690112 }, { - "buf": "model.layers.6.linear_attn.in_proj_qkvz.weight" + "i64": 512 }, { - "buf": "model.layers.6.linear_attn.in_proj_ba.weight" + "i64": 0 }, { - "sym": "tokens" + "i64": 0 }, { - "i32": 16384 + "i64": 2048 }, { - "i32": 96 + "i64": 0 }, { - "i32": 5120 + "i64": 0 } ] }, { - "label": "l6.conv_update", - "kernel": "conv_update_spec", + "label": "l7.attn", + "kernel": "attn", "args": [ { - "buf": "qkvz" + "buf": "attn_out" }, { - "buf": "model.layers.6.linear_attn.conv1d.weight" + "buf": "q_n" }, { - "state": "gdn" + "state": "kv", + "offset": 3211264 }, { - "buf": "gdn.spec_line_index", - "offset": 24 + "state": "kv", + "offset": 3211776 }, { - "buf": "gdn.one" + "buf": "block_table" }, { - "buf": "cu_seqlens_q" + "buf": "seq_lens" }, { - "buf": "qkvz" + "f32": 0.0625 }, { - "i32": 1 + "buf": "kv_scales" }, { - "i32": 385 + "buf": "kv_scales", + "offset": 4 }, { - "i64": 16384 + "f32": 1.0 }, { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l6.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 + "f32": 0.0 }, { - "buf": "ba" + "i64": 8 }, { - "buf": "model.layers.6.linear_attn.A_log" + "i64": 6144 }, { - "buf": "model.layers.6.linear_attn.dt_bias" + "i64": 256 }, { - "buf": "gdn_q" + "i64": 6144 }, { - "buf": "gdn_k" + "i64": 256 }, { - "buf": "gdn_v" + "i64": 0 }, { - "buf": "g" + "buf": "seq_lens" }, { - "buf": "beta" + "i64": 25690112 }, { - "i32": 16384 + "i64": 2048 }, { - "i32": 96 + "i64": 512 }, { - "i32": 96 + "i64": 25690112 }, { - "i32": 2048 + "i64": 2048 }, { - "i32": 2048 + "i64": 512 }, { - "i32": 6144 + "buf": "cu_seqlens_q" }, { - "sym": "tokens" + "i32": 1 }, { "i64": 0 @@ -50109,386 +49482,261 @@ ] }, { - "label": "l6.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l6.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l6.recurrent", - "kernel": "recurrent_spec", + "label": "l7.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "model.layers.6.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.6.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" + "buf": "x" }, { - "buf": "gdn_v" + "buf": "attn_out" }, { - "buf": "core_attn_out" + "buf": "qkv", + "offset": 512 }, { - "state": "gdn", - "offset": 204800 + "buf": "model.layers.7.self_attn.o_proj.weight" }, { - "state": "gdn", - "offset": 204800 + "buf": "residual" }, { - "buf": "cu_seqlens_q" + "buf": "model.layers.7.post_attention_layernorm.weight_p1" }, { - "buf": "gdn.spec_slots", - "offset": 160 + "sym": "tokens" }, { - "buf": "gdn.one" + "i32": 5120 }, { - "f32": 0.0883883461356163 + "i32": 6144 }, { - "i64": 1 + "i32": 256 }, { - "sym": "tokens" + "i32": 14336 }, { - "i64": 0 + "i32": 512 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l6.z_copy", - "kernel": "copy_rows", + "label": "l7.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "z_c" + "buf": "act" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "x" }, { - "i32": 6144 + "buf": "model.layers.7.mlp.gate_up_proj.weight" }, { - "i32": 16384 + "sym": "tokens" }, { - "i32": 6144 + "i32": 17408 + }, + { + "i32": 5120 } ] }, { - "label": "l6.gated_norm", - "kernel": "gated_norm", + "label": "l7.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "core_attn_out" + "buf": "x" }, { - "buf": "core_attn_out" + "buf": "act" }, { - "buf": "model.layers.6.linear_attn.norm.weight" + "buf": "model.layers.7.mlp.down_proj.weight" }, { - "buf": "z_c" + "buf": "residual" }, { - "i32": 128 + "buf": "model.layers.8.input_layernorm.weight_p1" }, { - "i32": 128 + "sym": "tokens" }, { - "i32": 128 + "i32": 5120 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 17408 }, { "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 } ] }, { - "label": "l6.out_norm", - "kernel": "gemm8_add_norm", + "label": "l8.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "x" + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "ba" }, { - "buf": "model.layers.6.linear_attn.out_proj.weight" + "buf": "x" }, { - "buf": "residual" + "buf": "model.layers.8.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.6.post_attention_layernorm.weight_p1" + "buf": "model.layers.8.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" }, { - "i32": 5120 + "i32": 16384 }, { - "i32": 6144 + "i32": 96 }, { - "f32": 9.999999974752427e-07 + "i32": 5120 } ] }, { - "label": "l6.gate_up_silu", - "kernel": "gemm8_gateup_silu", + "label": "l8.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "act" - }, - { - "buf": "x" + "buf": "qkvz" }, { - "buf": "model.layers.6.mlp.gate_up_proj.weight" + "buf": "model.layers.8.linear_attn.conv1d.weight" }, { - "sym": "tokens" + "state": "gdn" }, { - "i32": 17408 + "state": "gdn", + "offset": 204800 }, { - "i32": 5120 - } - ] - }, - { - "label": "l6.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" + "buf": "gdn.spec_line_index", + "offset": 28 }, { - "buf": "act" + "buf": "gdn.one" }, { - "buf": "model.layers.6.mlp.down_proj.weight" + "buf": "cu_seqlens_q" }, { - "buf": "residual" + "buf": "gdn.spec_slots", + "offset": 192 }, { - "buf": "model.layers.7.input_layernorm.weight_p1" + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.8.linear_attn.A_log" }, { - "i32": 5120 + "buf": "model.layers.8.linear_attn.dt_bias" }, { - "i32": 17408 + "buf": "core_attn_out" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l7.qkv_proj", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.8.linear_attn.norm.weight" }, { - "buf": "model.layers.7.self_attn.qkv_proj.weight" + "buf": "gdn_q" }, { - "buf": "qkv" + "buf": "gdn_k" }, { - "sym": "tokens" + "buf": "gdn_v" }, { - "i32": 14336 + "buf": "g" }, { - "i32": 5120 - } - ] - }, - { - "label": "l7.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ - { - "buf": "q_n" + "buf": "beta" }, { - "buf": "qkv" + "buf": "a_c" }, { - "buf": "model.layers.7.self_attn.q_norm.weight_p1" + "buf": "b_c" }, { - "i32": 256 + "buf": "z_c" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } + "f32": 0.0883883461356163 }, { - "i32": 24 + "f32": 9.999999974752427e-07 }, { - "i32": 14336 + "sym": "tokens" }, { - "i32": 512 + "i32": 385 }, { - "i32": 6144 + "i32": 1703936 }, { - "i32": 256 + "i32": 10 }, { - "f32": 9.999999974752427e-07 + "i32": 851968 } ] }, { - "label": "l7.k_norm", - "kernel": "gemma_norm_khead", + "label": "l8.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.7.self_attn.k_norm.weight_p1" + "buf": "x" }, { - "i32": 256 + "buf": "core_attn_out" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } + "buf": "model.layers.8.linear_attn.out_proj.weight" }, { - "i32": 4 + "buf": "residual" }, { - "i32": 14336 + "buf": "model.layers.8.post_attention_layernorm.weight_p1" }, { - "i32": 256 + "sym": "tokens" }, { - "i32": 1024 + "i32": 5120 }, { - "i32": 256 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -50496,205 +49744,206 @@ ] }, { - "label": "l7.rope", - "kernel": "mrope", + "label": "l8.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "q_n" - }, - { - "buf": "k_n" + "buf": "act" }, { - "buf": "cos_g" + "buf": "x" }, { - "buf": "sin_g" + "buf": "model.layers.8.mlp.gate_up_proj.weight" }, { - "i32": 0 + "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l7.kv_write", - "kernel": "reshape_and_cache", + "label": "l8.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" + "buf": "x" }, { - "buf": "qkv", - "offset": 26624 + "buf": "act" }, { - "state": "kv", - "offset": 3211264 + "buf": "model.layers.8.mlp.down_proj.weight" }, { - "state": "kv", - "offset": 3211776 + "buf": "residual" }, { - "buf": "slot_mapping" + "buf": "model.layers.9.input_layernorm.weight_p1" }, { - "buf": "kv_scales" + "sym": "tokens" }, { - "buf": "kv_scales", - "offset": 4 + "i32": 5120 }, { - "i64": 1024 + "i32": 17408 }, { - "i64": 14336 + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l9.in_proj", + "kernel": "gemm8_dual", + "args": [ + { + "buf": "qkvz" }, { - "i64": 25690112 + "buf": "ba" }, { - "i64": 512 + "buf": "x" }, { - "i64": 0 + "buf": "model.layers.9.linear_attn.in_proj_qkvz.weight" }, { - "i64": 0 + "buf": "model.layers.9.linear_attn.in_proj_ba.weight" }, { - "i64": 2048 + "sym": "tokens" }, { - "i64": 0 + "i32": 16384 }, { - "i64": 0 + "i32": 96 + }, + { + "i32": 5120 } ] }, { - "label": "l7.attn", - "kernel": "attn", + "label": "l9.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "attn_out" + "buf": "qkvz" }, { - "buf": "q_n" + "buf": "model.layers.9.linear_attn.conv1d.weight" }, { - "state": "kv", - "offset": 3211264 + "state": "gdn" }, { - "state": "kv", - "offset": 3211776 + "state": "gdn", + "offset": 204800 }, { - "buf": "block_table" + "buf": "gdn.spec_line_index", + "offset": 32 }, { - "buf": "seq_lens" + "buf": "gdn.one" }, { - "f32": 0.0625 + "buf": "cu_seqlens_q" }, { - "buf": "kv_scales" + "buf": "gdn.spec_slots", + "offset": 224 }, { - "buf": "kv_scales", - "offset": 4 + "buf": "ba" }, { - "f32": 1.0 + "buf": "model.layers.9.linear_attn.A_log" }, { - "f32": 0.0 + "buf": "model.layers.9.linear_attn.dt_bias" }, { - "i64": 8 + "buf": "core_attn_out" }, { - "i64": 6144 + "buf": "model.layers.9.linear_attn.norm.weight" }, { - "i64": 256 + "buf": "gdn_q" }, { - "i64": 6144 + "buf": "gdn_k" }, { - "i64": 256 + "buf": "gdn_v" }, { - "i64": 0 + "buf": "g" }, { - "buf": "seq_lens" + "buf": "beta" }, { - "i64": 25690112 + "buf": "a_c" }, { - "i64": 2048 + "buf": "b_c" }, { - "i64": 512 + "buf": "z_c" }, { - "i64": 25690112 + "f32": 0.0883883461356163 }, { - "i64": 2048 + "f32": 9.999999974752427e-07 }, { - "i64": 512 + "sym": "tokens" }, { - "buf": "cu_seqlens_q" + "i32": 385 }, { - "i32": 1 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l7.o_norm", - "kernel": "gemm8_sgate_add_norm", + "label": "l9.out_norm", + "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 + "buf": "core_attn_out" }, { - "buf": "model.layers.7.self_attn.o_proj.weight" + "buf": "model.layers.9.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.7.post_attention_layernorm.weight_p1" + "buf": "model.layers.9.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -50705,22 +49954,13 @@ { "i32": 6144 }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l7.gate_up_silu", + "label": "l9.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -50730,7 +49970,7 @@ "buf": "x" }, { - "buf": "model.layers.7.mlp.gate_up_proj.weight" + "buf": "model.layers.9.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -50744,7 +49984,7 @@ ] }, { - "label": "l7.down_norm", + "label": "l9.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -50754,13 +49994,13 @@ "buf": "act" }, { - "buf": "model.layers.7.mlp.down_proj.weight" + "buf": "model.layers.9.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.8.input_layernorm.weight_p1" + "buf": "model.layers.10.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -50777,7 +50017,7 @@ ] }, { - "label": "l8.in_proj", + "label": "l10.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -50790,10 +50030,10 @@ "buf": "x" }, { - "buf": "model.layers.8.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.10.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.8.linear_attn.in_proj_ba.weight" + "buf": "model.layers.10.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -50810,21 +50050,25 @@ ] }, { - "label": "l8.conv_update", - "kernel": "conv_update_spec", + "label": "l10.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.8.linear_attn.conv1d.weight" + "buf": "model.layers.10.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 28 + "offset": 36 }, { "buf": "gdn.one" @@ -50833,195 +50077,296 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 256 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.10.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.10.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.10.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l8.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.8.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.8.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l10.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" + }, + { + "buf": "model.layers.10.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.10.post_attention_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 }, { "i32": 6144 }, + { + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l10.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ + { + "buf": "act" + }, + { + "buf": "x" + }, + { + "buf": "model.layers.10.mlp.gate_up_proj.weight" + }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l8.a_copy", - "kernel": "copy_rows", + "label": "l10.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" + }, + { + "buf": "model.layers.10.mlp.down_proj.weight" }, { - "i32": 48 + "buf": "residual" }, { - "i32": 96 + "buf": "model.layers.11.input_layernorm.weight_p1" + }, + { + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 + }, + { + "i32": 17408 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l8.b_copy", - "kernel": "copy_rows", + "label": "l11.qkv_proj", + "kernel": "gemm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "model.layers.11.self_attn.qkv_proj.weight" }, { - "i32": 48 + "buf": "qkv" }, { - "i32": 96 + "sym": "tokens" + }, + { + "i32": 14336 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l8.recurrent", - "kernel": "recurrent_spec", + "label": "l11.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "model.layers.8.linear_attn.A_log" + "buf": "q_n" }, { - "buf": "a_c" + "buf": "qkv" }, { - "buf": "b_c" + "buf": "model.layers.11.self_attn.q_norm.weight_p1" }, { - "buf": "model.layers.8.linear_attn.dt_bias" + "i32": 256 }, { - "f32": 1.0 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "f32": 20.0 + "i32": 24 }, { - "buf": "gdn_q" + "i32": 14336 }, { - "buf": "gdn_k" + "i32": 512 }, { - "buf": "gdn_v" + "i32": 6144 }, { - "buf": "core_attn_out" + "i32": 256 }, { - "state": "gdn", - "offset": 204800 + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l11.k_norm", + "kernel": "gemma_norm_khead", + "args": [ + { + "buf": "k_n" }, { - "state": "gdn", - "offset": 204800 + "buf": "qkv", + "offset": 24576 }, { - "buf": "cu_seqlens_q" + "buf": "model.layers.11.self_attn.k_norm.weight_p1" }, { - "buf": "gdn.spec_slots", - "offset": 192 + "i32": 256 }, { - "buf": "gdn.one" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { - "f32": 0.0883883461356163 + "i32": 4 }, { - "i64": 1 + "i32": 14336 }, { - "sym": "tokens" + "i32": 256 + }, + { + "i32": 1024 + }, + { + "i32": 256 + }, + { + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l11.rope", + "kernel": "mrope", + "args": [ + { + "buf": "q_n" + }, + { + "buf": "k_n" + }, + { + "buf": "cos_g" + }, + { + "buf": "sin_g" + }, + { + "i32": 0 }, { "i64": 0 @@ -51032,64 +50377,147 @@ ] }, { - "label": "l8.z_copy", - "kernel": "copy_rows", + "label": "l11.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "z_c" + "buf": "k_n" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "qkv", + "offset": 26624 }, { - "i32": 6144 + "state": "kv", + "offset": 6422528 }, { - "i32": 16384 + "state": "kv", + "offset": 6423040 }, { - "i32": 6144 + "buf": "slot_mapping" + }, + { + "buf": "kv_scales" + }, + { + "buf": "kv_scales", + "offset": 4 + }, + { + "i64": 1024 + }, + { + "i64": 14336 + }, + { + "i64": 25690112 + }, + { + "i64": 512 + }, + { + "i64": 0 + }, + { + "i64": 0 + }, + { + "i64": 2048 + }, + { + "i64": 0 + }, + { + "i64": 0 } ] }, { - "label": "l8.gated_norm", - "kernel": "gated_norm", + "label": "l11.attn", + "kernel": "attn", "args": [ { - "buf": "core_attn_out" + "buf": "attn_out" }, { - "buf": "core_attn_out" + "buf": "q_n" }, { - "buf": "model.layers.8.linear_attn.norm.weight" + "state": "kv", + "offset": 6422528 }, { - "buf": "z_c" + "state": "kv", + "offset": 6423040 }, { - "i32": 128 + "buf": "block_table" }, { - "i32": 128 + "buf": "seq_lens" }, { - "i32": 128 + "f32": 0.0625 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "kv_scales" }, { - "f32": 9.999999974752427e-07 + "buf": "kv_scales", + "offset": 4 + }, + { + "f32": 1.0 + }, + { + "f32": 0.0 + }, + { + "i64": 8 + }, + { + "i64": 6144 + }, + { + "i64": 256 + }, + { + "i64": 6144 + }, + { + "i64": 256 + }, + { + "i64": 0 + }, + { + "buf": "seq_lens" + }, + { + "i64": 25690112 + }, + { + "i64": 2048 + }, + { + "i64": 512 + }, + { + "i64": 25690112 + }, + { + "i64": 2048 + }, + { + "i64": 512 + }, + { + "buf": "cu_seqlens_q" + }, + { + "i32": 1 }, { "i64": 0 @@ -51100,23 +50528,27 @@ ] }, { - "label": "l8.out_norm", - "kernel": "gemm8_add_norm", + "label": "l11.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { "buf": "x" }, { - "buf": "core_attn_out" + "buf": "attn_out" }, { - "buf": "model.layers.8.linear_attn.out_proj.weight" + "buf": "qkv", + "offset": 512 + }, + { + "buf": "model.layers.11.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.8.post_attention_layernorm.weight_p1" + "buf": "model.layers.11.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -51127,13 +50559,22 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l8.gate_up_silu", + "label": "l11.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -51143,7 +50584,7 @@ "buf": "x" }, { - "buf": "model.layers.8.mlp.gate_up_proj.weight" + "buf": "model.layers.11.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -51157,7 +50598,7 @@ ] }, { - "label": "l8.down_norm", + "label": "l11.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -51167,13 +50608,13 @@ "buf": "act" }, { - "buf": "model.layers.8.mlp.down_proj.weight" + "buf": "model.layers.11.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.9.input_layernorm.weight_p1" + "buf": "model.layers.12.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -51190,7 +50631,7 @@ ] }, { - "label": "l9.in_proj", + "label": "l12.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -51203,10 +50644,10 @@ "buf": "x" }, { - "buf": "model.layers.9.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.12.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.9.linear_attn.in_proj_ba.weight" + "buf": "model.layers.12.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -51223,21 +50664,25 @@ ] }, { - "label": "l9.conv_update", - "kernel": "conv_update_spec", + "label": "l12.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.9.linear_attn.conv1d.weight" + "buf": "model.layers.12.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 32 + "offset": 40 }, { "buf": "gdn.one" @@ -51246,47 +50691,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 288 }, { - "i64": 0 - } - ] - }, - { - "label": "l9.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.12.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.12.linear_attn.dt_bias" }, { - "buf": "model.layers.9.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.9.linear_attn.dt_bias" + "buf": "model.layers.12.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -51304,289 +50725,271 @@ "buf": "beta" }, { - "i32": 16384 + "buf": "a_c" }, { - "i32": 96 + "buf": "b_c" }, { - "i32": 96 + "buf": "z_c" }, { - "i32": 2048 + "f32": 0.0883883461356163 }, { - "i32": 2048 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 385 }, { - "i64": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l9.a_copy", - "kernel": "copy_rows", + "label": "l12.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.12.linear_attn.out_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l9.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.12.post_attention_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 6144 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l9.recurrent", - "kernel": "recurrent_spec", + "label": "l12.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "model.layers.9.linear_attn.A_log" - }, - { - "buf": "a_c" + "buf": "act" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.9.linear_attn.dt_bias" + "buf": "model.layers.12.mlp.gate_up_proj.weight" }, { - "f32": 1.0 + "sym": "tokens" }, { - "f32": 20.0 + "i32": 17408 }, { - "buf": "gdn_q" - }, + "i32": 5120 + } + ] + }, + { + "label": "l12.down_norm", + "kernel": "gemm8_add_norm", + "args": [ { - "buf": "gdn_k" + "buf": "x" }, { - "buf": "gdn_v" + "buf": "act" }, { - "buf": "core_attn_out" + "buf": "model.layers.12.mlp.down_proj.weight" }, { - "state": "gdn", - "offset": 204800 + "buf": "residual" }, { - "state": "gdn", - "offset": 204800 + "buf": "model.layers.13.input_layernorm.weight_p1" }, { - "buf": "cu_seqlens_q" + "sym": "tokens" }, { - "buf": "gdn.spec_slots", - "offset": 224 + "i32": 5120 }, { - "buf": "gdn.one" + "i32": 17408 }, { - "f32": 0.0883883461356163 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l13.in_proj", + "kernel": "gemm8_dual", + "args": [ { - "i64": 1 + "buf": "qkvz" }, { - "sym": "tokens" + "buf": "ba" }, { - "i64": 0 + "buf": "x" }, { - "i64": 0 - } - ] - }, - { - "label": "l9.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" + "buf": "model.layers.13.linear_attn.in_proj_qkvz.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "model.layers.13.linear_attn.in_proj_ba.weight" }, { - "i32": 6144 + "sym": "tokens" }, { "i32": 16384 }, { - "i32": 6144 + "i32": 96 + }, + { + "i32": 5120 } ] }, { - "label": "l9.gated_norm", - "kernel": "gated_norm", + "label": "l13.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "core_attn_out" + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.13.linear_attn.conv1d.weight" }, { - "buf": "model.layers.9.linear_attn.norm.weight" + "state": "gdn" }, { - "buf": "z_c" + "state": "gdn", + "offset": 204800 }, { - "i32": 128 + "buf": "gdn.spec_line_index", + "offset": 44 }, { - "i32": 128 + "buf": "gdn.one" }, { - "i32": 128 + "buf": "cu_seqlens_q" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "gdn.spec_slots", + "offset": 320 }, { - "f32": 9.999999974752427e-07 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.13.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l9.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" + "buf": "model.layers.13.linear_attn.dt_bias" }, { "buf": "core_attn_out" }, { - "buf": "model.layers.9.linear_attn.out_proj.weight" + "buf": "model.layers.13.linear_attn.norm.weight" }, { - "buf": "residual" + "buf": "gdn_q" }, { - "buf": "model.layers.9.post_attention_layernorm.weight_p1" + "buf": "gdn_k" }, { - "sym": "tokens" + "buf": "gdn_v" }, { - "i32": 5120 + "buf": "g" }, { - "i32": 6144 + "buf": "beta" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l9.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ + "buf": "a_c" + }, { - "buf": "act" + "buf": "b_c" }, { - "buf": "x" + "buf": "z_c" }, { - "buf": "model.layers.9.mlp.gate_up_proj.weight" + "f32": 0.0883883461356163 + }, + { + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i32": 17408 + "i32": 385 }, { - "i32": 5120 + "i32": 1703936 + }, + { + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l9.down_norm", + "label": "l13.out_norm", "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "act" + "buf": "core_attn_out" }, { - "buf": "model.layers.9.mlp.down_proj.weight" + "buf": "model.layers.13.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.10.input_layernorm.weight_p1" + "buf": "model.layers.13.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -51595,7 +50998,7 @@ "i32": 5120 }, { - "i32": 17408 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -51603,32 +51006,23 @@ ] }, { - "label": "l10.in_proj", - "kernel": "gemm8_dual", + "label": "l13.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba" + "buf": "act" }, { "buf": "x" }, { - "buf": "model.layers.10.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.10.linear_attn.in_proj_ba.weight" + "buf": "model.layers.13.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i32": 16384 - }, - { - "i32": 96 + "i32": 17408 }, { "i32": 5120 @@ -51636,85 +51030,59 @@ ] }, { - "label": "l10.conv_update", - "kernel": "conv_update_spec", + "label": "l13.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "qkvz" - }, - { - "buf": "model.layers.10.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 36 - }, - { - "buf": "gdn.one" + "buf": "x" }, { - "buf": "cu_seqlens_q" + "buf": "act" }, { - "buf": "qkvz" + "buf": "model.layers.13.mlp.down_proj.weight" }, { - "i32": 1 + "buf": "residual" }, { - "i32": 385 + "buf": "model.layers.14.input_layernorm.weight_p1" }, { - "i64": 16384 + "sym": "tokens" }, { - "i64": 16384 + "i32": 5120 }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l10.post_conv", - "kernel": "post_conv", + "label": "l14.in_proj", + "kernel": "gemm8_dual", "args": [ { "buf": "qkvz" }, - { - "buf": "ba", - "offset": 96 - }, { "buf": "ba" }, { - "buf": "model.layers.10.linear_attn.A_log" - }, - { - "buf": "model.layers.10.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" + "buf": "x" }, { - "buf": "gdn_v" + "buf": "model.layers.14.linear_attn.in_proj_qkvz.weight" }, { - "buf": "g" + "buf": "model.layers.14.linear_attn.in_proj_ba.weight" }, { - "buf": "beta" + "sym": "tokens" }, { "i32": 16384 @@ -51723,92 +51091,55 @@ "i32": 96 }, { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l10.a_copy", - "kernel": "copy_rows", + "label": "l14.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 + "buf": "qkvz" }, { - "i32": 48 + "buf": "model.layers.14.linear_attn.conv1d.weight" }, { - "i32": 96 + "state": "gdn" }, { - "i32": 48 - } - ] - }, - { - "label": "l10.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "state": "gdn", + "offset": 204800 }, { - "buf": "ba" + "buf": "gdn.spec_line_index", + "offset": 48 }, { - "i32": 48 + "buf": "gdn.one" }, { - "i32": 96 + "buf": "cu_seqlens_q" }, { - "i32": 48 - } - ] - }, - { - "label": "l10.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.10.linear_attn.A_log" + "buf": "gdn.spec_slots", + "offset": 352 }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "model.layers.14.linear_attn.A_log" }, { - "buf": "model.layers.10.linear_attn.dt_bias" + "buf": "model.layers.14.linear_attn.dt_bias" }, { - "f32": 1.0 + "buf": "core_attn_out" }, { - "f32": 20.0 + "buf": "model.layers.14.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -51820,113 +51151,45 @@ "buf": "gdn_v" }, { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 + "buf": "g" }, { - "state": "gdn", - "offset": 204800 + "buf": "beta" }, { - "buf": "cu_seqlens_q" + "buf": "a_c" }, { - "buf": "gdn.spec_slots", - "offset": 256 + "buf": "b_c" }, { - "buf": "gdn.one" + "buf": "z_c" }, { "f32": 0.0883883461356163 }, { - "i64": 1 + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l10.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l10.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.10.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l10.out_norm", + "label": "l14.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -51936,13 +51199,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.10.linear_attn.out_proj.weight" + "buf": "model.layers.14.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.10.post_attention_layernorm.weight_p1" + "buf": "model.layers.14.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -51959,7 +51222,7 @@ ] }, { - "label": "l10.gate_up_silu", + "label": "l14.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -51969,7 +51232,7 @@ "buf": "x" }, { - "buf": "model.layers.10.mlp.gate_up_proj.weight" + "buf": "model.layers.14.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -51983,7 +51246,7 @@ ] }, { - "label": "l10.down_norm", + "label": "l14.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -51993,13 +51256,13 @@ "buf": "act" }, { - "buf": "model.layers.10.mlp.down_proj.weight" + "buf": "model.layers.14.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.11.input_layernorm.weight_p1" + "buf": "model.layers.15.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -52016,14 +51279,14 @@ ] }, { - "label": "l11.qkv_proj", + "label": "l15.qkv_proj", "kernel": "gemm", "args": [ { "buf": "x" }, { - "buf": "model.layers.11.self_attn.qkv_proj.weight" + "buf": "model.layers.15.self_attn.qkv_proj.weight" }, { "buf": "qkv" @@ -52040,7 +51303,7 @@ ] }, { - "label": "l11.q_norm", + "label": "l15.q_norm", "kernel": "gemma_norm_qhead", "args": [ { @@ -52050,7 +51313,7 @@ "buf": "qkv" }, { - "buf": "model.layers.11.self_attn.q_norm.weight_p1" + "buf": "model.layers.15.self_attn.q_norm.weight_p1" }, { "i32": 256 @@ -52086,7 +51349,7 @@ ] }, { - "label": "l11.k_norm", + "label": "l15.k_norm", "kernel": "gemma_norm_khead", "args": [ { @@ -52097,7 +51360,7 @@ "offset": 24576 }, { - "buf": "model.layers.11.self_attn.k_norm.weight_p1" + "buf": "model.layers.15.self_attn.k_norm.weight_p1" }, { "i32": 256 @@ -52133,7 +51396,7 @@ ] }, { - "label": "l11.rope", + "label": "l15.rope", "kernel": "mrope", "args": [ { @@ -52160,7 +51423,7 @@ ] }, { - "label": "l11.kv_write", + "label": "l15.kv_write", "kernel": "reshape_and_cache", "args": [ { @@ -52172,11 +51435,11 @@ }, { "state": "kv", - "offset": 6422528 + "offset": 9633792 }, { "state": "kv", - "offset": 6423040 + "offset": 9634304 }, { "buf": "slot_mapping" @@ -52218,7 +51481,7 @@ ] }, { - "label": "l11.attn", + "label": "l15.attn", "kernel": "attn", "args": [ { @@ -52229,11 +51492,11 @@ }, { "state": "kv", - "offset": 6422528 + "offset": 9633792 }, { "state": "kv", - "offset": 6423040 + "offset": 9634304 }, { "buf": "block_table" @@ -52311,7 +51574,7 @@ ] }, { - "label": "l11.o_norm", + "label": "l15.o_norm", "kernel": "gemm8_sgate_add_norm", "args": [ { @@ -52325,13 +51588,13 @@ "offset": 512 }, { - "buf": "model.layers.11.self_attn.o_proj.weight" + "buf": "model.layers.15.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.11.post_attention_layernorm.weight_p1" + "buf": "model.layers.15.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -52357,7 +51620,7 @@ ] }, { - "label": "l11.gate_up_silu", + "label": "l15.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -52367,7 +51630,7 @@ "buf": "x" }, { - "buf": "model.layers.11.mlp.gate_up_proj.weight" + "buf": "model.layers.15.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -52381,7 +51644,7 @@ ] }, { - "label": "l11.down_norm", + "label": "l15.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -52391,13 +51654,13 @@ "buf": "act" }, { - "buf": "model.layers.11.mlp.down_proj.weight" + "buf": "model.layers.15.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.12.input_layernorm.weight_p1" + "buf": "model.layers.16.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -52414,7 +51677,7 @@ ] }, { - "label": "l12.in_proj", + "label": "l16.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -52427,10 +51690,10 @@ "buf": "x" }, { - "buf": "model.layers.12.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.16.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.12.linear_attn.in_proj_ba.weight" + "buf": "model.layers.16.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -52447,21 +51710,25 @@ ] }, { - "label": "l12.conv_update", - "kernel": "conv_update_spec", + "label": "l16.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.12.linear_attn.conv1d.weight" + "buf": "model.layers.16.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 40 + "offset": 52 }, { "buf": "gdn.one" @@ -52470,274 +51737,289 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 384 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.16.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.16.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.16.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l12.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.12.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.12.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l16.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" }, { - "i32": 6144 + "buf": "model.layers.16.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.16.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l12.a_copy", - "kernel": "copy_rows", + "label": "l16.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" + }, + { + "buf": "model.layers.16.mlp.gate_up_proj.weight" }, { - "i32": 48 + "sym": "tokens" }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l12.b_copy", - "kernel": "copy_rows", + "label": "l16.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.16.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" + }, + { + "buf": "model.layers.17.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l12.recurrent", - "kernel": "recurrent_spec", + "label": "l17.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.12.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.12.linear_attn.dt_bias" + "buf": "model.layers.17.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.17.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l17.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.17.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 56 }, { - "buf": "gdn.spec_slots", - "offset": 288 + "buf": "gdn.one" }, { - "buf": "gdn.one" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 416 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.17.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.17.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l12.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.17.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l12.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.12.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l12.out_norm", + "label": "l17.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -52747,13 +52029,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.12.linear_attn.out_proj.weight" + "buf": "model.layers.17.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.12.post_attention_layernorm.weight_p1" + "buf": "model.layers.17.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -52770,7 +52052,7 @@ ] }, { - "label": "l12.gate_up_silu", + "label": "l17.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -52780,7 +52062,7 @@ "buf": "x" }, { - "buf": "model.layers.12.mlp.gate_up_proj.weight" + "buf": "model.layers.17.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -52794,7 +52076,7 @@ ] }, { - "label": "l12.down_norm", + "label": "l17.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -52804,13 +52086,13 @@ "buf": "act" }, { - "buf": "model.layers.12.mlp.down_proj.weight" + "buf": "model.layers.17.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.13.input_layernorm.weight_p1" + "buf": "model.layers.18.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -52827,7 +52109,7 @@ ] }, { - "label": "l13.in_proj", + "label": "l18.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -52840,10 +52122,10 @@ "buf": "x" }, { - "buf": "model.layers.13.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.18.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.13.linear_attn.in_proj_ba.weight" + "buf": "model.layers.18.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -52860,21 +52142,25 @@ ] }, { - "label": "l13.conv_update", - "kernel": "conv_update_spec", + "label": "l18.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.13.linear_attn.conv1d.weight" + "buf": "model.layers.18.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 44 + "offset": 60 }, { "buf": "gdn.one" @@ -52883,47 +52169,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 448 }, { - "i64": 0 - } - ] - }, - { - "label": "l13.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.18.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.18.linear_attn.dt_bias" }, { - "buf": "model.layers.13.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.13.linear_attn.dt_bias" + "buf": "model.layers.18.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -52941,192 +52203,166 @@ "buf": "beta" }, { - "i32": 16384 + "buf": "a_c" }, { - "i32": 96 + "buf": "b_c" }, { - "i32": 96 + "buf": "z_c" }, { - "i32": 2048 + "f32": 0.0883883461356163 }, { - "i32": 2048 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 385 }, { - "i64": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l13.a_copy", - "kernel": "copy_rows", + "label": "l18.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.18.linear_attn.out_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l13.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.18.post_attention_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 6144 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l13.recurrent", - "kernel": "recurrent_spec", + "label": "l18.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "model.layers.13.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.13.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 + "buf": "act" }, { - "buf": "gdn_q" + "buf": "x" }, { - "buf": "gdn_k" + "buf": "model.layers.18.mlp.gate_up_proj.weight" }, { - "buf": "gdn_v" + "sym": "tokens" }, { - "buf": "core_attn_out" + "i32": 17408 }, { - "state": "gdn", - "offset": 204800 - }, + "i32": 5120 + } + ] + }, + { + "label": "l18.down_norm", + "kernel": "gemm8_add_norm", + "args": [ { - "state": "gdn", - "offset": 204800 + "buf": "x" }, { - "buf": "cu_seqlens_q" + "buf": "act" }, { - "buf": "gdn.spec_slots", - "offset": 320 + "buf": "model.layers.18.mlp.down_proj.weight" }, { - "buf": "gdn.one" + "buf": "residual" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.19.input_layernorm.weight_p1" }, { - "i64": 1 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 5120 }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l13.z_copy", - "kernel": "copy_rows", + "label": "l19.qkv_proj", + "kernel": "gemm", "args": [ { - "buf": "z_c" + "buf": "x" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "model.layers.19.self_attn.qkv_proj.weight" }, { - "i32": 6144 + "buf": "qkv" }, { - "i32": 16384 + "sym": "tokens" }, { - "i32": 6144 + "i32": 14336 + }, + { + "i32": 5120 } ] }, { - "label": "l13.gated_norm", - "kernel": "gated_norm", + "label": "l19.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.13.linear_attn.norm.weight" - }, - { - "buf": "z_c" + "buf": "q_n" }, { - "i32": 128 + "buf": "qkv" }, { - "i32": 128 + "buf": "model.layers.19.self_attn.q_norm.weight_p1" }, { - "i32": 128 + "i32": 256 }, { "expr": { @@ -53134,48 +52370,71 @@ { "sym": "tokens" }, - 48 + 24 ] } }, { - "f32": 9.999999974752427e-07 + "i32": 24 }, { - "i64": 0 + "i32": 14336 }, { - "i64": 0 + "i32": 512 + }, + { + "i32": 6144 + }, + { + "i32": 256 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l13.out_norm", - "kernel": "gemm8_add_norm", + "label": "l19.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "x" + "buf": "k_n" }, { - "buf": "core_attn_out" + "buf": "qkv", + "offset": 24576 }, { - "buf": "model.layers.13.linear_attn.out_proj.weight" + "buf": "model.layers.19.self_attn.k_norm.weight_p1" }, { - "buf": "residual" + "i32": 256 }, { - "buf": "model.layers.13.post_attention_layernorm.weight_p1" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { - "sym": "tokens" + "i32": 4 }, { - "i32": 5120 + "i32": 14336 }, { - "i32": 6144 + "i32": 256 + }, + { + "i32": 1024 + }, + { + "i32": 256 }, { "f32": 9.999999974752427e-07 @@ -53183,132 +52442,174 @@ ] }, { - "label": "l13.gate_up_silu", - "kernel": "gemm8_gateup_silu", + "label": "l19.rope", + "kernel": "mrope", "args": [ { - "buf": "act" + "buf": "q_n" }, { - "buf": "x" + "buf": "k_n" }, { - "buf": "model.layers.13.mlp.gate_up_proj.weight" + "buf": "cos_g" }, { - "sym": "tokens" + "buf": "sin_g" }, { - "i32": 17408 + "i32": 0 }, { - "i32": 5120 + "i64": 0 + }, + { + "i64": 0 } ] }, { - "label": "l13.down_norm", - "kernel": "gemm8_add_norm", + "label": "l19.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "x" + "buf": "k_n" }, { - "buf": "act" + "buf": "qkv", + "offset": 26624 }, { - "buf": "model.layers.13.mlp.down_proj.weight" + "state": "kv", + "offset": 12845056 }, { - "buf": "residual" - }, + "state": "kv", + "offset": 12845568 + }, { - "buf": "model.layers.14.input_layernorm.weight_p1" + "buf": "slot_mapping" }, { - "sym": "tokens" + "buf": "kv_scales" }, { - "i32": 5120 + "buf": "kv_scales", + "offset": 4 }, { - "i32": 17408 + "i64": 1024 }, { - "f32": 9.999999974752427e-07 + "i64": 14336 + }, + { + "i64": 25690112 + }, + { + "i64": 512 + }, + { + "i64": 0 + }, + { + "i64": 0 + }, + { + "i64": 2048 + }, + { + "i64": 0 + }, + { + "i64": 0 } ] }, { - "label": "l14.in_proj", - "kernel": "gemm8_dual", + "label": "l19.attn", + "kernel": "attn", "args": [ { - "buf": "qkvz" + "buf": "attn_out" }, { - "buf": "ba" + "buf": "q_n" }, { - "buf": "x" + "state": "kv", + "offset": 12845056 }, { - "buf": "model.layers.14.linear_attn.in_proj_qkvz.weight" + "state": "kv", + "offset": 12845568 }, { - "buf": "model.layers.14.linear_attn.in_proj_ba.weight" + "buf": "block_table" }, { - "sym": "tokens" + "buf": "seq_lens" }, { - "i32": 16384 + "f32": 0.0625 }, { - "i32": 96 + "buf": "kv_scales" }, { - "i32": 5120 - } - ] - }, - { - "label": "l14.conv_update", - "kernel": "conv_update_spec", - "args": [ + "buf": "kv_scales", + "offset": 4 + }, { - "buf": "qkvz" + "f32": 1.0 }, { - "buf": "model.layers.14.linear_attn.conv1d.weight" + "f32": 0.0 }, { - "state": "gdn" + "i64": 8 }, { - "buf": "gdn.spec_line_index", - "offset": 48 + "i64": 6144 }, { - "buf": "gdn.one" + "i64": 256 }, { - "buf": "cu_seqlens_q" + "i64": 6144 }, { - "buf": "qkvz" + "i64": 256 }, { - "i32": 1 + "i64": 0 }, { - "i32": 385 + "buf": "seq_lens" }, { - "i64": 16384 + "i64": 25690112 }, { - "i64": 16384 + "i64": 2048 + }, + { + "i64": 512 + }, + { + "i64": 25690112 + }, + { + "i64": 2048 + }, + { + "i64": 512 + }, + { + "buf": "cu_seqlens_q" + }, + { + "i32": 1 }, { "i64": 0 @@ -53319,251 +52620,236 @@ ] }, { - "label": "l14.post_conv", - "kernel": "post_conv", + "label": "l19.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "qkvz" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "attn_out" }, { - "buf": "ba" + "buf": "qkv", + "offset": 512 }, { - "buf": "model.layers.14.linear_attn.A_log" + "buf": "model.layers.19.self_attn.o_proj.weight" }, { - "buf": "model.layers.14.linear_attn.dt_bias" + "buf": "residual" }, { - "buf": "gdn_q" + "buf": "model.layers.19.post_attention_layernorm.weight_p1" }, { - "buf": "gdn_k" + "sym": "tokens" }, { - "buf": "gdn_v" + "i32": 5120 }, { - "buf": "g" + "i32": 6144 }, { - "buf": "beta" + "i32": 256 }, { - "i32": 16384 + "i32": 14336 }, { - "i32": 96 + "i32": 512 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l19.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ { - "i32": 2048 + "buf": "act" }, { - "i32": 2048 + "buf": "x" }, { - "i32": 6144 + "buf": "model.layers.19.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l14.a_copy", - "kernel": "copy_rows", + "label": "l19.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.19.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l14.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.20.input_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l14.recurrent", - "kernel": "recurrent_spec", + "label": "l20.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.14.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.14.linear_attn.dt_bias" + "buf": "model.layers.20.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.20.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l20.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.20.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 64 }, { - "buf": "gdn.spec_slots", - "offset": 352 + "buf": "gdn.one" }, { - "buf": "gdn.one" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 480 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.20.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.20.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l14.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.20.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l14.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.14.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l14.out_norm", + "label": "l20.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -53573,13 +52859,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.14.linear_attn.out_proj.weight" + "buf": "model.layers.20.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.14.post_attention_layernorm.weight_p1" + "buf": "model.layers.20.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -53596,7 +52882,7 @@ ] }, { - "label": "l14.gate_up_silu", + "label": "l20.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -53606,7 +52892,7 @@ "buf": "x" }, { - "buf": "model.layers.14.mlp.gate_up_proj.weight" + "buf": "model.layers.20.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -53620,7 +52906,7 @@ ] }, { - "label": "l14.down_norm", + "label": "l20.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -53630,13 +52916,13 @@ "buf": "act" }, { - "buf": "model.layers.14.mlp.down_proj.weight" + "buf": "model.layers.20.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.15.input_layernorm.weight_p1" + "buf": "model.layers.21.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -53653,23 +52939,32 @@ ] }, { - "label": "l15.qkv_proj", - "kernel": "gemm", + "label": "l21.in_proj", + "kernel": "gemm8_dual", "args": [ + { + "buf": "qkvz" + }, + { + "buf": "ba" + }, { "buf": "x" }, { - "buf": "model.layers.15.self_attn.qkv_proj.weight" + "buf": "model.layers.21.linear_attn.in_proj_qkvz.weight" }, { - "buf": "qkv" + "buf": "model.layers.21.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" }, { - "i32": 14336 + "i32": 16384 + }, + { + "i32": 96 }, { "i32": 5120 @@ -53677,298 +52972,332 @@ ] }, { - "label": "l15.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l21.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "q_n" + "buf": "qkvz" }, { - "buf": "qkv" + "buf": "model.layers.21.linear_attn.conv1d.weight" }, { - "buf": "model.layers.15.self_attn.q_norm.weight_p1" + "state": "gdn" }, { - "i32": 256 + "state": "gdn", + "offset": 204800 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } + "buf": "gdn.spec_line_index", + "offset": 68 }, { - "i32": 24 + "buf": "gdn.one" }, { - "i32": 14336 + "buf": "cu_seqlens_q" }, { - "i32": 512 + "buf": "gdn.spec_slots", + "offset": 512 }, { - "i32": 6144 + "buf": "ba" }, { - "i32": 256 + "buf": "model.layers.21.linear_attn.A_log" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l15.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" + "buf": "model.layers.21.linear_attn.dt_bias" }, { - "buf": "qkv", - "offset": 24576 + "buf": "core_attn_out" }, { - "buf": "model.layers.15.self_attn.k_norm.weight_p1" + "buf": "model.layers.21.linear_attn.norm.weight" }, { - "i32": 256 + "buf": "gdn_q" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } + "buf": "gdn_k" }, { - "i32": 4 + "buf": "gdn_v" }, { - "i32": 14336 + "buf": "g" }, { - "i32": 256 + "buf": "beta" }, { - "i32": 1024 + "buf": "a_c" }, { - "i32": 256 + "buf": "b_c" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l15.rope", - "kernel": "mrope", - "args": [ + "buf": "z_c" + }, { - "buf": "q_n" + "f32": 0.0883883461356163 }, { - "buf": "k_n" + "f32": 9.999999974752427e-07 }, { - "buf": "cos_g" + "sym": "tokens" }, { - "buf": "sin_g" + "i32": 385 }, { - "i32": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l15.kv_write", - "kernel": "reshape_and_cache", + "label": "l21.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 + "buf": "x" }, { - "state": "kv", - "offset": 9633792 + "buf": "core_attn_out" }, { - "state": "kv", - "offset": 9634304 + "buf": "model.layers.21.linear_attn.out_proj.weight" }, { - "buf": "slot_mapping" + "buf": "residual" }, { - "buf": "kv_scales" + "buf": "model.layers.21.post_attention_layernorm.weight_p1" }, { - "buf": "kv_scales", - "offset": 4 + "sym": "tokens" }, { - "i64": 1024 + "i32": 5120 }, { - "i64": 14336 + "i32": 6144 }, { - "i64": 25690112 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l21.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ { - "i64": 512 + "buf": "act" }, { - "i64": 0 + "buf": "x" }, { - "i64": 0 + "buf": "model.layers.21.mlp.gate_up_proj.weight" }, { - "i64": 2048 + "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l15.attn", - "kernel": "attn", + "label": "l21.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "attn_out" - }, - { - "buf": "q_n" - }, - { - "state": "kv", - "offset": 9633792 + "buf": "x" }, { - "state": "kv", - "offset": 9634304 + "buf": "act" }, { - "buf": "block_table" + "buf": "model.layers.21.mlp.down_proj.weight" }, { - "buf": "seq_lens" + "buf": "residual" }, { - "f32": 0.0625 + "buf": "model.layers.22.input_layernorm.weight_p1" }, { - "buf": "kv_scales" + "sym": "tokens" }, { - "buf": "kv_scales", - "offset": 4 + "i32": 5120 }, { - "f32": 1.0 + "i32": 17408 }, { - "f32": 0.0 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l22.in_proj", + "kernel": "gemm8_dual", + "args": [ { - "i64": 8 + "buf": "qkvz" }, { - "i64": 6144 + "buf": "ba" }, { - "i64": 256 + "buf": "x" }, { - "i64": 6144 + "buf": "model.layers.22.linear_attn.in_proj_qkvz.weight" }, { - "i64": 256 + "buf": "model.layers.22.linear_attn.in_proj_ba.weight" }, { - "i64": 0 + "sym": "tokens" }, { - "buf": "seq_lens" + "i32": 16384 }, { - "i64": 25690112 + "i32": 96 }, { - "i64": 2048 + "i32": 5120 + } + ] + }, + { + "label": "l22.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "i64": 512 + "buf": "model.layers.22.linear_attn.conv1d.weight" }, { - "i64": 25690112 + "state": "gdn" }, { - "i64": 2048 + "state": "gdn", + "offset": 204800 }, { - "i64": 512 + "buf": "gdn.spec_line_index", + "offset": 72 + }, + { + "buf": "gdn.one" }, { "buf": "cu_seqlens_q" }, { - "i32": 1 + "buf": "gdn.spec_slots", + "offset": 544 }, { - "i64": 0 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.22.linear_attn.A_log" + }, + { + "buf": "model.layers.22.linear_attn.dt_bias" + }, + { + "buf": "core_attn_out" + }, + { + "buf": "model.layers.22.linear_attn.norm.weight" + }, + { + "buf": "gdn_q" + }, + { + "buf": "gdn_k" + }, + { + "buf": "gdn_v" + }, + { + "buf": "g" + }, + { + "buf": "beta" + }, + { + "buf": "a_c" + }, + { + "buf": "b_c" + }, + { + "buf": "z_c" + }, + { + "f32": 0.0883883461356163 + }, + { + "f32": 9.999999974752427e-07 + }, + { + "sym": "tokens" + }, + { + "i32": 385 + }, + { + "i32": 1703936 + }, + { + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l15.o_norm", - "kernel": "gemm8_sgate_add_norm", + "label": "l22.out_norm", + "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 + "buf": "core_attn_out" }, { - "buf": "model.layers.15.self_attn.o_proj.weight" + "buf": "model.layers.22.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.15.post_attention_layernorm.weight_p1" + "buf": "model.layers.22.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -53979,22 +53308,13 @@ { "i32": 6144 }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l15.gate_up_silu", + "label": "l22.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -54004,7 +53324,7 @@ "buf": "x" }, { - "buf": "model.layers.15.mlp.gate_up_proj.weight" + "buf": "model.layers.22.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -54018,7 +53338,7 @@ ] }, { - "label": "l15.down_norm", + "label": "l22.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -54028,13 +53348,13 @@ "buf": "act" }, { - "buf": "model.layers.15.mlp.down_proj.weight" + "buf": "model.layers.22.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.16.input_layernorm.weight_p1" + "buf": "model.layers.23.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -54051,32 +53371,23 @@ ] }, { - "label": "l16.in_proj", - "kernel": "gemm8_dual", + "label": "l23.qkv_proj", + "kernel": "gemm", "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, { "buf": "x" }, { - "buf": "model.layers.16.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.23.self_attn.qkv_proj.weight" }, { - "buf": "model.layers.16.linear_attn.in_proj_ba.weight" + "buf": "qkv" }, { "sym": "tokens" }, { - "i32": 16384 - }, - { - "i32": 96 + "i32": 14336 }, { "i32": 5120 @@ -54084,106 +53395,116 @@ ] }, { - "label": "l16.conv_update", - "kernel": "conv_update_spec", + "label": "l23.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "model.layers.16.linear_attn.conv1d.weight" - }, - { - "state": "gdn" + "buf": "q_n" }, { - "buf": "gdn.spec_line_index", - "offset": 52 + "buf": "qkv" }, { - "buf": "gdn.one" + "buf": "model.layers.23.self_attn.q_norm.weight_p1" }, { - "buf": "cu_seqlens_q" + "i32": 256 }, { - "buf": "qkvz" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i32": 1 + "i32": 24 }, { - "i32": 385 + "i32": 14336 }, { - "i64": 16384 + "i32": 512 }, { - "i64": 16384 + "i32": 6144 }, { - "i64": 0 + "i32": 256 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l16.post_conv", - "kernel": "post_conv", + "label": "l23.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 + "buf": "k_n" }, { - "buf": "ba" + "buf": "qkv", + "offset": 24576 }, { - "buf": "model.layers.16.linear_attn.A_log" + "buf": "model.layers.23.self_attn.k_norm.weight_p1" }, { - "buf": "model.layers.16.linear_attn.dt_bias" + "i32": 256 }, { - "buf": "gdn_q" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { - "buf": "gdn_k" + "i32": 4 }, { - "buf": "gdn_v" + "i32": 14336 }, { - "buf": "g" + "i32": 256 }, { - "buf": "beta" + "i32": 1024 }, { - "i32": 16384 + "i32": 256 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l23.rope", + "kernel": "mrope", + "args": [ { - "i32": 96 + "buf": "q_n" }, { - "i32": 2048 + "buf": "k_n" }, { - "i32": 2048 + "buf": "cos_g" }, { - "i32": 6144 + "buf": "sin_g" }, { - "sym": "tokens" + "i32": 0 }, { "i64": 0 @@ -54194,176 +53515,147 @@ ] }, { - "label": "l16.a_copy", - "kernel": "copy_rows", + "label": "l23.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "a_c" + "buf": "k_n" }, { - "buf": "ba", - "offset": 96 + "buf": "qkv", + "offset": 26624 }, { - "i32": 48 + "state": "kv", + "offset": 16056320 }, { - "i32": 96 + "state": "kv", + "offset": 16056832 }, { - "i32": 48 - } - ] - }, - { - "label": "l16.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "slot_mapping" }, { - "buf": "ba" + "buf": "kv_scales" }, { - "i32": 48 + "buf": "kv_scales", + "offset": 4 }, { - "i32": 96 + "i64": 1024 }, { - "i32": 48 - } - ] - }, - { - "label": "l16.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.16.linear_attn.A_log" + "i64": 14336 }, { - "buf": "a_c" + "i64": 25690112 }, { - "buf": "b_c" + "i64": 512 }, { - "buf": "model.layers.16.linear_attn.dt_bias" + "i64": 0 }, { - "f32": 1.0 + "i64": 0 }, { - "f32": 20.0 + "i64": 2048 }, { - "buf": "gdn_q" + "i64": 0 }, { - "buf": "gdn_k" - }, + "i64": 0 + } + ] + }, + { + "label": "l23.attn", + "kernel": "attn", + "args": [ { - "buf": "gdn_v" + "buf": "attn_out" }, { - "buf": "core_attn_out" + "buf": "q_n" }, { - "state": "gdn", - "offset": 204800 + "state": "kv", + "offset": 16056320 }, { - "state": "gdn", - "offset": 204800 + "state": "kv", + "offset": 16056832 }, { - "buf": "cu_seqlens_q" + "buf": "block_table" }, { - "buf": "gdn.spec_slots", - "offset": 384 + "buf": "seq_lens" }, { - "buf": "gdn.one" + "f32": 0.0625 }, { - "f32": 0.0883883461356163 + "buf": "kv_scales" }, { - "i64": 1 + "buf": "kv_scales", + "offset": 4 }, { - "sym": "tokens" + "f32": 1.0 }, { - "i64": 0 + "f32": 0.0 }, { - "i64": 0 - } - ] - }, - { - "label": "l16.z_copy", - "kernel": "copy_rows", - "args": [ + "i64": 8 + }, { - "buf": "z_c" + "i64": 6144 }, { - "buf": "qkvz", - "offset": 20480 + "i64": 256 }, { - "i32": 6144 + "i64": 6144 }, { - "i32": 16384 + "i64": 256 }, { - "i32": 6144 - } - ] - }, - { - "label": "l16.gated_norm", - "kernel": "gated_norm", - "args": [ + "i64": 0 + }, { - "buf": "core_attn_out" + "buf": "seq_lens" }, { - "buf": "core_attn_out" + "i64": 25690112 }, { - "buf": "model.layers.16.linear_attn.norm.weight" + "i64": 2048 }, { - "buf": "z_c" + "i64": 512 }, { - "i32": 128 + "i64": 25690112 }, { - "i32": 128 + "i64": 2048 }, { - "i32": 128 + "i64": 512 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "cu_seqlens_q" }, { - "f32": 9.999999974752427e-07 + "i32": 1 }, { "i64": 0 @@ -54374,23 +53666,27 @@ ] }, { - "label": "l16.out_norm", - "kernel": "gemm8_add_norm", + "label": "l23.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { "buf": "x" }, { - "buf": "core_attn_out" + "buf": "attn_out" }, { - "buf": "model.layers.16.linear_attn.out_proj.weight" + "buf": "qkv", + "offset": 512 + }, + { + "buf": "model.layers.23.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.16.post_attention_layernorm.weight_p1" + "buf": "model.layers.23.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -54401,13 +53697,22 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l16.gate_up_silu", + "label": "l23.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -54417,7 +53722,7 @@ "buf": "x" }, { - "buf": "model.layers.16.mlp.gate_up_proj.weight" + "buf": "model.layers.23.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -54431,7 +53736,7 @@ ] }, { - "label": "l16.down_norm", + "label": "l23.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -54441,13 +53746,13 @@ "buf": "act" }, { - "buf": "model.layers.16.mlp.down_proj.weight" + "buf": "model.layers.23.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.17.input_layernorm.weight_p1" + "buf": "model.layers.24.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -54464,7 +53769,7 @@ ] }, { - "label": "l17.in_proj", + "label": "l24.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -54477,10 +53782,10 @@ "buf": "x" }, { - "buf": "model.layers.17.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.24.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.17.linear_attn.in_proj_ba.weight" + "buf": "model.layers.24.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -54497,21 +53802,25 @@ ] }, { - "label": "l17.conv_update", - "kernel": "conv_update_spec", + "label": "l24.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.17.linear_attn.conv1d.weight" + "buf": "model.layers.24.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 56 + "offset": 76 }, { "buf": "gdn.one" @@ -54520,47 +53829,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 576 }, { - "i64": 0 - } - ] - }, - { - "label": "l17.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.24.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.24.linear_attn.dt_bias" }, { - "buf": "model.layers.17.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.17.linear_attn.dt_bias" + "buf": "model.layers.24.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -54578,289 +53863,271 @@ "buf": "beta" }, { - "i32": 16384 + "buf": "a_c" }, { - "i32": 96 + "buf": "b_c" }, { - "i32": 96 + "buf": "z_c" }, { - "i32": 2048 + "f32": 0.0883883461356163 }, { - "i32": 2048 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 385 }, { - "i64": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l17.a_copy", - "kernel": "copy_rows", + "label": "l24.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.24.linear_attn.out_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l17.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.24.post_attention_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 6144 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l17.recurrent", - "kernel": "recurrent_spec", + "label": "l24.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "model.layers.17.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" + "buf": "act" }, { - "buf": "model.layers.17.linear_attn.dt_bias" + "buf": "x" }, { - "f32": 1.0 + "buf": "model.layers.24.mlp.gate_up_proj.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 17408 }, { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, + "i32": 5120 + } + ] + }, + { + "label": "l24.down_norm", + "kernel": "gemm8_add_norm", + "args": [ { - "state": "gdn", - "offset": 204800 + "buf": "x" }, { - "buf": "cu_seqlens_q" + "buf": "act" }, { - "buf": "gdn.spec_slots", - "offset": 416 + "buf": "model.layers.24.mlp.down_proj.weight" }, { - "buf": "gdn.one" + "buf": "residual" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.25.input_layernorm.weight_p1" }, { - "i64": 1 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 5120 }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l17.z_copy", - "kernel": "copy_rows", + "label": "l25.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "z_c" + "buf": "qkvz" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "ba" }, { - "i32": 6144 + "buf": "x" + }, + { + "buf": "model.layers.25.linear_attn.in_proj_qkvz.weight" + }, + { + "buf": "model.layers.25.linear_attn.in_proj_ba.weight" + }, + { + "sym": "tokens" }, { "i32": 16384 }, { - "i32": 6144 + "i32": 96 + }, + { + "i32": 5120 } ] }, { - "label": "l17.gated_norm", - "kernel": "gated_norm", + "label": "l25.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "core_attn_out" + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.25.linear_attn.conv1d.weight" }, { - "buf": "model.layers.17.linear_attn.norm.weight" + "state": "gdn" }, { - "buf": "z_c" + "state": "gdn", + "offset": 204800 }, { - "i32": 128 + "buf": "gdn.spec_line_index", + "offset": 80 }, { - "i32": 128 + "buf": "gdn.one" }, { - "i32": 128 + "buf": "cu_seqlens_q" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "gdn.spec_slots", + "offset": 608 }, { - "f32": 9.999999974752427e-07 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.25.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l17.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" + "buf": "model.layers.25.linear_attn.dt_bias" }, { "buf": "core_attn_out" }, { - "buf": "model.layers.17.linear_attn.out_proj.weight" + "buf": "model.layers.25.linear_attn.norm.weight" }, { - "buf": "residual" + "buf": "gdn_q" }, { - "buf": "model.layers.17.post_attention_layernorm.weight_p1" + "buf": "gdn_k" }, { - "sym": "tokens" + "buf": "gdn_v" }, { - "i32": 5120 + "buf": "g" }, { - "i32": 6144 + "buf": "beta" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l17.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ + "buf": "a_c" + }, { - "buf": "act" + "buf": "b_c" }, { - "buf": "x" + "buf": "z_c" }, { - "buf": "model.layers.17.mlp.gate_up_proj.weight" + "f32": 0.0883883461356163 + }, + { + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i32": 17408 + "i32": 385 }, { - "i32": 5120 + "i32": 1703936 + }, + { + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l17.down_norm", + "label": "l25.out_norm", "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "act" + "buf": "core_attn_out" }, { - "buf": "model.layers.17.mlp.down_proj.weight" + "buf": "model.layers.25.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.18.input_layernorm.weight_p1" + "buf": "model.layers.25.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -54869,7 +54136,7 @@ "i32": 5120 }, { - "i32": 17408 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -54877,32 +54144,23 @@ ] }, { - "label": "l18.in_proj", - "kernel": "gemm8_dual", + "label": "l25.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba" + "buf": "act" }, { "buf": "x" }, { - "buf": "model.layers.18.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.18.linear_attn.in_proj_ba.weight" + "buf": "model.layers.25.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i32": 16384 - }, - { - "i32": 96 + "i32": 17408 }, { "i32": 5120 @@ -54910,85 +54168,59 @@ ] }, { - "label": "l18.conv_update", - "kernel": "conv_update_spec", + "label": "l25.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "qkvz" - }, - { - "buf": "model.layers.18.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 60 - }, - { - "buf": "gdn.one" + "buf": "x" }, { - "buf": "cu_seqlens_q" + "buf": "act" }, { - "buf": "qkvz" + "buf": "model.layers.25.mlp.down_proj.weight" }, { - "i32": 1 + "buf": "residual" }, { - "i32": 385 + "buf": "model.layers.26.input_layernorm.weight_p1" }, { - "i64": 16384 + "sym": "tokens" }, { - "i64": 16384 + "i32": 5120 }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l18.post_conv", - "kernel": "post_conv", + "label": "l26.in_proj", + "kernel": "gemm8_dual", "args": [ { "buf": "qkvz" }, - { - "buf": "ba", - "offset": 96 - }, { "buf": "ba" }, { - "buf": "model.layers.18.linear_attn.A_log" - }, - { - "buf": "model.layers.18.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" + "buf": "x" }, { - "buf": "gdn_v" + "buf": "model.layers.26.linear_attn.in_proj_qkvz.weight" }, { - "buf": "g" + "buf": "model.layers.26.linear_attn.in_proj_ba.weight" }, { - "buf": "beta" + "sym": "tokens" }, { "i32": 16384 @@ -54997,92 +54229,55 @@ "i32": 96 }, { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l18.a_copy", - "kernel": "copy_rows", + "label": "l26.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 + "buf": "qkvz" }, { - "i32": 48 + "buf": "model.layers.26.linear_attn.conv1d.weight" }, { - "i32": 96 + "state": "gdn" }, { - "i32": 48 - } - ] - }, - { - "label": "l18.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "state": "gdn", + "offset": 204800 }, { - "buf": "ba" + "buf": "gdn.spec_line_index", + "offset": 84 }, { - "i32": 48 + "buf": "gdn.one" }, { - "i32": 96 + "buf": "cu_seqlens_q" }, { - "i32": 48 - } - ] - }, - { - "label": "l18.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.18.linear_attn.A_log" + "buf": "gdn.spec_slots", + "offset": 640 }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "model.layers.26.linear_attn.A_log" }, { - "buf": "model.layers.18.linear_attn.dt_bias" + "buf": "model.layers.26.linear_attn.dt_bias" }, { - "f32": 1.0 + "buf": "core_attn_out" }, { - "f32": 20.0 + "buf": "model.layers.26.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -55094,113 +54289,45 @@ "buf": "gdn_v" }, { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 + "buf": "g" }, { - "state": "gdn", - "offset": 204800 + "buf": "beta" }, { - "buf": "cu_seqlens_q" + "buf": "a_c" }, { - "buf": "gdn.spec_slots", - "offset": 448 + "buf": "b_c" }, { - "buf": "gdn.one" + "buf": "z_c" }, { "f32": 0.0883883461356163 }, { - "i64": 1 + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l18.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l18.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.18.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l18.out_norm", + "label": "l26.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -55210,13 +54337,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.18.linear_attn.out_proj.weight" + "buf": "model.layers.26.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.18.post_attention_layernorm.weight_p1" + "buf": "model.layers.26.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -55233,7 +54360,7 @@ ] }, { - "label": "l18.gate_up_silu", + "label": "l26.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -55243,7 +54370,7 @@ "buf": "x" }, { - "buf": "model.layers.18.mlp.gate_up_proj.weight" + "buf": "model.layers.26.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -55257,7 +54384,7 @@ ] }, { - "label": "l18.down_norm", + "label": "l26.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -55267,13 +54394,13 @@ "buf": "act" }, { - "buf": "model.layers.18.mlp.down_proj.weight" + "buf": "model.layers.26.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.19.input_layernorm.weight_p1" + "buf": "model.layers.27.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -55290,14 +54417,14 @@ ] }, { - "label": "l19.qkv_proj", + "label": "l27.qkv_proj", "kernel": "gemm", "args": [ { "buf": "x" }, { - "buf": "model.layers.19.self_attn.qkv_proj.weight" + "buf": "model.layers.27.self_attn.qkv_proj.weight" }, { "buf": "qkv" @@ -55314,7 +54441,7 @@ ] }, { - "label": "l19.q_norm", + "label": "l27.q_norm", "kernel": "gemma_norm_qhead", "args": [ { @@ -55324,7 +54451,7 @@ "buf": "qkv" }, { - "buf": "model.layers.19.self_attn.q_norm.weight_p1" + "buf": "model.layers.27.self_attn.q_norm.weight_p1" }, { "i32": 256 @@ -55360,7 +54487,7 @@ ] }, { - "label": "l19.k_norm", + "label": "l27.k_norm", "kernel": "gemma_norm_khead", "args": [ { @@ -55371,7 +54498,7 @@ "offset": 24576 }, { - "buf": "model.layers.19.self_attn.k_norm.weight_p1" + "buf": "model.layers.27.self_attn.k_norm.weight_p1" }, { "i32": 256 @@ -55407,7 +54534,7 @@ ] }, { - "label": "l19.rope", + "label": "l27.rope", "kernel": "mrope", "args": [ { @@ -55434,7 +54561,7 @@ ] }, { - "label": "l19.kv_write", + "label": "l27.kv_write", "kernel": "reshape_and_cache", "args": [ { @@ -55446,11 +54573,11 @@ }, { "state": "kv", - "offset": 12845056 + "offset": 19267584 }, { "state": "kv", - "offset": 12845568 + "offset": 19268096 }, { "buf": "slot_mapping" @@ -55492,7 +54619,7 @@ ] }, { - "label": "l19.attn", + "label": "l27.attn", "kernel": "attn", "args": [ { @@ -55503,11 +54630,11 @@ }, { "state": "kv", - "offset": 12845056 + "offset": 19267584 }, { "state": "kv", - "offset": 12845568 + "offset": 19268096 }, { "buf": "block_table" @@ -55585,7 +54712,7 @@ ] }, { - "label": "l19.o_norm", + "label": "l27.o_norm", "kernel": "gemm8_sgate_add_norm", "args": [ { @@ -55599,13 +54726,13 @@ "offset": 512 }, { - "buf": "model.layers.19.self_attn.o_proj.weight" + "buf": "model.layers.27.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.19.post_attention_layernorm.weight_p1" + "buf": "model.layers.27.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -55631,7 +54758,7 @@ ] }, { - "label": "l19.gate_up_silu", + "label": "l27.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -55641,7 +54768,7 @@ "buf": "x" }, { - "buf": "model.layers.19.mlp.gate_up_proj.weight" + "buf": "model.layers.27.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -55655,7 +54782,7 @@ ] }, { - "label": "l19.down_norm", + "label": "l27.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -55665,13 +54792,13 @@ "buf": "act" }, { - "buf": "model.layers.19.mlp.down_proj.weight" + "buf": "model.layers.27.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.20.input_layernorm.weight_p1" + "buf": "model.layers.28.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -55688,7 +54815,7 @@ ] }, { - "label": "l20.in_proj", + "label": "l28.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -55701,10 +54828,10 @@ "buf": "x" }, { - "buf": "model.layers.20.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.28.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.20.linear_attn.in_proj_ba.weight" + "buf": "model.layers.28.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -55721,21 +54848,25 @@ ] }, { - "label": "l20.conv_update", - "kernel": "conv_update_spec", + "label": "l28.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.20.linear_attn.conv1d.weight" + "buf": "model.layers.28.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 64 + "offset": 88 }, { "buf": "gdn.one" @@ -55744,274 +54875,289 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 672 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.28.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.28.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.28.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l20.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.20.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.20.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l28.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" }, { - "i32": 6144 + "buf": "model.layers.28.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.28.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l20.a_copy", - "kernel": "copy_rows", + "label": "l28.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" + }, + { + "buf": "model.layers.28.mlp.gate_up_proj.weight" }, { - "i32": 48 + "sym": "tokens" }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l20.b_copy", - "kernel": "copy_rows", + "label": "l28.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.28.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" + }, + { + "buf": "model.layers.29.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l20.recurrent", - "kernel": "recurrent_spec", + "label": "l29.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.20.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.20.linear_attn.dt_bias" + "buf": "model.layers.29.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.29.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l29.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.29.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 92 }, { - "buf": "gdn.spec_slots", - "offset": 480 + "buf": "gdn.one" }, { - "buf": "gdn.one" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 704 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.29.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.29.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l20.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.29.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l20.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.20.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l20.out_norm", + "label": "l29.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -56021,13 +55167,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.20.linear_attn.out_proj.weight" + "buf": "model.layers.29.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.20.post_attention_layernorm.weight_p1" + "buf": "model.layers.29.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -56044,7 +55190,7 @@ ] }, { - "label": "l20.gate_up_silu", + "label": "l29.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -56054,7 +55200,7 @@ "buf": "x" }, { - "buf": "model.layers.20.mlp.gate_up_proj.weight" + "buf": "model.layers.29.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -56068,7 +55214,7 @@ ] }, { - "label": "l20.down_norm", + "label": "l29.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -56078,13 +55224,13 @@ "buf": "act" }, { - "buf": "model.layers.20.mlp.down_proj.weight" + "buf": "model.layers.29.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.21.input_layernorm.weight_p1" + "buf": "model.layers.30.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -56101,7 +55247,7 @@ ] }, { - "label": "l21.in_proj", + "label": "l30.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -56114,10 +55260,10 @@ "buf": "x" }, { - "buf": "model.layers.21.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.30.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.21.linear_attn.in_proj_ba.weight" + "buf": "model.layers.30.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -56134,21 +55280,25 @@ ] }, { - "label": "l21.conv_update", - "kernel": "conv_update_spec", + "label": "l30.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.21.linear_attn.conv1d.weight" + "buf": "model.layers.30.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 68 + "offset": 96 }, { "buf": "gdn.one" @@ -56157,47 +55307,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 736 }, { - "i64": 0 - } - ] - }, - { - "label": "l21.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.30.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.30.linear_attn.dt_bias" }, { - "buf": "model.layers.21.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.21.linear_attn.dt_bias" + "buf": "model.layers.30.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -56215,192 +55341,166 @@ "buf": "beta" }, { - "i32": 16384 + "buf": "a_c" }, { - "i32": 96 + "buf": "b_c" }, { - "i32": 96 + "buf": "z_c" }, { - "i32": 2048 + "f32": 0.0883883461356163 }, { - "i32": 2048 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 385 }, { - "i64": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l21.a_copy", - "kernel": "copy_rows", + "label": "l30.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.30.linear_attn.out_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l21.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.30.post_attention_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 6144 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l21.recurrent", - "kernel": "recurrent_spec", + "label": "l30.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "model.layers.21.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.21.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 + "buf": "act" }, { - "buf": "gdn_q" + "buf": "x" }, { - "buf": "gdn_k" + "buf": "model.layers.30.mlp.gate_up_proj.weight" }, { - "buf": "gdn_v" + "sym": "tokens" }, { - "buf": "core_attn_out" + "i32": 17408 }, { - "state": "gdn", - "offset": 204800 - }, + "i32": 5120 + } + ] + }, + { + "label": "l30.down_norm", + "kernel": "gemm8_add_norm", + "args": [ { - "state": "gdn", - "offset": 204800 + "buf": "x" }, { - "buf": "cu_seqlens_q" + "buf": "act" }, { - "buf": "gdn.spec_slots", - "offset": 512 + "buf": "model.layers.30.mlp.down_proj.weight" }, { - "buf": "gdn.one" + "buf": "residual" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.31.input_layernorm.weight_p1" }, { - "i64": 1 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 5120 }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l21.z_copy", - "kernel": "copy_rows", + "label": "l31.qkv_proj", + "kernel": "gemm", "args": [ { - "buf": "z_c" + "buf": "x" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "model.layers.31.self_attn.qkv_proj.weight" }, { - "i32": 6144 + "buf": "qkv" }, { - "i32": 16384 + "sym": "tokens" }, { - "i32": 6144 + "i32": 14336 + }, + { + "i32": 5120 } ] }, { - "label": "l21.gated_norm", - "kernel": "gated_norm", + "label": "l31.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.21.linear_attn.norm.weight" - }, - { - "buf": "z_c" + "buf": "q_n" }, { - "i32": 128 + "buf": "qkv" }, { - "i32": 128 + "buf": "model.layers.31.self_attn.q_norm.weight_p1" }, { - "i32": 128 + "i32": 256 }, { "expr": { @@ -56408,48 +55508,71 @@ { "sym": "tokens" }, - 48 + 24 ] } }, { - "f32": 9.999999974752427e-07 + "i32": 24 }, { - "i64": 0 + "i32": 14336 }, { - "i64": 0 + "i32": 512 + }, + { + "i32": 6144 + }, + { + "i32": 256 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l21.out_norm", - "kernel": "gemm8_add_norm", + "label": "l31.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "x" + "buf": "k_n" }, { - "buf": "core_attn_out" + "buf": "qkv", + "offset": 24576 }, { - "buf": "model.layers.21.linear_attn.out_proj.weight" + "buf": "model.layers.31.self_attn.k_norm.weight_p1" }, { - "buf": "residual" + "i32": 256 }, { - "buf": "model.layers.21.post_attention_layernorm.weight_p1" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { - "sym": "tokens" + "i32": 4 }, { - "i32": 5120 + "i32": 14336 }, { - "i32": 6144 + "i32": 256 + }, + { + "i32": 1024 + }, + { + "i32": 256 }, { "f32": 9.999999974752427e-07 @@ -56457,132 +55580,174 @@ ] }, { - "label": "l21.gate_up_silu", - "kernel": "gemm8_gateup_silu", + "label": "l31.rope", + "kernel": "mrope", "args": [ { - "buf": "act" + "buf": "q_n" }, { - "buf": "x" + "buf": "k_n" }, { - "buf": "model.layers.21.mlp.gate_up_proj.weight" + "buf": "cos_g" }, { - "sym": "tokens" + "buf": "sin_g" }, { - "i32": 17408 + "i32": 0 }, { - "i32": 5120 + "i64": 0 + }, + { + "i64": 0 } ] }, { - "label": "l21.down_norm", - "kernel": "gemm8_add_norm", + "label": "l31.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "x" + "buf": "k_n" }, { - "buf": "act" + "buf": "qkv", + "offset": 26624 }, { - "buf": "model.layers.21.mlp.down_proj.weight" + "state": "kv", + "offset": 22478848 }, { - "buf": "residual" - }, + "state": "kv", + "offset": 22479360 + }, { - "buf": "model.layers.22.input_layernorm.weight_p1" + "buf": "slot_mapping" }, { - "sym": "tokens" + "buf": "kv_scales" }, { - "i32": 5120 + "buf": "kv_scales", + "offset": 4 }, { - "i32": 17408 + "i64": 1024 }, { - "f32": 9.999999974752427e-07 + "i64": 14336 + }, + { + "i64": 25690112 + }, + { + "i64": 512 + }, + { + "i64": 0 + }, + { + "i64": 0 + }, + { + "i64": 2048 + }, + { + "i64": 0 + }, + { + "i64": 0 } ] }, { - "label": "l22.in_proj", - "kernel": "gemm8_dual", + "label": "l31.attn", + "kernel": "attn", "args": [ { - "buf": "qkvz" + "buf": "attn_out" }, { - "buf": "ba" + "buf": "q_n" }, { - "buf": "x" + "state": "kv", + "offset": 22478848 }, { - "buf": "model.layers.22.linear_attn.in_proj_qkvz.weight" + "state": "kv", + "offset": 22479360 }, { - "buf": "model.layers.22.linear_attn.in_proj_ba.weight" + "buf": "block_table" }, { - "sym": "tokens" + "buf": "seq_lens" }, { - "i32": 16384 + "f32": 0.0625 }, { - "i32": 96 + "buf": "kv_scales" }, { - "i32": 5120 - } - ] - }, - { - "label": "l22.conv_update", - "kernel": "conv_update_spec", - "args": [ + "buf": "kv_scales", + "offset": 4 + }, { - "buf": "qkvz" + "f32": 1.0 }, { - "buf": "model.layers.22.linear_attn.conv1d.weight" + "f32": 0.0 }, { - "state": "gdn" + "i64": 8 }, { - "buf": "gdn.spec_line_index", - "offset": 72 + "i64": 6144 }, { - "buf": "gdn.one" + "i64": 256 }, { - "buf": "cu_seqlens_q" + "i64": 6144 }, { - "buf": "qkvz" + "i64": 256 }, { - "i32": 1 + "i64": 0 }, { - "i32": 385 + "buf": "seq_lens" }, { - "i64": 16384 + "i64": 25690112 }, { - "i64": 16384 + "i64": 2048 + }, + { + "i64": 512 + }, + { + "i64": 25690112 + }, + { + "i64": 2048 + }, + { + "i64": 512 + }, + { + "buf": "cu_seqlens_q" + }, + { + "i32": 1 }, { "i64": 0 @@ -56593,251 +55758,236 @@ ] }, { - "label": "l22.post_conv", - "kernel": "post_conv", + "label": "l31.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "qkvz" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "attn_out" }, { - "buf": "ba" + "buf": "qkv", + "offset": 512 }, { - "buf": "model.layers.22.linear_attn.A_log" + "buf": "model.layers.31.self_attn.o_proj.weight" }, { - "buf": "model.layers.22.linear_attn.dt_bias" + "buf": "residual" }, { - "buf": "gdn_q" + "buf": "model.layers.31.post_attention_layernorm.weight_p1" }, { - "buf": "gdn_k" + "sym": "tokens" }, { - "buf": "gdn_v" + "i32": 5120 }, { - "buf": "g" + "i32": 6144 }, { - "buf": "beta" + "i32": 256 }, { - "i32": 16384 + "i32": 14336 }, { - "i32": 96 + "i32": 512 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l31.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ { - "i32": 2048 + "buf": "act" }, { - "i32": 2048 + "buf": "x" }, { - "i32": 6144 + "buf": "model.layers.31.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l22.a_copy", - "kernel": "copy_rows", + "label": "l31.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.31.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l22.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.32.input_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l22.recurrent", - "kernel": "recurrent_spec", + "label": "l32.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.22.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.22.linear_attn.dt_bias" + "buf": "model.layers.32.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.32.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l32.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.32.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 100 }, { - "buf": "gdn.spec_slots", - "offset": 544 + "buf": "gdn.one" }, { - "buf": "gdn.one" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 768 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.32.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.32.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l22.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.32.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l22.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.22.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l22.out_norm", + "label": "l32.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -56847,13 +55997,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.22.linear_attn.out_proj.weight" + "buf": "model.layers.32.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.22.post_attention_layernorm.weight_p1" + "buf": "model.layers.32.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -56870,7 +56020,7 @@ ] }, { - "label": "l22.gate_up_silu", + "label": "l32.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -56880,7 +56030,7 @@ "buf": "x" }, { - "buf": "model.layers.22.mlp.gate_up_proj.weight" + "buf": "model.layers.32.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -56894,7 +56044,7 @@ ] }, { - "label": "l22.down_norm", + "label": "l32.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -56904,13 +56054,13 @@ "buf": "act" }, { - "buf": "model.layers.22.mlp.down_proj.weight" + "buf": "model.layers.32.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.23.input_layernorm.weight_p1" + "buf": "model.layers.33.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -56927,23 +56077,32 @@ ] }, { - "label": "l23.qkv_proj", - "kernel": "gemm", + "label": "l33.in_proj", + "kernel": "gemm8_dual", "args": [ + { + "buf": "qkvz" + }, + { + "buf": "ba" + }, { "buf": "x" }, { - "buf": "model.layers.23.self_attn.qkv_proj.weight" + "buf": "model.layers.33.linear_attn.in_proj_qkvz.weight" }, { - "buf": "qkv" + "buf": "model.layers.33.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" }, { - "i32": 14336 + "i32": 16384 + }, + { + "i32": 96 }, { "i32": 5120 @@ -56951,298 +56110,332 @@ ] }, { - "label": "l23.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l33.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "q_n" + "buf": "qkvz" }, { - "buf": "qkv" + "buf": "model.layers.33.linear_attn.conv1d.weight" }, { - "buf": "model.layers.23.self_attn.q_norm.weight_p1" + "state": "gdn" }, { - "i32": 256 + "state": "gdn", + "offset": 204800 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } + "buf": "gdn.spec_line_index", + "offset": 104 }, { - "i32": 24 + "buf": "gdn.one" }, { - "i32": 14336 + "buf": "cu_seqlens_q" }, { - "i32": 512 + "buf": "gdn.spec_slots", + "offset": 800 }, { - "i32": 6144 + "buf": "ba" }, { - "i32": 256 + "buf": "model.layers.33.linear_attn.A_log" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l23.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" + "buf": "model.layers.33.linear_attn.dt_bias" }, { - "buf": "qkv", - "offset": 24576 + "buf": "core_attn_out" }, { - "buf": "model.layers.23.self_attn.k_norm.weight_p1" + "buf": "model.layers.33.linear_attn.norm.weight" }, { - "i32": 256 + "buf": "gdn_q" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } + "buf": "gdn_k" }, { - "i32": 4 + "buf": "gdn_v" }, { - "i32": 14336 + "buf": "g" }, { - "i32": 256 + "buf": "beta" }, { - "i32": 1024 + "buf": "a_c" }, { - "i32": 256 + "buf": "b_c" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l23.rope", - "kernel": "mrope", - "args": [ + "buf": "z_c" + }, { - "buf": "q_n" + "f32": 0.0883883461356163 }, { - "buf": "k_n" + "f32": 9.999999974752427e-07 }, { - "buf": "cos_g" + "sym": "tokens" }, { - "buf": "sin_g" + "i32": 385 }, { - "i32": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l23.kv_write", - "kernel": "reshape_and_cache", + "label": "l33.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 + "buf": "x" }, { - "state": "kv", - "offset": 16056320 + "buf": "core_attn_out" }, { - "state": "kv", - "offset": 16056832 + "buf": "model.layers.33.linear_attn.out_proj.weight" }, { - "buf": "slot_mapping" + "buf": "residual" }, { - "buf": "kv_scales" + "buf": "model.layers.33.post_attention_layernorm.weight_p1" }, { - "buf": "kv_scales", - "offset": 4 + "sym": "tokens" }, { - "i64": 1024 + "i32": 5120 }, { - "i64": 14336 + "i32": 6144 }, { - "i64": 25690112 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l33.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ { - "i64": 512 + "buf": "act" }, { - "i64": 0 + "buf": "x" }, { - "i64": 0 + "buf": "model.layers.33.mlp.gate_up_proj.weight" }, { - "i64": 2048 + "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l23.attn", - "kernel": "attn", + "label": "l33.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "attn_out" - }, - { - "buf": "q_n" - }, - { - "state": "kv", - "offset": 16056320 + "buf": "x" }, { - "state": "kv", - "offset": 16056832 + "buf": "act" }, { - "buf": "block_table" + "buf": "model.layers.33.mlp.down_proj.weight" }, { - "buf": "seq_lens" + "buf": "residual" }, { - "f32": 0.0625 + "buf": "model.layers.34.input_layernorm.weight_p1" }, { - "buf": "kv_scales" + "sym": "tokens" }, { - "buf": "kv_scales", - "offset": 4 + "i32": 5120 }, { - "f32": 1.0 + "i32": 17408 }, { - "f32": 0.0 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l34.in_proj", + "kernel": "gemm8_dual", + "args": [ { - "i64": 8 + "buf": "qkvz" }, { - "i64": 6144 + "buf": "ba" }, { - "i64": 256 + "buf": "x" }, { - "i64": 6144 + "buf": "model.layers.34.linear_attn.in_proj_qkvz.weight" }, { - "i64": 256 + "buf": "model.layers.34.linear_attn.in_proj_ba.weight" }, { - "i64": 0 + "sym": "tokens" }, { - "buf": "seq_lens" + "i32": 16384 }, { - "i64": 25690112 + "i32": 96 }, { - "i64": 2048 + "i32": 5120 + } + ] + }, + { + "label": "l34.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "i64": 512 + "buf": "model.layers.34.linear_attn.conv1d.weight" }, { - "i64": 25690112 + "state": "gdn" }, { - "i64": 2048 + "state": "gdn", + "offset": 204800 }, { - "i64": 512 + "buf": "gdn.spec_line_index", + "offset": 108 + }, + { + "buf": "gdn.one" }, { "buf": "cu_seqlens_q" }, { - "i32": 1 + "buf": "gdn.spec_slots", + "offset": 832 }, { - "i64": 0 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.34.linear_attn.A_log" + }, + { + "buf": "model.layers.34.linear_attn.dt_bias" + }, + { + "buf": "core_attn_out" + }, + { + "buf": "model.layers.34.linear_attn.norm.weight" + }, + { + "buf": "gdn_q" + }, + { + "buf": "gdn_k" + }, + { + "buf": "gdn_v" + }, + { + "buf": "g" + }, + { + "buf": "beta" + }, + { + "buf": "a_c" + }, + { + "buf": "b_c" + }, + { + "buf": "z_c" + }, + { + "f32": 0.0883883461356163 + }, + { + "f32": 9.999999974752427e-07 + }, + { + "sym": "tokens" + }, + { + "i32": 385 + }, + { + "i32": 1703936 + }, + { + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l23.o_norm", - "kernel": "gemm8_sgate_add_norm", + "label": "l34.out_norm", + "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 + "buf": "core_attn_out" }, { - "buf": "model.layers.23.self_attn.o_proj.weight" + "buf": "model.layers.34.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.23.post_attention_layernorm.weight_p1" + "buf": "model.layers.34.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -57253,22 +56446,13 @@ { "i32": 6144 }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l23.gate_up_silu", + "label": "l34.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -57278,7 +56462,7 @@ "buf": "x" }, { - "buf": "model.layers.23.mlp.gate_up_proj.weight" + "buf": "model.layers.34.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -57292,7 +56476,7 @@ ] }, { - "label": "l23.down_norm", + "label": "l34.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -57302,13 +56486,13 @@ "buf": "act" }, { - "buf": "model.layers.23.mlp.down_proj.weight" + "buf": "model.layers.34.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.24.input_layernorm.weight_p1" + "buf": "model.layers.35.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -57325,32 +56509,23 @@ ] }, { - "label": "l24.in_proj", - "kernel": "gemm8_dual", + "label": "l35.qkv_proj", + "kernel": "gemm", "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, { "buf": "x" }, { - "buf": "model.layers.24.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.35.self_attn.qkv_proj.weight" }, { - "buf": "model.layers.24.linear_attn.in_proj_ba.weight" + "buf": "qkv" }, { "sym": "tokens" }, { - "i32": 16384 - }, - { - "i32": 96 + "i32": 14336 }, { "i32": 5120 @@ -57358,106 +56533,116 @@ ] }, { - "label": "l24.conv_update", - "kernel": "conv_update_spec", + "label": "l35.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "model.layers.24.linear_attn.conv1d.weight" - }, - { - "state": "gdn" + "buf": "q_n" }, { - "buf": "gdn.spec_line_index", - "offset": 76 + "buf": "qkv" }, { - "buf": "gdn.one" + "buf": "model.layers.35.self_attn.q_norm.weight_p1" }, { - "buf": "cu_seqlens_q" + "i32": 256 }, { - "buf": "qkvz" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i32": 1 + "i32": 24 }, { - "i32": 385 + "i32": 14336 }, { - "i64": 16384 + "i32": 512 }, { - "i64": 16384 + "i32": 6144 }, { - "i64": 0 + "i32": 256 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l24.post_conv", - "kernel": "post_conv", + "label": "l35.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 + "buf": "k_n" }, { - "buf": "ba" + "buf": "qkv", + "offset": 24576 }, { - "buf": "model.layers.24.linear_attn.A_log" + "buf": "model.layers.35.self_attn.k_norm.weight_p1" }, { - "buf": "model.layers.24.linear_attn.dt_bias" + "i32": 256 }, { - "buf": "gdn_q" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { - "buf": "gdn_k" + "i32": 4 }, { - "buf": "gdn_v" + "i32": 14336 }, { - "buf": "g" + "i32": 256 }, { - "buf": "beta" + "i32": 1024 }, { - "i32": 16384 + "i32": 256 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l35.rope", + "kernel": "mrope", + "args": [ { - "i32": 96 + "buf": "q_n" }, { - "i32": 2048 + "buf": "k_n" }, { - "i32": 2048 + "buf": "cos_g" }, { - "i32": 6144 + "buf": "sin_g" }, { - "sym": "tokens" + "i32": 0 }, { "i64": 0 @@ -57468,176 +56653,147 @@ ] }, { - "label": "l24.a_copy", - "kernel": "copy_rows", + "label": "l35.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "a_c" + "buf": "k_n" }, { - "buf": "ba", - "offset": 96 + "buf": "qkv", + "offset": 26624 }, { - "i32": 48 + "state": "kv", + "offset": 25690112 }, { - "i32": 96 + "state": "kv", + "offset": 25690624 }, { - "i32": 48 - } - ] - }, - { - "label": "l24.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "slot_mapping" }, { - "buf": "ba" + "buf": "kv_scales" }, { - "i32": 48 + "buf": "kv_scales", + "offset": 4 }, { - "i32": 96 + "i64": 1024 }, { - "i32": 48 - } - ] - }, - { - "label": "l24.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.24.linear_attn.A_log" + "i64": 14336 }, { - "buf": "a_c" + "i64": 25690112 }, { - "buf": "b_c" + "i64": 512 }, { - "buf": "model.layers.24.linear_attn.dt_bias" + "i64": 0 }, { - "f32": 1.0 + "i64": 0 }, { - "f32": 20.0 + "i64": 2048 }, { - "buf": "gdn_q" + "i64": 0 }, { - "buf": "gdn_k" - }, + "i64": 0 + } + ] + }, + { + "label": "l35.attn", + "kernel": "attn", + "args": [ { - "buf": "gdn_v" + "buf": "attn_out" }, { - "buf": "core_attn_out" + "buf": "q_n" }, { - "state": "gdn", - "offset": 204800 + "state": "kv", + "offset": 25690112 }, { - "state": "gdn", - "offset": 204800 + "state": "kv", + "offset": 25690624 }, { - "buf": "cu_seqlens_q" + "buf": "block_table" }, { - "buf": "gdn.spec_slots", - "offset": 576 + "buf": "seq_lens" }, { - "buf": "gdn.one" + "f32": 0.0625 }, { - "f32": 0.0883883461356163 + "buf": "kv_scales" }, { - "i64": 1 + "buf": "kv_scales", + "offset": 4 }, { - "sym": "tokens" + "f32": 1.0 }, { - "i64": 0 + "f32": 0.0 }, { - "i64": 0 - } - ] - }, - { - "label": "l24.z_copy", - "kernel": "copy_rows", - "args": [ + "i64": 8 + }, { - "buf": "z_c" + "i64": 6144 }, { - "buf": "qkvz", - "offset": 20480 + "i64": 256 }, { - "i32": 6144 + "i64": 6144 }, { - "i32": 16384 + "i64": 256 }, { - "i32": 6144 - } - ] - }, - { - "label": "l24.gated_norm", - "kernel": "gated_norm", - "args": [ + "i64": 0 + }, { - "buf": "core_attn_out" + "buf": "seq_lens" }, { - "buf": "core_attn_out" + "i64": 25690112 }, { - "buf": "model.layers.24.linear_attn.norm.weight" + "i64": 2048 }, { - "buf": "z_c" + "i64": 512 }, { - "i32": 128 + "i64": 25690112 }, { - "i32": 128 + "i64": 2048 }, { - "i32": 128 + "i64": 512 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "cu_seqlens_q" }, { - "f32": 9.999999974752427e-07 + "i32": 1 }, { "i64": 0 @@ -57648,23 +56804,27 @@ ] }, { - "label": "l24.out_norm", - "kernel": "gemm8_add_norm", + "label": "l35.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { "buf": "x" }, { - "buf": "core_attn_out" + "buf": "attn_out" }, { - "buf": "model.layers.24.linear_attn.out_proj.weight" + "buf": "qkv", + "offset": 512 + }, + { + "buf": "model.layers.35.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.24.post_attention_layernorm.weight_p1" + "buf": "model.layers.35.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -57675,13 +56835,22 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l24.gate_up_silu", + "label": "l35.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -57691,7 +56860,7 @@ "buf": "x" }, { - "buf": "model.layers.24.mlp.gate_up_proj.weight" + "buf": "model.layers.35.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -57705,7 +56874,7 @@ ] }, { - "label": "l24.down_norm", + "label": "l35.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -57715,13 +56884,13 @@ "buf": "act" }, { - "buf": "model.layers.24.mlp.down_proj.weight" + "buf": "model.layers.35.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.25.input_layernorm.weight_p1" + "buf": "model.layers.36.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -57738,7 +56907,7 @@ ] }, { - "label": "l25.in_proj", + "label": "l36.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -57751,10 +56920,10 @@ "buf": "x" }, { - "buf": "model.layers.25.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.36.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.25.linear_attn.in_proj_ba.weight" + "buf": "model.layers.36.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -57771,21 +56940,25 @@ ] }, { - "label": "l25.conv_update", - "kernel": "conv_update_spec", + "label": "l36.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.25.linear_attn.conv1d.weight" + "buf": "model.layers.36.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 80 + "offset": 112 }, { "buf": "gdn.one" @@ -57794,47 +56967,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 864 }, { - "i64": 0 - } - ] - }, - { - "label": "l25.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.36.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.36.linear_attn.dt_bias" }, { - "buf": "model.layers.25.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.25.linear_attn.dt_bias" + "buf": "model.layers.36.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -57852,289 +57001,271 @@ "buf": "beta" }, { - "i32": 16384 + "buf": "a_c" }, { - "i32": 96 + "buf": "b_c" }, { - "i32": 96 + "buf": "z_c" }, { - "i32": 2048 + "f32": 0.0883883461356163 }, { - "i32": 2048 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 385 }, { - "i64": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l25.a_copy", - "kernel": "copy_rows", + "label": "l36.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.36.linear_attn.out_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l25.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.36.post_attention_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 6144 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l25.recurrent", - "kernel": "recurrent_spec", + "label": "l36.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "model.layers.25.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" + "buf": "act" }, { - "buf": "model.layers.25.linear_attn.dt_bias" + "buf": "x" }, { - "f32": 1.0 + "buf": "model.layers.36.mlp.gate_up_proj.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 17408 }, { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, + "i32": 5120 + } + ] + }, + { + "label": "l36.down_norm", + "kernel": "gemm8_add_norm", + "args": [ { - "state": "gdn", - "offset": 204800 + "buf": "x" }, { - "buf": "cu_seqlens_q" + "buf": "act" }, { - "buf": "gdn.spec_slots", - "offset": 608 + "buf": "model.layers.36.mlp.down_proj.weight" }, { - "buf": "gdn.one" + "buf": "residual" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.37.input_layernorm.weight_p1" }, { - "i64": 1 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 5120 }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l25.z_copy", - "kernel": "copy_rows", + "label": "l37.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "z_c" + "buf": "qkvz" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "ba" }, { - "i32": 6144 + "buf": "x" + }, + { + "buf": "model.layers.37.linear_attn.in_proj_qkvz.weight" + }, + { + "buf": "model.layers.37.linear_attn.in_proj_ba.weight" + }, + { + "sym": "tokens" }, { "i32": 16384 }, { - "i32": 6144 + "i32": 96 + }, + { + "i32": 5120 } ] }, { - "label": "l25.gated_norm", - "kernel": "gated_norm", + "label": "l37.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "core_attn_out" + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.37.linear_attn.conv1d.weight" }, { - "buf": "model.layers.25.linear_attn.norm.weight" + "state": "gdn" }, { - "buf": "z_c" + "state": "gdn", + "offset": 204800 }, { - "i32": 128 + "buf": "gdn.spec_line_index", + "offset": 116 }, { - "i32": 128 + "buf": "gdn.one" }, { - "i32": 128 + "buf": "cu_seqlens_q" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "gdn.spec_slots", + "offset": 896 }, { - "f32": 9.999999974752427e-07 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.37.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l25.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" + "buf": "model.layers.37.linear_attn.dt_bias" }, { "buf": "core_attn_out" }, { - "buf": "model.layers.25.linear_attn.out_proj.weight" + "buf": "model.layers.37.linear_attn.norm.weight" }, { - "buf": "residual" + "buf": "gdn_q" }, { - "buf": "model.layers.25.post_attention_layernorm.weight_p1" + "buf": "gdn_k" }, { - "sym": "tokens" + "buf": "gdn_v" }, { - "i32": 5120 + "buf": "g" }, { - "i32": 6144 + "buf": "beta" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l25.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ + "buf": "a_c" + }, { - "buf": "act" + "buf": "b_c" }, { - "buf": "x" + "buf": "z_c" }, { - "buf": "model.layers.25.mlp.gate_up_proj.weight" + "f32": 0.0883883461356163 + }, + { + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i32": 17408 + "i32": 385 }, { - "i32": 5120 + "i32": 1703936 + }, + { + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l25.down_norm", + "label": "l37.out_norm", "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "act" + "buf": "core_attn_out" }, { - "buf": "model.layers.25.mlp.down_proj.weight" + "buf": "model.layers.37.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.26.input_layernorm.weight_p1" + "buf": "model.layers.37.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -58143,7 +57274,7 @@ "i32": 5120 }, { - "i32": 17408 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -58151,32 +57282,23 @@ ] }, { - "label": "l26.in_proj", - "kernel": "gemm8_dual", + "label": "l37.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba" + "buf": "act" }, { "buf": "x" }, { - "buf": "model.layers.26.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.26.linear_attn.in_proj_ba.weight" + "buf": "model.layers.37.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i32": 16384 - }, - { - "i32": 96 + "i32": 17408 }, { "i32": 5120 @@ -58184,85 +57306,59 @@ ] }, { - "label": "l26.conv_update", - "kernel": "conv_update_spec", + "label": "l37.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "qkvz" - }, - { - "buf": "model.layers.26.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 84 - }, - { - "buf": "gdn.one" + "buf": "x" }, { - "buf": "cu_seqlens_q" + "buf": "act" }, { - "buf": "qkvz" + "buf": "model.layers.37.mlp.down_proj.weight" }, { - "i32": 1 + "buf": "residual" }, { - "i32": 385 + "buf": "model.layers.38.input_layernorm.weight_p1" }, { - "i64": 16384 + "sym": "tokens" }, { - "i64": 16384 + "i32": 5120 }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l26.post_conv", - "kernel": "post_conv", + "label": "l38.in_proj", + "kernel": "gemm8_dual", "args": [ { "buf": "qkvz" }, - { - "buf": "ba", - "offset": 96 - }, { "buf": "ba" }, { - "buf": "model.layers.26.linear_attn.A_log" - }, - { - "buf": "model.layers.26.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" + "buf": "x" }, { - "buf": "gdn_v" + "buf": "model.layers.38.linear_attn.in_proj_qkvz.weight" }, { - "buf": "g" + "buf": "model.layers.38.linear_attn.in_proj_ba.weight" }, { - "buf": "beta" + "sym": "tokens" }, { "i32": 16384 @@ -58271,92 +57367,55 @@ "i32": 96 }, { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l26.a_copy", - "kernel": "copy_rows", + "label": "l38.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 + "buf": "qkvz" }, { - "i32": 48 + "buf": "model.layers.38.linear_attn.conv1d.weight" }, { - "i32": 96 + "state": "gdn" }, { - "i32": 48 - } - ] - }, - { - "label": "l26.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "state": "gdn", + "offset": 204800 }, { - "buf": "ba" + "buf": "gdn.spec_line_index", + "offset": 120 }, { - "i32": 48 + "buf": "gdn.one" }, { - "i32": 96 + "buf": "cu_seqlens_q" }, { - "i32": 48 - } - ] - }, - { - "label": "l26.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.26.linear_attn.A_log" + "buf": "gdn.spec_slots", + "offset": 928 }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "model.layers.38.linear_attn.A_log" }, { - "buf": "model.layers.26.linear_attn.dt_bias" + "buf": "model.layers.38.linear_attn.dt_bias" }, { - "f32": 1.0 + "buf": "core_attn_out" }, { - "f32": 20.0 + "buf": "model.layers.38.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -58368,113 +57427,45 @@ "buf": "gdn_v" }, { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 + "buf": "g" }, { - "state": "gdn", - "offset": 204800 + "buf": "beta" }, { - "buf": "cu_seqlens_q" + "buf": "a_c" }, { - "buf": "gdn.spec_slots", - "offset": 640 + "buf": "b_c" }, { - "buf": "gdn.one" + "buf": "z_c" }, { "f32": 0.0883883461356163 }, { - "i64": 1 + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l26.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l26.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.26.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l26.out_norm", + "label": "l38.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -58484,13 +57475,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.26.linear_attn.out_proj.weight" + "buf": "model.layers.38.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.26.post_attention_layernorm.weight_p1" + "buf": "model.layers.38.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -58507,7 +57498,7 @@ ] }, { - "label": "l26.gate_up_silu", + "label": "l38.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -58517,7 +57508,7 @@ "buf": "x" }, { - "buf": "model.layers.26.mlp.gate_up_proj.weight" + "buf": "model.layers.38.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -58531,7 +57522,7 @@ ] }, { - "label": "l26.down_norm", + "label": "l38.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -58541,13 +57532,13 @@ "buf": "act" }, { - "buf": "model.layers.26.mlp.down_proj.weight" + "buf": "model.layers.38.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.27.input_layernorm.weight_p1" + "buf": "model.layers.39.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -58564,14 +57555,14 @@ ] }, { - "label": "l27.qkv_proj", + "label": "l39.qkv_proj", "kernel": "gemm", "args": [ { "buf": "x" }, { - "buf": "model.layers.27.self_attn.qkv_proj.weight" + "buf": "model.layers.39.self_attn.qkv_proj.weight" }, { "buf": "qkv" @@ -58588,7 +57579,7 @@ ] }, { - "label": "l27.q_norm", + "label": "l39.q_norm", "kernel": "gemma_norm_qhead", "args": [ { @@ -58598,7 +57589,7 @@ "buf": "qkv" }, { - "buf": "model.layers.27.self_attn.q_norm.weight_p1" + "buf": "model.layers.39.self_attn.q_norm.weight_p1" }, { "i32": 256 @@ -58634,7 +57625,7 @@ ] }, { - "label": "l27.k_norm", + "label": "l39.k_norm", "kernel": "gemma_norm_khead", "args": [ { @@ -58645,7 +57636,7 @@ "offset": 24576 }, { - "buf": "model.layers.27.self_attn.k_norm.weight_p1" + "buf": "model.layers.39.self_attn.k_norm.weight_p1" }, { "i32": 256 @@ -58681,7 +57672,7 @@ ] }, { - "label": "l27.rope", + "label": "l39.rope", "kernel": "mrope", "args": [ { @@ -58708,7 +57699,7 @@ ] }, { - "label": "l27.kv_write", + "label": "l39.kv_write", "kernel": "reshape_and_cache", "args": [ { @@ -58720,11 +57711,11 @@ }, { "state": "kv", - "offset": 19267584 + "offset": 28901376 }, { "state": "kv", - "offset": 19268096 + "offset": 28901888 }, { "buf": "slot_mapping" @@ -58766,7 +57757,7 @@ ] }, { - "label": "l27.attn", + "label": "l39.attn", "kernel": "attn", "args": [ { @@ -58777,11 +57768,11 @@ }, { "state": "kv", - "offset": 19267584 + "offset": 28901376 }, { "state": "kv", - "offset": 19268096 + "offset": 28901888 }, { "buf": "block_table" @@ -58859,7 +57850,7 @@ ] }, { - "label": "l27.o_norm", + "label": "l39.o_norm", "kernel": "gemm8_sgate_add_norm", "args": [ { @@ -58873,13 +57864,13 @@ "offset": 512 }, { - "buf": "model.layers.27.self_attn.o_proj.weight" + "buf": "model.layers.39.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.27.post_attention_layernorm.weight_p1" + "buf": "model.layers.39.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -58905,7 +57896,7 @@ ] }, { - "label": "l27.gate_up_silu", + "label": "l39.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -58915,7 +57906,7 @@ "buf": "x" }, { - "buf": "model.layers.27.mlp.gate_up_proj.weight" + "buf": "model.layers.39.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -58929,7 +57920,7 @@ ] }, { - "label": "l27.down_norm", + "label": "l39.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -58939,13 +57930,13 @@ "buf": "act" }, { - "buf": "model.layers.27.mlp.down_proj.weight" + "buf": "model.layers.39.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.28.input_layernorm.weight_p1" + "buf": "model.layers.40.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -58962,7 +57953,7 @@ ] }, { - "label": "l28.in_proj", + "label": "l40.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -58975,10 +57966,10 @@ "buf": "x" }, { - "buf": "model.layers.28.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.40.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.28.linear_attn.in_proj_ba.weight" + "buf": "model.layers.40.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -58995,21 +57986,25 @@ ] }, { - "label": "l28.conv_update", - "kernel": "conv_update_spec", + "label": "l40.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.28.linear_attn.conv1d.weight" + "buf": "model.layers.40.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 88 + "offset": 124 }, { "buf": "gdn.one" @@ -59018,274 +58013,289 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 960 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.40.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.40.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.40.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l28.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.28.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.28.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l40.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" }, { - "i32": 6144 + "buf": "model.layers.40.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.40.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l28.a_copy", - "kernel": "copy_rows", + "label": "l40.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" + }, + { + "buf": "model.layers.40.mlp.gate_up_proj.weight" }, { - "i32": 48 + "sym": "tokens" }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l28.b_copy", - "kernel": "copy_rows", + "label": "l40.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.40.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" + }, + { + "buf": "model.layers.41.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l28.recurrent", - "kernel": "recurrent_spec", + "label": "l41.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.28.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.28.linear_attn.dt_bias" + "buf": "model.layers.41.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.41.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l41.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.41.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 128 }, { - "buf": "gdn.spec_slots", - "offset": 672 + "buf": "gdn.one" }, { - "buf": "gdn.one" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 992 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.41.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.41.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l28.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.41.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l28.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.28.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l28.out_norm", + "label": "l41.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -59295,13 +58305,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.28.linear_attn.out_proj.weight" + "buf": "model.layers.41.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.28.post_attention_layernorm.weight_p1" + "buf": "model.layers.41.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -59318,7 +58328,7 @@ ] }, { - "label": "l28.gate_up_silu", + "label": "l41.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -59328,7 +58338,7 @@ "buf": "x" }, { - "buf": "model.layers.28.mlp.gate_up_proj.weight" + "buf": "model.layers.41.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -59342,7 +58352,7 @@ ] }, { - "label": "l28.down_norm", + "label": "l41.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -59352,13 +58362,13 @@ "buf": "act" }, { - "buf": "model.layers.28.mlp.down_proj.weight" + "buf": "model.layers.41.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.29.input_layernorm.weight_p1" + "buf": "model.layers.42.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -59375,7 +58385,7 @@ ] }, { - "label": "l29.in_proj", + "label": "l42.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -59388,10 +58398,10 @@ "buf": "x" }, { - "buf": "model.layers.29.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.42.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.29.linear_attn.in_proj_ba.weight" + "buf": "model.layers.42.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -59408,21 +58418,25 @@ ] }, { - "label": "l29.conv_update", - "kernel": "conv_update_spec", + "label": "l42.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.29.linear_attn.conv1d.weight" + "buf": "model.layers.42.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 92 + "offset": 132 }, { "buf": "gdn.one" @@ -59431,47 +58445,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 1024 }, { - "i64": 0 - } - ] - }, - { - "label": "l29.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.42.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.42.linear_attn.dt_bias" }, { - "buf": "model.layers.29.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.29.linear_attn.dt_bias" + "buf": "model.layers.42.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -59489,192 +58479,166 @@ "buf": "beta" }, { - "i32": 16384 + "buf": "a_c" }, { - "i32": 96 + "buf": "b_c" }, { - "i32": 96 + "buf": "z_c" }, { - "i32": 2048 + "f32": 0.0883883461356163 }, { - "i32": 2048 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 385 }, { - "i64": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l29.a_copy", - "kernel": "copy_rows", + "label": "l42.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.42.linear_attn.out_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l29.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.42.post_attention_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 6144 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l29.recurrent", - "kernel": "recurrent_spec", + "label": "l42.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "model.layers.29.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.29.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 + "buf": "act" }, { - "buf": "gdn_q" + "buf": "x" }, { - "buf": "gdn_k" + "buf": "model.layers.42.mlp.gate_up_proj.weight" }, { - "buf": "gdn_v" + "sym": "tokens" }, { - "buf": "core_attn_out" + "i32": 17408 }, { - "state": "gdn", - "offset": 204800 - }, + "i32": 5120 + } + ] + }, + { + "label": "l42.down_norm", + "kernel": "gemm8_add_norm", + "args": [ { - "state": "gdn", - "offset": 204800 + "buf": "x" }, { - "buf": "cu_seqlens_q" + "buf": "act" }, { - "buf": "gdn.spec_slots", - "offset": 704 + "buf": "model.layers.42.mlp.down_proj.weight" }, { - "buf": "gdn.one" + "buf": "residual" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.43.input_layernorm.weight_p1" }, { - "i64": 1 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 5120 }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l29.z_copy", - "kernel": "copy_rows", + "label": "l43.qkv_proj", + "kernel": "gemm", "args": [ { - "buf": "z_c" + "buf": "x" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "model.layers.43.self_attn.qkv_proj.weight" }, { - "i32": 6144 + "buf": "qkv" }, { - "i32": 16384 + "sym": "tokens" }, { - "i32": 6144 + "i32": 14336 + }, + { + "i32": 5120 } ] }, { - "label": "l29.gated_norm", - "kernel": "gated_norm", + "label": "l43.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.29.linear_attn.norm.weight" - }, - { - "buf": "z_c" + "buf": "q_n" }, { - "i32": 128 + "buf": "qkv" }, { - "i32": 128 + "buf": "model.layers.43.self_attn.q_norm.weight_p1" }, { - "i32": 128 + "i32": 256 }, { "expr": { @@ -59682,48 +58646,71 @@ { "sym": "tokens" }, - 48 + 24 ] } }, { - "f32": 9.999999974752427e-07 + "i32": 24 }, { - "i64": 0 + "i32": 14336 }, { - "i64": 0 + "i32": 512 + }, + { + "i32": 6144 + }, + { + "i32": 256 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l29.out_norm", - "kernel": "gemm8_add_norm", + "label": "l43.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "x" + "buf": "k_n" }, { - "buf": "core_attn_out" + "buf": "qkv", + "offset": 24576 }, { - "buf": "model.layers.29.linear_attn.out_proj.weight" + "buf": "model.layers.43.self_attn.k_norm.weight_p1" }, { - "buf": "residual" + "i32": 256 }, { - "buf": "model.layers.29.post_attention_layernorm.weight_p1" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { - "sym": "tokens" + "i32": 4 }, { - "i32": 5120 + "i32": 14336 }, { - "i32": 6144 + "i32": 256 + }, + { + "i32": 1024 + }, + { + "i32": 256 }, { "f32": 9.999999974752427e-07 @@ -59731,132 +58718,174 @@ ] }, { - "label": "l29.gate_up_silu", - "kernel": "gemm8_gateup_silu", + "label": "l43.rope", + "kernel": "mrope", "args": [ { - "buf": "act" + "buf": "q_n" }, { - "buf": "x" + "buf": "k_n" }, { - "buf": "model.layers.29.mlp.gate_up_proj.weight" + "buf": "cos_g" }, { - "sym": "tokens" + "buf": "sin_g" }, { - "i32": 17408 + "i32": 0 }, { - "i32": 5120 + "i64": 0 + }, + { + "i64": 0 } ] }, { - "label": "l29.down_norm", - "kernel": "gemm8_add_norm", + "label": "l43.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "x" + "buf": "k_n" }, { - "buf": "act" + "buf": "qkv", + "offset": 26624 }, { - "buf": "model.layers.29.mlp.down_proj.weight" + "state": "kv", + "offset": 32112640 }, { - "buf": "residual" - }, + "state": "kv", + "offset": 32113152 + }, { - "buf": "model.layers.30.input_layernorm.weight_p1" + "buf": "slot_mapping" }, { - "sym": "tokens" + "buf": "kv_scales" }, { - "i32": 5120 + "buf": "kv_scales", + "offset": 4 }, { - "i32": 17408 + "i64": 1024 }, { - "f32": 9.999999974752427e-07 + "i64": 14336 + }, + { + "i64": 25690112 + }, + { + "i64": 512 + }, + { + "i64": 0 + }, + { + "i64": 0 + }, + { + "i64": 2048 + }, + { + "i64": 0 + }, + { + "i64": 0 } ] }, { - "label": "l30.in_proj", - "kernel": "gemm8_dual", + "label": "l43.attn", + "kernel": "attn", "args": [ { - "buf": "qkvz" + "buf": "attn_out" }, { - "buf": "ba" + "buf": "q_n" }, { - "buf": "x" + "state": "kv", + "offset": 32112640 }, { - "buf": "model.layers.30.linear_attn.in_proj_qkvz.weight" + "state": "kv", + "offset": 32113152 }, { - "buf": "model.layers.30.linear_attn.in_proj_ba.weight" + "buf": "block_table" }, { - "sym": "tokens" + "buf": "seq_lens" }, { - "i32": 16384 + "f32": 0.0625 }, { - "i32": 96 + "buf": "kv_scales" }, { - "i32": 5120 - } - ] - }, - { - "label": "l30.conv_update", - "kernel": "conv_update_spec", - "args": [ + "buf": "kv_scales", + "offset": 4 + }, { - "buf": "qkvz" + "f32": 1.0 }, { - "buf": "model.layers.30.linear_attn.conv1d.weight" + "f32": 0.0 }, { - "state": "gdn" + "i64": 8 }, { - "buf": "gdn.spec_line_index", - "offset": 96 + "i64": 6144 }, { - "buf": "gdn.one" + "i64": 256 }, { - "buf": "cu_seqlens_q" + "i64": 6144 }, { - "buf": "qkvz" + "i64": 256 }, { - "i32": 1 + "i64": 0 }, { - "i32": 385 + "buf": "seq_lens" }, { - "i64": 16384 + "i64": 25690112 }, { - "i64": 16384 + "i64": 2048 + }, + { + "i64": 512 + }, + { + "i64": 25690112 + }, + { + "i64": 2048 + }, + { + "i64": 512 + }, + { + "buf": "cu_seqlens_q" + }, + { + "i32": 1 }, { "i64": 0 @@ -59867,251 +58896,236 @@ ] }, { - "label": "l30.post_conv", - "kernel": "post_conv", + "label": "l43.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "qkvz" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "attn_out" }, { - "buf": "ba" + "buf": "qkv", + "offset": 512 }, { - "buf": "model.layers.30.linear_attn.A_log" + "buf": "model.layers.43.self_attn.o_proj.weight" }, { - "buf": "model.layers.30.linear_attn.dt_bias" + "buf": "residual" }, { - "buf": "gdn_q" + "buf": "model.layers.43.post_attention_layernorm.weight_p1" }, { - "buf": "gdn_k" + "sym": "tokens" }, { - "buf": "gdn_v" + "i32": 5120 }, { - "buf": "g" + "i32": 6144 }, { - "buf": "beta" + "i32": 256 }, { - "i32": 16384 + "i32": 14336 }, { - "i32": 96 + "i32": 512 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l43.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ { - "i32": 2048 + "buf": "act" }, { - "i32": 2048 + "buf": "x" }, { - "i32": 6144 + "buf": "model.layers.43.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l30.a_copy", - "kernel": "copy_rows", + "label": "l43.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.43.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l30.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.44.input_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l30.recurrent", - "kernel": "recurrent_spec", + "label": "l44.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.30.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.30.linear_attn.dt_bias" + "buf": "model.layers.44.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.44.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l44.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.44.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 136 }, { - "buf": "gdn.spec_slots", - "offset": 736 + "buf": "gdn.one" }, { - "buf": "gdn.one" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 1056 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.44.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.44.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l30.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.44.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l30.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.30.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l30.out_norm", + "label": "l44.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -60121,13 +59135,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.30.linear_attn.out_proj.weight" + "buf": "model.layers.44.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.30.post_attention_layernorm.weight_p1" + "buf": "model.layers.44.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -60144,7 +59158,7 @@ ] }, { - "label": "l30.gate_up_silu", + "label": "l44.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -60154,7 +59168,7 @@ "buf": "x" }, { - "buf": "model.layers.30.mlp.gate_up_proj.weight" + "buf": "model.layers.44.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -60168,7 +59182,7 @@ ] }, { - "label": "l30.down_norm", + "label": "l44.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -60178,13 +59192,13 @@ "buf": "act" }, { - "buf": "model.layers.30.mlp.down_proj.weight" + "buf": "model.layers.44.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.31.input_layernorm.weight_p1" + "buf": "model.layers.45.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -60201,23 +59215,32 @@ ] }, { - "label": "l31.qkv_proj", - "kernel": "gemm", + "label": "l45.in_proj", + "kernel": "gemm8_dual", "args": [ + { + "buf": "qkvz" + }, + { + "buf": "ba" + }, { "buf": "x" }, { - "buf": "model.layers.31.self_attn.qkv_proj.weight" + "buf": "model.layers.45.linear_attn.in_proj_qkvz.weight" }, { - "buf": "qkv" + "buf": "model.layers.45.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" }, { - "i32": 14336 + "i32": 16384 + }, + { + "i32": 96 }, { "i32": 5120 @@ -60225,298 +59248,332 @@ ] }, { - "label": "l31.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l45.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "q_n" + "buf": "qkvz" }, { - "buf": "qkv" + "buf": "model.layers.45.linear_attn.conv1d.weight" }, { - "buf": "model.layers.31.self_attn.q_norm.weight_p1" + "state": "gdn" }, { - "i32": 256 + "state": "gdn", + "offset": 204800 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } + "buf": "gdn.spec_line_index", + "offset": 140 }, { - "i32": 24 + "buf": "gdn.one" }, { - "i32": 14336 + "buf": "cu_seqlens_q" }, { - "i32": 512 + "buf": "gdn.spec_slots", + "offset": 1088 }, { - "i32": 6144 + "buf": "ba" }, { - "i32": 256 + "buf": "model.layers.45.linear_attn.A_log" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l31.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" + "buf": "model.layers.45.linear_attn.dt_bias" }, { - "buf": "qkv", - "offset": 24576 + "buf": "core_attn_out" }, { - "buf": "model.layers.31.self_attn.k_norm.weight_p1" + "buf": "model.layers.45.linear_attn.norm.weight" }, { - "i32": 256 + "buf": "gdn_q" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } + "buf": "gdn_k" }, { - "i32": 4 + "buf": "gdn_v" }, { - "i32": 14336 + "buf": "g" }, { - "i32": 256 + "buf": "beta" }, { - "i32": 1024 + "buf": "a_c" }, { - "i32": 256 + "buf": "b_c" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l31.rope", - "kernel": "mrope", - "args": [ + "buf": "z_c" + }, { - "buf": "q_n" + "f32": 0.0883883461356163 }, { - "buf": "k_n" + "f32": 9.999999974752427e-07 }, { - "buf": "cos_g" + "sym": "tokens" }, { - "buf": "sin_g" + "i32": 385 }, { - "i32": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l31.kv_write", - "kernel": "reshape_and_cache", + "label": "l45.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 + "buf": "x" }, { - "state": "kv", - "offset": 22478848 + "buf": "core_attn_out" }, { - "state": "kv", - "offset": 22479360 + "buf": "model.layers.45.linear_attn.out_proj.weight" }, { - "buf": "slot_mapping" + "buf": "residual" }, { - "buf": "kv_scales" + "buf": "model.layers.45.post_attention_layernorm.weight_p1" }, { - "buf": "kv_scales", - "offset": 4 + "sym": "tokens" }, { - "i64": 1024 + "i32": 5120 }, { - "i64": 14336 + "i32": 6144 }, { - "i64": 25690112 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l45.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ { - "i64": 512 + "buf": "act" }, { - "i64": 0 + "buf": "x" }, { - "i64": 0 + "buf": "model.layers.45.mlp.gate_up_proj.weight" }, { - "i64": 2048 + "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l31.attn", - "kernel": "attn", + "label": "l45.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "attn_out" - }, - { - "buf": "q_n" - }, - { - "state": "kv", - "offset": 22478848 + "buf": "x" }, { - "state": "kv", - "offset": 22479360 + "buf": "act" }, { - "buf": "block_table" + "buf": "model.layers.45.mlp.down_proj.weight" }, { - "buf": "seq_lens" + "buf": "residual" }, { - "f32": 0.0625 + "buf": "model.layers.46.input_layernorm.weight_p1" }, { - "buf": "kv_scales" + "sym": "tokens" }, { - "buf": "kv_scales", - "offset": 4 + "i32": 5120 }, { - "f32": 1.0 + "i32": 17408 }, { - "f32": 0.0 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l46.in_proj", + "kernel": "gemm8_dual", + "args": [ { - "i64": 8 + "buf": "qkvz" }, { - "i64": 6144 + "buf": "ba" }, { - "i64": 256 + "buf": "x" }, { - "i64": 6144 + "buf": "model.layers.46.linear_attn.in_proj_qkvz.weight" }, { - "i64": 256 + "buf": "model.layers.46.linear_attn.in_proj_ba.weight" }, { - "i64": 0 + "sym": "tokens" }, { - "buf": "seq_lens" + "i32": 16384 }, { - "i64": 25690112 + "i32": 96 }, { - "i64": 2048 + "i32": 5120 + } + ] + }, + { + "label": "l46.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "i64": 512 + "buf": "model.layers.46.linear_attn.conv1d.weight" }, { - "i64": 25690112 + "state": "gdn" }, { - "i64": 2048 + "state": "gdn", + "offset": 204800 }, { - "i64": 512 + "buf": "gdn.spec_line_index", + "offset": 144 + }, + { + "buf": "gdn.one" }, { "buf": "cu_seqlens_q" }, { - "i32": 1 + "buf": "gdn.spec_slots", + "offset": 1120 }, { - "i64": 0 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.46.linear_attn.A_log" + }, + { + "buf": "model.layers.46.linear_attn.dt_bias" + }, + { + "buf": "core_attn_out" + }, + { + "buf": "model.layers.46.linear_attn.norm.weight" + }, + { + "buf": "gdn_q" + }, + { + "buf": "gdn_k" + }, + { + "buf": "gdn_v" + }, + { + "buf": "g" + }, + { + "buf": "beta" + }, + { + "buf": "a_c" + }, + { + "buf": "b_c" + }, + { + "buf": "z_c" + }, + { + "f32": 0.0883883461356163 + }, + { + "f32": 9.999999974752427e-07 + }, + { + "sym": "tokens" + }, + { + "i32": 385 + }, + { + "i32": 1703936 + }, + { + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l31.o_norm", - "kernel": "gemm8_sgate_add_norm", + "label": "l46.out_norm", + "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 + "buf": "core_attn_out" }, { - "buf": "model.layers.31.self_attn.o_proj.weight" + "buf": "model.layers.46.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.31.post_attention_layernorm.weight_p1" + "buf": "model.layers.46.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -60527,22 +59584,13 @@ { "i32": 6144 }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l31.gate_up_silu", + "label": "l46.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -60552,7 +59600,7 @@ "buf": "x" }, { - "buf": "model.layers.31.mlp.gate_up_proj.weight" + "buf": "model.layers.46.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -60566,7 +59614,7 @@ ] }, { - "label": "l31.down_norm", + "label": "l46.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -60576,13 +59624,13 @@ "buf": "act" }, { - "buf": "model.layers.31.mlp.down_proj.weight" + "buf": "model.layers.46.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.32.input_layernorm.weight_p1" + "buf": "model.layers.47.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -60599,32 +59647,23 @@ ] }, { - "label": "l32.in_proj", - "kernel": "gemm8_dual", + "label": "l47.qkv_proj", + "kernel": "gemm", "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, { "buf": "x" }, { - "buf": "model.layers.32.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.47.self_attn.qkv_proj.weight" }, { - "buf": "model.layers.32.linear_attn.in_proj_ba.weight" + "buf": "qkv" }, { "sym": "tokens" }, { - "i32": 16384 - }, - { - "i32": 96 + "i32": 14336 }, { "i32": 5120 @@ -60632,106 +59671,116 @@ ] }, { - "label": "l32.conv_update", - "kernel": "conv_update_spec", + "label": "l47.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "model.layers.32.linear_attn.conv1d.weight" - }, - { - "state": "gdn" + "buf": "q_n" }, { - "buf": "gdn.spec_line_index", - "offset": 100 + "buf": "qkv" }, { - "buf": "gdn.one" + "buf": "model.layers.47.self_attn.q_norm.weight_p1" }, { - "buf": "cu_seqlens_q" + "i32": 256 }, { - "buf": "qkvz" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i32": 1 + "i32": 24 }, { - "i32": 385 + "i32": 14336 }, { - "i64": 16384 + "i32": 512 }, { - "i64": 16384 + "i32": 6144 }, { - "i64": 0 + "i32": 256 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l32.post_conv", - "kernel": "post_conv", + "label": "l47.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 + "buf": "k_n" }, { - "buf": "ba" + "buf": "qkv", + "offset": 24576 }, { - "buf": "model.layers.32.linear_attn.A_log" + "buf": "model.layers.47.self_attn.k_norm.weight_p1" }, { - "buf": "model.layers.32.linear_attn.dt_bias" + "i32": 256 }, { - "buf": "gdn_q" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { - "buf": "gdn_k" + "i32": 4 }, { - "buf": "gdn_v" + "i32": 14336 }, { - "buf": "g" + "i32": 256 }, { - "buf": "beta" + "i32": 1024 }, { - "i32": 16384 + "i32": 256 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l47.rope", + "kernel": "mrope", + "args": [ { - "i32": 96 + "buf": "q_n" }, { - "i32": 2048 + "buf": "k_n" }, { - "i32": 2048 + "buf": "cos_g" }, { - "i32": 6144 + "buf": "sin_g" }, { - "sym": "tokens" + "i32": 0 }, { "i64": 0 @@ -60742,176 +59791,147 @@ ] }, { - "label": "l32.a_copy", - "kernel": "copy_rows", + "label": "l47.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "a_c" + "buf": "k_n" }, { - "buf": "ba", - "offset": 96 + "buf": "qkv", + "offset": 26624 }, { - "i32": 48 + "state": "kv", + "offset": 35323904 }, { - "i32": 96 + "state": "kv", + "offset": 35324416 }, { - "i32": 48 - } - ] - }, - { - "label": "l32.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "slot_mapping" }, { - "buf": "ba" + "buf": "kv_scales" }, { - "i32": 48 + "buf": "kv_scales", + "offset": 4 }, { - "i32": 96 + "i64": 1024 }, { - "i32": 48 - } - ] - }, - { - "label": "l32.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.32.linear_attn.A_log" + "i64": 14336 }, { - "buf": "a_c" + "i64": 25690112 }, { - "buf": "b_c" + "i64": 512 }, { - "buf": "model.layers.32.linear_attn.dt_bias" + "i64": 0 }, { - "f32": 1.0 + "i64": 0 }, { - "f32": 20.0 + "i64": 2048 }, { - "buf": "gdn_q" + "i64": 0 }, { - "buf": "gdn_k" - }, + "i64": 0 + } + ] + }, + { + "label": "l47.attn", + "kernel": "attn", + "args": [ { - "buf": "gdn_v" + "buf": "attn_out" }, { - "buf": "core_attn_out" + "buf": "q_n" }, { - "state": "gdn", - "offset": 204800 + "state": "kv", + "offset": 35323904 }, { - "state": "gdn", - "offset": 204800 + "state": "kv", + "offset": 35324416 }, { - "buf": "cu_seqlens_q" + "buf": "block_table" }, { - "buf": "gdn.spec_slots", - "offset": 768 + "buf": "seq_lens" }, { - "buf": "gdn.one" + "f32": 0.0625 }, { - "f32": 0.0883883461356163 + "buf": "kv_scales" }, { - "i64": 1 + "buf": "kv_scales", + "offset": 4 }, { - "sym": "tokens" + "f32": 1.0 }, { - "i64": 0 + "f32": 0.0 }, { - "i64": 0 - } - ] - }, - { - "label": "l32.z_copy", - "kernel": "copy_rows", - "args": [ + "i64": 8 + }, { - "buf": "z_c" + "i64": 6144 }, { - "buf": "qkvz", - "offset": 20480 + "i64": 256 }, { - "i32": 6144 + "i64": 6144 }, { - "i32": 16384 + "i64": 256 }, { - "i32": 6144 - } - ] - }, - { - "label": "l32.gated_norm", - "kernel": "gated_norm", - "args": [ + "i64": 0 + }, { - "buf": "core_attn_out" + "buf": "seq_lens" }, { - "buf": "core_attn_out" + "i64": 25690112 }, { - "buf": "model.layers.32.linear_attn.norm.weight" + "i64": 2048 }, { - "buf": "z_c" + "i64": 512 }, { - "i32": 128 + "i64": 25690112 }, { - "i32": 128 + "i64": 2048 }, { - "i32": 128 + "i64": 512 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "cu_seqlens_q" }, { - "f32": 9.999999974752427e-07 + "i32": 1 }, { "i64": 0 @@ -60922,23 +59942,27 @@ ] }, { - "label": "l32.out_norm", - "kernel": "gemm8_add_norm", + "label": "l47.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { "buf": "x" }, { - "buf": "core_attn_out" + "buf": "attn_out" }, { - "buf": "model.layers.32.linear_attn.out_proj.weight" + "buf": "qkv", + "offset": 512 + }, + { + "buf": "model.layers.47.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.32.post_attention_layernorm.weight_p1" + "buf": "model.layers.47.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -60949,13 +59973,22 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l32.gate_up_silu", + "label": "l47.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -60965,7 +59998,7 @@ "buf": "x" }, { - "buf": "model.layers.32.mlp.gate_up_proj.weight" + "buf": "model.layers.47.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -60979,7 +60012,7 @@ ] }, { - "label": "l32.down_norm", + "label": "l47.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -60989,13 +60022,13 @@ "buf": "act" }, { - "buf": "model.layers.32.mlp.down_proj.weight" + "buf": "model.layers.47.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.33.input_layernorm.weight_p1" + "buf": "model.layers.48.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -61012,7 +60045,7 @@ ] }, { - "label": "l33.in_proj", + "label": "l48.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -61025,10 +60058,10 @@ "buf": "x" }, { - "buf": "model.layers.33.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.48.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.33.linear_attn.in_proj_ba.weight" + "buf": "model.layers.48.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -61045,21 +60078,25 @@ ] }, { - "label": "l33.conv_update", - "kernel": "conv_update_spec", + "label": "l48.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.33.linear_attn.conv1d.weight" + "buf": "model.layers.48.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 104 + "offset": 148 }, { "buf": "gdn.one" @@ -61068,47 +60105,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 1152 }, { - "i64": 0 - } - ] - }, - { - "label": "l33.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.48.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.48.linear_attn.dt_bias" }, { - "buf": "model.layers.33.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.33.linear_attn.dt_bias" + "buf": "model.layers.48.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -61126,289 +60139,271 @@ "buf": "beta" }, { - "i32": 16384 + "buf": "a_c" }, { - "i32": 96 + "buf": "b_c" }, { - "i32": 96 + "buf": "z_c" }, { - "i32": 2048 + "f32": 0.0883883461356163 }, { - "i32": 2048 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 385 }, { - "i64": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l33.a_copy", - "kernel": "copy_rows", + "label": "l48.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.48.linear_attn.out_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l33.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.48.post_attention_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 6144 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l33.recurrent", - "kernel": "recurrent_spec", + "label": "l48.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "model.layers.33.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" + "buf": "act" }, { - "buf": "model.layers.33.linear_attn.dt_bias" + "buf": "x" }, { - "f32": 1.0 + "buf": "model.layers.48.mlp.gate_up_proj.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 17408 }, { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, + "i32": 5120 + } + ] + }, + { + "label": "l48.down_norm", + "kernel": "gemm8_add_norm", + "args": [ { - "state": "gdn", - "offset": 204800 + "buf": "x" }, { - "buf": "cu_seqlens_q" + "buf": "act" }, { - "buf": "gdn.spec_slots", - "offset": 800 + "buf": "model.layers.48.mlp.down_proj.weight" }, { - "buf": "gdn.one" + "buf": "residual" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.49.input_layernorm.weight_p1" }, { - "i64": 1 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 5120 }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l33.z_copy", - "kernel": "copy_rows", + "label": "l49.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "z_c" + "buf": "qkvz" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "ba" }, { - "i32": 6144 + "buf": "x" + }, + { + "buf": "model.layers.49.linear_attn.in_proj_qkvz.weight" + }, + { + "buf": "model.layers.49.linear_attn.in_proj_ba.weight" + }, + { + "sym": "tokens" }, { "i32": 16384 }, { - "i32": 6144 + "i32": 96 + }, + { + "i32": 5120 } ] }, { - "label": "l33.gated_norm", - "kernel": "gated_norm", + "label": "l49.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "core_attn_out" + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.49.linear_attn.conv1d.weight" }, { - "buf": "model.layers.33.linear_attn.norm.weight" + "state": "gdn" }, { - "buf": "z_c" + "state": "gdn", + "offset": 204800 }, { - "i32": 128 + "buf": "gdn.spec_line_index", + "offset": 152 }, { - "i32": 128 + "buf": "gdn.one" }, { - "i32": 128 + "buf": "cu_seqlens_q" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "gdn.spec_slots", + "offset": 1184 }, { - "f32": 9.999999974752427e-07 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.49.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l33.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" + "buf": "model.layers.49.linear_attn.dt_bias" }, { "buf": "core_attn_out" }, { - "buf": "model.layers.33.linear_attn.out_proj.weight" + "buf": "model.layers.49.linear_attn.norm.weight" }, { - "buf": "residual" + "buf": "gdn_q" }, { - "buf": "model.layers.33.post_attention_layernorm.weight_p1" + "buf": "gdn_k" }, { - "sym": "tokens" + "buf": "gdn_v" }, { - "i32": 5120 + "buf": "g" }, { - "i32": 6144 + "buf": "beta" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l33.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ + "buf": "a_c" + }, { - "buf": "act" + "buf": "b_c" }, { - "buf": "x" + "buf": "z_c" }, { - "buf": "model.layers.33.mlp.gate_up_proj.weight" + "f32": 0.0883883461356163 + }, + { + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i32": 17408 + "i32": 385 }, { - "i32": 5120 + "i32": 1703936 + }, + { + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l33.down_norm", + "label": "l49.out_norm", "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "act" + "buf": "core_attn_out" }, { - "buf": "model.layers.33.mlp.down_proj.weight" + "buf": "model.layers.49.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.34.input_layernorm.weight_p1" + "buf": "model.layers.49.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -61417,7 +60412,7 @@ "i32": 5120 }, { - "i32": 17408 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -61425,32 +60420,23 @@ ] }, { - "label": "l34.in_proj", - "kernel": "gemm8_dual", + "label": "l49.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba" + "buf": "act" }, { "buf": "x" }, { - "buf": "model.layers.34.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.34.linear_attn.in_proj_ba.weight" + "buf": "model.layers.49.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i32": 16384 - }, - { - "i32": 96 + "i32": 17408 }, { "i32": 5120 @@ -61458,85 +60444,59 @@ ] }, { - "label": "l34.conv_update", - "kernel": "conv_update_spec", + "label": "l49.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "qkvz" - }, - { - "buf": "model.layers.34.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 108 - }, - { - "buf": "gdn.one" + "buf": "x" }, { - "buf": "cu_seqlens_q" + "buf": "act" }, { - "buf": "qkvz" + "buf": "model.layers.49.mlp.down_proj.weight" }, { - "i32": 1 + "buf": "residual" }, { - "i32": 385 + "buf": "model.layers.50.input_layernorm.weight_p1" }, { - "i64": 16384 + "sym": "tokens" }, { - "i64": 16384 + "i32": 5120 }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l34.post_conv", - "kernel": "post_conv", + "label": "l50.in_proj", + "kernel": "gemm8_dual", "args": [ { "buf": "qkvz" }, - { - "buf": "ba", - "offset": 96 - }, { "buf": "ba" }, { - "buf": "model.layers.34.linear_attn.A_log" - }, - { - "buf": "model.layers.34.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" + "buf": "x" }, { - "buf": "gdn_v" + "buf": "model.layers.50.linear_attn.in_proj_qkvz.weight" }, { - "buf": "g" + "buf": "model.layers.50.linear_attn.in_proj_ba.weight" }, { - "buf": "beta" + "sym": "tokens" }, { "i32": 16384 @@ -61545,92 +60505,55 @@ "i32": 96 }, { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l34.a_copy", - "kernel": "copy_rows", + "label": "l50.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 + "buf": "qkvz" }, { - "i32": 48 + "buf": "model.layers.50.linear_attn.conv1d.weight" }, { - "i32": 96 + "state": "gdn" }, { - "i32": 48 - } - ] - }, - { - "label": "l34.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "state": "gdn", + "offset": 204800 }, { - "buf": "ba" + "buf": "gdn.spec_line_index", + "offset": 156 }, { - "i32": 48 + "buf": "gdn.one" }, { - "i32": 96 + "buf": "cu_seqlens_q" }, { - "i32": 48 - } - ] - }, - { - "label": "l34.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.34.linear_attn.A_log" + "buf": "gdn.spec_slots", + "offset": 1216 }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "model.layers.50.linear_attn.A_log" }, { - "buf": "model.layers.34.linear_attn.dt_bias" + "buf": "model.layers.50.linear_attn.dt_bias" }, { - "f32": 1.0 + "buf": "core_attn_out" }, { - "f32": 20.0 + "buf": "model.layers.50.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -61642,113 +60565,45 @@ "buf": "gdn_v" }, { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 + "buf": "g" }, { - "state": "gdn", - "offset": 204800 + "buf": "beta" }, { - "buf": "cu_seqlens_q" + "buf": "a_c" }, { - "buf": "gdn.spec_slots", - "offset": 832 + "buf": "b_c" }, { - "buf": "gdn.one" + "buf": "z_c" }, { "f32": 0.0883883461356163 }, { - "i64": 1 + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l34.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l34.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.34.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l34.out_norm", + "label": "l50.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -61758,13 +60613,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.34.linear_attn.out_proj.weight" + "buf": "model.layers.50.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.34.post_attention_layernorm.weight_p1" + "buf": "model.layers.50.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -61781,7 +60636,7 @@ ] }, { - "label": "l34.gate_up_silu", + "label": "l50.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -61791,7 +60646,7 @@ "buf": "x" }, { - "buf": "model.layers.34.mlp.gate_up_proj.weight" + "buf": "model.layers.50.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -61805,7 +60660,7 @@ ] }, { - "label": "l34.down_norm", + "label": "l50.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -61815,13 +60670,13 @@ "buf": "act" }, { - "buf": "model.layers.34.mlp.down_proj.weight" + "buf": "model.layers.50.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.35.input_layernorm.weight_p1" + "buf": "model.layers.51.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -61838,14 +60693,14 @@ ] }, { - "label": "l35.qkv_proj", + "label": "l51.qkv_proj", "kernel": "gemm", "args": [ { "buf": "x" }, { - "buf": "model.layers.35.self_attn.qkv_proj.weight" + "buf": "model.layers.51.self_attn.qkv_proj.weight" }, { "buf": "qkv" @@ -61862,7 +60717,7 @@ ] }, { - "label": "l35.q_norm", + "label": "l51.q_norm", "kernel": "gemma_norm_qhead", "args": [ { @@ -61872,7 +60727,7 @@ "buf": "qkv" }, { - "buf": "model.layers.35.self_attn.q_norm.weight_p1" + "buf": "model.layers.51.self_attn.q_norm.weight_p1" }, { "i32": 256 @@ -61908,7 +60763,7 @@ ] }, { - "label": "l35.k_norm", + "label": "l51.k_norm", "kernel": "gemma_norm_khead", "args": [ { @@ -61919,7 +60774,7 @@ "offset": 24576 }, { - "buf": "model.layers.35.self_attn.k_norm.weight_p1" + "buf": "model.layers.51.self_attn.k_norm.weight_p1" }, { "i32": 256 @@ -61955,7 +60810,7 @@ ] }, { - "label": "l35.rope", + "label": "l51.rope", "kernel": "mrope", "args": [ { @@ -61982,7 +60837,7 @@ ] }, { - "label": "l35.kv_write", + "label": "l51.kv_write", "kernel": "reshape_and_cache", "args": [ { @@ -61994,11 +60849,11 @@ }, { "state": "kv", - "offset": 25690112 + "offset": 38535168 }, { "state": "kv", - "offset": 25690624 + "offset": 38535680 }, { "buf": "slot_mapping" @@ -62040,7 +60895,7 @@ ] }, { - "label": "l35.attn", + "label": "l51.attn", "kernel": "attn", "args": [ { @@ -62051,11 +60906,11 @@ }, { "state": "kv", - "offset": 25690112 + "offset": 38535168 }, { "state": "kv", - "offset": 25690624 + "offset": 38535680 }, { "buf": "block_table" @@ -62133,7 +60988,7 @@ ] }, { - "label": "l35.o_norm", + "label": "l51.o_norm", "kernel": "gemm8_sgate_add_norm", "args": [ { @@ -62147,13 +61002,13 @@ "offset": 512 }, { - "buf": "model.layers.35.self_attn.o_proj.weight" + "buf": "model.layers.51.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.35.post_attention_layernorm.weight_p1" + "buf": "model.layers.51.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -62179,7 +61034,7 @@ ] }, { - "label": "l35.gate_up_silu", + "label": "l51.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -62189,7 +61044,7 @@ "buf": "x" }, { - "buf": "model.layers.35.mlp.gate_up_proj.weight" + "buf": "model.layers.51.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -62203,7 +61058,7 @@ ] }, { - "label": "l35.down_norm", + "label": "l51.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -62213,13 +61068,13 @@ "buf": "act" }, { - "buf": "model.layers.35.mlp.down_proj.weight" + "buf": "model.layers.51.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.36.input_layernorm.weight_p1" + "buf": "model.layers.52.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -62236,7 +61091,7 @@ ] }, { - "label": "l36.in_proj", + "label": "l52.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -62249,10 +61104,10 @@ "buf": "x" }, { - "buf": "model.layers.36.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.52.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.36.linear_attn.in_proj_ba.weight" + "buf": "model.layers.52.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -62269,21 +61124,25 @@ ] }, { - "label": "l36.conv_update", - "kernel": "conv_update_spec", + "label": "l52.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.36.linear_attn.conv1d.weight" + "buf": "model.layers.52.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 112 + "offset": 160 }, { "buf": "gdn.one" @@ -62292,274 +61151,289 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 1248 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.52.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.52.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.52.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l36.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.36.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.36.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l52.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" }, { - "i32": 6144 + "buf": "model.layers.52.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.52.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l36.a_copy", - "kernel": "copy_rows", + "label": "l52.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" + }, + { + "buf": "model.layers.52.mlp.gate_up_proj.weight" }, { - "i32": 48 + "sym": "tokens" }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l36.b_copy", - "kernel": "copy_rows", + "label": "l52.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.52.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" + }, + { + "buf": "model.layers.53.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l36.recurrent", - "kernel": "recurrent_spec", + "label": "l53.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.36.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.36.linear_attn.dt_bias" + "buf": "model.layers.53.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.53.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l53.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.53.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 164 }, { - "buf": "gdn.spec_slots", - "offset": 864 + "buf": "gdn.one" }, { - "buf": "gdn.one" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 1280 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.53.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.53.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l36.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.53.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l36.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.36.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l36.out_norm", + "label": "l53.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -62569,13 +61443,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.36.linear_attn.out_proj.weight" + "buf": "model.layers.53.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.36.post_attention_layernorm.weight_p1" + "buf": "model.layers.53.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -62592,7 +61466,7 @@ ] }, { - "label": "l36.gate_up_silu", + "label": "l53.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -62602,7 +61476,7 @@ "buf": "x" }, { - "buf": "model.layers.36.mlp.gate_up_proj.weight" + "buf": "model.layers.53.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -62616,7 +61490,7 @@ ] }, { - "label": "l36.down_norm", + "label": "l53.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -62626,13 +61500,13 @@ "buf": "act" }, { - "buf": "model.layers.36.mlp.down_proj.weight" + "buf": "model.layers.53.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.37.input_layernorm.weight_p1" + "buf": "model.layers.54.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -62649,7 +61523,7 @@ ] }, { - "label": "l37.in_proj", + "label": "l54.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -62662,10 +61536,10 @@ "buf": "x" }, { - "buf": "model.layers.37.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.54.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.37.linear_attn.in_proj_ba.weight" + "buf": "model.layers.54.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -62682,21 +61556,25 @@ ] }, { - "label": "l37.conv_update", - "kernel": "conv_update_spec", + "label": "l54.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.37.linear_attn.conv1d.weight" + "buf": "model.layers.54.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 116 + "offset": 168 }, { "buf": "gdn.one" @@ -62705,47 +61583,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 1312 }, { - "i64": 0 - } - ] - }, - { - "label": "l37.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.54.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.54.linear_attn.dt_bias" }, { - "buf": "model.layers.37.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.37.linear_attn.dt_bias" + "buf": "model.layers.54.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -62763,192 +61617,166 @@ "buf": "beta" }, { - "i32": 16384 + "buf": "a_c" }, { - "i32": 96 + "buf": "b_c" }, { - "i32": 96 + "buf": "z_c" }, { - "i32": 2048 + "f32": 0.0883883461356163 }, { - "i32": 2048 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 385 }, { - "i64": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l37.a_copy", - "kernel": "copy_rows", + "label": "l54.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.54.linear_attn.out_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l37.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.54.post_attention_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 6144 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l37.recurrent", - "kernel": "recurrent_spec", + "label": "l54.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "model.layers.37.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.37.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 + "buf": "act" }, { - "buf": "gdn_q" + "buf": "x" }, { - "buf": "gdn_k" + "buf": "model.layers.54.mlp.gate_up_proj.weight" }, { - "buf": "gdn_v" + "sym": "tokens" }, { - "buf": "core_attn_out" + "i32": 17408 }, { - "state": "gdn", - "offset": 204800 - }, + "i32": 5120 + } + ] + }, + { + "label": "l54.down_norm", + "kernel": "gemm8_add_norm", + "args": [ { - "state": "gdn", - "offset": 204800 + "buf": "x" }, { - "buf": "cu_seqlens_q" + "buf": "act" }, { - "buf": "gdn.spec_slots", - "offset": 896 + "buf": "model.layers.54.mlp.down_proj.weight" }, { - "buf": "gdn.one" + "buf": "residual" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.55.input_layernorm.weight_p1" }, { - "i64": 1 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 5120 }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l37.z_copy", - "kernel": "copy_rows", + "label": "l55.qkv_proj", + "kernel": "gemm", "args": [ { - "buf": "z_c" + "buf": "x" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "model.layers.55.self_attn.qkv_proj.weight" }, { - "i32": 6144 + "buf": "qkv" }, { - "i32": 16384 + "sym": "tokens" }, { - "i32": 6144 + "i32": 14336 + }, + { + "i32": 5120 } ] }, { - "label": "l37.gated_norm", - "kernel": "gated_norm", + "label": "l55.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.37.linear_attn.norm.weight" - }, - { - "buf": "z_c" + "buf": "q_n" }, { - "i32": 128 + "buf": "qkv" }, { - "i32": 128 + "buf": "model.layers.55.self_attn.q_norm.weight_p1" }, { - "i32": 128 + "i32": 256 }, { "expr": { @@ -62956,48 +61784,71 @@ { "sym": "tokens" }, - 48 + 24 ] } }, { - "f32": 9.999999974752427e-07 + "i32": 24 }, { - "i64": 0 + "i32": 14336 }, { - "i64": 0 + "i32": 512 + }, + { + "i32": 6144 + }, + { + "i32": 256 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l37.out_norm", - "kernel": "gemm8_add_norm", + "label": "l55.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "x" + "buf": "k_n" }, { - "buf": "core_attn_out" + "buf": "qkv", + "offset": 24576 }, { - "buf": "model.layers.37.linear_attn.out_proj.weight" + "buf": "model.layers.55.self_attn.k_norm.weight_p1" }, { - "buf": "residual" + "i32": 256 }, { - "buf": "model.layers.37.post_attention_layernorm.weight_p1" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { - "sym": "tokens" + "i32": 4 }, { - "i32": 5120 + "i32": 14336 }, { - "i32": 6144 + "i32": 256 + }, + { + "i32": 1024 + }, + { + "i32": 256 }, { "f32": 9.999999974752427e-07 @@ -63005,132 +61856,174 @@ ] }, { - "label": "l37.gate_up_silu", - "kernel": "gemm8_gateup_silu", + "label": "l55.rope", + "kernel": "mrope", "args": [ { - "buf": "act" + "buf": "q_n" }, { - "buf": "x" + "buf": "k_n" }, { - "buf": "model.layers.37.mlp.gate_up_proj.weight" + "buf": "cos_g" }, { - "sym": "tokens" + "buf": "sin_g" }, { - "i32": 17408 + "i32": 0 }, { - "i32": 5120 + "i64": 0 + }, + { + "i64": 0 } ] }, { - "label": "l37.down_norm", - "kernel": "gemm8_add_norm", + "label": "l55.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "x" + "buf": "k_n" }, { - "buf": "act" + "buf": "qkv", + "offset": 26624 }, { - "buf": "model.layers.37.mlp.down_proj.weight" + "state": "kv", + "offset": 41746432 }, { - "buf": "residual" - }, + "state": "kv", + "offset": 41746944 + }, { - "buf": "model.layers.38.input_layernorm.weight_p1" + "buf": "slot_mapping" }, { - "sym": "tokens" + "buf": "kv_scales" }, { - "i32": 5120 + "buf": "kv_scales", + "offset": 4 }, { - "i32": 17408 + "i64": 1024 }, { - "f32": 9.999999974752427e-07 + "i64": 14336 + }, + { + "i64": 25690112 + }, + { + "i64": 512 + }, + { + "i64": 0 + }, + { + "i64": 0 + }, + { + "i64": 2048 + }, + { + "i64": 0 + }, + { + "i64": 0 } ] }, { - "label": "l38.in_proj", - "kernel": "gemm8_dual", + "label": "l55.attn", + "kernel": "attn", "args": [ { - "buf": "qkvz" + "buf": "attn_out" }, { - "buf": "ba" + "buf": "q_n" }, { - "buf": "x" + "state": "kv", + "offset": 41746432 }, { - "buf": "model.layers.38.linear_attn.in_proj_qkvz.weight" + "state": "kv", + "offset": 41746944 }, { - "buf": "model.layers.38.linear_attn.in_proj_ba.weight" + "buf": "block_table" }, { - "sym": "tokens" + "buf": "seq_lens" }, { - "i32": 16384 + "f32": 0.0625 }, { - "i32": 96 + "buf": "kv_scales" }, { - "i32": 5120 - } - ] - }, - { - "label": "l38.conv_update", - "kernel": "conv_update_spec", - "args": [ + "buf": "kv_scales", + "offset": 4 + }, { - "buf": "qkvz" + "f32": 1.0 }, { - "buf": "model.layers.38.linear_attn.conv1d.weight" + "f32": 0.0 }, { - "state": "gdn" + "i64": 8 }, { - "buf": "gdn.spec_line_index", - "offset": 120 + "i64": 6144 }, { - "buf": "gdn.one" + "i64": 256 }, { - "buf": "cu_seqlens_q" + "i64": 6144 }, { - "buf": "qkvz" + "i64": 256 }, { - "i32": 1 + "i64": 0 }, { - "i32": 385 + "buf": "seq_lens" }, { - "i64": 16384 + "i64": 25690112 }, { - "i64": 16384 + "i64": 2048 + }, + { + "i64": 512 + }, + { + "i64": 25690112 + }, + { + "i64": 2048 + }, + { + "i64": 512 + }, + { + "buf": "cu_seqlens_q" + }, + { + "i32": 1 }, { "i64": 0 @@ -63141,251 +62034,236 @@ ] }, { - "label": "l38.post_conv", - "kernel": "post_conv", + "label": "l55.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "qkvz" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "attn_out" }, { - "buf": "ba" + "buf": "qkv", + "offset": 512 }, { - "buf": "model.layers.38.linear_attn.A_log" + "buf": "model.layers.55.self_attn.o_proj.weight" }, { - "buf": "model.layers.38.linear_attn.dt_bias" + "buf": "residual" }, { - "buf": "gdn_q" + "buf": "model.layers.55.post_attention_layernorm.weight_p1" }, { - "buf": "gdn_k" + "sym": "tokens" }, { - "buf": "gdn_v" + "i32": 5120 }, { - "buf": "g" + "i32": 6144 }, { - "buf": "beta" + "i32": 256 }, { - "i32": 16384 + "i32": 14336 }, { - "i32": 96 + "i32": 512 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l55.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ { - "i32": 2048 + "buf": "act" }, { - "i32": 2048 + "buf": "x" }, { - "i32": 6144 + "buf": "model.layers.55.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l38.a_copy", - "kernel": "copy_rows", + "label": "l55.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.55.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l38.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.56.input_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l38.recurrent", - "kernel": "recurrent_spec", + "label": "l56.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.38.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.38.linear_attn.dt_bias" + "buf": "model.layers.56.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.56.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l56.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.56.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 172 }, { - "buf": "gdn.spec_slots", - "offset": 928 + "buf": "gdn.one" }, { - "buf": "gdn.one" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 1344 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.56.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.56.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l38.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.56.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l38.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.38.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l38.out_norm", + "label": "l56.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -63395,13 +62273,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.38.linear_attn.out_proj.weight" + "buf": "model.layers.56.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.38.post_attention_layernorm.weight_p1" + "buf": "model.layers.56.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -63418,7 +62296,7 @@ ] }, { - "label": "l38.gate_up_silu", + "label": "l56.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -63428,7 +62306,7 @@ "buf": "x" }, { - "buf": "model.layers.38.mlp.gate_up_proj.weight" + "buf": "model.layers.56.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -63442,7 +62320,7 @@ ] }, { - "label": "l38.down_norm", + "label": "l56.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -63452,13 +62330,13 @@ "buf": "act" }, { - "buf": "model.layers.38.mlp.down_proj.weight" + "buf": "model.layers.56.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.39.input_layernorm.weight_p1" + "buf": "model.layers.57.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -63475,23 +62353,32 @@ ] }, { - "label": "l39.qkv_proj", - "kernel": "gemm", + "label": "l57.in_proj", + "kernel": "gemm8_dual", "args": [ + { + "buf": "qkvz" + }, + { + "buf": "ba" + }, { "buf": "x" }, { - "buf": "model.layers.39.self_attn.qkv_proj.weight" + "buf": "model.layers.57.linear_attn.in_proj_qkvz.weight" }, { - "buf": "qkv" + "buf": "model.layers.57.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" }, { - "i32": 14336 + "i32": 16384 + }, + { + "i32": 96 }, { "i32": 5120 @@ -63499,298 +62386,332 @@ ] }, { - "label": "l39.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l57.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "q_n" + "buf": "qkvz" }, { - "buf": "qkv" + "buf": "model.layers.57.linear_attn.conv1d.weight" }, { - "buf": "model.layers.39.self_attn.q_norm.weight_p1" + "state": "gdn" }, { - "i32": 256 + "state": "gdn", + "offset": 204800 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } + "buf": "gdn.spec_line_index", + "offset": 176 }, { - "i32": 24 + "buf": "gdn.one" }, { - "i32": 14336 + "buf": "cu_seqlens_q" }, { - "i32": 512 + "buf": "gdn.spec_slots", + "offset": 1376 }, { - "i32": 6144 + "buf": "ba" }, { - "i32": 256 + "buf": "model.layers.57.linear_attn.A_log" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l39.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" + "buf": "model.layers.57.linear_attn.dt_bias" }, { - "buf": "qkv", - "offset": 24576 + "buf": "core_attn_out" }, { - "buf": "model.layers.39.self_attn.k_norm.weight_p1" + "buf": "model.layers.57.linear_attn.norm.weight" }, { - "i32": 256 + "buf": "gdn_q" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } + "buf": "gdn_k" }, { - "i32": 4 + "buf": "gdn_v" }, { - "i32": 14336 + "buf": "g" }, { - "i32": 256 + "buf": "beta" }, { - "i32": 1024 + "buf": "a_c" }, { - "i32": 256 + "buf": "b_c" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l39.rope", - "kernel": "mrope", - "args": [ + "buf": "z_c" + }, { - "buf": "q_n" + "f32": 0.0883883461356163 }, { - "buf": "k_n" + "f32": 9.999999974752427e-07 }, { - "buf": "cos_g" + "sym": "tokens" }, { - "buf": "sin_g" + "i32": 385 }, { - "i32": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l39.kv_write", - "kernel": "reshape_and_cache", + "label": "l57.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 + "buf": "x" }, { - "state": "kv", - "offset": 28901376 + "buf": "core_attn_out" }, { - "state": "kv", - "offset": 28901888 + "buf": "model.layers.57.linear_attn.out_proj.weight" }, { - "buf": "slot_mapping" + "buf": "residual" }, { - "buf": "kv_scales" + "buf": "model.layers.57.post_attention_layernorm.weight_p1" }, { - "buf": "kv_scales", - "offset": 4 + "sym": "tokens" }, { - "i64": 1024 + "i32": 5120 }, { - "i64": 14336 + "i32": 6144 }, { - "i64": 25690112 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l57.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ { - "i64": 512 + "buf": "act" }, { - "i64": 0 + "buf": "x" }, { - "i64": 0 + "buf": "model.layers.57.mlp.gate_up_proj.weight" }, { - "i64": 2048 + "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l39.attn", - "kernel": "attn", + "label": "l57.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "attn_out" - }, - { - "buf": "q_n" - }, - { - "state": "kv", - "offset": 28901376 + "buf": "x" }, { - "state": "kv", - "offset": 28901888 + "buf": "act" }, { - "buf": "block_table" + "buf": "model.layers.57.mlp.down_proj.weight" }, { - "buf": "seq_lens" + "buf": "residual" }, { - "f32": 0.0625 + "buf": "model.layers.58.input_layernorm.weight_p1" }, { - "buf": "kv_scales" + "sym": "tokens" }, { - "buf": "kv_scales", - "offset": 4 + "i32": 5120 }, { - "f32": 1.0 + "i32": 17408 }, { - "f32": 0.0 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l58.in_proj", + "kernel": "gemm8_dual", + "args": [ { - "i64": 8 + "buf": "qkvz" }, { - "i64": 6144 + "buf": "ba" }, { - "i64": 256 + "buf": "x" }, { - "i64": 6144 + "buf": "model.layers.58.linear_attn.in_proj_qkvz.weight" }, { - "i64": 256 + "buf": "model.layers.58.linear_attn.in_proj_ba.weight" }, { - "i64": 0 + "sym": "tokens" }, { - "buf": "seq_lens" + "i32": 16384 }, { - "i64": 25690112 + "i32": 96 }, { - "i64": 2048 + "i32": 5120 + } + ] + }, + { + "label": "l58.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "i64": 512 + "buf": "model.layers.58.linear_attn.conv1d.weight" }, { - "i64": 25690112 + "state": "gdn" }, { - "i64": 2048 + "state": "gdn", + "offset": 204800 }, { - "i64": 512 + "buf": "gdn.spec_line_index", + "offset": 180 + }, + { + "buf": "gdn.one" }, { "buf": "cu_seqlens_q" }, { - "i32": 1 + "buf": "gdn.spec_slots", + "offset": 1408 }, { - "i64": 0 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.58.linear_attn.A_log" + }, + { + "buf": "model.layers.58.linear_attn.dt_bias" + }, + { + "buf": "core_attn_out" + }, + { + "buf": "model.layers.58.linear_attn.norm.weight" + }, + { + "buf": "gdn_q" + }, + { + "buf": "gdn_k" + }, + { + "buf": "gdn_v" + }, + { + "buf": "g" + }, + { + "buf": "beta" + }, + { + "buf": "a_c" + }, + { + "buf": "b_c" + }, + { + "buf": "z_c" + }, + { + "f32": 0.0883883461356163 + }, + { + "f32": 9.999999974752427e-07 + }, + { + "sym": "tokens" + }, + { + "i32": 385 + }, + { + "i32": 1703936 + }, + { + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l39.o_norm", - "kernel": "gemm8_sgate_add_norm", + "label": "l58.out_norm", + "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 + "buf": "core_attn_out" }, { - "buf": "model.layers.39.self_attn.o_proj.weight" + "buf": "model.layers.58.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.39.post_attention_layernorm.weight_p1" + "buf": "model.layers.58.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -63801,22 +62722,13 @@ { "i32": 6144 }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l39.gate_up_silu", + "label": "l58.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -63826,7 +62738,7 @@ "buf": "x" }, { - "buf": "model.layers.39.mlp.gate_up_proj.weight" + "buf": "model.layers.58.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -63840,7 +62752,7 @@ ] }, { - "label": "l39.down_norm", + "label": "l58.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -63850,13 +62762,13 @@ "buf": "act" }, { - "buf": "model.layers.39.mlp.down_proj.weight" + "buf": "model.layers.58.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.40.input_layernorm.weight_p1" + "buf": "model.layers.59.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -63873,32 +62785,23 @@ ] }, { - "label": "l40.in_proj", - "kernel": "gemm8_dual", + "label": "l59.qkv_proj", + "kernel": "gemm", "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, { "buf": "x" }, { - "buf": "model.layers.40.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.59.self_attn.qkv_proj.weight" }, { - "buf": "model.layers.40.linear_attn.in_proj_ba.weight" + "buf": "qkv" }, { "sym": "tokens" }, { - "i32": 16384 - }, - { - "i32": 96 + "i32": 14336 }, { "i32": 5120 @@ -63906,106 +62809,116 @@ ] }, { - "label": "l40.conv_update", - "kernel": "conv_update_spec", + "label": "l59.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "model.layers.40.linear_attn.conv1d.weight" - }, - { - "state": "gdn" + "buf": "q_n" }, { - "buf": "gdn.spec_line_index", - "offset": 124 + "buf": "qkv" }, { - "buf": "gdn.one" + "buf": "model.layers.59.self_attn.q_norm.weight_p1" }, { - "buf": "cu_seqlens_q" + "i32": 256 }, { - "buf": "qkvz" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i32": 1 + "i32": 24 }, { - "i32": 385 + "i32": 14336 }, { - "i64": 16384 + "i32": 512 }, { - "i64": 16384 + "i32": 6144 }, { - "i64": 0 + "i32": 256 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l40.post_conv", - "kernel": "post_conv", + "label": "l59.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 + "buf": "k_n" }, { - "buf": "ba" + "buf": "qkv", + "offset": 24576 }, { - "buf": "model.layers.40.linear_attn.A_log" + "buf": "model.layers.59.self_attn.k_norm.weight_p1" }, { - "buf": "model.layers.40.linear_attn.dt_bias" + "i32": 256 }, { - "buf": "gdn_q" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { - "buf": "gdn_k" + "i32": 4 }, { - "buf": "gdn_v" + "i32": 14336 }, { - "buf": "g" + "i32": 256 }, { - "buf": "beta" + "i32": 1024 }, { - "i32": 16384 + "i32": 256 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l59.rope", + "kernel": "mrope", + "args": [ { - "i32": 96 + "buf": "q_n" }, { - "i32": 2048 + "buf": "k_n" }, { - "i32": 2048 + "buf": "cos_g" }, { - "i32": 6144 + "buf": "sin_g" }, { - "sym": "tokens" + "i32": 0 }, { "i64": 0 @@ -64016,176 +62929,147 @@ ] }, { - "label": "l40.a_copy", - "kernel": "copy_rows", + "label": "l59.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "a_c" + "buf": "k_n" }, { - "buf": "ba", - "offset": 96 + "buf": "qkv", + "offset": 26624 }, { - "i32": 48 + "state": "kv", + "offset": 44957696 }, { - "i32": 96 + "state": "kv", + "offset": 44958208 }, { - "i32": 48 - } - ] - }, - { - "label": "l40.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "slot_mapping" }, { - "buf": "ba" + "buf": "kv_scales" }, { - "i32": 48 + "buf": "kv_scales", + "offset": 4 }, { - "i32": 96 + "i64": 1024 }, { - "i32": 48 - } - ] - }, - { - "label": "l40.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.40.linear_attn.A_log" + "i64": 14336 }, { - "buf": "a_c" + "i64": 25690112 }, { - "buf": "b_c" + "i64": 512 }, { - "buf": "model.layers.40.linear_attn.dt_bias" + "i64": 0 }, { - "f32": 1.0 + "i64": 0 }, { - "f32": 20.0 + "i64": 2048 }, { - "buf": "gdn_q" + "i64": 0 }, { - "buf": "gdn_k" - }, + "i64": 0 + } + ] + }, + { + "label": "l59.attn", + "kernel": "attn", + "args": [ { - "buf": "gdn_v" + "buf": "attn_out" }, { - "buf": "core_attn_out" + "buf": "q_n" }, { - "state": "gdn", - "offset": 204800 + "state": "kv", + "offset": 44957696 }, { - "state": "gdn", - "offset": 204800 + "state": "kv", + "offset": 44958208 }, { - "buf": "cu_seqlens_q" + "buf": "block_table" }, { - "buf": "gdn.spec_slots", - "offset": 960 + "buf": "seq_lens" }, { - "buf": "gdn.one" + "f32": 0.0625 }, { - "f32": 0.0883883461356163 + "buf": "kv_scales" }, { - "i64": 1 + "buf": "kv_scales", + "offset": 4 }, { - "sym": "tokens" + "f32": 1.0 }, { - "i64": 0 + "f32": 0.0 }, { - "i64": 0 - } - ] - }, - { - "label": "l40.z_copy", - "kernel": "copy_rows", - "args": [ + "i64": 8 + }, { - "buf": "z_c" + "i64": 6144 }, { - "buf": "qkvz", - "offset": 20480 + "i64": 256 }, { - "i32": 6144 + "i64": 6144 }, { - "i32": 16384 + "i64": 256 }, { - "i32": 6144 - } - ] - }, - { - "label": "l40.gated_norm", - "kernel": "gated_norm", - "args": [ + "i64": 0 + }, { - "buf": "core_attn_out" + "buf": "seq_lens" }, { - "buf": "core_attn_out" + "i64": 25690112 }, { - "buf": "model.layers.40.linear_attn.norm.weight" + "i64": 2048 }, { - "buf": "z_c" + "i64": 512 }, { - "i32": 128 + "i64": 25690112 }, { - "i32": 128 + "i64": 2048 }, { - "i32": 128 + "i64": 512 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "cu_seqlens_q" }, { - "f32": 9.999999974752427e-07 + "i32": 1 }, { "i64": 0 @@ -64196,23 +63080,27 @@ ] }, { - "label": "l40.out_norm", - "kernel": "gemm8_add_norm", + "label": "l59.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { "buf": "x" }, { - "buf": "core_attn_out" + "buf": "attn_out" }, { - "buf": "model.layers.40.linear_attn.out_proj.weight" + "buf": "qkv", + "offset": 512 + }, + { + "buf": "model.layers.59.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.40.post_attention_layernorm.weight_p1" + "buf": "model.layers.59.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -64223,13 +63111,22 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l40.gate_up_silu", + "label": "l59.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -64239,7 +63136,7 @@ "buf": "x" }, { - "buf": "model.layers.40.mlp.gate_up_proj.weight" + "buf": "model.layers.59.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -64253,7 +63150,7 @@ ] }, { - "label": "l40.down_norm", + "label": "l59.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -64263,13 +63160,13 @@ "buf": "act" }, { - "buf": "model.layers.40.mlp.down_proj.weight" + "buf": "model.layers.59.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.41.input_layernorm.weight_p1" + "buf": "model.layers.60.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -64286,7 +63183,7 @@ ] }, { - "label": "l41.in_proj", + "label": "l60.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -64299,10 +63196,10 @@ "buf": "x" }, { - "buf": "model.layers.41.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.60.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.41.linear_attn.in_proj_ba.weight" + "buf": "model.layers.60.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -64319,21 +63216,25 @@ ] }, { - "label": "l41.conv_update", - "kernel": "conv_update_spec", + "label": "l60.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.41.linear_attn.conv1d.weight" + "buf": "model.layers.60.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 128 + "offset": 184 }, { "buf": "gdn.one" @@ -64342,47 +63243,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 1440 }, { - "i64": 0 - } - ] - }, - { - "label": "l41.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.60.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.60.linear_attn.dt_bias" }, { - "buf": "model.layers.41.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.41.linear_attn.dt_bias" + "buf": "model.layers.60.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -64400,289 +63277,271 @@ "buf": "beta" }, { - "i32": 16384 + "buf": "a_c" }, { - "i32": 96 + "buf": "b_c" }, { - "i32": 96 + "buf": "z_c" }, { - "i32": 2048 + "f32": 0.0883883461356163 }, { - "i32": 2048 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 385 }, { - "i64": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l41.a_copy", - "kernel": "copy_rows", + "label": "l60.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.60.linear_attn.out_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l41.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.60.post_attention_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 6144 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l41.recurrent", - "kernel": "recurrent_spec", + "label": "l60.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "model.layers.41.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" + "buf": "act" }, { - "buf": "model.layers.41.linear_attn.dt_bias" + "buf": "x" }, { - "f32": 1.0 + "buf": "model.layers.60.mlp.gate_up_proj.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 17408 }, { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, + "i32": 5120 + } + ] + }, + { + "label": "l60.down_norm", + "kernel": "gemm8_add_norm", + "args": [ { - "state": "gdn", - "offset": 204800 + "buf": "x" }, { - "buf": "cu_seqlens_q" + "buf": "act" }, { - "buf": "gdn.spec_slots", - "offset": 992 + "buf": "model.layers.60.mlp.down_proj.weight" }, { - "buf": "gdn.one" + "buf": "residual" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.61.input_layernorm.weight_p1" }, { - "i64": 1 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 5120 }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l41.z_copy", - "kernel": "copy_rows", + "label": "l61.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "z_c" + "buf": "qkvz" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "ba" }, { - "i32": 6144 + "buf": "x" + }, + { + "buf": "model.layers.61.linear_attn.in_proj_qkvz.weight" + }, + { + "buf": "model.layers.61.linear_attn.in_proj_ba.weight" + }, + { + "sym": "tokens" }, { "i32": 16384 }, { - "i32": 6144 + "i32": 96 + }, + { + "i32": 5120 } ] }, { - "label": "l41.gated_norm", - "kernel": "gated_norm", + "label": "l61.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "core_attn_out" + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.61.linear_attn.conv1d.weight" }, { - "buf": "model.layers.41.linear_attn.norm.weight" + "state": "gdn" }, { - "buf": "z_c" + "state": "gdn", + "offset": 204800 }, { - "i32": 128 + "buf": "gdn.spec_line_index", + "offset": 188 }, { - "i32": 128 + "buf": "gdn.one" }, { - "i32": 128 + "buf": "cu_seqlens_q" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "gdn.spec_slots", + "offset": 1472 }, { - "f32": 9.999999974752427e-07 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.61.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l41.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" + "buf": "model.layers.61.linear_attn.dt_bias" }, { "buf": "core_attn_out" }, { - "buf": "model.layers.41.linear_attn.out_proj.weight" + "buf": "model.layers.61.linear_attn.norm.weight" }, { - "buf": "residual" + "buf": "gdn_q" }, { - "buf": "model.layers.41.post_attention_layernorm.weight_p1" + "buf": "gdn_k" }, { - "sym": "tokens" + "buf": "gdn_v" }, { - "i32": 5120 + "buf": "g" }, { - "i32": 6144 + "buf": "beta" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l41.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ + "buf": "a_c" + }, { - "buf": "act" + "buf": "b_c" }, { - "buf": "x" + "buf": "z_c" }, { - "buf": "model.layers.41.mlp.gate_up_proj.weight" + "f32": 0.0883883461356163 + }, + { + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i32": 17408 + "i32": 385 }, { - "i32": 5120 + "i32": 1703936 + }, + { + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l41.down_norm", + "label": "l61.out_norm", "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "act" + "buf": "core_attn_out" }, { - "buf": "model.layers.41.mlp.down_proj.weight" + "buf": "model.layers.61.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.42.input_layernorm.weight_p1" + "buf": "model.layers.61.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -64691,7 +63550,7 @@ "i32": 5120 }, { - "i32": 17408 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -64699,32 +63558,23 @@ ] }, { - "label": "l42.in_proj", - "kernel": "gemm8_dual", + "label": "l61.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba" + "buf": "act" }, { "buf": "x" }, { - "buf": "model.layers.42.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.42.linear_attn.in_proj_ba.weight" + "buf": "model.layers.61.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i32": 16384 - }, - { - "i32": 96 + "i32": 17408 }, { "i32": 5120 @@ -64732,85 +63582,59 @@ ] }, { - "label": "l42.conv_update", - "kernel": "conv_update_spec", + "label": "l61.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "qkvz" - }, - { - "buf": "model.layers.42.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 132 - }, - { - "buf": "gdn.one" + "buf": "x" }, { - "buf": "cu_seqlens_q" + "buf": "act" }, { - "buf": "qkvz" + "buf": "model.layers.61.mlp.down_proj.weight" }, { - "i32": 1 + "buf": "residual" }, { - "i32": 385 + "buf": "model.layers.62.input_layernorm.weight_p1" }, { - "i64": 16384 + "sym": "tokens" }, { - "i64": 16384 + "i32": 5120 }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l42.post_conv", - "kernel": "post_conv", + "label": "l62.in_proj", + "kernel": "gemm8_dual", "args": [ { "buf": "qkvz" }, - { - "buf": "ba", - "offset": 96 - }, { "buf": "ba" }, { - "buf": "model.layers.42.linear_attn.A_log" - }, - { - "buf": "model.layers.42.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" + "buf": "x" }, { - "buf": "gdn_v" + "buf": "model.layers.62.linear_attn.in_proj_qkvz.weight" }, { - "buf": "g" + "buf": "model.layers.62.linear_attn.in_proj_ba.weight" }, { - "buf": "beta" + "sym": "tokens" }, { "i32": 16384 @@ -64819,92 +63643,55 @@ "i32": 96 }, { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l42.a_copy", - "kernel": "copy_rows", + "label": "l62.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 + "buf": "qkvz" }, { - "i32": 48 + "buf": "model.layers.62.linear_attn.conv1d.weight" }, { - "i32": 96 + "state": "gdn" }, { - "i32": 48 - } - ] - }, - { - "label": "l42.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "state": "gdn", + "offset": 204800 }, { - "buf": "ba" + "buf": "gdn.spec_line_index", + "offset": 192 }, { - "i32": 48 + "buf": "gdn.one" }, { - "i32": 96 + "buf": "cu_seqlens_q" }, { - "i32": 48 - } - ] - }, - { - "label": "l42.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.42.linear_attn.A_log" + "buf": "gdn.spec_slots", + "offset": 1504 }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "model.layers.62.linear_attn.A_log" }, { - "buf": "model.layers.42.linear_attn.dt_bias" + "buf": "model.layers.62.linear_attn.dt_bias" }, { - "f32": 1.0 + "buf": "core_attn_out" }, { - "f32": 20.0 + "buf": "model.layers.62.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -64916,113 +63703,45 @@ "buf": "gdn_v" }, { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 + "buf": "g" }, { - "state": "gdn", - "offset": 204800 + "buf": "beta" }, { - "buf": "cu_seqlens_q" + "buf": "a_c" }, { - "buf": "gdn.spec_slots", - "offset": 1024 + "buf": "b_c" }, { - "buf": "gdn.one" + "buf": "z_c" }, { "f32": 0.0883883461356163 }, { - "i64": 1 + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l42.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l42.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.42.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l42.out_norm", + "label": "l62.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -65032,13 +63751,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.42.linear_attn.out_proj.weight" + "buf": "model.layers.62.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.42.post_attention_layernorm.weight_p1" + "buf": "model.layers.62.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -65055,7 +63774,7 @@ ] }, { - "label": "l42.gate_up_silu", + "label": "l62.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -65065,7 +63784,7 @@ "buf": "x" }, { - "buf": "model.layers.42.mlp.gate_up_proj.weight" + "buf": "model.layers.62.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -65079,7 +63798,7 @@ ] }, { - "label": "l42.down_norm", + "label": "l62.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -65089,13 +63808,13 @@ "buf": "act" }, { - "buf": "model.layers.42.mlp.down_proj.weight" + "buf": "model.layers.62.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.43.input_layernorm.weight_p1" + "buf": "model.layers.63.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -65112,14 +63831,14 @@ ] }, { - "label": "l43.qkv_proj", + "label": "l63.qkv_proj", "kernel": "gemm", "args": [ { "buf": "x" }, { - "buf": "model.layers.43.self_attn.qkv_proj.weight" + "buf": "model.layers.63.self_attn.qkv_proj.weight" }, { "buf": "qkv" @@ -65136,7 +63855,7 @@ ] }, { - "label": "l43.q_norm", + "label": "l63.q_norm", "kernel": "gemma_norm_qhead", "args": [ { @@ -65146,7 +63865,7 @@ "buf": "qkv" }, { - "buf": "model.layers.43.self_attn.q_norm.weight_p1" + "buf": "model.layers.63.self_attn.q_norm.weight_p1" }, { "i32": 256 @@ -65182,7 +63901,7 @@ ] }, { - "label": "l43.k_norm", + "label": "l63.k_norm", "kernel": "gemma_norm_khead", "args": [ { @@ -65193,7 +63912,7 @@ "offset": 24576 }, { - "buf": "model.layers.43.self_attn.k_norm.weight_p1" + "buf": "model.layers.63.self_attn.k_norm.weight_p1" }, { "i32": 256 @@ -65229,7 +63948,7 @@ ] }, { - "label": "l43.rope", + "label": "l63.rope", "kernel": "mrope", "args": [ { @@ -65256,7 +63975,7 @@ ] }, { - "label": "l43.kv_write", + "label": "l63.kv_write", "kernel": "reshape_and_cache", "args": [ { @@ -65268,11 +63987,11 @@ }, { "state": "kv", - "offset": 32112640 + "offset": 48168960 }, { "state": "kv", - "offset": 32113152 + "offset": 48169472 }, { "buf": "slot_mapping" @@ -65314,7 +64033,7 @@ ] }, { - "label": "l43.attn", + "label": "l63.attn", "kernel": "attn", "args": [ { @@ -65325,11 +64044,11 @@ }, { "state": "kv", - "offset": 32112640 + "offset": 48168960 }, { "state": "kv", - "offset": 32113152 + "offset": 48169472 }, { "buf": "block_table" @@ -65407,7 +64126,7 @@ ] }, { - "label": "l43.o_norm", + "label": "l63.o_norm", "kernel": "gemm8_sgate_add_norm", "args": [ { @@ -65421,13 +64140,13 @@ "offset": 512 }, { - "buf": "model.layers.43.self_attn.o_proj.weight" + "buf": "model.layers.63.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.43.post_attention_layernorm.weight_p1" + "buf": "model.layers.63.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -65453,7 +64172,7 @@ ] }, { - "label": "l43.gate_up_silu", + "label": "l63.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -65463,7 +64182,7 @@ "buf": "x" }, { - "buf": "model.layers.43.mlp.gate_up_proj.weight" + "buf": "model.layers.63.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -65477,7 +64196,7 @@ ] }, { - "label": "l43.down_norm", + "label": "l63.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -65487,13 +64206,13 @@ "buf": "act" }, { - "buf": "model.layers.43.mlp.down_proj.weight" + "buf": "model.layers.63.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.44.input_layernorm.weight_p1" + "buf": "model.norm.weight_p1" }, { "sym": "tokens" @@ -65510,32 +64229,23 @@ ] }, { - "label": "l44.in_proj", - "kernel": "gemm8_dual", + "label": "lm_head", + "kernel": "gemm", "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, { "buf": "x" }, { - "buf": "model.layers.44.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.44.linear_attn.in_proj_ba.weight" + "buf": "lm_head.weight" }, { - "sym": "tokens" + "buf": "logits" }, { - "i32": 16384 + "i32": 1 }, { - "i32": 96 + "i32": 248320 }, { "i32": 5120 @@ -65543,26091 +64253,278 @@ ] }, { - "label": "l44.conv_update", - "kernel": "conv_update_spec", + "label": "sample", + "kernel": "argmax_row", "args": [ { - "buf": "qkvz" + "buf": "logits" }, { - "buf": "model.layers.44.linear_attn.conv1d.weight" + "buf": "next_token" }, { - "state": "gdn" - }, + "i32": 248320 + } + ] + } + ] + }, + "decode_spec": { + "dispatches": [ + { + "label": "embed", + "kernel": "embedding", + "args": [ { - "buf": "gdn.spec_line_index", - "offset": 136 + "buf": "token_ids" }, { - "buf": "gdn.one" + "buf": "model.embed_tokens.weight" }, { - "buf": "cu_seqlens_q" + "buf": "residual" }, { - "buf": "qkvz" + "sym": "tokens" }, { - "i32": 1 - }, + "i32": 5120 + } + ] + }, + { + "label": "rope_cos", + "kernel": "embedding", + "args": [ { - "i32": 385 + "buf": "positions" }, { - "i64": 16384 + "buf": "rope.cos" }, { - "i64": 16384 + "buf": "cos_g" }, { - "i64": 0 + "sym": "tokens" }, { - "i64": 0 + "i32": 32 } ] }, { - "label": "l44.post_conv", - "kernel": "post_conv", + "label": "rope_sin", + "kernel": "embedding", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.44.linear_attn.A_log" - }, - { - "buf": "model.layers.44.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l44.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l44.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l44.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.44.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.44.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 1056 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l44.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l44.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.44.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l44.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.44.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.44.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l44.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.44.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l44.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.44.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.45.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l45.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.45.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.45.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l45.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.45.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 140 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l45.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.45.linear_attn.A_log" - }, - { - "buf": "model.layers.45.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l45.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l45.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l45.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.45.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.45.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 1088 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l45.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l45.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.45.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l45.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.45.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.45.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l45.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.45.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l45.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.45.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.46.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l46.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.46.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.46.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l46.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.46.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 144 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l46.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.46.linear_attn.A_log" - }, - { - "buf": "model.layers.46.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l46.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l46.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l46.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.46.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.46.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 1120 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l46.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l46.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.46.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l46.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.46.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.46.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l46.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.46.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l46.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.46.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.47.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l47.qkv_proj", - "kernel": "gemm", - "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.47.self_attn.qkv_proj.weight" - }, - { - "buf": "qkv" - }, - { - "sym": "tokens" - }, - { - "i32": 14336 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l47.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.47.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l47.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.47.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l47.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l47.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv", - "offset": 35323904 - }, - { - "state": "kv", - "offset": 35324416 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, - { - "i64": 25690112 - }, - { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 - }, - { - "i64": 2048 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l47.attn", - "kernel": "attn", - "args": [ - { - "buf": "attn_out" - }, - { - "buf": "q_n" - }, - { - "state": "kv", - "offset": 35323904 - }, - { - "state": "kv", - "offset": 35324416 - }, - { - "buf": "block_table" - }, - { - "buf": "seq_lens" - }, - { - "f32": 0.0625 - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "f32": 1.0 - }, - { - "f32": 0.0 - }, - { - "i64": 8 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 0 - }, - { - "buf": "seq_lens" - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "buf": "cu_seqlens_q" - }, - { - "i32": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l47.o_norm", - "kernel": "gemm8_sgate_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 - }, - { - "buf": "model.layers.47.self_attn.o_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.47.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l47.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.47.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l47.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.47.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.48.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l48.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.48.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.48.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l48.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.48.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 148 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l48.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.48.linear_attn.A_log" - }, - { - "buf": "model.layers.48.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l48.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l48.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l48.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.48.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.48.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 1152 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l48.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l48.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.48.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l48.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.48.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.48.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l48.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.48.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l48.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.48.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.49.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l49.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.49.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.49.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l49.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.49.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 152 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l49.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.49.linear_attn.A_log" - }, - { - "buf": "model.layers.49.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l49.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l49.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l49.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.49.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.49.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 1184 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l49.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l49.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.49.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l49.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.49.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.49.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l49.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.49.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l49.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.49.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.50.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l50.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.50.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.50.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l50.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.50.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 156 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l50.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.50.linear_attn.A_log" - }, - { - "buf": "model.layers.50.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l50.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l50.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l50.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.50.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.50.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 1216 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l50.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l50.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.50.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l50.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.50.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.50.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l50.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.50.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l50.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.50.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.51.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l51.qkv_proj", - "kernel": "gemm", - "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.51.self_attn.qkv_proj.weight" - }, - { - "buf": "qkv" - }, - { - "sym": "tokens" - }, - { - "i32": 14336 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l51.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.51.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l51.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.51.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l51.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l51.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv", - "offset": 38535168 - }, - { - "state": "kv", - "offset": 38535680 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, - { - "i64": 25690112 - }, - { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 - }, - { - "i64": 2048 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l51.attn", - "kernel": "attn", - "args": [ - { - "buf": "attn_out" - }, - { - "buf": "q_n" - }, - { - "state": "kv", - "offset": 38535168 - }, - { - "state": "kv", - "offset": 38535680 - }, - { - "buf": "block_table" - }, - { - "buf": "seq_lens" - }, - { - "f32": 0.0625 - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "f32": 1.0 - }, - { - "f32": 0.0 - }, - { - "i64": 8 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 0 - }, - { - "buf": "seq_lens" - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "buf": "cu_seqlens_q" - }, - { - "i32": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l51.o_norm", - "kernel": "gemm8_sgate_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 - }, - { - "buf": "model.layers.51.self_attn.o_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.51.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l51.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.51.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l51.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.51.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.52.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l52.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.52.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.52.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l52.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.52.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 160 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l52.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.52.linear_attn.A_log" - }, - { - "buf": "model.layers.52.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l52.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l52.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l52.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.52.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.52.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 1248 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l52.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l52.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.52.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l52.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.52.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.52.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l52.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.52.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l52.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.52.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.53.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l53.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.53.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.53.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l53.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.53.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 164 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l53.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.53.linear_attn.A_log" - }, - { - "buf": "model.layers.53.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l53.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l53.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l53.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.53.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.53.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 1280 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l53.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l53.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.53.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l53.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.53.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.53.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l53.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.53.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l53.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.53.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.54.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l54.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.54.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.54.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l54.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.54.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 168 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l54.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.54.linear_attn.A_log" - }, - { - "buf": "model.layers.54.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l54.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l54.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l54.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.54.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.54.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 1312 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l54.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l54.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.54.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l54.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.54.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.54.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l54.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.54.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l54.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.54.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.55.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l55.qkv_proj", - "kernel": "gemm", - "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.55.self_attn.qkv_proj.weight" - }, - { - "buf": "qkv" - }, - { - "sym": "tokens" - }, - { - "i32": 14336 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l55.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.55.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l55.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.55.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l55.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l55.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv", - "offset": 41746432 - }, - { - "state": "kv", - "offset": 41746944 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, - { - "i64": 25690112 - }, - { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 - }, - { - "i64": 2048 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l55.attn", - "kernel": "attn", - "args": [ - { - "buf": "attn_out" - }, - { - "buf": "q_n" - }, - { - "state": "kv", - "offset": 41746432 - }, - { - "state": "kv", - "offset": 41746944 - }, - { - "buf": "block_table" - }, - { - "buf": "seq_lens" - }, - { - "f32": 0.0625 - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "f32": 1.0 - }, - { - "f32": 0.0 - }, - { - "i64": 8 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 0 - }, - { - "buf": "seq_lens" - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "buf": "cu_seqlens_q" - }, - { - "i32": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l55.o_norm", - "kernel": "gemm8_sgate_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 - }, - { - "buf": "model.layers.55.self_attn.o_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.55.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l55.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.55.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l55.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.55.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.56.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l56.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.56.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.56.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l56.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.56.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 172 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l56.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.56.linear_attn.A_log" - }, - { - "buf": "model.layers.56.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l56.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l56.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l56.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.56.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.56.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 1344 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l56.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l56.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.56.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l56.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.56.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.56.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l56.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.56.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l56.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.56.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.57.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l57.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.57.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.57.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l57.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.57.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 176 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l57.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.57.linear_attn.A_log" - }, - { - "buf": "model.layers.57.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l57.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l57.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l57.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.57.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.57.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 1376 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l57.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l57.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.57.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l57.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.57.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.57.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l57.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.57.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l57.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.57.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.58.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l58.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.58.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.58.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l58.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.58.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 180 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l58.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.58.linear_attn.A_log" - }, - { - "buf": "model.layers.58.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l58.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l58.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l58.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.58.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.58.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 1408 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l58.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l58.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.58.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l58.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.58.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.58.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l58.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.58.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l58.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.58.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.59.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l59.qkv_proj", - "kernel": "gemm", - "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.59.self_attn.qkv_proj.weight" - }, - { - "buf": "qkv" - }, - { - "sym": "tokens" - }, - { - "i32": 14336 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l59.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.59.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l59.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.59.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l59.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l59.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv", - "offset": 44957696 - }, - { - "state": "kv", - "offset": 44958208 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, - { - "i64": 25690112 - }, - { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 - }, - { - "i64": 2048 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l59.attn", - "kernel": "attn", - "args": [ - { - "buf": "attn_out" - }, - { - "buf": "q_n" - }, - { - "state": "kv", - "offset": 44957696 - }, - { - "state": "kv", - "offset": 44958208 - }, - { - "buf": "block_table" - }, - { - "buf": "seq_lens" - }, - { - "f32": 0.0625 - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "f32": 1.0 - }, - { - "f32": 0.0 - }, - { - "i64": 8 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 0 - }, - { - "buf": "seq_lens" - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "buf": "cu_seqlens_q" - }, - { - "i32": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l59.o_norm", - "kernel": "gemm8_sgate_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 - }, - { - "buf": "model.layers.59.self_attn.o_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.59.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l59.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.59.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l59.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.59.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.60.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l60.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.60.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.60.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l60.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.60.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 184 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l60.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.60.linear_attn.A_log" - }, - { - "buf": "model.layers.60.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l60.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l60.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l60.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.60.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.60.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 1440 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l60.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l60.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.60.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l60.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.60.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.60.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l60.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.60.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l60.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.60.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.61.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l61.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.61.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.61.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l61.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.61.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 188 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l61.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.61.linear_attn.A_log" - }, - { - "buf": "model.layers.61.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l61.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l61.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l61.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.61.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.61.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 1472 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l61.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l61.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.61.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l61.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.61.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.61.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l61.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.61.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l61.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.61.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.62.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l62.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.62.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.62.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l62.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.62.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 192 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l62.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.62.linear_attn.A_log" - }, - { - "buf": "model.layers.62.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l62.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l62.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l62.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.62.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.62.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 1504 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l62.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l62.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.62.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l62.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.62.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.62.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l62.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.62.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l62.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.62.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.63.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l63.qkv_proj", - "kernel": "gemm", - "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.63.self_attn.qkv_proj.weight" - }, - { - "buf": "qkv" - }, - { - "sym": "tokens" - }, - { - "i32": 14336 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l63.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.63.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l63.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.63.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l63.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l63.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv", - "offset": 48168960 - }, - { - "state": "kv", - "offset": 48169472 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, - { - "i64": 25690112 - }, - { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 - }, - { - "i64": 2048 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l63.attn", - "kernel": "attn", - "args": [ - { - "buf": "attn_out" - }, - { - "buf": "q_n" - }, - { - "state": "kv", - "offset": 48168960 - }, - { - "state": "kv", - "offset": 48169472 - }, - { - "buf": "block_table" - }, - { - "buf": "seq_lens" - }, - { - "f32": 0.0625 - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "f32": 1.0 - }, - { - "f32": 0.0 - }, - { - "i64": 8 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 0 - }, - { - "buf": "seq_lens" - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "buf": "cu_seqlens_q" - }, - { - "i32": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l63.o_norm", - "kernel": "gemm8_sgate_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 - }, - { - "buf": "model.layers.63.self_attn.o_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.63.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l63.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.63.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l63.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.63.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.norm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "lm_head", - "kernel": "gemm", - "args": [ - { - "buf": "x" - }, - { - "buf": "lm_head.weight" - }, - { - "buf": "logits" - }, - { - "i32": 1 - }, - { - "i32": 248320 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "sample", - "kernel": "argmax_row", - "args": [ - { - "buf": "logits" - }, - { - "buf": "next_token" - }, - { - "i32": 248320 - } - ] - } - ] - }, - "decode_spec": { - "dispatches": [ - { - "label": "embed", - "kernel": "embedding", - "args": [ - { - "buf": "token_ids" - }, - { - "buf": "model.embed_tokens.weight" - }, - { - "buf": "residual" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - } - ] - }, - { - "label": "rope_cos", - "kernel": "embedding", - "args": [ - { - "buf": "positions" - }, - { - "buf": "rope.cos" - }, - { - "buf": "cos_g" - }, - { - "sym": "tokens" - }, - { - "i32": 32 - } - ] - }, - { - "label": "rope_sin", - "kernel": "embedding", - "args": [ - { - "buf": "positions" - }, - { - "buf": "rope.sin" - }, - { - "buf": "sin_g" - }, - { - "sym": "tokens" - }, - { - "i32": 32 - } - ] - }, - { - "label": "l0.input_norm", - "kernel": "gemma_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.0.input_layernorm.weight_p1" - }, - { - "i32": 5120 - }, - { - "sym": "tokens" - }, - { - "i32": 1 - }, - { - "i32": 5120 - }, - { - "i32": 0 - }, - { - "i32": 5120 - }, - { - "i32": 0 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l0.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.0.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.0.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l0.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.0.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 4 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l0.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.0.linear_attn.A_log" - }, - { - "buf": "model.layers.0.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l0.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l0.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l0.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.0.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.0.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots" - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l0.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l0.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.0.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l0.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.0.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.0.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l0.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.0.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l0.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.0.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.1.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l1.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.1.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.1.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l1.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.1.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 8 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l1.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.1.linear_attn.A_log" - }, - { - "buf": "model.layers.1.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l1.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l1.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l1.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.1.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.1.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 32 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l1.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l1.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.1.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l1.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.1.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.1.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l1.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.1.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l1.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.1.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.2.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l2.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.2.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.2.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l2.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.2.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 12 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l2.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.2.linear_attn.A_log" - }, - { - "buf": "model.layers.2.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l2.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l2.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l2.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.2.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.2.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 64 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l2.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l2.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.2.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l2.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.2.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.2.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l2.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.2.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l2.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.2.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.3.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l3.qkv_proj", - "kernel": "gemm", - "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.3.self_attn.qkv_proj.weight" - }, - { - "buf": "qkv" - }, - { - "sym": "tokens" - }, - { - "i32": 14336 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l3.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.3.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l3.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.3.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l3.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l3.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv" - }, - { - "state": "kv", - "offset": 512 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, - { - "i64": 25690112 - }, - { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 - }, - { - "i64": 2048 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l3.attn", - "kernel": "attn", - "args": [ - { - "buf": "attn_out" - }, - { - "buf": "q_n" - }, - { - "state": "kv" - }, - { - "state": "kv", - "offset": 512 - }, - { - "buf": "block_table" - }, - { - "buf": "seq_lens" - }, - { - "f32": 0.0625 - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "f32": 1.0 - }, - { - "f32": 0.0 - }, - { - "i64": 8 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 0 - }, - { - "buf": "seq_lens" - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "buf": "cu_seqlens_q" - }, - { - "i32": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l3.o_norm", - "kernel": "gemm8_sgate_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 - }, - { - "buf": "model.layers.3.self_attn.o_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.3.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l3.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.3.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l3.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.3.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.4.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l4.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.4.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.4.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l4.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.4.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 16 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l4.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.4.linear_attn.A_log" - }, - { - "buf": "model.layers.4.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l4.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l4.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l4.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.4.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.4.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 96 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l4.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l4.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.4.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l4.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.4.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.4.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l4.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.4.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l4.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.4.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.5.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l5.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.5.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.5.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l5.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.5.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 20 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l5.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.5.linear_attn.A_log" - }, - { - "buf": "model.layers.5.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l5.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l5.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l5.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.5.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.5.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 128 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l5.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l5.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.5.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l5.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.5.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.5.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l5.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.5.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l5.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.5.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.6.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l5.fc_tap", - "kernel": "gemm", - "args": [ - { - "buf": "residual" - }, - { - "buf": "draft.fc.0.weight" - }, - { - "buf": "fc_out" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l6.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.6.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.6.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l6.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.6.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 24 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l6.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.6.linear_attn.A_log" - }, - { - "buf": "model.layers.6.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l6.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l6.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l6.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.6.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.6.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 160 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l6.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l6.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.6.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l6.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.6.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.6.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l6.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.6.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l6.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.6.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.7.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l7.qkv_proj", - "kernel": "gemm", - "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.7.self_attn.qkv_proj.weight" - }, - { - "buf": "qkv" - }, - { - "sym": "tokens" - }, - { - "i32": 14336 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l7.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.7.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l7.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.7.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l7.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l7.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv", - "offset": 3211264 - }, - { - "state": "kv", - "offset": 3211776 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, - { - "i64": 25690112 - }, - { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 - }, - { - "i64": 2048 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l7.attn", - "kernel": "attn", - "args": [ - { - "buf": "attn_out" - }, - { - "buf": "q_n" - }, - { - "state": "kv", - "offset": 3211264 - }, - { - "state": "kv", - "offset": 3211776 - }, - { - "buf": "block_table" - }, - { - "buf": "seq_lens" - }, - { - "f32": 0.0625 - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "f32": 1.0 - }, - { - "f32": 0.0 - }, - { - "i64": 8 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 0 - }, - { - "buf": "seq_lens" - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "buf": "cu_seqlens_q" - }, - { - "i32": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l7.o_norm", - "kernel": "gemm8_sgate_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 - }, - { - "buf": "model.layers.7.self_attn.o_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.7.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l7.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.7.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l7.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.7.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.8.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l8.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.8.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.8.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l8.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.8.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 28 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l8.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.8.linear_attn.A_log" - }, - { - "buf": "model.layers.8.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l8.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l8.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l8.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.8.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.8.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 192 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l8.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l8.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.8.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l8.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.8.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.8.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l8.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.8.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l8.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.8.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.9.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l9.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.9.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.9.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l9.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.9.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 32 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l9.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.9.linear_attn.A_log" - }, - { - "buf": "model.layers.9.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l9.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l9.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l9.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.9.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.9.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 224 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l9.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l9.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.9.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l9.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.9.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.9.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l9.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.9.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l9.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.9.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.10.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l10.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.10.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.10.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l10.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.10.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 36 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l10.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.10.linear_attn.A_log" - }, - { - "buf": "model.layers.10.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l10.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l10.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l10.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.10.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.10.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 256 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l10.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l10.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.10.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l10.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.10.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.10.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l10.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.10.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l10.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.10.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.11.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l11.qkv_proj", - "kernel": "gemm", - "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.11.self_attn.qkv_proj.weight" - }, - { - "buf": "qkv" - }, - { - "sym": "tokens" - }, - { - "i32": 14336 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l11.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.11.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l11.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.11.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l11.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l11.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv", - "offset": 6422528 - }, - { - "state": "kv", - "offset": 6423040 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, - { - "i64": 25690112 - }, - { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 - }, - { - "i64": 2048 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l11.attn", - "kernel": "attn", - "args": [ - { - "buf": "attn_out" - }, - { - "buf": "q_n" - }, - { - "state": "kv", - "offset": 6422528 - }, - { - "state": "kv", - "offset": 6423040 - }, - { - "buf": "block_table" - }, - { - "buf": "seq_lens" - }, - { - "f32": 0.0625 - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "f32": 1.0 - }, - { - "f32": 0.0 - }, - { - "i64": 8 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 0 - }, - { - "buf": "seq_lens" - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "buf": "cu_seqlens_q" - }, - { - "i32": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l11.o_norm", - "kernel": "gemm8_sgate_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 - }, - { - "buf": "model.layers.11.self_attn.o_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.11.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l11.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.11.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l11.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.11.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.12.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l12.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.12.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.12.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l12.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.12.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 40 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l12.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.12.linear_attn.A_log" - }, - { - "buf": "model.layers.12.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l12.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l12.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l12.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.12.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.12.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 288 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l12.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l12.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.12.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l12.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.12.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.12.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l12.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.12.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l12.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.12.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.13.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l13.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.13.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.13.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l13.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.13.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 44 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l13.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.13.linear_attn.A_log" - }, - { - "buf": "model.layers.13.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l13.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l13.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l13.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.13.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.13.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 320 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l13.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l13.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.13.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l13.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.13.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.13.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l13.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.13.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l13.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.13.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.14.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l14.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.14.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.14.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l14.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.14.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 48 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l14.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.14.linear_attn.A_log" - }, - { - "buf": "model.layers.14.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l14.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l14.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l14.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.14.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.14.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 352 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l14.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l14.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.14.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l14.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.14.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.14.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l14.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.14.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l14.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.14.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.15.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l15.qkv_proj", - "kernel": "gemm", - "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.15.self_attn.qkv_proj.weight" - }, - { - "buf": "qkv" - }, - { - "sym": "tokens" - }, - { - "i32": 14336 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l15.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.15.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l15.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.15.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l15.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l15.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv", - "offset": 9633792 - }, - { - "state": "kv", - "offset": 9634304 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, - { - "i64": 25690112 - }, - { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 - }, - { - "i64": 2048 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l15.attn", - "kernel": "attn", - "args": [ - { - "buf": "attn_out" - }, - { - "buf": "q_n" - }, - { - "state": "kv", - "offset": 9633792 - }, - { - "state": "kv", - "offset": 9634304 - }, - { - "buf": "block_table" - }, - { - "buf": "seq_lens" - }, - { - "f32": 0.0625 - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "f32": 1.0 - }, - { - "f32": 0.0 - }, - { - "i64": 8 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 0 - }, - { - "buf": "seq_lens" - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "buf": "cu_seqlens_q" - }, - { - "i32": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l15.o_norm", - "kernel": "gemm8_sgate_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 - }, - { - "buf": "model.layers.15.self_attn.o_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.15.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l15.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.15.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l15.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.15.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.16.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l16.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.16.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.16.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l16.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.16.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 52 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l16.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.16.linear_attn.A_log" - }, - { - "buf": "model.layers.16.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l16.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l16.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l16.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.16.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.16.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 384 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l16.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l16.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.16.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l16.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.16.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.16.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l16.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.16.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l16.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.16.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.17.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l17.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.17.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.17.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l17.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.17.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 56 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l17.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.17.linear_attn.A_log" - }, - { - "buf": "model.layers.17.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l17.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l17.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l17.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.17.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.17.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 416 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l17.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l17.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.17.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l17.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.17.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.17.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l17.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.17.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l17.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.17.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.18.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l18.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.18.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.18.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l18.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.18.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 60 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l18.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.18.linear_attn.A_log" - }, - { - "buf": "model.layers.18.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l18.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l18.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l18.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.18.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.18.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 448 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l18.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l18.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.18.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l18.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.18.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.18.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l18.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.18.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l18.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.18.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.19.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l19.qkv_proj", - "kernel": "gemm", - "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.19.self_attn.qkv_proj.weight" - }, - { - "buf": "qkv" - }, - { - "sym": "tokens" - }, - { - "i32": 14336 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l19.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.19.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l19.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.19.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l19.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l19.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv", - "offset": 12845056 - }, - { - "state": "kv", - "offset": 12845568 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, - { - "i64": 25690112 - }, - { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 - }, - { - "i64": 2048 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l19.attn", - "kernel": "attn", - "args": [ - { - "buf": "attn_out" - }, - { - "buf": "q_n" - }, - { - "state": "kv", - "offset": 12845056 - }, - { - "state": "kv", - "offset": 12845568 - }, - { - "buf": "block_table" - }, - { - "buf": "seq_lens" - }, - { - "f32": 0.0625 - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "f32": 1.0 - }, - { - "f32": 0.0 - }, - { - "i64": 8 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 0 - }, - { - "buf": "seq_lens" - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "buf": "cu_seqlens_q" - }, - { - "i32": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l19.o_norm", - "kernel": "gemm8_sgate_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 - }, - { - "buf": "model.layers.19.self_attn.o_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.19.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l19.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.19.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l19.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.19.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.20.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l19.fc_tap", - "kernel": "gemm_acc", - "args": [ - { - "buf": "residual" - }, - { - "buf": "draft.fc.1.weight" - }, - { - "buf": "fc_out" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l20.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.20.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.20.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l20.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.20.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 64 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l20.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.20.linear_attn.A_log" - }, - { - "buf": "model.layers.20.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l20.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l20.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l20.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.20.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.20.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 480 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l20.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l20.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.20.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l20.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.20.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.20.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l20.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.20.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l20.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.20.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.21.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l21.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.21.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.21.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l21.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.21.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 68 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l21.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.21.linear_attn.A_log" - }, - { - "buf": "model.layers.21.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l21.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l21.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l21.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.21.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.21.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 512 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l21.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l21.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.21.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l21.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.21.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.21.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l21.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.21.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l21.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.21.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.22.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l22.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.22.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.22.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l22.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.22.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 72 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l22.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.22.linear_attn.A_log" - }, - { - "buf": "model.layers.22.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l22.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l22.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l22.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.22.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.22.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 544 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l22.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l22.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.22.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l22.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.22.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.22.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l22.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.22.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l22.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.22.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.23.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l23.qkv_proj", - "kernel": "gemm", - "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.23.self_attn.qkv_proj.weight" - }, - { - "buf": "qkv" - }, - { - "sym": "tokens" - }, - { - "i32": 14336 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l23.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.23.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l23.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.23.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l23.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l23.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv", - "offset": 16056320 - }, - { - "state": "kv", - "offset": 16056832 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, - { - "i64": 25690112 - }, - { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 - }, - { - "i64": 2048 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l23.attn", - "kernel": "attn", - "args": [ - { - "buf": "attn_out" - }, - { - "buf": "q_n" - }, - { - "state": "kv", - "offset": 16056320 - }, - { - "state": "kv", - "offset": 16056832 - }, - { - "buf": "block_table" - }, - { - "buf": "seq_lens" - }, - { - "f32": 0.0625 - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "f32": 1.0 - }, - { - "f32": 0.0 - }, - { - "i64": 8 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 0 - }, - { - "buf": "seq_lens" - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "buf": "cu_seqlens_q" - }, - { - "i32": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l23.o_norm", - "kernel": "gemm8_sgate_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 - }, - { - "buf": "model.layers.23.self_attn.o_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.23.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l23.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.23.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l23.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.23.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.24.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l24.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.24.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.24.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l24.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.24.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 76 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l24.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.24.linear_attn.A_log" - }, - { - "buf": "model.layers.24.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l24.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l24.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l24.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.24.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.24.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 576 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l24.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l24.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.24.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l24.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.24.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.24.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l24.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.24.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l24.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.24.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.25.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l25.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.25.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.25.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l25.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.25.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 80 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l25.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.25.linear_attn.A_log" - }, - { - "buf": "model.layers.25.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l25.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l25.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l25.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.25.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.25.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 608 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l25.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l25.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.25.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l25.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.25.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.25.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l25.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.25.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l25.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.25.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.26.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l26.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.26.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.26.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l26.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.26.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 84 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l26.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.26.linear_attn.A_log" - }, - { - "buf": "model.layers.26.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l26.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l26.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l26.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.26.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.26.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 640 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l26.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l26.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.26.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l26.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.26.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.26.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l26.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.26.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l26.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.26.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.27.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l27.qkv_proj", - "kernel": "gemm", - "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.27.self_attn.qkv_proj.weight" - }, - { - "buf": "qkv" - }, - { - "sym": "tokens" - }, - { - "i32": 14336 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l27.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.27.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l27.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.27.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l27.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l27.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv", - "offset": 19267584 - }, - { - "state": "kv", - "offset": 19268096 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, - { - "i64": 25690112 - }, - { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 - }, - { - "i64": 2048 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l27.attn", - "kernel": "attn", - "args": [ - { - "buf": "attn_out" - }, - { - "buf": "q_n" - }, - { - "state": "kv", - "offset": 19267584 - }, - { - "state": "kv", - "offset": 19268096 - }, - { - "buf": "block_table" - }, - { - "buf": "seq_lens" - }, - { - "f32": 0.0625 - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "f32": 1.0 - }, - { - "f32": 0.0 - }, - { - "i64": 8 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 0 - }, - { - "buf": "seq_lens" - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "buf": "cu_seqlens_q" - }, - { - "i32": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l27.o_norm", - "kernel": "gemm8_sgate_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 - }, - { - "buf": "model.layers.27.self_attn.o_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.27.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l27.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.27.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l27.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.27.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.28.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l28.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.28.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.28.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l28.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.28.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 88 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l28.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.28.linear_attn.A_log" - }, - { - "buf": "model.layers.28.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l28.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l28.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l28.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.28.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.28.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 672 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l28.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l28.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.28.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l28.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.28.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.28.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l28.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.28.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l28.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.28.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.29.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l29.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.29.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.29.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l29.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.29.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 92 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l29.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.29.linear_attn.A_log" - }, - { - "buf": "model.layers.29.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l29.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l29.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l29.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.29.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.29.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 704 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l29.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l29.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.29.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l29.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.29.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.29.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l29.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.29.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l29.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.29.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.30.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l30.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.30.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.30.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l30.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.30.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 96 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l30.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.30.linear_attn.A_log" - }, - { - "buf": "model.layers.30.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l30.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l30.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l30.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.30.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.30.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 736 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l30.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l30.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.30.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l30.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.30.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.30.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l30.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.30.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l30.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.30.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.31.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l31.qkv_proj", - "kernel": "gemm", - "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.31.self_attn.qkv_proj.weight" - }, - { - "buf": "qkv" - }, - { - "sym": "tokens" - }, - { - "i32": 14336 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l31.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.31.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l31.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.31.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l31.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l31.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv", - "offset": 22478848 - }, - { - "state": "kv", - "offset": 22479360 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, - { - "i64": 25690112 - }, - { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 - }, - { - "i64": 2048 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l31.attn", - "kernel": "attn", - "args": [ - { - "buf": "attn_out" - }, - { - "buf": "q_n" - }, - { - "state": "kv", - "offset": 22478848 - }, - { - "state": "kv", - "offset": 22479360 - }, - { - "buf": "block_table" - }, - { - "buf": "seq_lens" - }, - { - "f32": 0.0625 - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "f32": 1.0 - }, - { - "f32": 0.0 - }, - { - "i64": 8 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 0 - }, - { - "buf": "seq_lens" - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "buf": "cu_seqlens_q" - }, - { - "i32": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l31.o_norm", - "kernel": "gemm8_sgate_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 - }, - { - "buf": "model.layers.31.self_attn.o_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.31.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l31.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.31.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l31.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.31.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.32.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l32.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.32.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.32.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l32.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.32.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 100 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l32.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.32.linear_attn.A_log" - }, - { - "buf": "model.layers.32.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l32.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l32.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l32.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.32.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.32.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 768 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l32.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l32.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.32.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l32.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.32.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.32.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l32.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.32.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l32.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.32.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.33.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l33.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.33.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.33.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l33.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.33.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 104 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l33.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.33.linear_attn.A_log" - }, - { - "buf": "model.layers.33.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l33.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l33.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l33.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.33.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.33.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 800 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l33.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l33.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.33.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l33.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.33.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.33.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l33.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.33.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l33.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.33.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.34.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l33.fc_tap", - "kernel": "gemm_acc", - "args": [ - { - "buf": "residual" - }, - { - "buf": "draft.fc.2.weight" - }, - { - "buf": "fc_out" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l34.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.34.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.34.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l34.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.34.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 108 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l34.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.34.linear_attn.A_log" - }, - { - "buf": "model.layers.34.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l34.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l34.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l34.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.34.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.34.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 832 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l34.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l34.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.34.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l34.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.34.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.34.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l34.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.34.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l34.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.34.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.35.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l35.qkv_proj", - "kernel": "gemm", - "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.35.self_attn.qkv_proj.weight" - }, - { - "buf": "qkv" - }, - { - "sym": "tokens" - }, - { - "i32": 14336 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l35.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.35.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l35.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.35.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l35.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l35.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv", - "offset": 25690112 - }, - { - "state": "kv", - "offset": 25690624 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, - { - "i64": 25690112 - }, - { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 - }, - { - "i64": 2048 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l35.attn", - "kernel": "attn", - "args": [ - { - "buf": "attn_out" - }, - { - "buf": "q_n" - }, - { - "state": "kv", - "offset": 25690112 - }, - { - "state": "kv", - "offset": 25690624 - }, - { - "buf": "block_table" - }, - { - "buf": "seq_lens" - }, - { - "f32": 0.0625 - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "f32": 1.0 - }, - { - "f32": 0.0 - }, - { - "i64": 8 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 0 - }, - { - "buf": "seq_lens" - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "buf": "cu_seqlens_q" - }, - { - "i32": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l35.o_norm", - "kernel": "gemm8_sgate_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 - }, - { - "buf": "model.layers.35.self_attn.o_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.35.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l35.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.35.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l35.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.35.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.36.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l36.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.36.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.36.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l36.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.36.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 112 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l36.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.36.linear_attn.A_log" - }, - { - "buf": "model.layers.36.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l36.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l36.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l36.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.36.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.36.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 864 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l36.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l36.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.36.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l36.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.36.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.36.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l36.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.36.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l36.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.36.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.37.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l37.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.37.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.37.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l37.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.37.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 116 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l37.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.37.linear_attn.A_log" - }, - { - "buf": "model.layers.37.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l37.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l37.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l37.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.37.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.37.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 896 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l37.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l37.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.37.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l37.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.37.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.37.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l37.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.37.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l37.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.37.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.38.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l38.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.38.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.38.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l38.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.38.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 120 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l38.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.38.linear_attn.A_log" - }, - { - "buf": "model.layers.38.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l38.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l38.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l38.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.38.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.38.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 928 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l38.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l38.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.38.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l38.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.38.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.38.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l38.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.38.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l38.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.38.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.39.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l39.qkv_proj", - "kernel": "gemm", - "args": [ - { - "buf": "x" - }, - { - "buf": "model.layers.39.self_attn.qkv_proj.weight" - }, - { - "buf": "qkv" - }, - { - "sym": "tokens" - }, - { - "i32": 14336 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l39.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.39.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l39.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.39.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l39.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l39.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv", - "offset": 28901376 - }, - { - "state": "kv", - "offset": 28901888 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, - { - "i64": 25690112 - }, - { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 - }, - { - "i64": 2048 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l39.attn", - "kernel": "attn", - "args": [ - { - "buf": "attn_out" - }, - { - "buf": "q_n" - }, - { - "state": "kv", - "offset": 28901376 - }, - { - "state": "kv", - "offset": 28901888 - }, - { - "buf": "block_table" - }, - { - "buf": "seq_lens" - }, - { - "f32": 0.0625 - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "f32": 1.0 - }, - { - "f32": 0.0 - }, - { - "i64": 8 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 6144 - }, - { - "i64": 256 - }, - { - "i64": 0 - }, - { - "buf": "seq_lens" - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "buf": "cu_seqlens_q" - }, - { - "i32": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l39.o_norm", - "kernel": "gemm8_sgate_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 - }, - { - "buf": "model.layers.39.self_attn.o_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.39.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l39.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.39.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l39.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.39.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.40.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l40.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.40.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.40.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l40.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.40.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 124 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l40.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.40.linear_attn.A_log" - }, - { - "buf": "model.layers.40.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l40.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l40.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l40.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.40.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.40.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 960 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l40.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l40.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.40.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l40.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.40.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.40.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l40.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.40.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l40.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.40.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.41.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l41.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.41.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.41.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l41.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.41.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 128 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l41.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.41.linear_attn.A_log" - }, - { - "buf": "model.layers.41.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l41.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l41.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l41.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.41.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.41.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 992 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l41.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l41.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.41.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l41.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.41.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.41.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l41.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.41.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l41.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.41.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.42.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l42.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.42.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.42.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l42.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.42.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 132 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l42.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.42.linear_attn.A_log" - }, - { - "buf": "model.layers.42.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l42.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l42.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l42.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.42.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.42.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 1024 - }, - { - "buf": "gdn.one" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l42.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" + "buf": "positions" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "rope.sin" }, { - "i32": 6144 + "buf": "sin_g" }, { - "i32": 16384 + "sym": "tokens" }, { - "i32": 6144 + "i32": 32 } ] }, { - "label": "l42.gated_norm", - "kernel": "gated_norm", + "label": "l0.input_norm", + "kernel": "gemma_norm", "args": [ { - "buf": "core_attn_out" + "buf": "x" }, { - "buf": "core_attn_out" + "buf": "residual" }, { - "buf": "model.layers.42.linear_attn.norm.weight" + "buf": "model.layers.0.input_layernorm.weight_p1" }, { - "buf": "z_c" + "i32": 5120 }, { - "i32": 128 + "sym": "tokens" }, { - "i32": 128 + "i32": 1 }, { - "i32": 128 + "i32": 5120 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 0 }, { - "f32": 9.999999974752427e-07 + "i32": 5120 }, { - "i64": 0 + "i32": 0 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l42.out_norm", - "kernel": "gemm8_add_norm", + "label": "l0.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "x" + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "ba" }, { - "buf": "model.layers.42.linear_attn.out_proj.weight" + "buf": "x" }, { - "buf": "residual" + "buf": "model.layers.0.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.42.post_attention_layernorm.weight_p1" + "buf": "model.layers.0.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" }, { - "i32": 5120 + "i32": 16384 }, { - "i32": 6144 + "i32": 96 }, { - "f32": 9.999999974752427e-07 + "i32": 5120 } ] }, { - "label": "l42.gate_up_silu", - "kernel": "gemm8_gateup_silu", + "label": "l0.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "act" - }, - { - "buf": "x" + "buf": "qkvz" }, { - "buf": "model.layers.42.mlp.gate_up_proj.weight" + "buf": "model.layers.0.linear_attn.conv1d.weight" }, { - "sym": "tokens" + "state": "gdn" }, { - "i32": 17408 + "state": "gdn", + "offset": 204800 }, { - "i32": 5120 - } - ] - }, - { - "label": "l42.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" + "buf": "gdn.spec_line_index", + "offset": 4 }, { - "buf": "act" + "buf": "gdn.one" }, { - "buf": "model.layers.42.mlp.down_proj.weight" + "buf": "cu_seqlens_q" }, { - "buf": "residual" + "buf": "gdn.spec_slots" }, { - "buf": "model.layers.43.input_layernorm.weight_p1" + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.0.linear_attn.A_log" }, { - "i32": 5120 + "buf": "model.layers.0.linear_attn.dt_bias" }, { - "i32": 17408 + "buf": "core_attn_out" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l43.qkv_proj", - "kernel": "gemm", - "args": [ - { - "buf": "x" + "buf": "model.layers.0.linear_attn.norm.weight" }, { - "buf": "model.layers.43.self_attn.qkv_proj.weight" + "buf": "gdn_q" }, { - "buf": "qkv" + "buf": "gdn_k" }, { - "sym": "tokens" + "buf": "gdn_v" }, { - "i32": 14336 + "buf": "g" }, { - "i32": 5120 - } - ] - }, - { - "label": "l43.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ - { - "buf": "q_n" + "buf": "beta" }, { - "buf": "qkv" + "buf": "a_c" }, { - "buf": "model.layers.43.self_attn.q_norm.weight_p1" + "buf": "b_c" }, { - "i32": 256 + "buf": "z_c" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } + "f32": 0.0883883461356163 }, { - "i32": 24 + "f32": 9.999999974752427e-07 }, { - "i32": 14336 + "sym": "tokens" }, { - "i32": 512 + "i32": 385 }, { - "i32": 6144 + "i32": 1703936 }, { - "i32": 256 + "i32": 10 }, { - "f32": 9.999999974752427e-07 + "i32": 851968 } ] }, { - "label": "l43.k_norm", - "kernel": "gemma_norm_khead", + "label": "l0.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.43.self_attn.k_norm.weight_p1" + "buf": "x" }, { - "i32": 256 + "buf": "core_attn_out" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } + "buf": "model.layers.0.linear_attn.out_proj.weight" }, { - "i32": 4 + "buf": "residual" }, { - "i32": 14336 + "buf": "model.layers.0.post_attention_layernorm.weight_p1" }, { - "i32": 256 + "sym": "tokens" }, { - "i32": 1024 + "i32": 5120 }, { - "i32": 256 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -91635,205 +64532,206 @@ ] }, { - "label": "l43.rope", - "kernel": "mrope", + "label": "l0.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "q_n" - }, - { - "buf": "k_n" + "buf": "act" }, { - "buf": "cos_g" + "buf": "x" }, { - "buf": "sin_g" + "buf": "model.layers.0.mlp.gate_up_proj.weight" }, { - "i32": 0 + "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l43.kv_write", - "kernel": "reshape_and_cache", + "label": "l0.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" + "buf": "x" }, { - "buf": "qkv", - "offset": 26624 + "buf": "act" }, { - "state": "kv", - "offset": 32112640 + "buf": "model.layers.0.mlp.down_proj.weight" }, { - "state": "kv", - "offset": 32113152 + "buf": "residual" }, { - "buf": "slot_mapping" + "buf": "model.layers.1.input_layernorm.weight_p1" }, { - "buf": "kv_scales" + "sym": "tokens" }, { - "buf": "kv_scales", - "offset": 4 + "i32": 5120 }, { - "i64": 1024 + "i32": 17408 }, { - "i64": 14336 + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l1.in_proj", + "kernel": "gemm8_dual", + "args": [ + { + "buf": "qkvz" }, { - "i64": 25690112 + "buf": "ba" }, { - "i64": 512 + "buf": "x" }, { - "i64": 0 + "buf": "model.layers.1.linear_attn.in_proj_qkvz.weight" }, { - "i64": 0 + "buf": "model.layers.1.linear_attn.in_proj_ba.weight" }, { - "i64": 2048 + "sym": "tokens" }, { - "i64": 0 + "i32": 16384 }, { - "i64": 0 + "i32": 96 + }, + { + "i32": 5120 } ] }, { - "label": "l43.attn", - "kernel": "attn", + "label": "l1.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "attn_out" + "buf": "qkvz" }, { - "buf": "q_n" + "buf": "model.layers.1.linear_attn.conv1d.weight" }, { - "state": "kv", - "offset": 32112640 + "state": "gdn" }, { - "state": "kv", - "offset": 32113152 + "state": "gdn", + "offset": 204800 }, { - "buf": "block_table" + "buf": "gdn.spec_line_index", + "offset": 8 }, { - "buf": "seq_lens" + "buf": "gdn.one" }, { - "f32": 0.0625 + "buf": "cu_seqlens_q" }, { - "buf": "kv_scales" + "buf": "gdn.spec_slots", + "offset": 32 }, { - "buf": "kv_scales", - "offset": 4 + "buf": "ba" }, { - "f32": 1.0 + "buf": "model.layers.1.linear_attn.A_log" }, { - "f32": 0.0 + "buf": "model.layers.1.linear_attn.dt_bias" }, { - "i64": 8 + "buf": "core_attn_out" }, { - "i64": 6144 + "buf": "model.layers.1.linear_attn.norm.weight" }, { - "i64": 256 + "buf": "gdn_q" }, { - "i64": 6144 + "buf": "gdn_k" }, { - "i64": 256 + "buf": "gdn_v" }, { - "i64": 0 + "buf": "g" }, { - "buf": "seq_lens" + "buf": "beta" }, { - "i64": 25690112 + "buf": "a_c" }, { - "i64": 2048 + "buf": "b_c" }, { - "i64": 512 + "buf": "z_c" }, { - "i64": 25690112 + "f32": 0.0883883461356163 }, { - "i64": 2048 + "f32": 9.999999974752427e-07 }, { - "i64": 512 + "sym": "tokens" }, { - "buf": "cu_seqlens_q" + "i32": 385 }, { - "i32": 1 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l43.o_norm", - "kernel": "gemm8_sgate_add_norm", + "label": "l1.out_norm", + "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 + "buf": "core_attn_out" }, { - "buf": "model.layers.43.self_attn.o_proj.weight" + "buf": "model.layers.1.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.43.post_attention_layernorm.weight_p1" + "buf": "model.layers.1.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -91844,22 +64742,13 @@ { "i32": 6144 }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l43.gate_up_silu", + "label": "l1.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -91869,7 +64758,7 @@ "buf": "x" }, { - "buf": "model.layers.43.mlp.gate_up_proj.weight" + "buf": "model.layers.1.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -91883,7 +64772,7 @@ ] }, { - "label": "l43.down_norm", + "label": "l1.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -91893,13 +64782,13 @@ "buf": "act" }, { - "buf": "model.layers.43.mlp.down_proj.weight" + "buf": "model.layers.1.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.44.input_layernorm.weight_p1" + "buf": "model.layers.2.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -91916,7 +64805,7 @@ ] }, { - "label": "l44.in_proj", + "label": "l2.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -91929,10 +64818,10 @@ "buf": "x" }, { - "buf": "model.layers.44.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.2.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.44.linear_attn.in_proj_ba.weight" + "buf": "model.layers.2.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -91949,21 +64838,25 @@ ] }, { - "label": "l44.conv_update", - "kernel": "conv_update_spec", + "label": "l2.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.44.linear_attn.conv1d.weight" + "buf": "model.layers.2.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 136 + "offset": 12 }, { "buf": "gdn.one" @@ -91972,47 +64865,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 64 }, { - "i64": 0 - } - ] - }, - { - "label": "l44.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.2.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.2.linear_attn.dt_bias" }, { - "buf": "model.layers.44.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.44.linear_attn.dt_bias" + "buf": "model.layers.2.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -92030,192 +64899,213 @@ "buf": "beta" }, { - "i32": 16384 + "buf": "a_c" }, { - "i32": 96 + "buf": "b_c" }, { - "i32": 96 + "buf": "z_c" }, { - "i32": 2048 + "f32": 0.0883883461356163 }, { - "i32": 2048 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 385 }, { - "i64": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l44.a_copy", - "kernel": "copy_rows", + "label": "l2.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.2.linear_attn.out_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 + "buf": "model.layers.2.post_attention_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l44.b_copy", - "kernel": "copy_rows", + "label": "l2.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "b_c" + "buf": "act" }, { - "buf": "ba" + "buf": "x" }, { - "i32": 48 + "buf": "model.layers.2.mlp.gate_up_proj.weight" }, { - "i32": 96 + "sym": "tokens" + }, + { + "i32": 17408 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l44.recurrent", - "kernel": "recurrent_spec", + "label": "l2.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "model.layers.44.linear_attn.A_log" + "buf": "x" }, { - "buf": "a_c" + "buf": "act" }, { - "buf": "b_c" + "buf": "model.layers.2.mlp.down_proj.weight" }, { - "buf": "model.layers.44.linear_attn.dt_bias" + "buf": "residual" }, { - "f32": 1.0 + "buf": "model.layers.3.input_layernorm.weight_p1" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 5120 }, { - "buf": "gdn_k" + "i32": 17408 }, { - "buf": "gdn_v" - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l3.qkv_proj", + "kernel": "gemm", + "args": [ { - "buf": "core_attn_out" + "buf": "x" }, { - "state": "gdn", - "offset": 204800 + "buf": "model.layers.3.self_attn.qkv_proj.weight" }, { - "state": "gdn", - "offset": 204800 + "buf": "qkv" }, { - "buf": "cu_seqlens_q" + "sym": "tokens" }, { - "buf": "gdn.spec_slots", - "offset": 1056 + "i32": 14336 }, { - "buf": "gdn.one" + "i32": 5120 + } + ] + }, + { + "label": "l3.q_norm", + "kernel": "gemma_norm_qhead", + "args": [ + { + "buf": "q_n" }, { - "f32": 0.0883883461356163 + "buf": "qkv" }, { - "i64": 1 + "buf": "model.layers.3.self_attn.q_norm.weight_p1" }, { - "sym": "tokens" + "i32": 256 }, { - "i64": 0 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 0 - } - ] - }, - { - "label": "l44.z_copy", - "kernel": "copy_rows", - "args": [ + "i32": 24 + }, { - "buf": "z_c" + "i32": 14336 }, { - "buf": "qkvz", - "offset": 20480 + "i32": 512 }, { "i32": 6144 }, { - "i32": 16384 + "i32": 256 }, { - "i32": 6144 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l44.gated_norm", - "kernel": "gated_norm", + "label": "l3.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.44.linear_attn.norm.weight" - }, - { - "buf": "z_c" + "buf": "k_n" }, { - "i32": 128 + "buf": "qkv", + "offset": 24576 }, { - "i32": 128 + "buf": "model.layers.3.self_attn.k_norm.weight_p1" }, { - "i32": 128 + "i32": 256 }, { "expr": { @@ -92223,181 +65113,197 @@ { "sym": "tokens" }, - 48 + 4 ] } }, { - "f32": 9.999999974752427e-07 + "i32": 4 }, { - "i64": 0 + "i32": 14336 }, { - "i64": 0 + "i32": 256 + }, + { + "i32": 1024 + }, + { + "i32": 256 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l44.out_norm", - "kernel": "gemm8_add_norm", + "label": "l3.rope", + "kernel": "mrope", "args": [ { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.44.linear_attn.out_proj.weight" + "buf": "q_n" }, { - "buf": "residual" + "buf": "k_n" }, { - "buf": "model.layers.44.post_attention_layernorm.weight_p1" + "buf": "cos_g" }, { - "sym": "tokens" + "buf": "sin_g" }, { - "i32": 5120 + "i32": 0 }, { - "i32": 6144 + "i64": 0 }, { - "f32": 9.999999974752427e-07 + "i64": 0 } ] }, { - "label": "l44.gate_up_silu", - "kernel": "gemm8_gateup_silu", + "label": "l3.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "act" + "buf": "k_n" }, { - "buf": "x" + "buf": "qkv", + "offset": 26624 }, { - "buf": "model.layers.44.mlp.gate_up_proj.weight" + "state": "kv" }, { - "sym": "tokens" + "state": "kv", + "offset": 512 }, { - "i32": 17408 + "buf": "slot_mapping" }, { - "i32": 5120 - } - ] - }, - { - "label": "l44.down_norm", - "kernel": "gemm8_add_norm", - "args": [ + "buf": "kv_scales" + }, { - "buf": "x" + "buf": "kv_scales", + "offset": 4 }, { - "buf": "act" + "i64": 1024 }, { - "buf": "model.layers.44.mlp.down_proj.weight" + "i64": 14336 }, { - "buf": "residual" + "i64": 25690112 }, { - "buf": "model.layers.45.input_layernorm.weight_p1" + "i64": 512 }, { - "sym": "tokens" + "i64": 0 }, { - "i32": 5120 + "i64": 0 }, { - "i32": 17408 + "i64": 2048 }, { - "f32": 9.999999974752427e-07 + "i64": 0 + }, + { + "i64": 0 } ] }, { - "label": "l45.in_proj", - "kernel": "gemm8_dual", + "label": "l3.attn", + "kernel": "attn", "args": [ { - "buf": "qkvz" + "buf": "attn_out" }, { - "buf": "ba" + "buf": "q_n" }, { - "buf": "x" + "state": "kv" }, { - "buf": "model.layers.45.linear_attn.in_proj_qkvz.weight" + "state": "kv", + "offset": 512 }, { - "buf": "model.layers.45.linear_attn.in_proj_ba.weight" + "buf": "block_table" }, { - "sym": "tokens" + "buf": "seq_lens" }, { - "i32": 16384 + "f32": 0.0625 }, { - "i32": 96 + "buf": "kv_scales" }, { - "i32": 5120 - } - ] - }, - { - "label": "l45.conv_update", - "kernel": "conv_update_spec", - "args": [ + "buf": "kv_scales", + "offset": 4 + }, { - "buf": "qkvz" + "f32": 1.0 }, { - "buf": "model.layers.45.linear_attn.conv1d.weight" + "f32": 0.0 }, { - "state": "gdn" + "i64": 8 }, { - "buf": "gdn.spec_line_index", - "offset": 140 + "i64": 6144 }, { - "buf": "gdn.one" + "i64": 256 }, { - "buf": "cu_seqlens_q" + "i64": 6144 }, { - "buf": "qkvz" + "i64": 256 }, { - "i32": 1 + "i64": 0 }, { - "i32": 385 + "buf": "seq_lens" }, { - "i64": 16384 + "i64": 25690112 }, { - "i64": 16384 + "i64": 2048 + }, + { + "i64": 512 + }, + { + "i64": 25690112 + }, + { + "i64": 2048 + }, + { + "i64": 512 + }, + { + "buf": "cu_seqlens_q" + }, + { + "i32": 1 }, { "i64": 0 @@ -92408,251 +65314,236 @@ ] }, { - "label": "l45.post_conv", - "kernel": "post_conv", + "label": "l3.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "qkvz" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "attn_out" }, { - "buf": "ba" + "buf": "qkv", + "offset": 512 }, { - "buf": "model.layers.45.linear_attn.A_log" + "buf": "model.layers.3.self_attn.o_proj.weight" }, { - "buf": "model.layers.45.linear_attn.dt_bias" + "buf": "residual" }, { - "buf": "gdn_q" + "buf": "model.layers.3.post_attention_layernorm.weight_p1" }, { - "buf": "gdn_k" + "sym": "tokens" }, { - "buf": "gdn_v" + "i32": 5120 }, { - "buf": "g" + "i32": 6144 }, { - "buf": "beta" + "i32": 256 }, { - "i32": 16384 + "i32": 14336 }, { - "i32": 96 + "i32": 512 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l3.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ { - "i32": 2048 + "buf": "act" }, { - "i32": 2048 + "buf": "x" }, { - "i32": 6144 + "buf": "model.layers.3.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l45.a_copy", - "kernel": "copy_rows", + "label": "l3.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.3.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l45.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.4.input_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l45.recurrent", - "kernel": "recurrent_spec", + "label": "l4.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.45.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.45.linear_attn.dt_bias" + "buf": "model.layers.4.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.4.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l4.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.4.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 16 }, { - "buf": "gdn.spec_slots", - "offset": 1088 + "buf": "gdn.one" }, { - "buf": "gdn.one" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 96 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.4.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.4.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l45.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.4.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l45.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.45.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l45.out_norm", + "label": "l4.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -92662,13 +65553,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.45.linear_attn.out_proj.weight" + "buf": "model.layers.4.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.45.post_attention_layernorm.weight_p1" + "buf": "model.layers.4.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -92685,7 +65576,7 @@ ] }, { - "label": "l45.gate_up_silu", + "label": "l4.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -92695,7 +65586,7 @@ "buf": "x" }, { - "buf": "model.layers.45.mlp.gate_up_proj.weight" + "buf": "model.layers.4.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -92709,7 +65600,7 @@ ] }, { - "label": "l45.down_norm", + "label": "l4.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -92719,13 +65610,13 @@ "buf": "act" }, { - "buf": "model.layers.45.mlp.down_proj.weight" + "buf": "model.layers.4.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.46.input_layernorm.weight_p1" + "buf": "model.layers.5.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -92742,7 +65633,7 @@ ] }, { - "label": "l46.in_proj", + "label": "l5.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -92755,10 +65646,10 @@ "buf": "x" }, { - "buf": "model.layers.46.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.5.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.46.linear_attn.in_proj_ba.weight" + "buf": "model.layers.5.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -92775,21 +65666,25 @@ ] }, { - "label": "l46.conv_update", - "kernel": "conv_update_spec", + "label": "l5.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.46.linear_attn.conv1d.weight" + "buf": "model.layers.5.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 144 + "offset": 20 }, { "buf": "gdn.one" @@ -92798,274 +65693,313 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 128 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.5.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.5.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.5.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l46.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.46.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.46.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l5.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" + }, + { + "buf": "model.layers.5.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.5.post_attention_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l5.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ + { + "buf": "act" + }, + { + "buf": "x" }, { - "i32": 6144 + "buf": "model.layers.5.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l46.a_copy", - "kernel": "copy_rows", + "label": "l5.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.5.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" + }, + { + "buf": "model.layers.6.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l46.b_copy", - "kernel": "copy_rows", + "label": "l5.fc_tap", + "kernel": "gemm", "args": [ { - "buf": "b_c" + "buf": "residual" }, { - "buf": "ba" + "buf": "draft.fc.0.weight" }, { - "i32": 48 + "buf": "fc_out" }, { - "i32": 96 + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 + }, + { + "i32": 5120 } ] }, { - "label": "l46.recurrent", - "kernel": "recurrent_spec", + "label": "l6.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.46.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.46.linear_attn.dt_bias" + "buf": "model.layers.6.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.6.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l6.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.6.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 24 }, { - "buf": "gdn.spec_slots", - "offset": 1120 + "buf": "gdn.one" }, { - "buf": "gdn.one" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 160 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.6.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.6.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l46.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.6.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l46.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.46.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l46.out_norm", + "label": "l6.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -93075,13 +66009,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.46.linear_attn.out_proj.weight" + "buf": "model.layers.6.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.46.post_attention_layernorm.weight_p1" + "buf": "model.layers.6.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -93098,7 +66032,7 @@ ] }, { - "label": "l46.gate_up_silu", + "label": "l6.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -93108,7 +66042,7 @@ "buf": "x" }, { - "buf": "model.layers.46.mlp.gate_up_proj.weight" + "buf": "model.layers.6.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -93122,7 +66056,7 @@ ] }, { - "label": "l46.down_norm", + "label": "l6.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -93132,13 +66066,13 @@ "buf": "act" }, { - "buf": "model.layers.46.mlp.down_proj.weight" + "buf": "model.layers.6.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.47.input_layernorm.weight_p1" + "buf": "model.layers.7.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -93155,14 +66089,14 @@ ] }, { - "label": "l47.qkv_proj", + "label": "l7.qkv_proj", "kernel": "gemm", "args": [ { "buf": "x" }, { - "buf": "model.layers.47.self_attn.qkv_proj.weight" + "buf": "model.layers.7.self_attn.qkv_proj.weight" }, { "buf": "qkv" @@ -93179,7 +66113,7 @@ ] }, { - "label": "l47.q_norm", + "label": "l7.q_norm", "kernel": "gemma_norm_qhead", "args": [ { @@ -93189,7 +66123,7 @@ "buf": "qkv" }, { - "buf": "model.layers.47.self_attn.q_norm.weight_p1" + "buf": "model.layers.7.self_attn.q_norm.weight_p1" }, { "i32": 256 @@ -93225,7 +66159,7 @@ ] }, { - "label": "l47.k_norm", + "label": "l7.k_norm", "kernel": "gemma_norm_khead", "args": [ { @@ -93236,7 +66170,7 @@ "offset": 24576 }, { - "buf": "model.layers.47.self_attn.k_norm.weight_p1" + "buf": "model.layers.7.self_attn.k_norm.weight_p1" }, { "i32": 256 @@ -93272,7 +66206,7 @@ ] }, { - "label": "l47.rope", + "label": "l7.rope", "kernel": "mrope", "args": [ { @@ -93299,7 +66233,7 @@ ] }, { - "label": "l47.kv_write", + "label": "l7.kv_write", "kernel": "reshape_and_cache", "args": [ { @@ -93311,11 +66245,11 @@ }, { "state": "kv", - "offset": 35323904 + "offset": 3211264 }, { "state": "kv", - "offset": 35324416 + "offset": 3211776 }, { "buf": "slot_mapping" @@ -93357,7 +66291,7 @@ ] }, { - "label": "l47.attn", + "label": "l7.attn", "kernel": "attn", "args": [ { @@ -93368,11 +66302,11 @@ }, { "state": "kv", - "offset": 35323904 + "offset": 3211264 }, { "state": "kv", - "offset": 35324416 + "offset": 3211776 }, { "buf": "block_table" @@ -93450,7 +66384,7 @@ ] }, { - "label": "l47.o_norm", + "label": "l7.o_norm", "kernel": "gemm8_sgate_add_norm", "args": [ { @@ -93464,13 +66398,13 @@ "offset": 512 }, { - "buf": "model.layers.47.self_attn.o_proj.weight" + "buf": "model.layers.7.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.47.post_attention_layernorm.weight_p1" + "buf": "model.layers.7.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -93496,7 +66430,7 @@ ] }, { - "label": "l47.gate_up_silu", + "label": "l7.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -93506,7 +66440,7 @@ "buf": "x" }, { - "buf": "model.layers.47.mlp.gate_up_proj.weight" + "buf": "model.layers.7.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -93520,7 +66454,7 @@ ] }, { - "label": "l47.down_norm", + "label": "l7.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -93530,13 +66464,13 @@ "buf": "act" }, { - "buf": "model.layers.47.mlp.down_proj.weight" + "buf": "model.layers.7.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.48.input_layernorm.weight_p1" + "buf": "model.layers.8.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -93553,31 +66487,7 @@ ] }, { - "label": "l47.fc_tap", - "kernel": "gemm_acc", - "args": [ - { - "buf": "residual" - }, - { - "buf": "draft.fc.3.weight" - }, - { - "buf": "fc_out" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l48.in_proj", + "label": "l8.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -93590,10 +66500,10 @@ "buf": "x" }, { - "buf": "model.layers.48.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.8.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.48.linear_attn.in_proj_ba.weight" + "buf": "model.layers.8.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -93610,21 +66520,25 @@ ] }, { - "label": "l48.conv_update", - "kernel": "conv_update_spec", + "label": "l8.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.48.linear_attn.conv1d.weight" + "buf": "model.layers.8.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 148 + "offset": 28 }, { "buf": "gdn.one" @@ -93633,47 +66547,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 192 }, { - "i64": 0 - } - ] - }, - { - "label": "l48.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.8.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.8.linear_attn.dt_bias" }, { - "buf": "model.layers.48.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.48.linear_attn.dt_bias" + "buf": "model.layers.8.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -93690,85 +66580,6 @@ { "buf": "beta" }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l48.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l48.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l48.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.48.linear_attn.A_log" - }, { "buf": "a_c" }, @@ -93776,131 +66587,33 @@ "buf": "b_c" }, { - "buf": "model.layers.48.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 1152 - }, - { - "buf": "gdn.one" + "buf": "z_c" }, { "f32": 0.0883883461356163 }, { - "i64": 1 + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l48.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l48.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.48.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l48.out_norm", + "label": "l8.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -93910,13 +66623,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.48.linear_attn.out_proj.weight" + "buf": "model.layers.8.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.48.post_attention_layernorm.weight_p1" + "buf": "model.layers.8.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -93933,7 +66646,7 @@ ] }, { - "label": "l48.gate_up_silu", + "label": "l8.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -93943,7 +66656,7 @@ "buf": "x" }, { - "buf": "model.layers.48.mlp.gate_up_proj.weight" + "buf": "model.layers.8.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -93957,7 +66670,7 @@ ] }, { - "label": "l48.down_norm", + "label": "l8.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -93967,13 +66680,13 @@ "buf": "act" }, { - "buf": "model.layers.48.mlp.down_proj.weight" + "buf": "model.layers.8.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.49.input_layernorm.weight_p1" + "buf": "model.layers.9.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -93990,7 +66703,7 @@ ] }, { - "label": "l49.in_proj", + "label": "l9.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -94003,10 +66716,10 @@ "buf": "x" }, { - "buf": "model.layers.49.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.9.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.49.linear_attn.in_proj_ba.weight" + "buf": "model.layers.9.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -94023,21 +66736,25 @@ ] }, { - "label": "l49.conv_update", - "kernel": "conv_update_spec", + "label": "l9.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.49.linear_attn.conv1d.weight" + "buf": "model.layers.9.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 152 + "offset": 32 }, { "buf": "gdn.one" @@ -94046,274 +66763,289 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 224 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.9.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.9.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.9.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l49.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, + { + "buf": "gdn_k" + }, + { + "buf": "gdn_v" + }, { - "buf": "qkvz" + "buf": "g" }, { - "buf": "ba", - "offset": 96 + "buf": "beta" }, { - "buf": "ba" + "buf": "a_c" }, { - "buf": "model.layers.49.linear_attn.A_log" + "buf": "b_c" }, { - "buf": "model.layers.49.linear_attn.dt_bias" + "buf": "z_c" }, { - "buf": "gdn_q" + "f32": 0.0883883461356163 }, { - "buf": "gdn_k" + "f32": 9.999999974752427e-07 }, { - "buf": "gdn_v" + "sym": "tokens" }, { - "buf": "g" + "i32": 385 }, { - "buf": "beta" + "i32": 1703936 }, { - "i32": 16384 + "i32": 10 }, { - "i32": 96 + "i32": 851968 + } + ] + }, + { + "label": "l9.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 96 + "buf": "core_attn_out" }, { - "i32": 2048 + "buf": "model.layers.9.linear_attn.out_proj.weight" }, { - "i32": 2048 + "buf": "residual" }, { - "i32": 6144 + "buf": "model.layers.9.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l49.a_copy", - "kernel": "copy_rows", + "label": "l9.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" + }, + { + "buf": "model.layers.9.mlp.gate_up_proj.weight" }, { - "i32": 48 + "sym": "tokens" }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l49.b_copy", - "kernel": "copy_rows", + "label": "l9.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.9.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" + }, + { + "buf": "model.layers.10.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l49.recurrent", - "kernel": "recurrent_spec", + "label": "l10.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.49.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.49.linear_attn.dt_bias" + "buf": "model.layers.10.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.10.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l10.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.10.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 36 }, { - "buf": "gdn.spec_slots", - "offset": 1184 + "buf": "gdn.one" }, { - "buf": "gdn.one" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 256 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.10.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.10.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l49.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.10.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l49.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.49.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l49.out_norm", + "label": "l10.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -94323,13 +67055,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.49.linear_attn.out_proj.weight" + "buf": "model.layers.10.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.49.post_attention_layernorm.weight_p1" + "buf": "model.layers.10.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -94346,7 +67078,7 @@ ] }, { - "label": "l49.gate_up_silu", + "label": "l10.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -94356,7 +67088,7 @@ "buf": "x" }, { - "buf": "model.layers.49.mlp.gate_up_proj.weight" + "buf": "model.layers.10.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -94370,7 +67102,7 @@ ] }, { - "label": "l49.down_norm", + "label": "l10.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -94380,13 +67112,13 @@ "buf": "act" }, { - "buf": "model.layers.49.mlp.down_proj.weight" + "buf": "model.layers.10.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.50.input_layernorm.weight_p1" + "buf": "model.layers.11.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -94403,32 +67135,23 @@ ] }, { - "label": "l50.in_proj", - "kernel": "gemm8_dual", + "label": "l11.qkv_proj", + "kernel": "gemm", "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, { "buf": "x" }, { - "buf": "model.layers.50.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.11.self_attn.qkv_proj.weight" }, { - "buf": "model.layers.50.linear_attn.in_proj_ba.weight" + "buf": "qkv" }, { "sym": "tokens" }, { - "i32": 16384 - }, - { - "i32": 96 + "i32": 14336 }, { "i32": 5120 @@ -94436,106 +67159,116 @@ ] }, { - "label": "l50.conv_update", - "kernel": "conv_update_spec", + "label": "l11.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "model.layers.50.linear_attn.conv1d.weight" - }, - { - "state": "gdn" + "buf": "q_n" }, { - "buf": "gdn.spec_line_index", - "offset": 156 + "buf": "qkv" }, { - "buf": "gdn.one" + "buf": "model.layers.11.self_attn.q_norm.weight_p1" }, { - "buf": "cu_seqlens_q" + "i32": 256 }, { - "buf": "qkvz" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i32": 1 + "i32": 24 }, { - "i32": 385 + "i32": 14336 }, { - "i64": 16384 + "i32": 512 }, { - "i64": 16384 + "i32": 6144 }, { - "i64": 0 + "i32": 256 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l50.post_conv", - "kernel": "post_conv", + "label": "l11.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 + "buf": "k_n" }, { - "buf": "ba" + "buf": "qkv", + "offset": 24576 }, { - "buf": "model.layers.50.linear_attn.A_log" + "buf": "model.layers.11.self_attn.k_norm.weight_p1" }, { - "buf": "model.layers.50.linear_attn.dt_bias" + "i32": 256 }, { - "buf": "gdn_q" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { - "buf": "gdn_k" + "i32": 4 }, { - "buf": "gdn_v" + "i32": 14336 }, { - "buf": "g" + "i32": 256 }, { - "buf": "beta" + "i32": 1024 }, { - "i32": 16384 + "i32": 256 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l11.rope", + "kernel": "mrope", + "args": [ { - "i32": 96 + "buf": "q_n" }, { - "i32": 2048 + "buf": "k_n" }, { - "i32": 2048 + "buf": "cos_g" }, { - "i32": 6144 + "buf": "sin_g" }, { - "sym": "tokens" + "i32": 0 }, { "i64": 0 @@ -94546,108 +67279,147 @@ ] }, { - "label": "l50.a_copy", - "kernel": "copy_rows", + "label": "l11.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "a_c" + "buf": "k_n" }, { - "buf": "ba", - "offset": 96 + "buf": "qkv", + "offset": 26624 }, { - "i32": 48 + "state": "kv", + "offset": 6422528 }, { - "i32": 96 + "state": "kv", + "offset": 6423040 }, { - "i32": 48 - } - ] - }, - { - "label": "l50.b_copy", - "kernel": "copy_rows", - "args": [ + "buf": "slot_mapping" + }, { - "buf": "b_c" + "buf": "kv_scales" }, { - "buf": "ba" + "buf": "kv_scales", + "offset": 4 }, { - "i32": 48 + "i64": 1024 }, { - "i32": 96 + "i64": 14336 + }, + { + "i64": 25690112 + }, + { + "i64": 512 + }, + { + "i64": 0 + }, + { + "i64": 0 + }, + { + "i64": 2048 + }, + { + "i64": 0 }, { - "i32": 48 + "i64": 0 } ] }, { - "label": "l50.recurrent", - "kernel": "recurrent_spec", + "label": "l11.attn", + "kernel": "attn", "args": [ { - "buf": "model.layers.50.linear_attn.A_log" + "buf": "attn_out" }, { - "buf": "a_c" + "buf": "q_n" }, { - "buf": "b_c" + "state": "kv", + "offset": 6422528 }, { - "buf": "model.layers.50.linear_attn.dt_bias" + "state": "kv", + "offset": 6423040 + }, + { + "buf": "block_table" + }, + { + "buf": "seq_lens" + }, + { + "f32": 0.0625 + }, + { + "buf": "kv_scales" + }, + { + "buf": "kv_scales", + "offset": 4 }, { "f32": 1.0 }, { - "f32": 20.0 + "f32": 0.0 }, { - "buf": "gdn_q" + "i64": 8 }, { - "buf": "gdn_k" + "i64": 6144 }, { - "buf": "gdn_v" + "i64": 256 }, { - "buf": "core_attn_out" + "i64": 6144 }, { - "state": "gdn", - "offset": 204800 + "i64": 256 }, { - "state": "gdn", - "offset": 204800 + "i64": 0 }, { - "buf": "cu_seqlens_q" + "buf": "seq_lens" }, { - "buf": "gdn.spec_slots", - "offset": 1216 + "i64": 25690112 }, { - "buf": "gdn.one" + "i64": 2048 }, { - "f32": 0.0883883461356163 + "i64": 512 + }, + { + "i64": 25690112 }, { - "i64": 1 + "i64": 2048 }, { - "sym": "tokens" + "i64": 512 + }, + { + "buf": "cu_seqlens_q" + }, + { + "i32": 1 }, { "i64": 0 @@ -94658,91 +67430,93 @@ ] }, { - "label": "l50.z_copy", - "kernel": "copy_rows", + "label": "l11.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "z_c" + "buf": "x" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "attn_out" }, { - "i32": 6144 + "buf": "qkv", + "offset": 512 }, { - "i32": 16384 + "buf": "model.layers.11.self_attn.o_proj.weight" }, { - "i32": 6144 - } - ] - }, - { - "label": "l50.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" + "buf": "residual" }, { - "buf": "core_attn_out" + "buf": "model.layers.11.post_attention_layernorm.weight_p1" }, { - "buf": "model.layers.50.linear_attn.norm.weight" + "sym": "tokens" }, { - "buf": "z_c" + "i32": 5120 }, { - "i32": 128 + "i32": 6144 }, { - "i32": 128 + "i32": 256 }, { - "i32": 128 + "i32": 14336 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 512 }, { "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l11.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ + { + "buf": "act" }, { - "i64": 0 + "buf": "x" }, { - "i64": 0 + "buf": "model.layers.11.mlp.gate_up_proj.weight" + }, + { + "sym": "tokens" + }, + { + "i32": 17408 + }, + { + "i32": 5120 } ] }, { - "label": "l50.out_norm", + "label": "l11.down_norm", "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "core_attn_out" + "buf": "act" }, { - "buf": "model.layers.50.linear_attn.out_proj.weight" + "buf": "model.layers.11.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.50.post_attention_layernorm.weight_p1" + "buf": "model.layers.12.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -94751,7 +67525,7 @@ "i32": 5120 }, { - "i32": 6144 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -94759,23 +67533,32 @@ ] }, { - "label": "l50.gate_up_silu", - "kernel": "gemm8_gateup_silu", + "label": "l12.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "act" + "buf": "qkvz" + }, + { + "buf": "ba" }, { "buf": "x" }, { - "buf": "model.layers.50.mlp.gate_up_proj.weight" + "buf": "model.layers.12.linear_attn.in_proj_qkvz.weight" + }, + { + "buf": "model.layers.12.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" }, { - "i32": 17408 + "i32": 16384 + }, + { + "i32": 96 }, { "i32": 5120 @@ -94783,149 +67566,125 @@ ] }, { - "label": "l50.down_norm", - "kernel": "gemm8_add_norm", + "label": "l12.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "x" + "buf": "qkvz" }, { - "buf": "act" + "buf": "model.layers.12.linear_attn.conv1d.weight" }, { - "buf": "model.layers.50.mlp.down_proj.weight" + "state": "gdn" }, { - "buf": "residual" + "state": "gdn", + "offset": 204800 }, { - "buf": "model.layers.51.input_layernorm.weight_p1" + "buf": "gdn.spec_line_index", + "offset": 40 }, { - "sym": "tokens" + "buf": "gdn.one" }, { - "i32": 5120 + "buf": "cu_seqlens_q" }, { - "i32": 17408 + "buf": "gdn.spec_slots", + "offset": 288 }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l51.qkv_proj", - "kernel": "gemm", - "args": [ + "buf": "ba" + }, { - "buf": "x" + "buf": "model.layers.12.linear_attn.A_log" }, { - "buf": "model.layers.51.self_attn.qkv_proj.weight" + "buf": "model.layers.12.linear_attn.dt_bias" }, { - "buf": "qkv" + "buf": "core_attn_out" }, { - "sym": "tokens" + "buf": "model.layers.12.linear_attn.norm.weight" }, { - "i32": 14336 + "buf": "gdn_q" }, { - "i32": 5120 - } - ] - }, - { - "label": "l51.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ + "buf": "gdn_k" + }, { - "buf": "q_n" + "buf": "gdn_v" }, { - "buf": "qkv" + "buf": "g" }, { - "buf": "model.layers.51.self_attn.q_norm.weight_p1" + "buf": "beta" }, { - "i32": 256 + "buf": "a_c" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } + "buf": "b_c" }, { - "i32": 24 + "buf": "z_c" }, { - "i32": 14336 + "f32": 0.0883883461356163 }, { - "i32": 512 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "i32": 256 + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 + }, + { + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l51.k_norm", - "kernel": "gemma_norm_khead", + "label": "l12.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.51.self_attn.k_norm.weight_p1" + "buf": "x" }, { - "i32": 256 + "buf": "core_attn_out" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } + "buf": "model.layers.12.linear_attn.out_proj.weight" }, { - "i32": 4 + "buf": "residual" }, { - "i32": 14336 + "buf": "model.layers.12.post_attention_layernorm.weight_p1" }, { - "i32": 256 + "sym": "tokens" }, { - "i32": 1024 + "i32": 5120 }, { - "i32": 256 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -94933,205 +67692,206 @@ ] }, { - "label": "l51.rope", - "kernel": "mrope", + "label": "l12.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "q_n" - }, - { - "buf": "k_n" + "buf": "act" }, { - "buf": "cos_g" + "buf": "x" }, { - "buf": "sin_g" + "buf": "model.layers.12.mlp.gate_up_proj.weight" }, { - "i32": 0 + "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l51.kv_write", - "kernel": "reshape_and_cache", + "label": "l12.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" + "buf": "x" }, { - "buf": "qkv", - "offset": 26624 + "buf": "act" }, { - "state": "kv", - "offset": 38535168 + "buf": "model.layers.12.mlp.down_proj.weight" }, { - "state": "kv", - "offset": 38535680 + "buf": "residual" }, { - "buf": "slot_mapping" + "buf": "model.layers.13.input_layernorm.weight_p1" }, { - "buf": "kv_scales" + "sym": "tokens" }, { - "buf": "kv_scales", - "offset": 4 + "i32": 5120 }, { - "i64": 1024 + "i32": 17408 }, { - "i64": 14336 + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l13.in_proj", + "kernel": "gemm8_dual", + "args": [ + { + "buf": "qkvz" }, { - "i64": 25690112 + "buf": "ba" }, { - "i64": 512 + "buf": "x" }, { - "i64": 0 + "buf": "model.layers.13.linear_attn.in_proj_qkvz.weight" }, { - "i64": 0 + "buf": "model.layers.13.linear_attn.in_proj_ba.weight" }, { - "i64": 2048 + "sym": "tokens" }, { - "i64": 0 + "i32": 16384 }, { - "i64": 0 + "i32": 96 + }, + { + "i32": 5120 } ] }, { - "label": "l51.attn", - "kernel": "attn", + "label": "l13.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "attn_out" + "buf": "qkvz" }, { - "buf": "q_n" + "buf": "model.layers.13.linear_attn.conv1d.weight" }, { - "state": "kv", - "offset": 38535168 + "state": "gdn" }, { - "state": "kv", - "offset": 38535680 + "state": "gdn", + "offset": 204800 }, { - "buf": "block_table" + "buf": "gdn.spec_line_index", + "offset": 44 }, { - "buf": "seq_lens" + "buf": "gdn.one" }, { - "f32": 0.0625 + "buf": "cu_seqlens_q" }, { - "buf": "kv_scales" + "buf": "gdn.spec_slots", + "offset": 320 }, { - "buf": "kv_scales", - "offset": 4 + "buf": "ba" }, { - "f32": 1.0 + "buf": "model.layers.13.linear_attn.A_log" }, { - "f32": 0.0 + "buf": "model.layers.13.linear_attn.dt_bias" }, { - "i64": 8 + "buf": "core_attn_out" }, { - "i64": 6144 + "buf": "model.layers.13.linear_attn.norm.weight" }, { - "i64": 256 + "buf": "gdn_q" }, { - "i64": 6144 + "buf": "gdn_k" }, { - "i64": 256 + "buf": "gdn_v" }, { - "i64": 0 + "buf": "g" }, { - "buf": "seq_lens" + "buf": "beta" }, { - "i64": 25690112 + "buf": "a_c" }, { - "i64": 2048 + "buf": "b_c" }, { - "i64": 512 + "buf": "z_c" }, { - "i64": 25690112 + "f32": 0.0883883461356163 }, { - "i64": 2048 + "f32": 9.999999974752427e-07 }, { - "i64": 512 + "sym": "tokens" }, { - "buf": "cu_seqlens_q" + "i32": 385 }, { - "i32": 1 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l51.o_norm", - "kernel": "gemm8_sgate_add_norm", + "label": "l13.out_norm", + "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 + "buf": "core_attn_out" }, { - "buf": "model.layers.51.self_attn.o_proj.weight" + "buf": "model.layers.13.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.51.post_attention_layernorm.weight_p1" + "buf": "model.layers.13.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -95142,22 +67902,13 @@ { "i32": 6144 }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l51.gate_up_silu", + "label": "l13.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -95167,7 +67918,7 @@ "buf": "x" }, { - "buf": "model.layers.51.mlp.gate_up_proj.weight" + "buf": "model.layers.13.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -95181,7 +67932,7 @@ ] }, { - "label": "l51.down_norm", + "label": "l13.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -95191,13 +67942,13 @@ "buf": "act" }, { - "buf": "model.layers.51.mlp.down_proj.weight" + "buf": "model.layers.13.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.52.input_layernorm.weight_p1" + "buf": "model.layers.14.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -95214,7 +67965,7 @@ ] }, { - "label": "l52.in_proj", + "label": "l14.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -95227,10 +67978,10 @@ "buf": "x" }, { - "buf": "model.layers.52.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.14.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.52.linear_attn.in_proj_ba.weight" + "buf": "model.layers.14.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -95247,21 +67998,25 @@ ] }, { - "label": "l52.conv_update", - "kernel": "conv_update_spec", + "label": "l14.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.52.linear_attn.conv1d.weight" + "buf": "model.layers.14.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 160 + "offset": 48 }, { "buf": "gdn.one" @@ -95270,263 +68025,296 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 352 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.14.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.14.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.14.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l52.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.52.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.52.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l14.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" }, { - "i32": 6144 + "buf": "model.layers.14.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.14.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l52.a_copy", - "kernel": "copy_rows", + "label": "l14.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" + }, + { + "buf": "model.layers.14.mlp.gate_up_proj.weight" }, { - "i32": 48 + "sym": "tokens" }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l52.b_copy", - "kernel": "copy_rows", + "label": "l14.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.14.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" + }, + { + "buf": "model.layers.15.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l52.recurrent", - "kernel": "recurrent_spec", + "label": "l15.qkv_proj", + "kernel": "gemm", "args": [ { - "buf": "model.layers.52.linear_attn.A_log" + "buf": "x" }, { - "buf": "a_c" + "buf": "model.layers.15.self_attn.qkv_proj.weight" }, { - "buf": "b_c" + "buf": "qkv" }, { - "buf": "model.layers.52.linear_attn.dt_bias" + "sym": "tokens" }, { - "f32": 1.0 + "i32": 14336 }, { - "f32": 20.0 + "i32": 5120 + } + ] + }, + { + "label": "l15.q_norm", + "kernel": "gemma_norm_qhead", + "args": [ + { + "buf": "q_n" }, { - "buf": "gdn_q" + "buf": "qkv" }, { - "buf": "gdn_k" + "buf": "model.layers.15.self_attn.q_norm.weight_p1" }, { - "buf": "gdn_v" + "i32": 256 }, { - "buf": "core_attn_out" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "state": "gdn", - "offset": 204800 + "i32": 24 }, { - "state": "gdn", - "offset": 204800 + "i32": 14336 }, { - "buf": "cu_seqlens_q" + "i32": 512 }, { - "buf": "gdn.spec_slots", - "offset": 1248 + "i32": 6144 }, { - "buf": "gdn.one" + "i32": 256 }, { - "f32": 0.0883883461356163 + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l15.k_norm", + "kernel": "gemma_norm_khead", + "args": [ + { + "buf": "k_n" }, { - "i64": 1 + "buf": "qkv", + "offset": 24576 }, { - "sym": "tokens" + "buf": "model.layers.15.self_attn.k_norm.weight_p1" }, { - "i64": 0 + "i32": 256 }, { - "i64": 0 - } - ] - }, - { - "label": "l52.z_copy", - "kernel": "copy_rows", - "args": [ + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } + }, { - "buf": "z_c" + "i32": 4 }, { - "buf": "qkvz", - "offset": 20480 + "i32": 14336 + }, + { + "i32": 256 }, { - "i32": 6144 + "i32": 1024 }, { - "i32": 16384 + "i32": 256 }, { - "i32": 6144 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l52.gated_norm", - "kernel": "gated_norm", + "label": "l15.rope", + "kernel": "mrope", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.52.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 + "buf": "q_n" }, { - "i32": 128 + "buf": "k_n" }, { - "i32": 128 + "buf": "cos_g" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "sin_g" }, { - "f32": 9.999999974752427e-07 + "i32": 0 }, { "i64": 0 @@ -95537,165 +68325,147 @@ ] }, { - "label": "l52.out_norm", - "kernel": "gemm8_add_norm", + "label": "l15.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "x" + "buf": "k_n" }, { - "buf": "core_attn_out" + "buf": "qkv", + "offset": 26624 }, { - "buf": "model.layers.52.linear_attn.out_proj.weight" + "state": "kv", + "offset": 9633792 }, { - "buf": "residual" + "state": "kv", + "offset": 9634304 }, { - "buf": "model.layers.52.post_attention_layernorm.weight_p1" + "buf": "slot_mapping" }, { - "sym": "tokens" + "buf": "kv_scales" }, { - "i32": 5120 + "buf": "kv_scales", + "offset": 4 }, { - "i32": 6144 + "i64": 1024 }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l52.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ + "i64": 14336 + }, { - "buf": "act" + "i64": 25690112 }, { - "buf": "x" + "i64": 512 }, { - "buf": "model.layers.52.mlp.gate_up_proj.weight" + "i64": 0 }, { - "sym": "tokens" + "i64": 0 }, { - "i32": 17408 + "i64": 2048 }, { - "i32": 5120 + "i64": 0 + }, + { + "i64": 0 } ] }, { - "label": "l52.down_norm", - "kernel": "gemm8_add_norm", + "label": "l15.attn", + "kernel": "attn", "args": [ { - "buf": "x" - }, - { - "buf": "act" + "buf": "attn_out" }, { - "buf": "model.layers.52.mlp.down_proj.weight" + "buf": "q_n" }, { - "buf": "residual" + "state": "kv", + "offset": 9633792 }, { - "buf": "model.layers.53.input_layernorm.weight_p1" + "state": "kv", + "offset": 9634304 }, { - "sym": "tokens" + "buf": "block_table" }, { - "i32": 5120 + "buf": "seq_lens" }, { - "i32": 17408 + "f32": 0.0625 }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l53.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" + "buf": "kv_scales" }, { - "buf": "ba" + "buf": "kv_scales", + "offset": 4 }, { - "buf": "x" + "f32": 1.0 }, { - "buf": "model.layers.53.linear_attn.in_proj_qkvz.weight" + "f32": 0.0 }, { - "buf": "model.layers.53.linear_attn.in_proj_ba.weight" + "i64": 8 }, { - "sym": "tokens" + "i64": 6144 }, { - "i32": 16384 + "i64": 256 }, { - "i32": 96 + "i64": 6144 }, { - "i32": 5120 - } - ] - }, - { - "label": "l53.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" + "i64": 256 }, { - "buf": "model.layers.53.linear_attn.conv1d.weight" + "i64": 0 }, { - "state": "gdn" + "buf": "seq_lens" }, { - "buf": "gdn.spec_line_index", - "offset": 164 + "i64": 25690112 }, { - "buf": "gdn.one" + "i64": 2048 }, { - "buf": "cu_seqlens_q" + "i64": 512 }, { - "buf": "qkvz" + "i64": 25690112 }, { - "i32": 1 + "i64": 2048 }, { - "i32": 385 + "i64": 512 }, { - "i64": 16384 + "buf": "cu_seqlens_q" }, { - "i64": 16384 + "i32": 1 }, { "i64": 0 @@ -95706,251 +68476,236 @@ ] }, { - "label": "l53.post_conv", - "kernel": "post_conv", + "label": "l15.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "qkvz" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "attn_out" }, { - "buf": "ba" + "buf": "qkv", + "offset": 512 }, { - "buf": "model.layers.53.linear_attn.A_log" + "buf": "model.layers.15.self_attn.o_proj.weight" }, { - "buf": "model.layers.53.linear_attn.dt_bias" + "buf": "residual" }, { - "buf": "gdn_q" + "buf": "model.layers.15.post_attention_layernorm.weight_p1" }, { - "buf": "gdn_k" + "sym": "tokens" }, { - "buf": "gdn_v" + "i32": 5120 }, { - "buf": "g" + "i32": 6144 }, { - "buf": "beta" + "i32": 256 }, { - "i32": 16384 + "i32": 14336 }, { - "i32": 96 + "i32": 512 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l15.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ { - "i32": 2048 + "buf": "act" }, { - "i32": 2048 + "buf": "x" }, { - "i32": 6144 + "buf": "model.layers.15.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l53.a_copy", - "kernel": "copy_rows", + "label": "l15.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.15.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l53.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.16.input_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l53.recurrent", - "kernel": "recurrent_spec", + "label": "l16.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.53.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.53.linear_attn.dt_bias" + "buf": "model.layers.16.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.16.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l16.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.16.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 52 }, { - "buf": "gdn.spec_slots", - "offset": 1280 + "buf": "gdn.one" }, { - "buf": "gdn.one" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 384 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.16.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.16.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l53.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.16.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l53.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.53.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l53.out_norm", + "label": "l16.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -95960,13 +68715,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.53.linear_attn.out_proj.weight" + "buf": "model.layers.16.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.53.post_attention_layernorm.weight_p1" + "buf": "model.layers.16.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -95983,7 +68738,7 @@ ] }, { - "label": "l53.gate_up_silu", + "label": "l16.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -95993,7 +68748,7 @@ "buf": "x" }, { - "buf": "model.layers.53.mlp.gate_up_proj.weight" + "buf": "model.layers.16.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -96007,7 +68762,7 @@ ] }, { - "label": "l53.down_norm", + "label": "l16.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -96017,13 +68772,13 @@ "buf": "act" }, { - "buf": "model.layers.53.mlp.down_proj.weight" + "buf": "model.layers.16.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.54.input_layernorm.weight_p1" + "buf": "model.layers.17.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -96040,7 +68795,7 @@ ] }, { - "label": "l54.in_proj", + "label": "l17.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -96053,10 +68808,10 @@ "buf": "x" }, { - "buf": "model.layers.54.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.17.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.54.linear_attn.in_proj_ba.weight" + "buf": "model.layers.17.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -96073,21 +68828,25 @@ ] }, { - "label": "l54.conv_update", - "kernel": "conv_update_spec", + "label": "l17.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.54.linear_attn.conv1d.weight" + "buf": "model.layers.17.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 168 + "offset": 56 }, { "buf": "gdn.one" @@ -96096,274 +68855,289 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 416 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.17.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.17.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.17.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l54.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.54.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.54.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l17.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" }, { - "i32": 6144 + "buf": "model.layers.17.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.17.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l54.a_copy", - "kernel": "copy_rows", + "label": "l17.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" }, { - "i32": 48 + "buf": "model.layers.17.mlp.gate_up_proj.weight" }, { - "i32": 96 + "sym": "tokens" }, { - "i32": 48 + "i32": 17408 + }, + { + "i32": 5120 } ] }, { - "label": "l54.b_copy", - "kernel": "copy_rows", + "label": "l17.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "act" + }, + { + "buf": "model.layers.17.mlp.down_proj.weight" }, { - "i32": 48 + "buf": "residual" }, { - "i32": 96 + "buf": "model.layers.18.input_layernorm.weight_p1" + }, + { + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 + }, + { + "i32": 17408 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l54.recurrent", - "kernel": "recurrent_spec", + "label": "l18.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.54.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.54.linear_attn.dt_bias" + "buf": "model.layers.18.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.18.linear_attn.in_proj_ba.weight" + }, + { + "sym": "tokens" }, { - "f32": 20.0 + "i32": 16384 }, { - "buf": "gdn_q" + "i32": 96 }, { - "buf": "gdn_k" + "i32": 5120 + } + ] + }, + { + "label": "l18.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "gdn_v" + "buf": "model.layers.18.linear_attn.conv1d.weight" }, { - "buf": "core_attn_out" + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "state": "gdn", - "offset": 204800 + "buf": "gdn.spec_line_index", + "offset": 60 + }, + { + "buf": "gdn.one" }, { "buf": "cu_seqlens_q" }, { "buf": "gdn.spec_slots", - "offset": 1312 + "offset": 448 }, { - "buf": "gdn.one" + "buf": "ba" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.18.linear_attn.A_log" }, { - "i64": 1 + "buf": "model.layers.18.linear_attn.dt_bias" }, { - "sym": "tokens" + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.18.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l54.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" + "buf": "gdn_q" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_k" }, { - "i32": 6144 + "buf": "gdn_v" }, { - "i32": 16384 + "buf": "g" }, { - "i32": 6144 - } - ] - }, - { - "label": "l54.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.54.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l54.out_norm", + "label": "l18.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -96373,13 +69147,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.54.linear_attn.out_proj.weight" + "buf": "model.layers.18.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.54.post_attention_layernorm.weight_p1" + "buf": "model.layers.18.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -96396,7 +69170,7 @@ ] }, { - "label": "l54.gate_up_silu", + "label": "l18.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -96406,7 +69180,7 @@ "buf": "x" }, { - "buf": "model.layers.54.mlp.gate_up_proj.weight" + "buf": "model.layers.18.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -96420,7 +69194,7 @@ ] }, { - "label": "l54.down_norm", + "label": "l18.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -96430,13 +69204,13 @@ "buf": "act" }, { - "buf": "model.layers.54.mlp.down_proj.weight" + "buf": "model.layers.18.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.55.input_layernorm.weight_p1" + "buf": "model.layers.19.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -96453,14 +69227,14 @@ ] }, { - "label": "l55.qkv_proj", + "label": "l19.qkv_proj", "kernel": "gemm", "args": [ { "buf": "x" }, { - "buf": "model.layers.55.self_attn.qkv_proj.weight" + "buf": "model.layers.19.self_attn.qkv_proj.weight" }, { "buf": "qkv" @@ -96477,7 +69251,7 @@ ] }, { - "label": "l55.q_norm", + "label": "l19.q_norm", "kernel": "gemma_norm_qhead", "args": [ { @@ -96487,7 +69261,7 @@ "buf": "qkv" }, { - "buf": "model.layers.55.self_attn.q_norm.weight_p1" + "buf": "model.layers.19.self_attn.q_norm.weight_p1" }, { "i32": 256 @@ -96523,7 +69297,7 @@ ] }, { - "label": "l55.k_norm", + "label": "l19.k_norm", "kernel": "gemma_norm_khead", "args": [ { @@ -96534,7 +69308,7 @@ "offset": 24576 }, { - "buf": "model.layers.55.self_attn.k_norm.weight_p1" + "buf": "model.layers.19.self_attn.k_norm.weight_p1" }, { "i32": 256 @@ -96570,7 +69344,7 @@ ] }, { - "label": "l55.rope", + "label": "l19.rope", "kernel": "mrope", "args": [ { @@ -96597,7 +69371,7 @@ ] }, { - "label": "l55.kv_write", + "label": "l19.kv_write", "kernel": "reshape_and_cache", "args": [ { @@ -96609,11 +69383,11 @@ }, { "state": "kv", - "offset": 41746432 + "offset": 12845056 }, { "state": "kv", - "offset": 41746944 + "offset": 12845568 }, { "buf": "slot_mapping" @@ -96655,7 +69429,7 @@ ] }, { - "label": "l55.attn", + "label": "l19.attn", "kernel": "attn", "args": [ { @@ -96666,11 +69440,11 @@ }, { "state": "kv", - "offset": 41746432 + "offset": 12845056 }, { "state": "kv", - "offset": 41746944 + "offset": 12845568 }, { "buf": "block_table" @@ -96748,7 +69522,7 @@ ] }, { - "label": "l55.o_norm", + "label": "l19.o_norm", "kernel": "gemm8_sgate_add_norm", "args": [ { @@ -96762,13 +69536,13 @@ "offset": 512 }, { - "buf": "model.layers.55.self_attn.o_proj.weight" + "buf": "model.layers.19.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.55.post_attention_layernorm.weight_p1" + "buf": "model.layers.19.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -96794,7 +69568,7 @@ ] }, { - "label": "l55.gate_up_silu", + "label": "l19.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -96804,7 +69578,7 @@ "buf": "x" }, { - "buf": "model.layers.55.mlp.gate_up_proj.weight" + "buf": "model.layers.19.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -96818,7 +69592,7 @@ ] }, { - "label": "l55.down_norm", + "label": "l19.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -96828,13 +69602,13 @@ "buf": "act" }, { - "buf": "model.layers.55.mlp.down_proj.weight" + "buf": "model.layers.19.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.56.input_layernorm.weight_p1" + "buf": "model.layers.20.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -96851,118 +69625,50 @@ ] }, { - "label": "l56.in_proj", - "kernel": "gemm8_dual", + "label": "l19.fc_tap", + "kernel": "gemm_acc", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" + "buf": "residual" }, { - "buf": "model.layers.56.linear_attn.in_proj_qkvz.weight" + "buf": "draft.fc.1.weight" }, { - "buf": "model.layers.56.linear_attn.in_proj_ba.weight" + "buf": "fc_out" }, { "sym": "tokens" }, - { - "i32": 16384 - }, - { - "i32": 96 - }, { "i32": 5120 - } - ] - }, - { - "label": "l56.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.56.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 172 - }, - { - "buf": "gdn.one" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l56.post_conv", - "kernel": "post_conv", + "label": "l20.in_proj", + "kernel": "gemm8_dual", "args": [ { "buf": "qkvz" }, - { - "buf": "ba", - "offset": 96 - }, { "buf": "ba" }, { - "buf": "model.layers.56.linear_attn.A_log" - }, - { - "buf": "model.layers.56.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" + "buf": "x" }, { - "buf": "gdn_v" + "buf": "model.layers.20.linear_attn.in_proj_qkvz.weight" }, { - "buf": "g" + "buf": "model.layers.20.linear_attn.in_proj_ba.weight" }, { - "buf": "beta" + "sym": "tokens" }, { "i32": 16384 @@ -96971,92 +69677,55 @@ "i32": 96 }, { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l56.a_copy", - "kernel": "copy_rows", + "label": "l20.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 + "buf": "qkvz" }, { - "i32": 48 + "buf": "model.layers.20.linear_attn.conv1d.weight" }, { - "i32": 96 + "state": "gdn" }, { - "i32": 48 - } - ] - }, - { - "label": "l56.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "state": "gdn", + "offset": 204800 }, { - "buf": "ba" + "buf": "gdn.spec_line_index", + "offset": 64 }, { - "i32": 48 + "buf": "gdn.one" }, { - "i32": 96 + "buf": "cu_seqlens_q" }, { - "i32": 48 - } - ] - }, - { - "label": "l56.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.56.linear_attn.A_log" + "buf": "gdn.spec_slots", + "offset": 480 }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "model.layers.20.linear_attn.A_log" }, { - "buf": "model.layers.56.linear_attn.dt_bias" + "buf": "model.layers.20.linear_attn.dt_bias" }, { - "f32": 1.0 + "buf": "core_attn_out" }, { - "f32": 20.0 + "buf": "model.layers.20.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -97068,113 +69737,45 @@ "buf": "gdn_v" }, { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 + "buf": "g" }, { - "state": "gdn", - "offset": 204800 + "buf": "beta" }, { - "buf": "cu_seqlens_q" + "buf": "a_c" }, { - "buf": "gdn.spec_slots", - "offset": 1344 + "buf": "b_c" }, { - "buf": "gdn.one" + "buf": "z_c" }, { "f32": 0.0883883461356163 }, { - "i64": 1 + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l56.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l56.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.56.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l56.out_norm", + "label": "l20.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -97184,13 +69785,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.56.linear_attn.out_proj.weight" + "buf": "model.layers.20.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.56.post_attention_layernorm.weight_p1" + "buf": "model.layers.20.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -97207,7 +69808,7 @@ ] }, { - "label": "l56.gate_up_silu", + "label": "l20.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -97217,7 +69818,7 @@ "buf": "x" }, { - "buf": "model.layers.56.mlp.gate_up_proj.weight" + "buf": "model.layers.20.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -97231,7 +69832,7 @@ ] }, { - "label": "l56.down_norm", + "label": "l20.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -97241,13 +69842,13 @@ "buf": "act" }, { - "buf": "model.layers.56.mlp.down_proj.weight" + "buf": "model.layers.20.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.57.input_layernorm.weight_p1" + "buf": "model.layers.21.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -97264,7 +69865,7 @@ ] }, { - "label": "l57.in_proj", + "label": "l21.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -97277,10 +69878,10 @@ "buf": "x" }, { - "buf": "model.layers.57.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.21.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.57.linear_attn.in_proj_ba.weight" + "buf": "model.layers.21.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -97297,21 +69898,25 @@ ] }, { - "label": "l57.conv_update", - "kernel": "conv_update_spec", + "label": "l21.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.57.linear_attn.conv1d.weight" + "buf": "model.layers.21.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 176 + "offset": 68 }, { "buf": "gdn.one" @@ -97320,274 +69925,289 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 512 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.21.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.21.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.21.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l57.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.57.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.57.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l21.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" }, { - "i32": 6144 + "buf": "model.layers.21.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.21.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l57.a_copy", - "kernel": "copy_rows", + "label": "l21.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" }, { - "i32": 48 + "buf": "model.layers.21.mlp.gate_up_proj.weight" }, { - "i32": 96 + "sym": "tokens" + }, + { + "i32": 17408 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l57.b_copy", - "kernel": "copy_rows", + "label": "l21.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.21.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" + }, + { + "buf": "model.layers.22.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l57.recurrent", - "kernel": "recurrent_spec", + "label": "l22.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.57.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.57.linear_attn.dt_bias" + "buf": "model.layers.22.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.22.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l22.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.22.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 72 }, { - "buf": "gdn.spec_slots", - "offset": 1376 + "buf": "gdn.one" }, { - "buf": "gdn.one" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 544 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.22.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.22.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l57.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.22.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l57.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.57.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l57.out_norm", + "label": "l22.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -97597,13 +70217,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.57.linear_attn.out_proj.weight" + "buf": "model.layers.22.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.57.post_attention_layernorm.weight_p1" + "buf": "model.layers.22.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -97620,7 +70240,7 @@ ] }, { - "label": "l57.gate_up_silu", + "label": "l22.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -97630,7 +70250,7 @@ "buf": "x" }, { - "buf": "model.layers.57.mlp.gate_up_proj.weight" + "buf": "model.layers.22.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -97644,7 +70264,7 @@ ] }, { - "label": "l57.down_norm", + "label": "l22.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -97654,13 +70274,13 @@ "buf": "act" }, { - "buf": "model.layers.57.mlp.down_proj.weight" + "buf": "model.layers.22.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.58.input_layernorm.weight_p1" + "buf": "model.layers.23.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -97677,32 +70297,23 @@ ] }, { - "label": "l58.in_proj", - "kernel": "gemm8_dual", + "label": "l23.qkv_proj", + "kernel": "gemm", "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, { "buf": "x" }, { - "buf": "model.layers.58.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.23.self_attn.qkv_proj.weight" }, { - "buf": "model.layers.58.linear_attn.in_proj_ba.weight" + "buf": "qkv" }, { "sym": "tokens" }, { - "i32": 16384 - }, - { - "i32": 96 + "i32": 14336 }, { "i32": 5120 @@ -97710,106 +70321,116 @@ ] }, { - "label": "l58.conv_update", - "kernel": "conv_update_spec", + "label": "l23.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "model.layers.58.linear_attn.conv1d.weight" - }, - { - "state": "gdn" + "buf": "q_n" }, { - "buf": "gdn.spec_line_index", - "offset": 180 + "buf": "qkv" }, { - "buf": "gdn.one" + "buf": "model.layers.23.self_attn.q_norm.weight_p1" }, { - "buf": "cu_seqlens_q" + "i32": 256 }, { - "buf": "qkvz" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i32": 1 + "i32": 24 }, { - "i32": 385 + "i32": 14336 }, { - "i64": 16384 + "i32": 512 }, { - "i64": 16384 + "i32": 6144 }, { - "i64": 0 + "i32": 256 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l58.post_conv", - "kernel": "post_conv", + "label": "l23.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 + "buf": "k_n" }, { - "buf": "ba" + "buf": "qkv", + "offset": 24576 }, { - "buf": "model.layers.58.linear_attn.A_log" + "buf": "model.layers.23.self_attn.k_norm.weight_p1" }, { - "buf": "model.layers.58.linear_attn.dt_bias" + "i32": 256 }, { - "buf": "gdn_q" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { - "buf": "gdn_k" + "i32": 4 }, { - "buf": "gdn_v" + "i32": 14336 }, { - "buf": "g" + "i32": 256 }, { - "buf": "beta" + "i32": 1024 }, { - "i32": 16384 + "i32": 256 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l23.rope", + "kernel": "mrope", + "args": [ { - "i32": 96 + "buf": "q_n" }, { - "i32": 2048 + "buf": "k_n" }, { - "i32": 2048 + "buf": "cos_g" }, { - "i32": 6144 + "buf": "sin_g" }, { - "sym": "tokens" + "i32": 0 }, { "i64": 0 @@ -97820,176 +70441,147 @@ ] }, { - "label": "l58.a_copy", - "kernel": "copy_rows", + "label": "l23.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "a_c" + "buf": "k_n" }, { - "buf": "ba", - "offset": 96 + "buf": "qkv", + "offset": 26624 }, { - "i32": 48 + "state": "kv", + "offset": 16056320 }, { - "i32": 96 + "state": "kv", + "offset": 16056832 }, { - "i32": 48 - } - ] - }, - { - "label": "l58.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "slot_mapping" }, { - "buf": "ba" + "buf": "kv_scales" }, { - "i32": 48 + "buf": "kv_scales", + "offset": 4 }, { - "i32": 96 + "i64": 1024 }, { - "i32": 48 - } - ] - }, - { - "label": "l58.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.58.linear_attn.A_log" + "i64": 14336 }, { - "buf": "a_c" + "i64": 25690112 }, { - "buf": "b_c" + "i64": 512 }, { - "buf": "model.layers.58.linear_attn.dt_bias" + "i64": 0 }, { - "f32": 1.0 + "i64": 0 }, { - "f32": 20.0 + "i64": 2048 }, { - "buf": "gdn_q" + "i64": 0 }, { - "buf": "gdn_k" - }, + "i64": 0 + } + ] + }, + { + "label": "l23.attn", + "kernel": "attn", + "args": [ { - "buf": "gdn_v" + "buf": "attn_out" }, { - "buf": "core_attn_out" + "buf": "q_n" }, { - "state": "gdn", - "offset": 204800 + "state": "kv", + "offset": 16056320 }, { - "state": "gdn", - "offset": 204800 + "state": "kv", + "offset": 16056832 }, { - "buf": "cu_seqlens_q" + "buf": "block_table" }, { - "buf": "gdn.spec_slots", - "offset": 1408 + "buf": "seq_lens" }, { - "buf": "gdn.one" + "f32": 0.0625 }, { - "f32": 0.0883883461356163 + "buf": "kv_scales" }, { - "i64": 1 + "buf": "kv_scales", + "offset": 4 }, { - "sym": "tokens" + "f32": 1.0 }, { - "i64": 0 + "f32": 0.0 }, { - "i64": 0 - } - ] - }, - { - "label": "l58.z_copy", - "kernel": "copy_rows", - "args": [ + "i64": 8 + }, { - "buf": "z_c" + "i64": 6144 }, { - "buf": "qkvz", - "offset": 20480 + "i64": 256 }, { - "i32": 6144 + "i64": 6144 }, { - "i32": 16384 + "i64": 256 }, { - "i32": 6144 - } - ] - }, - { - "label": "l58.gated_norm", - "kernel": "gated_norm", - "args": [ + "i64": 0 + }, { - "buf": "core_attn_out" + "buf": "seq_lens" }, { - "buf": "core_attn_out" + "i64": 25690112 }, { - "buf": "model.layers.58.linear_attn.norm.weight" + "i64": 2048 }, { - "buf": "z_c" + "i64": 512 }, { - "i32": 128 + "i64": 25690112 }, { - "i32": 128 + "i64": 2048 }, { - "i32": 128 + "i64": 512 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "cu_seqlens_q" }, { - "f32": 9.999999974752427e-07 + "i32": 1 }, { "i64": 0 @@ -98000,23 +70592,27 @@ ] }, { - "label": "l58.out_norm", - "kernel": "gemm8_add_norm", + "label": "l23.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { "buf": "x" }, { - "buf": "core_attn_out" + "buf": "attn_out" }, { - "buf": "model.layers.58.linear_attn.out_proj.weight" + "buf": "qkv", + "offset": 512 + }, + { + "buf": "model.layers.23.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.58.post_attention_layernorm.weight_p1" + "buf": "model.layers.23.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -98027,13 +70623,22 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l58.gate_up_silu", + "label": "l23.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -98043,7 +70648,7 @@ "buf": "x" }, { - "buf": "model.layers.58.mlp.gate_up_proj.weight" + "buf": "model.layers.23.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -98057,7 +70662,7 @@ ] }, { - "label": "l58.down_norm", + "label": "l23.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -98067,13 +70672,13 @@ "buf": "act" }, { - "buf": "model.layers.58.mlp.down_proj.weight" + "buf": "model.layers.23.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.59.input_layernorm.weight_p1" + "buf": "model.layers.24.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -98090,23 +70695,32 @@ ] }, { - "label": "l59.qkv_proj", - "kernel": "gemm", + "label": "l24.in_proj", + "kernel": "gemm8_dual", "args": [ + { + "buf": "qkvz" + }, + { + "buf": "ba" + }, { "buf": "x" }, { - "buf": "model.layers.59.self_attn.qkv_proj.weight" + "buf": "model.layers.24.linear_attn.in_proj_qkvz.weight" }, { - "buf": "qkv" + "buf": "model.layers.24.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" }, { - "i32": 14336 + "i32": 16384 + }, + { + "i32": 96 }, { "i32": 5120 @@ -98114,92 +70728,125 @@ ] }, { - "label": "l59.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l24.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "q_n" + "buf": "qkvz" }, { - "buf": "qkv" + "buf": "model.layers.24.linear_attn.conv1d.weight" }, { - "buf": "model.layers.59.self_attn.q_norm.weight_p1" + "state": "gdn" }, { - "i32": 256 + "state": "gdn", + "offset": 204800 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } + "buf": "gdn.spec_line_index", + "offset": 76 }, { - "i32": 24 + "buf": "gdn.one" }, { - "i32": 14336 + "buf": "cu_seqlens_q" }, { - "i32": 512 + "buf": "gdn.spec_slots", + "offset": 576 }, { - "i32": 6144 + "buf": "ba" }, { - "i32": 256 + "buf": "model.layers.24.linear_attn.A_log" + }, + { + "buf": "model.layers.24.linear_attn.dt_bias" + }, + { + "buf": "core_attn_out" + }, + { + "buf": "model.layers.24.linear_attn.norm.weight" + }, + { + "buf": "gdn_q" + }, + { + "buf": "gdn_k" + }, + { + "buf": "gdn_v" + }, + { + "buf": "g" + }, + { + "buf": "beta" + }, + { + "buf": "a_c" + }, + { + "buf": "b_c" + }, + { + "buf": "z_c" + }, + { + "f32": 0.0883883461356163 }, { "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l59.k_norm", - "kernel": "gemma_norm_khead", - "args": [ + }, { - "buf": "k_n" + "sym": "tokens" }, { - "buf": "qkv", - "offset": 24576 + "i32": 385 + }, + { + "i32": 1703936 + }, + { + "i32": 10 }, { - "buf": "model.layers.59.self_attn.k_norm.weight_p1" + "i32": 851968 + } + ] + }, + { + "label": "l24.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 256 + "buf": "core_attn_out" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } + "buf": "model.layers.24.linear_attn.out_proj.weight" }, { - "i32": 4 + "buf": "residual" }, { - "i32": 14336 + "buf": "model.layers.24.post_attention_layernorm.weight_p1" }, { - "i32": 256 + "sym": "tokens" }, { - "i32": 1024 + "i32": 5120 }, { - "i32": 256 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -98207,205 +70854,206 @@ ] }, { - "label": "l59.rope", - "kernel": "mrope", + "label": "l24.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "q_n" - }, - { - "buf": "k_n" + "buf": "act" }, { - "buf": "cos_g" + "buf": "x" }, { - "buf": "sin_g" + "buf": "model.layers.24.mlp.gate_up_proj.weight" }, { - "i32": 0 + "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l59.kv_write", - "kernel": "reshape_and_cache", + "label": "l24.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" + "buf": "x" }, { - "buf": "qkv", - "offset": 26624 + "buf": "act" }, { - "state": "kv", - "offset": 44957696 + "buf": "model.layers.24.mlp.down_proj.weight" }, { - "state": "kv", - "offset": 44958208 + "buf": "residual" }, { - "buf": "slot_mapping" + "buf": "model.layers.25.input_layernorm.weight_p1" }, { - "buf": "kv_scales" + "sym": "tokens" }, { - "buf": "kv_scales", - "offset": 4 + "i32": 5120 }, { - "i64": 1024 + "i32": 17408 }, { - "i64": 14336 + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l25.in_proj", + "kernel": "gemm8_dual", + "args": [ + { + "buf": "qkvz" }, { - "i64": 25690112 + "buf": "ba" }, { - "i64": 512 + "buf": "x" }, { - "i64": 0 + "buf": "model.layers.25.linear_attn.in_proj_qkvz.weight" }, { - "i64": 0 + "buf": "model.layers.25.linear_attn.in_proj_ba.weight" }, { - "i64": 2048 + "sym": "tokens" }, { - "i64": 0 + "i32": 16384 }, { - "i64": 0 + "i32": 96 + }, + { + "i32": 5120 } ] }, { - "label": "l59.attn", - "kernel": "attn", + "label": "l25.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "attn_out" + "buf": "qkvz" }, { - "buf": "q_n" + "buf": "model.layers.25.linear_attn.conv1d.weight" }, { - "state": "kv", - "offset": 44957696 + "state": "gdn" }, { - "state": "kv", - "offset": 44958208 + "state": "gdn", + "offset": 204800 }, { - "buf": "block_table" + "buf": "gdn.spec_line_index", + "offset": 80 }, { - "buf": "seq_lens" + "buf": "gdn.one" }, { - "f32": 0.0625 + "buf": "cu_seqlens_q" }, { - "buf": "kv_scales" + "buf": "gdn.spec_slots", + "offset": 608 }, { - "buf": "kv_scales", - "offset": 4 + "buf": "ba" }, { - "f32": 1.0 + "buf": "model.layers.25.linear_attn.A_log" }, { - "f32": 0.0 + "buf": "model.layers.25.linear_attn.dt_bias" }, { - "i64": 8 + "buf": "core_attn_out" }, { - "i64": 6144 + "buf": "model.layers.25.linear_attn.norm.weight" }, { - "i64": 256 + "buf": "gdn_q" }, { - "i64": 6144 + "buf": "gdn_k" }, { - "i64": 256 + "buf": "gdn_v" }, { - "i64": 0 + "buf": "g" }, { - "buf": "seq_lens" + "buf": "beta" }, { - "i64": 25690112 + "buf": "a_c" }, { - "i64": 2048 + "buf": "b_c" }, { - "i64": 512 + "buf": "z_c" }, { - "i64": 25690112 + "f32": 0.0883883461356163 }, { - "i64": 2048 + "f32": 9.999999974752427e-07 }, { - "i64": 512 + "sym": "tokens" }, { - "buf": "cu_seqlens_q" + "i32": 385 }, { - "i32": 1 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l59.o_norm", - "kernel": "gemm8_sgate_add_norm", + "label": "l25.out_norm", + "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 + "buf": "core_attn_out" }, { - "buf": "model.layers.59.self_attn.o_proj.weight" + "buf": "model.layers.25.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.59.post_attention_layernorm.weight_p1" + "buf": "model.layers.25.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -98416,22 +71064,13 @@ { "i32": 6144 }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l59.gate_up_silu", + "label": "l25.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -98441,7 +71080,7 @@ "buf": "x" }, { - "buf": "model.layers.59.mlp.gate_up_proj.weight" + "buf": "model.layers.25.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -98455,7 +71094,7 @@ ] }, { - "label": "l59.down_norm", + "label": "l25.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -98465,13 +71104,13 @@ "buf": "act" }, { - "buf": "model.layers.59.mlp.down_proj.weight" + "buf": "model.layers.25.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.60.input_layernorm.weight_p1" + "buf": "model.layers.26.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -98488,7 +71127,7 @@ ] }, { - "label": "l60.in_proj", + "label": "l26.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -98501,10 +71140,10 @@ "buf": "x" }, { - "buf": "model.layers.60.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.26.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.60.linear_attn.in_proj_ba.weight" + "buf": "model.layers.26.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -98521,21 +71160,25 @@ ] }, { - "label": "l60.conv_update", - "kernel": "conv_update_spec", + "label": "l26.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.60.linear_attn.conv1d.weight" + "buf": "model.layers.26.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 184 + "offset": 84 }, { "buf": "gdn.one" @@ -98544,47 +71187,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 640 }, { - "i64": 0 - } - ] - }, - { - "label": "l60.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.26.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.26.linear_attn.dt_bias" }, { - "buf": "model.layers.60.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.60.linear_attn.dt_bias" + "buf": "model.layers.26.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -98602,192 +71221,213 @@ "buf": "beta" }, { - "i32": 16384 + "buf": "a_c" }, { - "i32": 96 + "buf": "b_c" }, { - "i32": 96 + "buf": "z_c" }, { - "i32": 2048 + "f32": 0.0883883461356163 }, { - "i32": 2048 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 385 }, { - "i64": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l60.a_copy", - "kernel": "copy_rows", + "label": "l26.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.26.linear_attn.out_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l60.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.26.post_attention_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 6144 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l60.recurrent", - "kernel": "recurrent_spec", + "label": "l26.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "model.layers.60.linear_attn.A_log" + "buf": "act" }, { - "buf": "a_c" + "buf": "x" }, { - "buf": "b_c" + "buf": "model.layers.26.mlp.gate_up_proj.weight" }, { - "buf": "model.layers.60.linear_attn.dt_bias" + "sym": "tokens" }, { - "f32": 1.0 + "i32": 17408 }, { - "f32": 20.0 - }, + "i32": 5120 + } + ] + }, + { + "label": "l26.down_norm", + "kernel": "gemm8_add_norm", + "args": [ { - "buf": "gdn_q" + "buf": "x" }, { - "buf": "gdn_k" + "buf": "act" }, { - "buf": "gdn_v" + "buf": "model.layers.26.mlp.down_proj.weight" }, { - "buf": "core_attn_out" + "buf": "residual" }, { - "state": "gdn", - "offset": 204800 + "buf": "model.layers.27.input_layernorm.weight_p1" }, { - "state": "gdn", - "offset": 204800 + "sym": "tokens" }, { - "buf": "cu_seqlens_q" + "i32": 5120 }, { - "buf": "gdn.spec_slots", - "offset": 1440 + "i32": 17408 }, { - "buf": "gdn.one" + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l27.qkv_proj", + "kernel": "gemm", + "args": [ + { + "buf": "x" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.27.self_attn.qkv_proj.weight" }, { - "i64": 1 + "buf": "qkv" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 14336 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l60.z_copy", - "kernel": "copy_rows", + "label": "l27.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "z_c" + "buf": "q_n" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "qkv" }, { - "i32": 6144 + "buf": "model.layers.27.self_attn.q_norm.weight_p1" }, { - "i32": 16384 + "i32": 256 }, { - "i32": 6144 - } - ] - }, - { - "label": "l60.gated_norm", - "kernel": "gated_norm", - "args": [ + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } + }, { - "buf": "core_attn_out" + "i32": 24 }, { - "buf": "core_attn_out" + "i32": 14336 }, { - "buf": "model.layers.60.linear_attn.norm.weight" + "i32": 512 }, { - "buf": "z_c" + "i32": 6144 }, { - "i32": 128 + "i32": 256 }, { - "i32": 128 + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l27.k_norm", + "kernel": "gemma_norm_khead", + "args": [ + { + "buf": "k_n" }, { - "i32": 128 + "buf": "qkv", + "offset": 24576 + }, + { + "buf": "model.layers.27.self_attn.k_norm.weight_p1" + }, + { + "i32": 256 }, { "expr": { @@ -98795,181 +71435,199 @@ { "sym": "tokens" }, - 48 + 4 ] } }, { - "f32": 9.999999974752427e-07 + "i32": 4 }, { - "i64": 0 + "i32": 14336 }, { - "i64": 0 + "i32": 256 + }, + { + "i32": 1024 + }, + { + "i32": 256 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l60.out_norm", - "kernel": "gemm8_add_norm", + "label": "l27.rope", + "kernel": "mrope", "args": [ { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.60.linear_attn.out_proj.weight" + "buf": "q_n" }, { - "buf": "residual" + "buf": "k_n" }, { - "buf": "model.layers.60.post_attention_layernorm.weight_p1" + "buf": "cos_g" }, { - "sym": "tokens" + "buf": "sin_g" }, { - "i32": 5120 + "i32": 0 }, { - "i32": 6144 + "i64": 0 }, { - "f32": 9.999999974752427e-07 + "i64": 0 } ] }, { - "label": "l60.gate_up_silu", - "kernel": "gemm8_gateup_silu", + "label": "l27.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "act" + "buf": "k_n" }, { - "buf": "x" + "buf": "qkv", + "offset": 26624 }, { - "buf": "model.layers.60.mlp.gate_up_proj.weight" + "state": "kv", + "offset": 19267584 }, { - "sym": "tokens" + "state": "kv", + "offset": 19268096 }, { - "i32": 17408 + "buf": "slot_mapping" }, { - "i32": 5120 - } - ] - }, - { - "label": "l60.down_norm", - "kernel": "gemm8_add_norm", - "args": [ + "buf": "kv_scales" + }, { - "buf": "x" + "buf": "kv_scales", + "offset": 4 }, { - "buf": "act" + "i64": 1024 }, { - "buf": "model.layers.60.mlp.down_proj.weight" + "i64": 14336 }, { - "buf": "residual" + "i64": 25690112 }, { - "buf": "model.layers.61.input_layernorm.weight_p1" + "i64": 512 }, { - "sym": "tokens" + "i64": 0 }, { - "i32": 5120 + "i64": 0 }, { - "i32": 17408 + "i64": 2048 }, { - "f32": 9.999999974752427e-07 + "i64": 0 + }, + { + "i64": 0 } ] }, { - "label": "l61.in_proj", - "kernel": "gemm8_dual", + "label": "l27.attn", + "kernel": "attn", "args": [ { - "buf": "qkvz" + "buf": "attn_out" + }, + { + "buf": "q_n" + }, + { + "state": "kv", + "offset": 19267584 + }, + { + "state": "kv", + "offset": 19268096 + }, + { + "buf": "block_table" }, { - "buf": "ba" + "buf": "seq_lens" }, { - "buf": "x" + "f32": 0.0625 }, { - "buf": "model.layers.61.linear_attn.in_proj_qkvz.weight" + "buf": "kv_scales" }, { - "buf": "model.layers.61.linear_attn.in_proj_ba.weight" + "buf": "kv_scales", + "offset": 4 }, { - "sym": "tokens" + "f32": 1.0 }, { - "i32": 16384 + "f32": 0.0 }, { - "i32": 96 + "i64": 8 }, { - "i32": 5120 - } - ] - }, - { - "label": "l61.conv_update", - "kernel": "conv_update_spec", - "args": [ + "i64": 6144 + }, { - "buf": "qkvz" + "i64": 256 }, { - "buf": "model.layers.61.linear_attn.conv1d.weight" + "i64": 6144 }, { - "state": "gdn" + "i64": 256 }, { - "buf": "gdn.spec_line_index", - "offset": 188 + "i64": 0 }, { - "buf": "gdn.one" + "buf": "seq_lens" }, { - "buf": "cu_seqlens_q" + "i64": 25690112 }, { - "buf": "qkvz" + "i64": 2048 }, { - "i32": 1 + "i64": 512 }, { - "i32": 385 + "i64": 25690112 }, { - "i64": 16384 + "i64": 2048 }, { - "i64": 16384 + "i64": 512 + }, + { + "buf": "cu_seqlens_q" + }, + { + "i32": 1 }, { "i64": 0 @@ -98980,251 +71638,236 @@ ] }, { - "label": "l61.post_conv", - "kernel": "post_conv", + "label": "l27.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "qkvz" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "attn_out" }, { - "buf": "ba" + "buf": "qkv", + "offset": 512 }, { - "buf": "model.layers.61.linear_attn.A_log" + "buf": "model.layers.27.self_attn.o_proj.weight" }, { - "buf": "model.layers.61.linear_attn.dt_bias" + "buf": "residual" }, { - "buf": "gdn_q" + "buf": "model.layers.27.post_attention_layernorm.weight_p1" }, { - "buf": "gdn_k" + "sym": "tokens" }, { - "buf": "gdn_v" + "i32": 5120 }, { - "buf": "g" + "i32": 6144 }, { - "buf": "beta" + "i32": 256 }, { - "i32": 16384 + "i32": 14336 }, { - "i32": 96 + "i32": 512 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l27.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ { - "i32": 2048 + "buf": "act" }, { - "i32": 2048 + "buf": "x" }, { - "i32": 6144 + "buf": "model.layers.27.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l61.a_copy", - "kernel": "copy_rows", + "label": "l27.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.27.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l61.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.28.input_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l61.recurrent", - "kernel": "recurrent_spec", + "label": "l28.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.61.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.61.linear_attn.dt_bias" + "buf": "model.layers.28.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.28.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l28.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.28.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 88 }, { - "buf": "gdn.spec_slots", - "offset": 1472 + "buf": "gdn.one" }, { - "buf": "gdn.one" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 672 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.28.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.28.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l61.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.28.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l61.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.61.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l61.out_norm", + "label": "l28.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -99234,13 +71877,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.61.linear_attn.out_proj.weight" + "buf": "model.layers.28.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.61.post_attention_layernorm.weight_p1" + "buf": "model.layers.28.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -99257,7 +71900,7 @@ ] }, { - "label": "l61.gate_up_silu", + "label": "l28.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -99267,7 +71910,7 @@ "buf": "x" }, { - "buf": "model.layers.61.mlp.gate_up_proj.weight" + "buf": "model.layers.28.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -99281,7 +71924,7 @@ ] }, { - "label": "l61.down_norm", + "label": "l28.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -99291,13 +71934,13 @@ "buf": "act" }, { - "buf": "model.layers.61.mlp.down_proj.weight" + "buf": "model.layers.28.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.62.input_layernorm.weight_p1" + "buf": "model.layers.29.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -99314,31 +71957,7 @@ ] }, { - "label": "l61.fc_tap", - "kernel": "gemm_acc", - "args": [ - { - "buf": "residual" - }, - { - "buf": "draft.fc.4.weight" - }, - { - "buf": "fc_out" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l62.in_proj", + "label": "l29.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -99351,10 +71970,10 @@ "buf": "x" }, { - "buf": "model.layers.62.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.29.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.62.linear_attn.in_proj_ba.weight" + "buf": "model.layers.29.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -99371,21 +71990,25 @@ ] }, { - "label": "l62.conv_update", - "kernel": "conv_update_spec", + "label": "l29.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.62.linear_attn.conv1d.weight" + "buf": "model.layers.29.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 192 + "offset": 92 }, { "buf": "gdn.one" @@ -99394,274 +72017,289 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 704 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.29.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.29.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.29.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l62.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.62.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.62.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l29.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" }, { - "i32": 6144 + "buf": "model.layers.29.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.29.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l62.a_copy", - "kernel": "copy_rows", + "label": "l29.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" }, { - "i32": 48 + "buf": "model.layers.29.mlp.gate_up_proj.weight" }, { - "i32": 96 + "sym": "tokens" + }, + { + "i32": 17408 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l62.b_copy", - "kernel": "copy_rows", + "label": "l29.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.29.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" + }, + { + "buf": "model.layers.30.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l62.recurrent", - "kernel": "recurrent_spec", + "label": "l30.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.62.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.62.linear_attn.dt_bias" + "buf": "model.layers.30.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.30.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l30.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.30.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 96 }, { - "buf": "gdn.spec_slots", - "offset": 1504 + "buf": "gdn.one" }, { - "buf": "gdn.one" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 736 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.30.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.30.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l62.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.30.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l62.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.62.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l62.out_norm", + "label": "l30.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -99671,13 +72309,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.62.linear_attn.out_proj.weight" + "buf": "model.layers.30.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.62.post_attention_layernorm.weight_p1" + "buf": "model.layers.30.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -99694,7 +72332,7 @@ ] }, { - "label": "l62.gate_up_silu", + "label": "l30.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -99704,7 +72342,7 @@ "buf": "x" }, { - "buf": "model.layers.62.mlp.gate_up_proj.weight" + "buf": "model.layers.30.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -99718,7 +72356,7 @@ ] }, { - "label": "l62.down_norm", + "label": "l30.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -99728,13 +72366,13 @@ "buf": "act" }, { - "buf": "model.layers.62.mlp.down_proj.weight" + "buf": "model.layers.30.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.63.input_layernorm.weight_p1" + "buf": "model.layers.31.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -99751,14 +72389,14 @@ ] }, { - "label": "l63.qkv_proj", + "label": "l31.qkv_proj", "kernel": "gemm", "args": [ { "buf": "x" }, { - "buf": "model.layers.63.self_attn.qkv_proj.weight" + "buf": "model.layers.31.self_attn.qkv_proj.weight" }, { "buf": "qkv" @@ -99775,7 +72413,7 @@ ] }, { - "label": "l63.q_norm", + "label": "l31.q_norm", "kernel": "gemma_norm_qhead", "args": [ { @@ -99785,7 +72423,7 @@ "buf": "qkv" }, { - "buf": "model.layers.63.self_attn.q_norm.weight_p1" + "buf": "model.layers.31.self_attn.q_norm.weight_p1" }, { "i32": 256 @@ -99821,7 +72459,7 @@ ] }, { - "label": "l63.k_norm", + "label": "l31.k_norm", "kernel": "gemma_norm_khead", "args": [ { @@ -99832,7 +72470,7 @@ "offset": 24576 }, { - "buf": "model.layers.63.self_attn.k_norm.weight_p1" + "buf": "model.layers.31.self_attn.k_norm.weight_p1" }, { "i32": 256 @@ -99868,7 +72506,7 @@ ] }, { - "label": "l63.rope", + "label": "l31.rope", "kernel": "mrope", "args": [ { @@ -99895,7 +72533,7 @@ ] }, { - "label": "l63.kv_write", + "label": "l31.kv_write", "kernel": "reshape_and_cache", "args": [ { @@ -99907,11 +72545,11 @@ }, { "state": "kv", - "offset": 48168960 + "offset": 22478848 }, { "state": "kv", - "offset": 48169472 + "offset": 22479360 }, { "buf": "slot_mapping" @@ -99953,7 +72591,7 @@ ] }, { - "label": "l63.attn", + "label": "l31.attn", "kernel": "attn", "args": [ { @@ -99964,11 +72602,11 @@ }, { "state": "kv", - "offset": 48168960 + "offset": 22478848 }, { "state": "kv", - "offset": 48169472 + "offset": 22479360 }, { "buf": "block_table" @@ -100046,7 +72684,7 @@ ] }, { - "label": "l63.o_norm", + "label": "l31.o_norm", "kernel": "gemm8_sgate_add_norm", "args": [ { @@ -100060,13 +72698,13 @@ "offset": 512 }, { - "buf": "model.layers.63.self_attn.o_proj.weight" + "buf": "model.layers.31.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.63.post_attention_layernorm.weight_p1" + "buf": "model.layers.31.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -100092,7 +72730,7 @@ ] }, { - "label": "l63.gate_up_silu", + "label": "l31.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -100102,7 +72740,7 @@ "buf": "x" }, { - "buf": "model.layers.63.mlp.gate_up_proj.weight" + "buf": "model.layers.31.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -100116,7 +72754,7 @@ ] }, { - "label": "l63.down_norm", + "label": "l31.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -100126,13 +72764,13 @@ "buf": "act" }, { - "buf": "model.layers.63.mlp.down_proj.weight" + "buf": "model.layers.31.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.norm.weight_p1" + "buf": "model.layers.32.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -100149,152 +72787,7 @@ ] }, { - "label": "lm_head", - "kernel": "gemm", - "args": [ - { - "buf": "x" - }, - { - "buf": "lm_head.weight" - }, - { - "buf": "logits" - }, - { - "i32": 1 - }, - { - "i32": 248320 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "sample", - "kernel": "argmax_row", - "args": [ - { - "buf": "logits" - }, - { - "buf": "next_token" - }, - { - "i32": 248320 - } - ] - } - ] - }, - "verify": { - "dispatches": [ - { - "label": "embed", - "kernel": "embedding", - "args": [ - { - "buf": "token_ids" - }, - { - "buf": "model.embed_tokens.weight" - }, - { - "buf": "residual" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - } - ] - }, - { - "label": "rope_cos", - "kernel": "embedding", - "args": [ - { - "buf": "positions" - }, - { - "buf": "rope.cos" - }, - { - "buf": "cos_g" - }, - { - "sym": "tokens" - }, - { - "i32": 32 - } - ] - }, - { - "label": "rope_sin", - "kernel": "embedding", - "args": [ - { - "buf": "positions" - }, - { - "buf": "rope.sin" - }, - { - "buf": "sin_g" - }, - { - "sym": "tokens" - }, - { - "i32": 32 - } - ] - }, - { - "label": "l0.input_norm", - "kernel": "gemma_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.0.input_layernorm.weight_p1" - }, - { - "i32": 5120 - }, - { - "sym": "tokens" - }, - { - "i32": 1 - }, - { - "i32": 5120 - }, - { - "i32": 0 - }, - { - "i32": 5120 - }, - { - "i32": 0 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l0.in_proj", + "label": "l32.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -100307,10 +72800,10 @@ "buf": "x" }, { - "buf": "model.layers.0.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.32.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.0.linear_attn.in_proj_ba.weight" + "buf": "model.layers.32.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -100327,70 +72820,50 @@ ] }, { - "label": "l0.conv_update", - "kernel": "conv_update_spec", + "label": "l32.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.0.linear_attn.conv1d.weight" + "buf": "model.layers.32.linear_attn.conv1d.weight" }, { "state": "gdn" }, { - "buf": "gdn.spec_line_index", - "offset": 4 - }, - { - "buf": "num_accepted_tokens" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 + "state": "gdn", + "offset": 204800 }, { - "i32": 385 + "buf": "gdn.spec_line_index", + "offset": 100 }, { - "i64": 16384 + "buf": "gdn.one" }, { - "i64": 16384 + "buf": "cu_seqlens_q" }, { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 768 }, { - "i64": 0 - } - ] - }, - { - "label": "l0.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.32.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.32.linear_attn.dt_bias" }, { - "buf": "model.layers.0.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.0.linear_attn.dt_bias" + "buf": "model.layers.32.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -100407,85 +72880,6 @@ { "buf": "beta" }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l0.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l0.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l0.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.0.linear_attn.A_log" - }, { "buf": "a_c" }, @@ -100493,130 +72887,33 @@ "buf": "b_c" }, { - "buf": "model.layers.0.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots" - }, - { - "buf": "num_accepted_tokens" + "buf": "z_c" }, { "f32": 0.0883883461356163 }, { - "i64": 1 + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l0.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l0.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.0.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l0.out_norm", + "label": "l32.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -100626,13 +72923,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.0.linear_attn.out_proj.weight" + "buf": "model.layers.32.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.0.post_attention_layernorm.weight_p1" + "buf": "model.layers.32.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -100649,7 +72946,7 @@ ] }, { - "label": "l0.gate_up_silu", + "label": "l32.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -100659,7 +72956,7 @@ "buf": "x" }, { - "buf": "model.layers.0.mlp.gate_up_proj.weight" + "buf": "model.layers.32.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -100673,7 +72970,7 @@ ] }, { - "label": "l0.down_norm", + "label": "l32.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -100683,13 +72980,13 @@ "buf": "act" }, { - "buf": "model.layers.0.mlp.down_proj.weight" + "buf": "model.layers.32.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.1.input_layernorm.weight_p1" + "buf": "model.layers.33.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -100706,7 +73003,7 @@ ] }, { - "label": "l1.in_proj", + "label": "l33.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -100719,10 +73016,10 @@ "buf": "x" }, { - "buf": "model.layers.1.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.33.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.1.linear_attn.in_proj_ba.weight" + "buf": "model.layers.33.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -100739,297 +73036,340 @@ ] }, { - "label": "l1.conv_update", - "kernel": "conv_update_spec", + "label": "l33.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.1.linear_attn.conv1d.weight" + "buf": "model.layers.33.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 8 + "offset": 104 }, { - "buf": "num_accepted_tokens" + "buf": "gdn.one" }, { "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 800 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.33.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.33.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.33.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l1.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.1.linear_attn.A_log" + "buf": "beta" + }, + { + "buf": "a_c" + }, + { + "buf": "b_c" + }, + { + "buf": "z_c" + }, + { + "f32": 0.0883883461356163 + }, + { + "f32": 9.999999974752427e-07 + }, + { + "sym": "tokens" + }, + { + "i32": 385 + }, + { + "i32": 1703936 + }, + { + "i32": 10 }, { - "buf": "model.layers.1.linear_attn.dt_bias" + "i32": 851968 + } + ] + }, + { + "label": "l33.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "buf": "gdn_q" + "buf": "core_attn_out" }, { - "buf": "gdn_k" + "buf": "model.layers.33.linear_attn.out_proj.weight" }, { - "buf": "gdn_v" + "buf": "residual" }, { - "buf": "g" + "buf": "model.layers.33.post_attention_layernorm.weight_p1" }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 5120 }, { - "i32": 96 + "i32": 6144 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l33.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ { - "i32": 2048 + "buf": "act" }, { - "i32": 2048 + "buf": "x" }, { - "i32": 6144 + "buf": "model.layers.33.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l1.a_copy", - "kernel": "copy_rows", + "label": "l33.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" + }, + { + "buf": "model.layers.33.mlp.down_proj.weight" }, { - "i32": 48 + "buf": "residual" }, { - "i32": 96 + "buf": "model.layers.34.input_layernorm.weight_p1" + }, + { + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 + }, + { + "i32": 17408 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l1.b_copy", - "kernel": "copy_rows", + "label": "l33.fc_tap", + "kernel": "gemm_acc", "args": [ { - "buf": "b_c" + "buf": "residual" }, { - "buf": "ba" + "buf": "draft.fc.2.weight" }, { - "i32": 48 + "buf": "fc_out" }, { - "i32": 96 + "sym": "tokens" + }, + { + "i32": 5120 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l1.recurrent", - "kernel": "recurrent_spec", + "label": "l34.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.1.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.1.linear_attn.dt_bias" + "buf": "model.layers.34.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.34.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l34.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.34.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 108 }, { - "buf": "gdn.spec_slots", - "offset": 32 + "buf": "gdn.one" }, { - "buf": "num_accepted_tokens" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 832 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.34.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.34.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l1.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.34.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l1.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.1.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l1.out_norm", + "label": "l34.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -101039,13 +73379,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.1.linear_attn.out_proj.weight" + "buf": "model.layers.34.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.1.post_attention_layernorm.weight_p1" + "buf": "model.layers.34.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -101062,7 +73402,7 @@ ] }, { - "label": "l1.gate_up_silu", + "label": "l34.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -101072,7 +73412,7 @@ "buf": "x" }, { - "buf": "model.layers.1.mlp.gate_up_proj.weight" + "buf": "model.layers.34.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -101086,7 +73426,7 @@ ] }, { - "label": "l1.down_norm", + "label": "l34.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -101096,13 +73436,13 @@ "buf": "act" }, { - "buf": "model.layers.1.mlp.down_proj.weight" + "buf": "model.layers.34.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.2.input_layernorm.weight_p1" + "buf": "model.layers.35.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -101119,32 +73459,23 @@ ] }, { - "label": "l2.in_proj", - "kernel": "gemm8_dual", + "label": "l35.qkv_proj", + "kernel": "gemm", "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, { "buf": "x" }, { - "buf": "model.layers.2.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.35.self_attn.qkv_proj.weight" }, { - "buf": "model.layers.2.linear_attn.in_proj_ba.weight" + "buf": "qkv" }, { "sym": "tokens" }, { - "i32": 16384 - }, - { - "i32": 96 + "i32": 14336 }, { "i32": 5120 @@ -101152,106 +73483,116 @@ ] }, { - "label": "l2.conv_update", - "kernel": "conv_update_spec", + "label": "l35.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "model.layers.2.linear_attn.conv1d.weight" - }, - { - "state": "gdn" + "buf": "q_n" }, { - "buf": "gdn.spec_line_index", - "offset": 12 + "buf": "qkv" }, { - "buf": "num_accepted_tokens" + "buf": "model.layers.35.self_attn.q_norm.weight_p1" }, { - "buf": "cu_seqlens_q" + "i32": 256 }, { - "buf": "qkvz" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i32": 1 + "i32": 24 }, { - "i32": 385 + "i32": 14336 }, { - "i64": 16384 + "i32": 512 }, { - "i64": 16384 + "i32": 6144 }, { - "i64": 0 + "i32": 256 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l2.post_conv", - "kernel": "post_conv", + "label": "l35.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 + "buf": "k_n" }, { - "buf": "ba" + "buf": "qkv", + "offset": 24576 }, { - "buf": "model.layers.2.linear_attn.A_log" + "buf": "model.layers.35.self_attn.k_norm.weight_p1" }, { - "buf": "model.layers.2.linear_attn.dt_bias" + "i32": 256 }, { - "buf": "gdn_q" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { - "buf": "gdn_k" + "i32": 4 }, { - "buf": "gdn_v" + "i32": 14336 }, { - "buf": "g" + "i32": 256 }, { - "buf": "beta" + "i32": 1024 }, { - "i32": 16384 + "i32": 256 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l35.rope", + "kernel": "mrope", + "args": [ { - "i32": 96 + "buf": "q_n" }, { - "i32": 2048 + "buf": "k_n" }, { - "i32": 2048 + "buf": "cos_g" }, { - "i32": 6144 + "buf": "sin_g" }, { - "sym": "tokens" + "i32": 0 }, { "i64": 0 @@ -101262,108 +73603,147 @@ ] }, { - "label": "l2.a_copy", - "kernel": "copy_rows", + "label": "l35.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "a_c" + "buf": "k_n" }, { - "buf": "ba", - "offset": 96 + "buf": "qkv", + "offset": 26624 }, { - "i32": 48 + "state": "kv", + "offset": 25690112 }, { - "i32": 96 + "state": "kv", + "offset": 25690624 }, { - "i32": 48 - } - ] - }, - { - "label": "l2.b_copy", - "kernel": "copy_rows", - "args": [ + "buf": "slot_mapping" + }, { - "buf": "b_c" + "buf": "kv_scales" }, { - "buf": "ba" + "buf": "kv_scales", + "offset": 4 }, { - "i32": 48 + "i64": 1024 }, { - "i32": 96 + "i64": 14336 + }, + { + "i64": 25690112 + }, + { + "i64": 512 + }, + { + "i64": 0 + }, + { + "i64": 0 + }, + { + "i64": 2048 + }, + { + "i64": 0 }, { - "i32": 48 + "i64": 0 } ] }, { - "label": "l2.recurrent", - "kernel": "recurrent_spec", + "label": "l35.attn", + "kernel": "attn", "args": [ { - "buf": "model.layers.2.linear_attn.A_log" + "buf": "attn_out" }, { - "buf": "a_c" + "buf": "q_n" }, { - "buf": "b_c" + "state": "kv", + "offset": 25690112 }, { - "buf": "model.layers.2.linear_attn.dt_bias" + "state": "kv", + "offset": 25690624 + }, + { + "buf": "block_table" + }, + { + "buf": "seq_lens" + }, + { + "f32": 0.0625 + }, + { + "buf": "kv_scales" + }, + { + "buf": "kv_scales", + "offset": 4 }, { "f32": 1.0 }, { - "f32": 20.0 + "f32": 0.0 + }, + { + "i64": 8 }, { - "buf": "gdn_q" + "i64": 6144 }, { - "buf": "gdn_k" + "i64": 256 }, { - "buf": "gdn_v" + "i64": 6144 }, { - "buf": "core_attn_out" + "i64": 256 }, { - "state": "gdn", - "offset": 204800 + "i64": 0 }, { - "state": "gdn", - "offset": 204800 + "buf": "seq_lens" }, { - "buf": "cu_seqlens_q" + "i64": 25690112 }, { - "buf": "gdn.spec_slots", - "offset": 64 + "i64": 2048 }, { - "buf": "num_accepted_tokens" + "i64": 512 }, { - "f32": 0.0883883461356163 + "i64": 25690112 }, { - "i64": 1 + "i64": 2048 }, { - "sym": "tokens" + "i64": 512 + }, + { + "buf": "cu_seqlens_q" + }, + { + "i32": 1 }, { "i64": 0 @@ -101374,91 +73754,93 @@ ] }, { - "label": "l2.z_copy", - "kernel": "copy_rows", + "label": "l35.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "z_c" + "buf": "x" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "attn_out" }, { - "i32": 6144 + "buf": "qkv", + "offset": 512 }, { - "i32": 16384 + "buf": "model.layers.35.self_attn.o_proj.weight" }, { - "i32": 6144 - } - ] - }, - { - "label": "l2.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" + "buf": "residual" }, { - "buf": "core_attn_out" + "buf": "model.layers.35.post_attention_layernorm.weight_p1" }, { - "buf": "model.layers.2.linear_attn.norm.weight" + "sym": "tokens" }, { - "buf": "z_c" + "i32": 5120 }, { - "i32": 128 + "i32": 6144 }, { - "i32": 128 + "i32": 256 }, { - "i32": 128 + "i32": 14336 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 512 }, { "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l35.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ + { + "buf": "act" }, { - "i64": 0 + "buf": "x" }, { - "i64": 0 + "buf": "model.layers.35.mlp.gate_up_proj.weight" + }, + { + "sym": "tokens" + }, + { + "i32": 17408 + }, + { + "i32": 5120 } ] }, { - "label": "l2.out_norm", + "label": "l35.down_norm", "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "core_attn_out" + "buf": "act" }, { - "buf": "model.layers.2.linear_attn.out_proj.weight" + "buf": "model.layers.35.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.2.post_attention_layernorm.weight_p1" + "buf": "model.layers.36.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -101467,7 +73849,7 @@ "i32": 5120 }, { - "i32": 6144 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -101475,23 +73857,32 @@ ] }, { - "label": "l2.gate_up_silu", - "kernel": "gemm8_gateup_silu", + "label": "l36.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "act" + "buf": "qkvz" + }, + { + "buf": "ba" + }, + { + "buf": "x" + }, + { + "buf": "model.layers.36.linear_attn.in_proj_qkvz.weight" }, { - "buf": "x" + "buf": "model.layers.36.linear_attn.in_proj_ba.weight" }, { - "buf": "model.layers.2.mlp.gate_up_proj.weight" + "sym": "tokens" }, { - "sym": "tokens" + "i32": 16384 }, { - "i32": 17408 + "i32": 96 }, { "i32": 5120 @@ -101499,149 +73890,125 @@ ] }, { - "label": "l2.down_norm", - "kernel": "gemm8_add_norm", + "label": "l36.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "x" + "buf": "qkvz" }, { - "buf": "act" + "buf": "model.layers.36.linear_attn.conv1d.weight" }, { - "buf": "model.layers.2.mlp.down_proj.weight" + "state": "gdn" }, { - "buf": "residual" + "state": "gdn", + "offset": 204800 }, { - "buf": "model.layers.3.input_layernorm.weight_p1" + "buf": "gdn.spec_line_index", + "offset": 112 }, { - "sym": "tokens" + "buf": "gdn.one" }, { - "i32": 5120 + "buf": "cu_seqlens_q" }, { - "i32": 17408 + "buf": "gdn.spec_slots", + "offset": 864 }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l3.qkv_proj", - "kernel": "gemm", - "args": [ + "buf": "ba" + }, { - "buf": "x" + "buf": "model.layers.36.linear_attn.A_log" }, { - "buf": "model.layers.3.self_attn.qkv_proj.weight" + "buf": "model.layers.36.linear_attn.dt_bias" }, { - "buf": "qkv" + "buf": "core_attn_out" }, { - "sym": "tokens" + "buf": "model.layers.36.linear_attn.norm.weight" }, { - "i32": 14336 + "buf": "gdn_q" }, { - "i32": 5120 - } - ] - }, - { - "label": "l3.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ + "buf": "gdn_k" + }, { - "buf": "q_n" + "buf": "gdn_v" }, { - "buf": "qkv" + "buf": "g" }, { - "buf": "model.layers.3.self_attn.q_norm.weight_p1" + "buf": "beta" }, { - "i32": 256 + "buf": "a_c" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } + "buf": "b_c" }, { - "i32": 24 + "buf": "z_c" }, { - "i32": 14336 + "f32": 0.0883883461356163 }, { - "i32": 512 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "i32": 256 + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 + }, + { + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l3.k_norm", - "kernel": "gemma_norm_khead", + "label": "l36.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.3.self_attn.k_norm.weight_p1" + "buf": "x" }, { - "i32": 256 + "buf": "core_attn_out" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } + "buf": "model.layers.36.linear_attn.out_proj.weight" }, { - "i32": 4 + "buf": "residual" }, { - "i32": 14336 + "buf": "model.layers.36.post_attention_layernorm.weight_p1" }, { - "i32": 256 + "sym": "tokens" }, { - "i32": 1024 + "i32": 5120 }, { - "i32": 256 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -101649,203 +74016,206 @@ ] }, { - "label": "l3.rope", - "kernel": "mrope", + "label": "l36.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "q_n" - }, - { - "buf": "k_n" + "buf": "act" }, { - "buf": "cos_g" + "buf": "x" }, { - "buf": "sin_g" + "buf": "model.layers.36.mlp.gate_up_proj.weight" }, { - "i32": 0 + "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l3.kv_write", - "kernel": "reshape_and_cache", + "label": "l36.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" + "buf": "x" }, { - "buf": "qkv", - "offset": 26624 + "buf": "act" }, { - "state": "kv" + "buf": "model.layers.36.mlp.down_proj.weight" }, { - "state": "kv", - "offset": 512 + "buf": "residual" }, { - "buf": "slot_mapping" + "buf": "model.layers.37.input_layernorm.weight_p1" }, { - "buf": "kv_scales" + "sym": "tokens" }, { - "buf": "kv_scales", - "offset": 4 + "i32": 5120 }, { - "i64": 1024 + "i32": 17408 }, { - "i64": 14336 + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l37.in_proj", + "kernel": "gemm8_dual", + "args": [ + { + "buf": "qkvz" }, { - "i64": 25690112 + "buf": "ba" }, { - "i64": 512 + "buf": "x" }, { - "i64": 0 + "buf": "model.layers.37.linear_attn.in_proj_qkvz.weight" }, { - "i64": 0 + "buf": "model.layers.37.linear_attn.in_proj_ba.weight" }, { - "i64": 2048 + "sym": "tokens" }, { - "i64": 0 + "i32": 16384 }, { - "i64": 0 + "i32": 96 + }, + { + "i32": 5120 } ] }, { - "label": "l3.attn", - "kernel": "attn_prefill", + "label": "l37.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "attn_out" + "buf": "qkvz" }, { - "buf": "q_n" + "buf": "model.layers.37.linear_attn.conv1d.weight" }, { - "state": "kv" + "state": "gdn" }, { - "state": "kv", - "offset": 512 + "state": "gdn", + "offset": 204800 }, { - "buf": "block_table" + "buf": "gdn.spec_line_index", + "offset": 116 }, { - "buf": "seq_lens" + "buf": "gdn.one" }, { - "f32": 0.0625 + "buf": "cu_seqlens_q" }, { - "buf": "kv_scales" + "buf": "gdn.spec_slots", + "offset": 896 }, { - "buf": "kv_scales", - "offset": 4 + "buf": "ba" }, { - "f32": 1.0 + "buf": "model.layers.37.linear_attn.A_log" }, { - "f32": 0.0 + "buf": "model.layers.37.linear_attn.dt_bias" }, { - "i64": 8 + "buf": "core_attn_out" }, { - "i64": 6144 + "buf": "model.layers.37.linear_attn.norm.weight" }, { - "i64": 256 + "buf": "gdn_q" }, { - "i64": 6144 + "buf": "gdn_k" }, { - "i64": 256 + "buf": "gdn_v" }, { - "i64": 0 + "buf": "g" }, { - "buf": "seq_lens" + "buf": "beta" }, { - "i64": 25690112 + "buf": "a_c" }, { - "i64": 2048 + "buf": "b_c" }, { - "i64": 512 + "buf": "z_c" }, { - "i64": 25690112 + "f32": 0.0883883461356163 }, { - "i64": 2048 + "f32": 9.999999974752427e-07 }, { - "i64": 512 + "sym": "tokens" }, { - "buf": "cu_seqlens_q" + "i32": 385 }, { - "i32": 1 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l3.o_norm", - "kernel": "gemm8_sgate_add_norm", + "label": "l37.out_norm", + "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 + "buf": "core_attn_out" }, { - "buf": "model.layers.3.self_attn.o_proj.weight" + "buf": "model.layers.37.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.3.post_attention_layernorm.weight_p1" + "buf": "model.layers.37.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -101856,22 +74226,13 @@ { "i32": 6144 }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l3.gate_up_silu", + "label": "l37.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -101881,7 +74242,7 @@ "buf": "x" }, { - "buf": "model.layers.3.mlp.gate_up_proj.weight" + "buf": "model.layers.37.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -101895,7 +74256,7 @@ ] }, { - "label": "l3.down_norm", + "label": "l37.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -101905,13 +74266,13 @@ "buf": "act" }, { - "buf": "model.layers.3.mlp.down_proj.weight" + "buf": "model.layers.37.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.4.input_layernorm.weight_p1" + "buf": "model.layers.38.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -101928,7 +74289,7 @@ ] }, { - "label": "l4.in_proj", + "label": "l38.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -101941,10 +74302,10 @@ "buf": "x" }, { - "buf": "model.layers.4.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.38.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.4.linear_attn.in_proj_ba.weight" + "buf": "model.layers.38.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -101961,286 +74322,323 @@ ] }, { - "label": "l4.conv_update", - "kernel": "conv_update_spec", + "label": "l38.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.4.linear_attn.conv1d.weight" + "buf": "model.layers.38.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 16 + "offset": 120 }, { - "buf": "num_accepted_tokens" + "buf": "gdn.one" }, { "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 928 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.38.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.38.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.38.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l4.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.4.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.4.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l38.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" }, { - "i32": 6144 + "buf": "model.layers.38.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.38.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l4.a_copy", - "kernel": "copy_rows", + "label": "l38.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" + }, + { + "buf": "model.layers.38.mlp.gate_up_proj.weight" }, { - "i32": 48 + "sym": "tokens" }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l4.b_copy", - "kernel": "copy_rows", + "label": "l38.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.38.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l4.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.4.linear_attn.A_log" + "buf": "model.layers.39.input_layernorm.weight_p1" }, { - "buf": "a_c" + "sym": "tokens" }, { - "buf": "b_c" + "i32": 5120 }, { - "buf": "model.layers.4.linear_attn.dt_bias" + "i32": 17408 }, { - "f32": 1.0 + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l39.qkv_proj", + "kernel": "gemm", + "args": [ + { + "buf": "x" }, { - "f32": 20.0 + "buf": "model.layers.39.self_attn.qkv_proj.weight" }, { - "buf": "gdn_q" + "buf": "qkv" }, { - "buf": "gdn_k" + "sym": "tokens" }, { - "buf": "gdn_v" + "i32": 14336 }, { - "buf": "core_attn_out" + "i32": 5120 + } + ] + }, + { + "label": "l39.q_norm", + "kernel": "gemma_norm_qhead", + "args": [ + { + "buf": "q_n" }, { - "state": "gdn", - "offset": 204800 + "buf": "qkv" }, { - "state": "gdn", - "offset": 204800 + "buf": "model.layers.39.self_attn.q_norm.weight_p1" }, { - "buf": "cu_seqlens_q" + "i32": 256 }, { - "buf": "gdn.spec_slots", - "offset": 96 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "buf": "num_accepted_tokens" + "i32": 24 }, { - "f32": 0.0883883461356163 + "i32": 14336 }, { - "i64": 1 + "i32": 512 }, { - "sym": "tokens" + "i32": 6144 }, { - "i64": 0 + "i32": 256 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l4.z_copy", - "kernel": "copy_rows", + "label": "l39.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "z_c" + "buf": "k_n" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "qkv", + "offset": 24576 }, { - "i32": 6144 + "buf": "model.layers.39.self_attn.k_norm.weight_p1" }, { - "i32": 16384 + "i32": 256 }, { - "i32": 6144 - } - ] - }, - { - "label": "l4.gated_norm", - "kernel": "gated_norm", - "args": [ + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } + }, { - "buf": "core_attn_out" + "i32": 4 + }, + { + "i32": 14336 }, { - "buf": "core_attn_out" + "i32": 256 }, { - "buf": "model.layers.4.linear_attn.norm.weight" + "i32": 1024 }, { - "buf": "z_c" + "i32": 256 }, { - "i32": 128 + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l39.rope", + "kernel": "mrope", + "args": [ + { + "buf": "q_n" }, { - "i32": 128 + "buf": "k_n" }, { - "i32": 128 + "buf": "cos_g" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "sin_g" }, { - "f32": 9.999999974752427e-07 + "i32": 0 }, { "i64": 0 @@ -102251,165 +74649,147 @@ ] }, { - "label": "l4.out_norm", - "kernel": "gemm8_add_norm", + "label": "l39.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "x" + "buf": "k_n" }, { - "buf": "core_attn_out" + "buf": "qkv", + "offset": 26624 }, { - "buf": "model.layers.4.linear_attn.out_proj.weight" + "state": "kv", + "offset": 28901376 }, { - "buf": "residual" + "state": "kv", + "offset": 28901888 }, { - "buf": "model.layers.4.post_attention_layernorm.weight_p1" + "buf": "slot_mapping" }, { - "sym": "tokens" + "buf": "kv_scales" }, { - "i32": 5120 + "buf": "kv_scales", + "offset": 4 }, { - "i32": 6144 + "i64": 1024 }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l4.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ + "i64": 14336 + }, { - "buf": "act" + "i64": 25690112 }, { - "buf": "x" + "i64": 512 }, { - "buf": "model.layers.4.mlp.gate_up_proj.weight" + "i64": 0 }, { - "sym": "tokens" + "i64": 0 }, { - "i32": 17408 + "i64": 2048 }, { - "i32": 5120 + "i64": 0 + }, + { + "i64": 0 } ] }, { - "label": "l4.down_norm", - "kernel": "gemm8_add_norm", + "label": "l39.attn", + "kernel": "attn", "args": [ { - "buf": "x" - }, - { - "buf": "act" + "buf": "attn_out" }, { - "buf": "model.layers.4.mlp.down_proj.weight" + "buf": "q_n" }, { - "buf": "residual" + "state": "kv", + "offset": 28901376 }, { - "buf": "model.layers.5.input_layernorm.weight_p1" + "state": "kv", + "offset": 28901888 }, { - "sym": "tokens" + "buf": "block_table" }, { - "i32": 5120 + "buf": "seq_lens" }, { - "i32": 17408 + "f32": 0.0625 }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l5.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" + "buf": "kv_scales" }, { - "buf": "ba" + "buf": "kv_scales", + "offset": 4 }, { - "buf": "x" + "f32": 1.0 }, { - "buf": "model.layers.5.linear_attn.in_proj_qkvz.weight" + "f32": 0.0 }, { - "buf": "model.layers.5.linear_attn.in_proj_ba.weight" + "i64": 8 }, { - "sym": "tokens" + "i64": 6144 }, { - "i32": 16384 + "i64": 256 }, { - "i32": 96 + "i64": 6144 }, { - "i32": 5120 - } - ] - }, - { - "label": "l5.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" + "i64": 256 }, { - "buf": "model.layers.5.linear_attn.conv1d.weight" + "i64": 0 }, { - "state": "gdn" + "buf": "seq_lens" }, { - "buf": "gdn.spec_line_index", - "offset": 20 + "i64": 25690112 }, { - "buf": "num_accepted_tokens" + "i64": 2048 }, { - "buf": "cu_seqlens_q" + "i64": 512 }, { - "buf": "qkvz" + "i64": 25690112 }, { - "i32": 1 + "i64": 2048 }, { - "i32": 385 + "i64": 512 }, { - "i64": 16384 + "buf": "cu_seqlens_q" }, { - "i64": 16384 + "i32": 1 }, { "i64": 0 @@ -102420,251 +74800,236 @@ ] }, { - "label": "l5.post_conv", - "kernel": "post_conv", + "label": "l39.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "qkvz" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "attn_out" }, { - "buf": "ba" + "buf": "qkv", + "offset": 512 }, { - "buf": "model.layers.5.linear_attn.A_log" + "buf": "model.layers.39.self_attn.o_proj.weight" }, { - "buf": "model.layers.5.linear_attn.dt_bias" + "buf": "residual" }, { - "buf": "gdn_q" + "buf": "model.layers.39.post_attention_layernorm.weight_p1" }, { - "buf": "gdn_k" + "sym": "tokens" }, { - "buf": "gdn_v" + "i32": 5120 }, { - "buf": "g" + "i32": 6144 }, { - "buf": "beta" + "i32": 256 }, { - "i32": 16384 + "i32": 14336 }, { - "i32": 96 + "i32": 512 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l39.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ { - "i32": 2048 + "buf": "act" }, { - "i32": 2048 + "buf": "x" }, { - "i32": 6144 + "buf": "model.layers.39.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l5.a_copy", - "kernel": "copy_rows", + "label": "l39.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.39.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l5.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.40.input_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l5.recurrent", - "kernel": "recurrent_spec", + "label": "l40.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.5.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.5.linear_attn.dt_bias" + "buf": "model.layers.40.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.40.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l40.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.40.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 124 }, { - "buf": "gdn.spec_slots", - "offset": 128 + "buf": "gdn.one" }, { - "buf": "num_accepted_tokens" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 960 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.40.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.40.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l5.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.40.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l5.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.5.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l5.out_norm", + "label": "l40.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -102674,13 +75039,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.5.linear_attn.out_proj.weight" + "buf": "model.layers.40.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.5.post_attention_layernorm.weight_p1" + "buf": "model.layers.40.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -102697,7 +75062,7 @@ ] }, { - "label": "l5.gate_up_silu", + "label": "l40.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -102707,7 +75072,7 @@ "buf": "x" }, { - "buf": "model.layers.5.mlp.gate_up_proj.weight" + "buf": "model.layers.40.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -102721,7 +75086,7 @@ ] }, { - "label": "l5.down_norm", + "label": "l40.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -102731,13 +75096,13 @@ "buf": "act" }, { - "buf": "model.layers.5.mlp.down_proj.weight" + "buf": "model.layers.40.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.6.input_layernorm.weight_p1" + "buf": "model.layers.41.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -102754,31 +75119,7 @@ ] }, { - "label": "l5.fc_tap", - "kernel": "gemm", - "args": [ - { - "buf": "residual" - }, - { - "buf": "draft.fc.0.weight" - }, - { - "buf": "fc_out" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l6.in_proj", + "label": "l41.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -102791,10 +75132,10 @@ "buf": "x" }, { - "buf": "model.layers.6.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.41.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.6.linear_attn.in_proj_ba.weight" + "buf": "model.layers.41.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -102811,297 +75152,316 @@ ] }, { - "label": "l6.conv_update", - "kernel": "conv_update_spec", + "label": "l41.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.6.linear_attn.conv1d.weight" + "buf": "model.layers.41.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 24 + "offset": 128 }, { - "buf": "num_accepted_tokens" + "buf": "gdn.one" }, { "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 992 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.41.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.41.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.41.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l6.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.6.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.6.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l41.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" }, { - "i32": 6144 + "buf": "model.layers.41.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.41.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l6.a_copy", - "kernel": "copy_rows", + "label": "l41.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" + }, + { + "buf": "model.layers.41.mlp.gate_up_proj.weight" }, { - "i32": 48 + "sym": "tokens" }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l6.b_copy", - "kernel": "copy_rows", + "label": "l41.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.41.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" + }, + { + "buf": "model.layers.42.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l6.recurrent", - "kernel": "recurrent_spec", + "label": "l42.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.6.linear_attn.A_log" + "buf": "qkvz" + }, + { + "buf": "ba" }, { - "buf": "a_c" + "buf": "x" }, { - "buf": "b_c" + "buf": "model.layers.42.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.6.linear_attn.dt_bias" + "buf": "model.layers.42.linear_attn.in_proj_ba.weight" }, { - "f32": 1.0 + "sym": "tokens" }, { - "f32": 20.0 + "i32": 16384 }, { - "buf": "gdn_q" + "i32": 96 }, { - "buf": "gdn_k" + "i32": 5120 + } + ] + }, + { + "label": "l42.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "gdn_v" + "buf": "model.layers.42.linear_attn.conv1d.weight" }, { - "buf": "core_attn_out" + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "state": "gdn", - "offset": 204800 + "buf": "gdn.spec_line_index", + "offset": 132 + }, + { + "buf": "gdn.one" }, { "buf": "cu_seqlens_q" }, { "buf": "gdn.spec_slots", - "offset": 160 + "offset": 1024 }, { - "buf": "num_accepted_tokens" + "buf": "ba" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.42.linear_attn.A_log" }, { - "i64": 1 + "buf": "model.layers.42.linear_attn.dt_bias" }, { - "sym": "tokens" + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.42.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l6.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" + "buf": "gdn_q" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_k" }, { - "i32": 6144 + "buf": "gdn_v" }, { - "i32": 16384 + "buf": "g" }, { - "i32": 6144 - } - ] - }, - { - "label": "l6.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.6.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l6.out_norm", + "label": "l42.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -103111,13 +75471,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.6.linear_attn.out_proj.weight" + "buf": "model.layers.42.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.6.post_attention_layernorm.weight_p1" + "buf": "model.layers.42.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -103134,7 +75494,7 @@ ] }, { - "label": "l6.gate_up_silu", + "label": "l42.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -103144,7 +75504,7 @@ "buf": "x" }, { - "buf": "model.layers.6.mlp.gate_up_proj.weight" + "buf": "model.layers.42.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -103158,7 +75518,7 @@ ] }, { - "label": "l6.down_norm", + "label": "l42.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -103168,13 +75528,13 @@ "buf": "act" }, { - "buf": "model.layers.6.mlp.down_proj.weight" + "buf": "model.layers.42.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.7.input_layernorm.weight_p1" + "buf": "model.layers.43.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -103191,14 +75551,14 @@ ] }, { - "label": "l7.qkv_proj", + "label": "l43.qkv_proj", "kernel": "gemm", "args": [ { "buf": "x" }, { - "buf": "model.layers.7.self_attn.qkv_proj.weight" + "buf": "model.layers.43.self_attn.qkv_proj.weight" }, { "buf": "qkv" @@ -103215,7 +75575,7 @@ ] }, { - "label": "l7.q_norm", + "label": "l43.q_norm", "kernel": "gemma_norm_qhead", "args": [ { @@ -103225,7 +75585,7 @@ "buf": "qkv" }, { - "buf": "model.layers.7.self_attn.q_norm.weight_p1" + "buf": "model.layers.43.self_attn.q_norm.weight_p1" }, { "i32": 256 @@ -103261,7 +75621,7 @@ ] }, { - "label": "l7.k_norm", + "label": "l43.k_norm", "kernel": "gemma_norm_khead", "args": [ { @@ -103272,7 +75632,7 @@ "offset": 24576 }, { - "buf": "model.layers.7.self_attn.k_norm.weight_p1" + "buf": "model.layers.43.self_attn.k_norm.weight_p1" }, { "i32": 256 @@ -103308,7 +75668,7 @@ ] }, { - "label": "l7.rope", + "label": "l43.rope", "kernel": "mrope", "args": [ { @@ -103335,7 +75695,7 @@ ] }, { - "label": "l7.kv_write", + "label": "l43.kv_write", "kernel": "reshape_and_cache", "args": [ { @@ -103347,11 +75707,11 @@ }, { "state": "kv", - "offset": 3211264 + "offset": 32112640 }, { "state": "kv", - "offset": 3211776 + "offset": 32113152 }, { "buf": "slot_mapping" @@ -103393,8 +75753,8 @@ ] }, { - "label": "l7.attn", - "kernel": "attn_prefill", + "label": "l43.attn", + "kernel": "attn", "args": [ { "buf": "attn_out" @@ -103404,11 +75764,11 @@ }, { "state": "kv", - "offset": 3211264 + "offset": 32112640 }, { "state": "kv", - "offset": 3211776 + "offset": 32113152 }, { "buf": "block_table" @@ -103486,7 +75846,7 @@ ] }, { - "label": "l7.o_norm", + "label": "l43.o_norm", "kernel": "gemm8_sgate_add_norm", "args": [ { @@ -103500,13 +75860,13 @@ "offset": 512 }, { - "buf": "model.layers.7.self_attn.o_proj.weight" + "buf": "model.layers.43.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.7.post_attention_layernorm.weight_p1" + "buf": "model.layers.43.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -103532,7 +75892,7 @@ ] }, { - "label": "l7.gate_up_silu", + "label": "l43.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -103542,7 +75902,7 @@ "buf": "x" }, { - "buf": "model.layers.7.mlp.gate_up_proj.weight" + "buf": "model.layers.43.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -103556,7 +75916,7 @@ ] }, { - "label": "l7.down_norm", + "label": "l43.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -103566,13 +75926,13 @@ "buf": "act" }, { - "buf": "model.layers.7.mlp.down_proj.weight" + "buf": "model.layers.43.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.8.input_layernorm.weight_p1" + "buf": "model.layers.44.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -103589,7 +75949,7 @@ ] }, { - "label": "l8.in_proj", + "label": "l44.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -103602,10 +75962,10 @@ "buf": "x" }, { - "buf": "model.layers.8.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.44.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.8.linear_attn.in_proj_ba.weight" + "buf": "model.layers.44.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -103622,70 +75982,50 @@ ] }, { - "label": "l8.conv_update", - "kernel": "conv_update_spec", + "label": "l44.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.8.linear_attn.conv1d.weight" + "buf": "model.layers.44.linear_attn.conv1d.weight" }, { "state": "gdn" }, { - "buf": "gdn.spec_line_index", - "offset": 28 - }, - { - "buf": "num_accepted_tokens" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 + "state": "gdn", + "offset": 204800 }, { - "i32": 385 + "buf": "gdn.spec_line_index", + "offset": 136 }, { - "i64": 16384 + "buf": "gdn.one" }, { - "i64": 16384 + "buf": "cu_seqlens_q" }, { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 1056 }, { - "i64": 0 - } - ] - }, - { - "label": "l8.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.44.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.44.linear_attn.dt_bias" }, { - "buf": "model.layers.8.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.8.linear_attn.dt_bias" + "buf": "model.layers.44.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -103702,85 +76042,6 @@ { "buf": "beta" }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l8.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l8.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l8.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.8.linear_attn.A_log" - }, { "buf": "a_c" }, @@ -103788,131 +76049,33 @@ "buf": "b_c" }, { - "buf": "model.layers.8.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 192 - }, - { - "buf": "num_accepted_tokens" + "buf": "z_c" }, { "f32": 0.0883883461356163 }, { - "i64": 1 + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l8.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l8.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.8.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l8.out_norm", + "label": "l44.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -103922,13 +76085,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.8.linear_attn.out_proj.weight" + "buf": "model.layers.44.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.8.post_attention_layernorm.weight_p1" + "buf": "model.layers.44.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -103945,7 +76108,7 @@ ] }, { - "label": "l8.gate_up_silu", + "label": "l44.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -103955,7 +76118,7 @@ "buf": "x" }, { - "buf": "model.layers.8.mlp.gate_up_proj.weight" + "buf": "model.layers.44.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -103969,7 +76132,7 @@ ] }, { - "label": "l8.down_norm", + "label": "l44.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -103979,13 +76142,13 @@ "buf": "act" }, { - "buf": "model.layers.8.mlp.down_proj.weight" + "buf": "model.layers.44.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.9.input_layernorm.weight_p1" + "buf": "model.layers.45.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -104002,7 +76165,7 @@ ] }, { - "label": "l9.in_proj", + "label": "l45.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -104015,10 +76178,10 @@ "buf": "x" }, { - "buf": "model.layers.9.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.45.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.9.linear_attn.in_proj_ba.weight" + "buf": "model.layers.45.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -104035,297 +76198,316 @@ ] }, { - "label": "l9.conv_update", - "kernel": "conv_update_spec", + "label": "l45.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.9.linear_attn.conv1d.weight" + "buf": "model.layers.45.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 32 + "offset": 140 }, { - "buf": "num_accepted_tokens" + "buf": "gdn.one" }, { "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 1088 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.45.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.45.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.45.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l9.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.9.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.9.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l45.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" + }, + { + "buf": "model.layers.45.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.45.post_attention_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 }, { "i32": 6144 }, + { + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l45.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ + { + "buf": "act" + }, + { + "buf": "x" + }, + { + "buf": "model.layers.45.mlp.gate_up_proj.weight" + }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l9.a_copy", - "kernel": "copy_rows", + "label": "l45.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.45.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l9.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.46.input_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l9.recurrent", - "kernel": "recurrent_spec", + "label": "l46.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.9.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.9.linear_attn.dt_bias" + "buf": "model.layers.46.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.46.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l46.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.46.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 144 }, { - "buf": "gdn.spec_slots", - "offset": 224 + "buf": "gdn.one" }, { - "buf": "num_accepted_tokens" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 1120 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.46.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.46.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l9.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.46.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l9.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.9.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l9.out_norm", + "label": "l46.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -104335,13 +76517,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.9.linear_attn.out_proj.weight" + "buf": "model.layers.46.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.9.post_attention_layernorm.weight_p1" + "buf": "model.layers.46.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -104358,7 +76540,7 @@ ] }, { - "label": "l9.gate_up_silu", + "label": "l46.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -104368,7 +76550,7 @@ "buf": "x" }, { - "buf": "model.layers.9.mlp.gate_up_proj.weight" + "buf": "model.layers.46.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -104382,7 +76564,7 @@ ] }, { - "label": "l9.down_norm", + "label": "l46.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -104392,13 +76574,13 @@ "buf": "act" }, { - "buf": "model.layers.9.mlp.down_proj.weight" + "buf": "model.layers.46.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.10.input_layernorm.weight_p1" + "buf": "model.layers.47.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -104415,32 +76597,23 @@ ] }, { - "label": "l10.in_proj", - "kernel": "gemm8_dual", + "label": "l47.qkv_proj", + "kernel": "gemm", "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, { "buf": "x" }, { - "buf": "model.layers.10.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.47.self_attn.qkv_proj.weight" }, { - "buf": "model.layers.10.linear_attn.in_proj_ba.weight" + "buf": "qkv" }, { "sym": "tokens" }, { - "i32": 16384 - }, - { - "i32": 96 + "i32": 14336 }, { "i32": 5120 @@ -104448,106 +76621,116 @@ ] }, { - "label": "l10.conv_update", - "kernel": "conv_update_spec", + "label": "l47.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "model.layers.10.linear_attn.conv1d.weight" - }, - { - "state": "gdn" + "buf": "q_n" }, { - "buf": "gdn.spec_line_index", - "offset": 36 + "buf": "qkv" }, { - "buf": "num_accepted_tokens" + "buf": "model.layers.47.self_attn.q_norm.weight_p1" }, { - "buf": "cu_seqlens_q" + "i32": 256 }, { - "buf": "qkvz" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i32": 1 + "i32": 24 }, { - "i32": 385 + "i32": 14336 }, { - "i64": 16384 + "i32": 512 }, { - "i64": 16384 + "i32": 6144 }, { - "i64": 0 + "i32": 256 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l10.post_conv", - "kernel": "post_conv", + "label": "l47.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 + "buf": "k_n" }, { - "buf": "ba" + "buf": "qkv", + "offset": 24576 }, { - "buf": "model.layers.10.linear_attn.A_log" + "buf": "model.layers.47.self_attn.k_norm.weight_p1" }, { - "buf": "model.layers.10.linear_attn.dt_bias" + "i32": 256 }, { - "buf": "gdn_q" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { - "buf": "gdn_k" + "i32": 4 }, { - "buf": "gdn_v" + "i32": 14336 }, { - "buf": "g" + "i32": 256 }, { - "buf": "beta" + "i32": 1024 }, { - "i32": 16384 + "i32": 256 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l47.rope", + "kernel": "mrope", + "args": [ { - "i32": 96 + "buf": "q_n" }, { - "i32": 2048 + "buf": "k_n" }, { - "i32": 2048 + "buf": "cos_g" }, { - "i32": 6144 + "buf": "sin_g" }, { - "sym": "tokens" + "i32": 0 }, { "i64": 0 @@ -104558,108 +76741,147 @@ ] }, { - "label": "l10.a_copy", - "kernel": "copy_rows", + "label": "l47.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "a_c" + "buf": "k_n" }, { - "buf": "ba", - "offset": 96 + "buf": "qkv", + "offset": 26624 }, { - "i32": 48 + "state": "kv", + "offset": 35323904 }, { - "i32": 96 + "state": "kv", + "offset": 35324416 }, { - "i32": 48 - } - ] - }, - { - "label": "l10.b_copy", - "kernel": "copy_rows", - "args": [ + "buf": "slot_mapping" + }, { - "buf": "b_c" + "buf": "kv_scales" }, { - "buf": "ba" + "buf": "kv_scales", + "offset": 4 }, { - "i32": 48 + "i64": 1024 }, { - "i32": 96 + "i64": 14336 + }, + { + "i64": 25690112 }, { - "i32": 48 + "i64": 512 + }, + { + "i64": 0 + }, + { + "i64": 0 + }, + { + "i64": 2048 + }, + { + "i64": 0 + }, + { + "i64": 0 } ] }, { - "label": "l10.recurrent", - "kernel": "recurrent_spec", + "label": "l47.attn", + "kernel": "attn", "args": [ { - "buf": "model.layers.10.linear_attn.A_log" + "buf": "attn_out" }, { - "buf": "a_c" + "buf": "q_n" }, { - "buf": "b_c" + "state": "kv", + "offset": 35323904 }, { - "buf": "model.layers.10.linear_attn.dt_bias" + "state": "kv", + "offset": 35324416 + }, + { + "buf": "block_table" + }, + { + "buf": "seq_lens" + }, + { + "f32": 0.0625 + }, + { + "buf": "kv_scales" + }, + { + "buf": "kv_scales", + "offset": 4 }, { "f32": 1.0 }, { - "f32": 20.0 + "f32": 0.0 }, { - "buf": "gdn_q" + "i64": 8 }, { - "buf": "gdn_k" + "i64": 6144 }, { - "buf": "gdn_v" + "i64": 256 }, { - "buf": "core_attn_out" + "i64": 6144 }, { - "state": "gdn", - "offset": 204800 + "i64": 256 }, { - "state": "gdn", - "offset": 204800 + "i64": 0 }, { - "buf": "cu_seqlens_q" + "buf": "seq_lens" }, { - "buf": "gdn.spec_slots", - "offset": 256 + "i64": 25690112 }, { - "buf": "num_accepted_tokens" + "i64": 2048 }, { - "f32": 0.0883883461356163 + "i64": 512 }, { - "i64": 1 + "i64": 25690112 }, { - "sym": "tokens" + "i64": 2048 + }, + { + "i64": 512 + }, + { + "buf": "cu_seqlens_q" + }, + { + "i32": 1 }, { "i64": 0 @@ -104670,91 +76892,93 @@ ] }, { - "label": "l10.z_copy", - "kernel": "copy_rows", + "label": "l47.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "z_c" + "buf": "x" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "attn_out" }, { - "i32": 6144 + "buf": "qkv", + "offset": 512 }, { - "i32": 16384 + "buf": "model.layers.47.self_attn.o_proj.weight" }, { - "i32": 6144 - } - ] - }, - { - "label": "l10.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" + "buf": "residual" }, { - "buf": "core_attn_out" + "buf": "model.layers.47.post_attention_layernorm.weight_p1" }, { - "buf": "model.layers.10.linear_attn.norm.weight" + "sym": "tokens" }, { - "buf": "z_c" + "i32": 5120 }, { - "i32": 128 + "i32": 6144 }, { - "i32": 128 + "i32": 256 }, { - "i32": 128 + "i32": 14336 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 512 }, { "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l47.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ + { + "buf": "act" }, { - "i64": 0 + "buf": "x" }, { - "i64": 0 + "buf": "model.layers.47.mlp.gate_up_proj.weight" + }, + { + "sym": "tokens" + }, + { + "i32": 17408 + }, + { + "i32": 5120 } ] }, { - "label": "l10.out_norm", + "label": "l47.down_norm", "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "core_attn_out" + "buf": "act" }, { - "buf": "model.layers.10.linear_attn.out_proj.weight" + "buf": "model.layers.47.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.10.post_attention_layernorm.weight_p1" + "buf": "model.layers.48.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -104763,7 +76987,7 @@ "i32": 5120 }, { - "i32": 6144 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -104771,23 +76995,23 @@ ] }, { - "label": "l10.gate_up_silu", - "kernel": "gemm8_gateup_silu", + "label": "l47.fc_tap", + "kernel": "gemm_acc", "args": [ { - "buf": "act" + "buf": "residual" }, { - "buf": "x" + "buf": "draft.fc.3.weight" }, { - "buf": "model.layers.10.mlp.gate_up_proj.weight" + "buf": "fc_out" }, { "sym": "tokens" }, { - "i32": 17408 + "i32": 5120 }, { "i32": 5120 @@ -104795,149 +77019,158 @@ ] }, { - "label": "l10.down_norm", - "kernel": "gemm8_add_norm", + "label": "l48.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "x" + "buf": "qkvz" }, { - "buf": "act" + "buf": "ba" }, { - "buf": "model.layers.10.mlp.down_proj.weight" + "buf": "x" }, { - "buf": "residual" + "buf": "model.layers.48.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.11.input_layernorm.weight_p1" + "buf": "model.layers.48.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" }, { - "i32": 5120 + "i32": 16384 + }, + { + "i32": 96 + }, + { + "i32": 5120 + } + ] + }, + { + "label": "l48.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" + }, + { + "buf": "model.layers.48.linear_attn.conv1d.weight" + }, + { + "state": "gdn" + }, + { + "state": "gdn", + "offset": 204800 + }, + { + "buf": "gdn.spec_line_index", + "offset": 148 + }, + { + "buf": "gdn.one" + }, + { + "buf": "cu_seqlens_q" + }, + { + "buf": "gdn.spec_slots", + "offset": 1152 + }, + { + "buf": "ba" }, { - "i32": 17408 + "buf": "model.layers.48.linear_attn.A_log" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l11.qkv_proj", - "kernel": "gemm", - "args": [ + "buf": "model.layers.48.linear_attn.dt_bias" + }, { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "model.layers.11.self_attn.qkv_proj.weight" + "buf": "model.layers.48.linear_attn.norm.weight" }, { - "buf": "qkv" + "buf": "gdn_q" }, { - "sym": "tokens" + "buf": "gdn_k" }, { - "i32": 14336 + "buf": "gdn_v" }, { - "i32": 5120 - } - ] - }, - { - "label": "l11.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ + "buf": "g" + }, { - "buf": "q_n" + "buf": "beta" }, { - "buf": "qkv" + "buf": "a_c" }, { - "buf": "model.layers.11.self_attn.q_norm.weight_p1" + "buf": "b_c" }, { - "i32": 256 + "buf": "z_c" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } + "f32": 0.0883883461356163 }, { - "i32": 24 + "f32": 9.999999974752427e-07 }, { - "i32": 14336 + "sym": "tokens" }, { - "i32": 512 + "i32": 385 }, { - "i32": 6144 + "i32": 1703936 }, { - "i32": 256 + "i32": 10 }, { - "f32": 9.999999974752427e-07 + "i32": 851968 } ] }, { - "label": "l11.k_norm", - "kernel": "gemma_norm_khead", + "label": "l48.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.11.self_attn.k_norm.weight_p1" + "buf": "x" }, { - "i32": 256 + "buf": "core_attn_out" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } + "buf": "model.layers.48.linear_attn.out_proj.weight" }, { - "i32": 4 + "buf": "residual" }, { - "i32": 14336 + "buf": "model.layers.48.post_attention_layernorm.weight_p1" }, { - "i32": 256 + "sym": "tokens" }, { - "i32": 1024 + "i32": 5120 }, { - "i32": 256 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -104945,205 +77178,206 @@ ] }, { - "label": "l11.rope", - "kernel": "mrope", + "label": "l48.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "q_n" - }, - { - "buf": "k_n" + "buf": "act" }, { - "buf": "cos_g" + "buf": "x" }, { - "buf": "sin_g" + "buf": "model.layers.48.mlp.gate_up_proj.weight" }, { - "i32": 0 + "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l11.kv_write", - "kernel": "reshape_and_cache", + "label": "l48.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" + "buf": "x" }, { - "buf": "qkv", - "offset": 26624 + "buf": "act" }, { - "state": "kv", - "offset": 6422528 + "buf": "model.layers.48.mlp.down_proj.weight" }, { - "state": "kv", - "offset": 6423040 + "buf": "residual" }, { - "buf": "slot_mapping" + "buf": "model.layers.49.input_layernorm.weight_p1" }, { - "buf": "kv_scales" + "sym": "tokens" }, { - "buf": "kv_scales", - "offset": 4 + "i32": 5120 }, { - "i64": 1024 + "i32": 17408 }, { - "i64": 14336 + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l49.in_proj", + "kernel": "gemm8_dual", + "args": [ + { + "buf": "qkvz" }, { - "i64": 25690112 + "buf": "ba" }, { - "i64": 512 + "buf": "x" }, { - "i64": 0 + "buf": "model.layers.49.linear_attn.in_proj_qkvz.weight" }, { - "i64": 0 + "buf": "model.layers.49.linear_attn.in_proj_ba.weight" }, { - "i64": 2048 + "sym": "tokens" }, { - "i64": 0 + "i32": 16384 }, { - "i64": 0 + "i32": 96 + }, + { + "i32": 5120 } ] }, { - "label": "l11.attn", - "kernel": "attn_prefill", + "label": "l49.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "attn_out" + "buf": "qkvz" }, { - "buf": "q_n" + "buf": "model.layers.49.linear_attn.conv1d.weight" }, { - "state": "kv", - "offset": 6422528 + "state": "gdn" }, { - "state": "kv", - "offset": 6423040 + "state": "gdn", + "offset": 204800 }, { - "buf": "block_table" + "buf": "gdn.spec_line_index", + "offset": 152 }, { - "buf": "seq_lens" + "buf": "gdn.one" }, { - "f32": 0.0625 + "buf": "cu_seqlens_q" }, { - "buf": "kv_scales" + "buf": "gdn.spec_slots", + "offset": 1184 }, { - "buf": "kv_scales", - "offset": 4 + "buf": "ba" }, { - "f32": 1.0 + "buf": "model.layers.49.linear_attn.A_log" }, { - "f32": 0.0 + "buf": "model.layers.49.linear_attn.dt_bias" }, { - "i64": 8 + "buf": "core_attn_out" }, { - "i64": 6144 + "buf": "model.layers.49.linear_attn.norm.weight" }, { - "i64": 256 + "buf": "gdn_q" }, { - "i64": 6144 + "buf": "gdn_k" }, { - "i64": 256 + "buf": "gdn_v" }, { - "i64": 0 + "buf": "g" }, { - "buf": "seq_lens" + "buf": "beta" }, { - "i64": 25690112 + "buf": "a_c" }, { - "i64": 2048 + "buf": "b_c" }, { - "i64": 512 + "buf": "z_c" }, { - "i64": 25690112 + "f32": 0.0883883461356163 }, { - "i64": 2048 + "f32": 9.999999974752427e-07 }, { - "i64": 512 + "sym": "tokens" }, { - "buf": "cu_seqlens_q" + "i32": 385 }, { - "i32": 1 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l11.o_norm", - "kernel": "gemm8_sgate_add_norm", + "label": "l49.out_norm", + "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 + "buf": "core_attn_out" }, { - "buf": "model.layers.11.self_attn.o_proj.weight" + "buf": "model.layers.49.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.11.post_attention_layernorm.weight_p1" + "buf": "model.layers.49.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -105154,22 +77388,13 @@ { "i32": 6144 }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l11.gate_up_silu", + "label": "l49.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -105179,7 +77404,7 @@ "buf": "x" }, { - "buf": "model.layers.11.mlp.gate_up_proj.weight" + "buf": "model.layers.49.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -105193,7 +77418,7 @@ ] }, { - "label": "l11.down_norm", + "label": "l49.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -105203,13 +77428,13 @@ "buf": "act" }, { - "buf": "model.layers.11.mlp.down_proj.weight" + "buf": "model.layers.49.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.12.input_layernorm.weight_p1" + "buf": "model.layers.50.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -105226,7 +77451,7 @@ ] }, { - "label": "l12.in_proj", + "label": "l50.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -105239,10 +77464,10 @@ "buf": "x" }, { - "buf": "model.layers.12.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.50.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.12.linear_attn.in_proj_ba.weight" + "buf": "model.layers.50.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -105259,70 +77484,50 @@ ] }, { - "label": "l12.conv_update", - "kernel": "conv_update_spec", + "label": "l50.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.12.linear_attn.conv1d.weight" + "buf": "model.layers.50.linear_attn.conv1d.weight" }, { "state": "gdn" }, { - "buf": "gdn.spec_line_index", - "offset": 40 - }, - { - "buf": "num_accepted_tokens" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 + "state": "gdn", + "offset": 204800 }, { - "i32": 385 + "buf": "gdn.spec_line_index", + "offset": 156 }, { - "i64": 16384 + "buf": "gdn.one" }, { - "i64": 16384 + "buf": "cu_seqlens_q" }, { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 1216 }, { - "i64": 0 - } - ] - }, - { - "label": "l12.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.50.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.50.linear_attn.dt_bias" }, { - "buf": "model.layers.12.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.12.linear_attn.dt_bias" + "buf": "model.layers.50.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -105340,192 +77545,213 @@ "buf": "beta" }, { - "i32": 16384 + "buf": "a_c" }, { - "i32": 96 + "buf": "b_c" }, { - "i32": 96 + "buf": "z_c" }, { - "i32": 2048 + "f32": 0.0883883461356163 }, { - "i32": 2048 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 385 }, { - "i64": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l12.a_copy", - "kernel": "copy_rows", + "label": "l50.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.50.linear_attn.out_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l12.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.50.post_attention_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 6144 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l12.recurrent", - "kernel": "recurrent_spec", + "label": "l50.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "model.layers.12.linear_attn.A_log" + "buf": "act" }, { - "buf": "a_c" + "buf": "x" }, { - "buf": "b_c" + "buf": "model.layers.50.mlp.gate_up_proj.weight" }, { - "buf": "model.layers.12.linear_attn.dt_bias" + "sym": "tokens" }, { - "f32": 1.0 + "i32": 17408 }, { - "f32": 20.0 - }, + "i32": 5120 + } + ] + }, + { + "label": "l50.down_norm", + "kernel": "gemm8_add_norm", + "args": [ { - "buf": "gdn_q" + "buf": "x" }, { - "buf": "gdn_k" + "buf": "act" }, { - "buf": "gdn_v" + "buf": "model.layers.50.mlp.down_proj.weight" }, { - "buf": "core_attn_out" + "buf": "residual" }, { - "state": "gdn", - "offset": 204800 + "buf": "model.layers.51.input_layernorm.weight_p1" }, { - "state": "gdn", - "offset": 204800 + "sym": "tokens" }, { - "buf": "cu_seqlens_q" + "i32": 5120 }, { - "buf": "gdn.spec_slots", - "offset": 288 + "i32": 17408 }, { - "buf": "num_accepted_tokens" + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l51.qkv_proj", + "kernel": "gemm", + "args": [ + { + "buf": "x" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.51.self_attn.qkv_proj.weight" }, { - "i64": 1 + "buf": "qkv" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 14336 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l12.z_copy", - "kernel": "copy_rows", + "label": "l51.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "z_c" + "buf": "q_n" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "qkv" }, { - "i32": 6144 + "buf": "model.layers.51.self_attn.q_norm.weight_p1" }, { - "i32": 16384 + "i32": 256 }, { - "i32": 6144 - } - ] - }, - { - "label": "l12.gated_norm", - "kernel": "gated_norm", - "args": [ + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } + }, { - "buf": "core_attn_out" + "i32": 24 }, { - "buf": "core_attn_out" + "i32": 14336 }, { - "buf": "model.layers.12.linear_attn.norm.weight" + "i32": 512 }, { - "buf": "z_c" + "i32": 6144 }, { - "i32": 128 + "i32": 256 }, { - "i32": 128 + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l51.k_norm", + "kernel": "gemma_norm_khead", + "args": [ + { + "buf": "k_n" }, { - "i32": 128 + "buf": "qkv", + "offset": 24576 + }, + { + "buf": "model.layers.51.self_attn.k_norm.weight_p1" + }, + { + "i32": 256 }, { "expr": { @@ -105533,12 +77759,48 @@ { "sym": "tokens" }, - 48 + 4 ] } }, { - "f32": 9.999999974752427e-07 + "i32": 4 + }, + { + "i32": 14336 + }, + { + "i32": 256 + }, + { + "i32": 1024 + }, + { + "i32": 256 + }, + { + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l51.rope", + "kernel": "mrope", + "args": [ + { + "buf": "q_n" + }, + { + "buf": "k_n" + }, + { + "buf": "cos_g" + }, + { + "buf": "sin_g" + }, + { + "i32": 0 }, { "i64": 0 @@ -105549,165 +77811,147 @@ ] }, { - "label": "l12.out_norm", - "kernel": "gemm8_add_norm", + "label": "l51.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "x" + "buf": "k_n" }, { - "buf": "core_attn_out" + "buf": "qkv", + "offset": 26624 }, { - "buf": "model.layers.12.linear_attn.out_proj.weight" + "state": "kv", + "offset": 38535168 }, { - "buf": "residual" + "state": "kv", + "offset": 38535680 }, { - "buf": "model.layers.12.post_attention_layernorm.weight_p1" + "buf": "slot_mapping" }, { - "sym": "tokens" + "buf": "kv_scales" }, { - "i32": 5120 + "buf": "kv_scales", + "offset": 4 }, { - "i32": 6144 + "i64": 1024 }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l12.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ + "i64": 14336 + }, { - "buf": "act" + "i64": 25690112 }, { - "buf": "x" + "i64": 512 }, { - "buf": "model.layers.12.mlp.gate_up_proj.weight" + "i64": 0 }, { - "sym": "tokens" + "i64": 0 }, { - "i32": 17408 + "i64": 2048 }, { - "i32": 5120 + "i64": 0 + }, + { + "i64": 0 } ] }, { - "label": "l12.down_norm", - "kernel": "gemm8_add_norm", + "label": "l51.attn", + "kernel": "attn", "args": [ { - "buf": "x" - }, - { - "buf": "act" + "buf": "attn_out" }, { - "buf": "model.layers.12.mlp.down_proj.weight" + "buf": "q_n" }, { - "buf": "residual" + "state": "kv", + "offset": 38535168 }, { - "buf": "model.layers.13.input_layernorm.weight_p1" + "state": "kv", + "offset": 38535680 }, { - "sym": "tokens" + "buf": "block_table" }, { - "i32": 5120 + "buf": "seq_lens" }, { - "i32": 17408 + "f32": 0.0625 }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l13.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" + "buf": "kv_scales" }, { - "buf": "ba" + "buf": "kv_scales", + "offset": 4 }, { - "buf": "x" + "f32": 1.0 }, { - "buf": "model.layers.13.linear_attn.in_proj_qkvz.weight" + "f32": 0.0 }, { - "buf": "model.layers.13.linear_attn.in_proj_ba.weight" + "i64": 8 }, { - "sym": "tokens" + "i64": 6144 }, { - "i32": 16384 + "i64": 256 }, { - "i32": 96 + "i64": 6144 }, { - "i32": 5120 - } - ] - }, - { - "label": "l13.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" + "i64": 256 }, { - "buf": "model.layers.13.linear_attn.conv1d.weight" + "i64": 0 }, { - "state": "gdn" + "buf": "seq_lens" }, { - "buf": "gdn.spec_line_index", - "offset": 44 + "i64": 25690112 }, { - "buf": "num_accepted_tokens" + "i64": 2048 }, { - "buf": "cu_seqlens_q" + "i64": 512 }, { - "buf": "qkvz" + "i64": 25690112 }, { - "i32": 1 + "i64": 2048 }, { - "i32": 385 + "i64": 512 }, { - "i64": 16384 + "buf": "cu_seqlens_q" }, { - "i64": 16384 + "i32": 1 }, { "i64": 0 @@ -105718,251 +77962,236 @@ ] }, { - "label": "l13.post_conv", - "kernel": "post_conv", + "label": "l51.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "qkvz" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "attn_out" }, { - "buf": "ba" + "buf": "qkv", + "offset": 512 }, { - "buf": "model.layers.13.linear_attn.A_log" + "buf": "model.layers.51.self_attn.o_proj.weight" }, { - "buf": "model.layers.13.linear_attn.dt_bias" + "buf": "residual" }, { - "buf": "gdn_q" + "buf": "model.layers.51.post_attention_layernorm.weight_p1" }, { - "buf": "gdn_k" + "sym": "tokens" }, { - "buf": "gdn_v" + "i32": 5120 }, { - "buf": "g" + "i32": 6144 }, { - "buf": "beta" + "i32": 256 }, { - "i32": 16384 + "i32": 14336 }, { - "i32": 96 + "i32": 512 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l51.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ { - "i32": 2048 + "buf": "act" }, { - "i32": 2048 + "buf": "x" }, { - "i32": 6144 + "buf": "model.layers.51.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l13.a_copy", - "kernel": "copy_rows", + "label": "l51.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.51.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l13.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.52.input_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l13.recurrent", - "kernel": "recurrent_spec", + "label": "l52.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.13.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.13.linear_attn.dt_bias" + "buf": "model.layers.52.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.52.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l52.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.52.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 160 }, { - "buf": "gdn.spec_slots", - "offset": 320 + "buf": "gdn.one" }, { - "buf": "num_accepted_tokens" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 1248 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.52.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.52.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l13.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.52.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l13.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.13.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l13.out_norm", + "label": "l52.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -105972,13 +78201,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.13.linear_attn.out_proj.weight" + "buf": "model.layers.52.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.13.post_attention_layernorm.weight_p1" + "buf": "model.layers.52.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -105995,7 +78224,7 @@ ] }, { - "label": "l13.gate_up_silu", + "label": "l52.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -106005,7 +78234,7 @@ "buf": "x" }, { - "buf": "model.layers.13.mlp.gate_up_proj.weight" + "buf": "model.layers.52.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -106019,7 +78248,7 @@ ] }, { - "label": "l13.down_norm", + "label": "l52.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -106029,13 +78258,13 @@ "buf": "act" }, { - "buf": "model.layers.13.mlp.down_proj.weight" + "buf": "model.layers.52.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.14.input_layernorm.weight_p1" + "buf": "model.layers.53.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -106052,7 +78281,7 @@ ] }, { - "label": "l14.in_proj", + "label": "l53.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -106065,10 +78294,10 @@ "buf": "x" }, { - "buf": "model.layers.14.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.53.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.14.linear_attn.in_proj_ba.weight" + "buf": "model.layers.53.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -106085,297 +78314,316 @@ ] }, { - "label": "l14.conv_update", - "kernel": "conv_update_spec", + "label": "l53.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.14.linear_attn.conv1d.weight" + "buf": "model.layers.53.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 48 + "offset": 164 }, { - "buf": "num_accepted_tokens" + "buf": "gdn.one" }, { "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 1280 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.53.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.53.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.53.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l14.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.14.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.14.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l53.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" }, { - "i32": 6144 + "buf": "model.layers.53.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.53.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l14.a_copy", - "kernel": "copy_rows", + "label": "l53.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" }, { - "i32": 48 + "buf": "model.layers.53.mlp.gate_up_proj.weight" }, { - "i32": 96 + "sym": "tokens" + }, + { + "i32": 17408 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l14.b_copy", - "kernel": "copy_rows", + "label": "l53.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.53.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" + }, + { + "buf": "model.layers.54.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 }, { - "i32": 48 + "i32": 17408 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l14.recurrent", - "kernel": "recurrent_spec", + "label": "l54.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.14.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.14.linear_attn.dt_bias" + "buf": "model.layers.54.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.54.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l54.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.54.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, + { + "buf": "gdn.spec_line_index", + "offset": 168 + }, + { + "buf": "gdn.one" + }, { "buf": "cu_seqlens_q" }, { "buf": "gdn.spec_slots", - "offset": 352 + "offset": 1312 }, { - "buf": "num_accepted_tokens" + "buf": "ba" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.54.linear_attn.A_log" }, { - "i64": 1 + "buf": "model.layers.54.linear_attn.dt_bias" }, { - "sym": "tokens" + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.54.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l14.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" + "buf": "gdn_q" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_k" }, { - "i32": 6144 + "buf": "gdn_v" }, { - "i32": 16384 + "buf": "g" }, { - "i32": 6144 - } - ] - }, - { - "label": "l14.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.14.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l14.out_norm", + "label": "l54.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -106385,13 +78633,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.14.linear_attn.out_proj.weight" + "buf": "model.layers.54.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.14.post_attention_layernorm.weight_p1" + "buf": "model.layers.54.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -106408,7 +78656,7 @@ ] }, { - "label": "l14.gate_up_silu", + "label": "l54.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -106418,7 +78666,7 @@ "buf": "x" }, { - "buf": "model.layers.14.mlp.gate_up_proj.weight" + "buf": "model.layers.54.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -106432,7 +78680,7 @@ ] }, { - "label": "l14.down_norm", + "label": "l54.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -106442,13 +78690,13 @@ "buf": "act" }, { - "buf": "model.layers.14.mlp.down_proj.weight" + "buf": "model.layers.54.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.15.input_layernorm.weight_p1" + "buf": "model.layers.55.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -106465,14 +78713,14 @@ ] }, { - "label": "l15.qkv_proj", + "label": "l55.qkv_proj", "kernel": "gemm", "args": [ { "buf": "x" }, { - "buf": "model.layers.15.self_attn.qkv_proj.weight" + "buf": "model.layers.55.self_attn.qkv_proj.weight" }, { "buf": "qkv" @@ -106489,7 +78737,7 @@ ] }, { - "label": "l15.q_norm", + "label": "l55.q_norm", "kernel": "gemma_norm_qhead", "args": [ { @@ -106499,7 +78747,7 @@ "buf": "qkv" }, { - "buf": "model.layers.15.self_attn.q_norm.weight_p1" + "buf": "model.layers.55.self_attn.q_norm.weight_p1" }, { "i32": 256 @@ -106535,7 +78783,7 @@ ] }, { - "label": "l15.k_norm", + "label": "l55.k_norm", "kernel": "gemma_norm_khead", "args": [ { @@ -106546,7 +78794,7 @@ "offset": 24576 }, { - "buf": "model.layers.15.self_attn.k_norm.weight_p1" + "buf": "model.layers.55.self_attn.k_norm.weight_p1" }, { "i32": 256 @@ -106582,7 +78830,7 @@ ] }, { - "label": "l15.rope", + "label": "l55.rope", "kernel": "mrope", "args": [ { @@ -106609,7 +78857,7 @@ ] }, { - "label": "l15.kv_write", + "label": "l55.kv_write", "kernel": "reshape_and_cache", "args": [ { @@ -106621,11 +78869,11 @@ }, { "state": "kv", - "offset": 9633792 + "offset": 41746432 }, { "state": "kv", - "offset": 9634304 + "offset": 41746944 }, { "buf": "slot_mapping" @@ -106667,8 +78915,8 @@ ] }, { - "label": "l15.attn", - "kernel": "attn_prefill", + "label": "l55.attn", + "kernel": "attn", "args": [ { "buf": "attn_out" @@ -106678,11 +78926,11 @@ }, { "state": "kv", - "offset": 9633792 + "offset": 41746432 }, { "state": "kv", - "offset": 9634304 + "offset": 41746944 }, { "buf": "block_table" @@ -106760,7 +79008,7 @@ ] }, { - "label": "l15.o_norm", + "label": "l55.o_norm", "kernel": "gemm8_sgate_add_norm", "args": [ { @@ -106774,13 +79022,13 @@ "offset": 512 }, { - "buf": "model.layers.15.self_attn.o_proj.weight" + "buf": "model.layers.55.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.15.post_attention_layernorm.weight_p1" + "buf": "model.layers.55.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -106806,7 +79054,7 @@ ] }, { - "label": "l15.gate_up_silu", + "label": "l55.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -106816,7 +79064,7 @@ "buf": "x" }, { - "buf": "model.layers.15.mlp.gate_up_proj.weight" + "buf": "model.layers.55.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -106830,7 +79078,7 @@ ] }, { - "label": "l15.down_norm", + "label": "l55.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -106840,13 +79088,13 @@ "buf": "act" }, { - "buf": "model.layers.15.mlp.down_proj.weight" + "buf": "model.layers.55.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.16.input_layernorm.weight_p1" + "buf": "model.layers.56.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -106863,7 +79111,7 @@ ] }, { - "label": "l16.in_proj", + "label": "l56.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -106876,10 +79124,10 @@ "buf": "x" }, { - "buf": "model.layers.16.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.56.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.16.linear_attn.in_proj_ba.weight" + "buf": "model.layers.56.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -106896,179 +79144,266 @@ ] }, { - "label": "l16.conv_update", - "kernel": "conv_update_spec", + "label": "l56.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.16.linear_attn.conv1d.weight" + "buf": "model.layers.56.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 52 + "offset": 172 }, { - "buf": "num_accepted_tokens" + "buf": "gdn.one" }, { "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 1344 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.56.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.56.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.56.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l16.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.16.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.16.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l56.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" + }, + { + "buf": "model.layers.56.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.56.post_attention_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 }, { "i32": 6144 }, + { + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l56.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ + { + "buf": "act" + }, + { + "buf": "x" + }, + { + "buf": "model.layers.56.mlp.gate_up_proj.weight" + }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l16.a_copy", - "kernel": "copy_rows", + "label": "l56.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.56.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 + "buf": "model.layers.57.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 17408 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l16.b_copy", - "kernel": "copy_rows", + "label": "l57.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "b_c" + "buf": "qkvz" }, { "buf": "ba" }, { - "i32": 48 + "buf": "x" + }, + { + "buf": "model.layers.57.linear_attn.in_proj_qkvz.weight" + }, + { + "buf": "model.layers.57.linear_attn.in_proj_ba.weight" + }, + { + "sym": "tokens" + }, + { + "i32": 16384 }, { "i32": 96 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l16.recurrent", - "kernel": "recurrent_spec", + "label": "l57.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "model.layers.16.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "model.layers.57.linear_attn.conv1d.weight" }, { - "buf": "b_c" + "state": "gdn" }, { - "buf": "model.layers.16.linear_attn.dt_bias" + "state": "gdn", + "offset": 204800 }, { - "f32": 1.0 + "buf": "gdn.spec_line_index", + "offset": 176 + }, + { + "buf": "gdn.one" + }, + { + "buf": "cu_seqlens_q" + }, + { + "buf": "gdn.spec_slots", + "offset": 1376 + }, + { + "buf": "ba" + }, + { + "buf": "model.layers.57.linear_attn.A_log" + }, + { + "buf": "model.layers.57.linear_attn.dt_bias" + }, + { + "buf": "core_attn_out" }, { - "f32": 20.0 + "buf": "model.layers.57.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -107079,114 +79414,262 @@ { "buf": "gdn_v" }, + { + "buf": "g" + }, + { + "buf": "beta" + }, + { + "buf": "a_c" + }, + { + "buf": "b_c" + }, + { + "buf": "z_c" + }, + { + "f32": 0.0883883461356163 + }, + { + "f32": 9.999999974752427e-07 + }, + { + "sym": "tokens" + }, + { + "i32": 385 + }, + { + "i32": 1703936 + }, + { + "i32": 10 + }, + { + "i32": 851968 + } + ] + }, + { + "label": "l57.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" + }, { "buf": "core_attn_out" }, { - "state": "gdn", - "offset": 204800 + "buf": "model.layers.57.linear_attn.out_proj.weight" }, { - "state": "gdn", - "offset": 204800 + "buf": "residual" }, { - "buf": "cu_seqlens_q" + "buf": "model.layers.57.post_attention_layernorm.weight_p1" }, { - "buf": "gdn.spec_slots", - "offset": 384 + "sym": "tokens" }, { - "buf": "num_accepted_tokens" + "i32": 5120 }, { - "f32": 0.0883883461356163 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l57.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ + { + "buf": "act" }, { - "i64": 1 + "buf": "x" + }, + { + "buf": "model.layers.57.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l16.z_copy", - "kernel": "copy_rows", + "label": "l57.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "z_c" + "buf": "x" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "act" }, { - "i32": 6144 + "buf": "model.layers.57.mlp.down_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.58.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 17408 + }, + { + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l58.in_proj", + "kernel": "gemm8_dual", + "args": [ + { + "buf": "qkvz" + }, + { + "buf": "ba" + }, + { + "buf": "x" + }, + { + "buf": "model.layers.58.linear_attn.in_proj_qkvz.weight" + }, + { + "buf": "model.layers.58.linear_attn.in_proj_ba.weight" + }, + { + "sym": "tokens" }, { "i32": 16384 }, { - "i32": 6144 + "i32": 96 + }, + { + "i32": 5120 } ] }, { - "label": "l16.gated_norm", - "kernel": "gated_norm", + "label": "l58.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "core_attn_out" + "buf": "qkvz" + }, + { + "buf": "model.layers.58.linear_attn.conv1d.weight" + }, + { + "state": "gdn" + }, + { + "state": "gdn", + "offset": 204800 + }, + { + "buf": "gdn.spec_line_index", + "offset": 180 + }, + { + "buf": "gdn.one" + }, + { + "buf": "cu_seqlens_q" + }, + { + "buf": "gdn.spec_slots", + "offset": 1408 + }, + { + "buf": "ba" + }, + { + "buf": "model.layers.58.linear_attn.A_log" + }, + { + "buf": "model.layers.58.linear_attn.dt_bias" }, { "buf": "core_attn_out" }, { - "buf": "model.layers.16.linear_attn.norm.weight" + "buf": "model.layers.58.linear_attn.norm.weight" }, { - "buf": "z_c" + "buf": "gdn_q" }, { - "i32": 128 + "buf": "gdn_k" }, { - "i32": 128 + "buf": "gdn_v" }, { - "i32": 128 + "buf": "g" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "beta" + }, + { + "buf": "a_c" + }, + { + "buf": "b_c" + }, + { + "buf": "z_c" + }, + { + "f32": 0.0883883461356163 }, { "f32": 9.999999974752427e-07 }, { - "i64": 0 + "sym": "tokens" }, { - "i64": 0 + "i32": 385 + }, + { + "i32": 1703936 + }, + { + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l16.out_norm", + "label": "l58.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -107196,13 +79679,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.16.linear_attn.out_proj.weight" + "buf": "model.layers.58.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.16.post_attention_layernorm.weight_p1" + "buf": "model.layers.58.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -107219,7 +79702,7 @@ ] }, { - "label": "l16.gate_up_silu", + "label": "l58.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -107229,7 +79712,7 @@ "buf": "x" }, { - "buf": "model.layers.16.mlp.gate_up_proj.weight" + "buf": "model.layers.58.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -107243,7 +79726,7 @@ ] }, { - "label": "l16.down_norm", + "label": "l58.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -107253,13 +79736,13 @@ "buf": "act" }, { - "buf": "model.layers.16.mlp.down_proj.weight" + "buf": "model.layers.58.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.17.input_layernorm.weight_p1" + "buf": "model.layers.59.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -107276,32 +79759,23 @@ ] }, { - "label": "l17.in_proj", - "kernel": "gemm8_dual", + "label": "l59.qkv_proj", + "kernel": "gemm", "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, { "buf": "x" }, { - "buf": "model.layers.17.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.59.self_attn.qkv_proj.weight" }, { - "buf": "model.layers.17.linear_attn.in_proj_ba.weight" + "buf": "qkv" }, { "sym": "tokens" }, { - "i32": 16384 - }, - { - "i32": 96 + "i32": 14336 }, { "i32": 5120 @@ -107309,106 +79783,116 @@ ] }, { - "label": "l17.conv_update", - "kernel": "conv_update_spec", + "label": "l59.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "model.layers.17.linear_attn.conv1d.weight" - }, - { - "state": "gdn" + "buf": "q_n" }, { - "buf": "gdn.spec_line_index", - "offset": 56 + "buf": "qkv" }, { - "buf": "num_accepted_tokens" + "buf": "model.layers.59.self_attn.q_norm.weight_p1" }, { - "buf": "cu_seqlens_q" + "i32": 256 }, { - "buf": "qkvz" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i32": 1 + "i32": 24 }, { - "i32": 385 + "i32": 14336 }, { - "i64": 16384 + "i32": 512 }, { - "i64": 16384 + "i32": 6144 }, { - "i64": 0 + "i32": 256 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l17.post_conv", - "kernel": "post_conv", + "label": "l59.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 + "buf": "k_n" }, { - "buf": "ba" + "buf": "qkv", + "offset": 24576 }, { - "buf": "model.layers.17.linear_attn.A_log" + "buf": "model.layers.59.self_attn.k_norm.weight_p1" }, { - "buf": "model.layers.17.linear_attn.dt_bias" + "i32": 256 }, { - "buf": "gdn_q" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { - "buf": "gdn_k" + "i32": 4 }, { - "buf": "gdn_v" + "i32": 14336 }, { - "buf": "g" + "i32": 256 }, { - "buf": "beta" + "i32": 1024 }, { - "i32": 16384 + "i32": 256 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l59.rope", + "kernel": "mrope", + "args": [ { - "i32": 96 + "buf": "q_n" }, { - "i32": 2048 + "buf": "k_n" }, { - "i32": 2048 + "buf": "cos_g" }, { - "i32": 6144 + "buf": "sin_g" }, { - "sym": "tokens" + "i32": 0 }, { "i64": 0 @@ -107419,176 +79903,147 @@ ] }, { - "label": "l17.a_copy", - "kernel": "copy_rows", + "label": "l59.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "a_c" + "buf": "k_n" }, { - "buf": "ba", - "offset": 96 + "buf": "qkv", + "offset": 26624 }, { - "i32": 48 + "state": "kv", + "offset": 44957696 }, { - "i32": 96 + "state": "kv", + "offset": 44958208 }, { - "i32": 48 - } - ] - }, - { - "label": "l17.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "slot_mapping" }, { - "buf": "ba" + "buf": "kv_scales" }, { - "i32": 48 + "buf": "kv_scales", + "offset": 4 }, { - "i32": 96 + "i64": 1024 }, { - "i32": 48 - } - ] - }, - { - "label": "l17.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.17.linear_attn.A_log" + "i64": 14336 }, { - "buf": "a_c" + "i64": 25690112 }, { - "buf": "b_c" + "i64": 512 }, { - "buf": "model.layers.17.linear_attn.dt_bias" + "i64": 0 }, { - "f32": 1.0 + "i64": 0 }, { - "f32": 20.0 + "i64": 2048 }, { - "buf": "gdn_q" + "i64": 0 }, { - "buf": "gdn_k" - }, + "i64": 0 + } + ] + }, + { + "label": "l59.attn", + "kernel": "attn", + "args": [ { - "buf": "gdn_v" + "buf": "attn_out" }, { - "buf": "core_attn_out" + "buf": "q_n" }, { - "state": "gdn", - "offset": 204800 + "state": "kv", + "offset": 44957696 }, { - "state": "gdn", - "offset": 204800 + "state": "kv", + "offset": 44958208 }, { - "buf": "cu_seqlens_q" + "buf": "block_table" }, { - "buf": "gdn.spec_slots", - "offset": 416 + "buf": "seq_lens" }, { - "buf": "num_accepted_tokens" + "f32": 0.0625 }, { - "f32": 0.0883883461356163 + "buf": "kv_scales" }, { - "i64": 1 + "buf": "kv_scales", + "offset": 4 }, { - "sym": "tokens" + "f32": 1.0 }, { - "i64": 0 + "f32": 0.0 }, { - "i64": 0 - } - ] - }, - { - "label": "l17.z_copy", - "kernel": "copy_rows", - "args": [ + "i64": 8 + }, { - "buf": "z_c" + "i64": 6144 }, { - "buf": "qkvz", - "offset": 20480 + "i64": 256 }, { - "i32": 6144 + "i64": 6144 }, { - "i32": 16384 + "i64": 256 }, { - "i32": 6144 - } - ] - }, - { - "label": "l17.gated_norm", - "kernel": "gated_norm", - "args": [ + "i64": 0 + }, { - "buf": "core_attn_out" + "buf": "seq_lens" }, { - "buf": "core_attn_out" + "i64": 25690112 }, { - "buf": "model.layers.17.linear_attn.norm.weight" + "i64": 2048 }, { - "buf": "z_c" + "i64": 512 }, { - "i32": 128 + "i64": 25690112 }, { - "i32": 128 + "i64": 2048 }, { - "i32": 128 + "i64": 512 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "cu_seqlens_q" }, { - "f32": 9.999999974752427e-07 + "i32": 1 }, { "i64": 0 @@ -107599,23 +80054,27 @@ ] }, { - "label": "l17.out_norm", - "kernel": "gemm8_add_norm", + "label": "l59.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { "buf": "x" }, { - "buf": "core_attn_out" + "buf": "attn_out" }, { - "buf": "model.layers.17.linear_attn.out_proj.weight" + "buf": "qkv", + "offset": 512 + }, + { + "buf": "model.layers.59.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.17.post_attention_layernorm.weight_p1" + "buf": "model.layers.59.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -107626,13 +80085,22 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l17.gate_up_silu", + "label": "l59.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -107642,7 +80110,7 @@ "buf": "x" }, { - "buf": "model.layers.17.mlp.gate_up_proj.weight" + "buf": "model.layers.59.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -107656,7 +80124,7 @@ ] }, { - "label": "l17.down_norm", + "label": "l59.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -107666,13 +80134,13 @@ "buf": "act" }, { - "buf": "model.layers.17.mlp.down_proj.weight" + "buf": "model.layers.59.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.18.input_layernorm.weight_p1" + "buf": "model.layers.60.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -107689,7 +80157,7 @@ ] }, { - "label": "l18.in_proj", + "label": "l60.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -107702,10 +80170,10 @@ "buf": "x" }, { - "buf": "model.layers.18.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.60.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.18.linear_attn.in_proj_ba.weight" + "buf": "model.layers.60.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -107722,70 +80190,50 @@ ] }, { - "label": "l18.conv_update", - "kernel": "conv_update_spec", + "label": "l60.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.18.linear_attn.conv1d.weight" + "buf": "model.layers.60.linear_attn.conv1d.weight" }, { "state": "gdn" }, { - "buf": "gdn.spec_line_index", - "offset": 60 - }, - { - "buf": "num_accepted_tokens" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 + "state": "gdn", + "offset": 204800 }, { - "i32": 385 + "buf": "gdn.spec_line_index", + "offset": 184 }, { - "i64": 16384 + "buf": "gdn.one" }, { - "i64": 16384 + "buf": "cu_seqlens_q" }, { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 1440 }, { - "i64": 0 - } - ] - }, - { - "label": "l18.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.60.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.60.linear_attn.dt_bias" }, { - "buf": "model.layers.18.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.18.linear_attn.dt_bias" + "buf": "model.layers.60.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -107803,289 +80251,271 @@ "buf": "beta" }, { - "i32": 16384 + "buf": "a_c" }, { - "i32": 96 + "buf": "b_c" }, { - "i32": 96 + "buf": "z_c" }, { - "i32": 2048 + "f32": 0.0883883461356163 }, { - "i32": 2048 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 385 }, { - "i64": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l18.a_copy", - "kernel": "copy_rows", + "label": "l60.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.60.linear_attn.out_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l18.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.60.post_attention_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 6144 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l18.recurrent", - "kernel": "recurrent_spec", + "label": "l60.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "model.layers.18.linear_attn.A_log" + "buf": "act" }, { - "buf": "a_c" + "buf": "x" }, { - "buf": "b_c" + "buf": "model.layers.60.mlp.gate_up_proj.weight" }, { - "buf": "model.layers.18.linear_attn.dt_bias" + "sym": "tokens" }, { - "f32": 1.0 + "i32": 17408 }, { - "f32": 20.0 - }, + "i32": 5120 + } + ] + }, + { + "label": "l60.down_norm", + "kernel": "gemm8_add_norm", + "args": [ { - "buf": "gdn_q" + "buf": "x" }, { - "buf": "gdn_k" + "buf": "act" }, { - "buf": "gdn_v" + "buf": "model.layers.60.mlp.down_proj.weight" }, { - "buf": "core_attn_out" + "buf": "residual" }, { - "state": "gdn", - "offset": 204800 + "buf": "model.layers.61.input_layernorm.weight_p1" }, { - "state": "gdn", - "offset": 204800 + "sym": "tokens" }, { - "buf": "cu_seqlens_q" + "i32": 5120 }, { - "buf": "gdn.spec_slots", - "offset": 448 + "i32": 17408 }, { - "buf": "num_accepted_tokens" - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l61.in_proj", + "kernel": "gemm8_dual", + "args": [ { - "f32": 0.0883883461356163 + "buf": "qkvz" }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "x" }, { - "i64": 0 + "buf": "model.layers.61.linear_attn.in_proj_qkvz.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l18.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" + "buf": "model.layers.61.linear_attn.in_proj_ba.weight" }, { - "buf": "qkvz", - "offset": 20480 + "sym": "tokens" }, { - "i32": 6144 + "i32": 16384 }, { - "i32": 16384 + "i32": 96 }, { - "i32": 6144 + "i32": 5120 } ] }, { - "label": "l18.gated_norm", - "kernel": "gated_norm", + "label": "l61.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "core_attn_out" + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.61.linear_attn.conv1d.weight" }, { - "buf": "model.layers.18.linear_attn.norm.weight" + "state": "gdn" }, { - "buf": "z_c" + "state": "gdn", + "offset": 204800 }, { - "i32": 128 + "buf": "gdn.spec_line_index", + "offset": 188 }, { - "i32": 128 + "buf": "gdn.one" }, { - "i32": 128 + "buf": "cu_seqlens_q" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "gdn.spec_slots", + "offset": 1472 }, { - "f32": 9.999999974752427e-07 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.61.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l18.out_norm", - "kernel": "gemm8_add_norm", - "args": [ + "buf": "model.layers.61.linear_attn.dt_bias" + }, { - "buf": "x" + "buf": "core_attn_out" }, { - "buf": "core_attn_out" + "buf": "model.layers.61.linear_attn.norm.weight" }, { - "buf": "model.layers.18.linear_attn.out_proj.weight" + "buf": "gdn_q" }, { - "buf": "residual" + "buf": "gdn_k" }, { - "buf": "model.layers.18.post_attention_layernorm.weight_p1" + "buf": "gdn_v" }, { - "sym": "tokens" + "buf": "g" }, { - "i32": 5120 + "buf": "beta" }, { - "i32": 6144 + "buf": "a_c" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l18.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ + "buf": "b_c" + }, { - "buf": "act" + "buf": "z_c" }, { - "buf": "x" + "f32": 0.0883883461356163 }, { - "buf": "model.layers.18.mlp.gate_up_proj.weight" + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i32": 17408 + "i32": 385 }, { - "i32": 5120 + "i32": 1703936 + }, + { + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l18.down_norm", + "label": "l61.out_norm", "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "act" + "buf": "core_attn_out" }, { - "buf": "model.layers.18.mlp.down_proj.weight" + "buf": "model.layers.61.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.19.input_layernorm.weight_p1" + "buf": "model.layers.61.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -108094,7 +80524,7 @@ "i32": 5120 }, { - "i32": 17408 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -108102,23 +80532,23 @@ ] }, { - "label": "l19.qkv_proj", - "kernel": "gemm", + "label": "l61.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "x" + "buf": "act" }, { - "buf": "model.layers.19.self_attn.qkv_proj.weight" + "buf": "x" }, { - "buf": "qkv" + "buf": "model.layers.61.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i32": 14336 + "i32": 17408 }, { "i32": 5120 @@ -108126,92 +80556,32 @@ ] }, { - "label": "l19.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.19.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l19.k_norm", - "kernel": "gemma_norm_khead", + "label": "l61.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.19.self_attn.k_norm.weight_p1" + "buf": "x" }, { - "i32": 256 + "buf": "act" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } + "buf": "model.layers.61.mlp.down_proj.weight" }, { - "i32": 4 + "buf": "residual" }, { - "i32": 14336 + "buf": "model.layers.62.input_layernorm.weight_p1" }, { - "i32": 256 + "sym": "tokens" }, { - "i32": 1024 + "i32": 5120 }, { - "i32": 256 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -108219,205 +80589,173 @@ ] }, { - "label": "l19.rope", - "kernel": "mrope", + "label": "l61.fc_tap", + "kernel": "gemm_acc", "args": [ { - "buf": "q_n" - }, - { - "buf": "k_n" + "buf": "residual" }, { - "buf": "cos_g" + "buf": "draft.fc.4.weight" }, { - "buf": "sin_g" + "buf": "fc_out" }, { - "i32": 0 + "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l19.kv_write", - "kernel": "reshape_and_cache", + "label": "l62.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv", - "offset": 12845056 - }, - { - "state": "kv", - "offset": 12845568 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "buf": "qkvz" }, { - "i64": 14336 + "buf": "ba" }, { - "i64": 25690112 + "buf": "x" }, { - "i64": 512 + "buf": "model.layers.62.linear_attn.in_proj_qkvz.weight" }, { - "i64": 0 + "buf": "model.layers.62.linear_attn.in_proj_ba.weight" }, { - "i64": 0 + "sym": "tokens" }, { - "i64": 2048 + "i32": 16384 }, { - "i64": 0 + "i32": 96 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l19.attn", - "kernel": "attn_prefill", + "label": "l62.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "attn_out" + "buf": "qkvz" }, { - "buf": "q_n" + "buf": "model.layers.62.linear_attn.conv1d.weight" }, { - "state": "kv", - "offset": 12845056 + "state": "gdn" }, { - "state": "kv", - "offset": 12845568 + "state": "gdn", + "offset": 204800 }, { - "buf": "block_table" + "buf": "gdn.spec_line_index", + "offset": 192 }, { - "buf": "seq_lens" + "buf": "gdn.one" }, { - "f32": 0.0625 + "buf": "cu_seqlens_q" }, { - "buf": "kv_scales" + "buf": "gdn.spec_slots", + "offset": 1504 }, { - "buf": "kv_scales", - "offset": 4 + "buf": "ba" }, { - "f32": 1.0 + "buf": "model.layers.62.linear_attn.A_log" }, { - "f32": 0.0 + "buf": "model.layers.62.linear_attn.dt_bias" }, { - "i64": 8 + "buf": "core_attn_out" }, { - "i64": 6144 + "buf": "model.layers.62.linear_attn.norm.weight" }, { - "i64": 256 + "buf": "gdn_q" }, { - "i64": 6144 + "buf": "gdn_k" }, { - "i64": 256 + "buf": "gdn_v" }, { - "i64": 0 + "buf": "g" }, { - "buf": "seq_lens" + "buf": "beta" }, { - "i64": 25690112 + "buf": "a_c" }, { - "i64": 2048 + "buf": "b_c" }, { - "i64": 512 + "buf": "z_c" }, { - "i64": 25690112 + "f32": 0.0883883461356163 }, { - "i64": 2048 + "f32": 9.999999974752427e-07 }, { - "i64": 512 + "sym": "tokens" }, { - "buf": "cu_seqlens_q" + "i32": 385 }, { - "i32": 1 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l19.o_norm", - "kernel": "gemm8_sgate_add_norm", + "label": "l62.out_norm", + "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 + "buf": "core_attn_out" }, { - "buf": "model.layers.19.self_attn.o_proj.weight" + "buf": "model.layers.62.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.19.post_attention_layernorm.weight_p1" + "buf": "model.layers.62.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -108428,22 +80766,13 @@ { "i32": 6144 }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l19.gate_up_silu", + "label": "l62.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -108453,7 +80782,7 @@ "buf": "x" }, { - "buf": "model.layers.19.mlp.gate_up_proj.weight" + "buf": "model.layers.62.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -108467,7 +80796,7 @@ ] }, { - "label": "l19.down_norm", + "label": "l62.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -108477,13 +80806,13 @@ "buf": "act" }, { - "buf": "model.layers.19.mlp.down_proj.weight" + "buf": "model.layers.62.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.20.input_layernorm.weight_p1" + "buf": "model.layers.63.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -108500,56 +80829,23 @@ ] }, { - "label": "l19.fc_tap", - "kernel": "gemm_acc", - "args": [ - { - "buf": "residual" - }, - { - "buf": "draft.fc.1.weight" - }, - { - "buf": "fc_out" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l20.in_proj", - "kernel": "gemm8_dual", + "label": "l63.qkv_proj", + "kernel": "gemm", "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, { "buf": "x" }, { - "buf": "model.layers.20.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.63.self_attn.qkv_proj.weight" }, { - "buf": "model.layers.20.linear_attn.in_proj_ba.weight" + "buf": "qkv" }, { "sym": "tokens" }, { - "i32": 16384 - }, - { - "i32": 96 + "i32": 14336 }, { "i32": 5120 @@ -108557,106 +80853,116 @@ ] }, { - "label": "l20.conv_update", - "kernel": "conv_update_spec", + "label": "l63.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "model.layers.20.linear_attn.conv1d.weight" - }, - { - "state": "gdn" + "buf": "q_n" }, { - "buf": "gdn.spec_line_index", - "offset": 64 + "buf": "qkv" }, { - "buf": "num_accepted_tokens" + "buf": "model.layers.63.self_attn.q_norm.weight_p1" }, { - "buf": "cu_seqlens_q" + "i32": 256 }, { - "buf": "qkvz" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i32": 1 + "i32": 24 }, { - "i32": 385 + "i32": 14336 }, { - "i64": 16384 + "i32": 512 }, { - "i64": 16384 + "i32": 6144 }, { - "i64": 0 + "i32": 256 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l20.post_conv", - "kernel": "post_conv", + "label": "l63.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 + "buf": "k_n" }, { - "buf": "ba" + "buf": "qkv", + "offset": 24576 }, { - "buf": "model.layers.20.linear_attn.A_log" + "buf": "model.layers.63.self_attn.k_norm.weight_p1" }, { - "buf": "model.layers.20.linear_attn.dt_bias" + "i32": 256 }, { - "buf": "gdn_q" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { - "buf": "gdn_k" + "i32": 4 }, { - "buf": "gdn_v" + "i32": 14336 }, { - "buf": "g" + "i32": 256 }, { - "buf": "beta" + "i32": 1024 }, { - "i32": 16384 + "i32": 256 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l63.rope", + "kernel": "mrope", + "args": [ { - "i32": 96 + "buf": "q_n" }, { - "i32": 2048 + "buf": "k_n" }, { - "i32": 2048 + "buf": "cos_g" }, { - "i32": 6144 + "buf": "sin_g" }, { - "sym": "tokens" + "i32": 0 }, { "i64": 0 @@ -108667,176 +80973,147 @@ ] }, { - "label": "l20.a_copy", - "kernel": "copy_rows", + "label": "l63.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "a_c" + "buf": "k_n" }, { - "buf": "ba", - "offset": 96 + "buf": "qkv", + "offset": 26624 }, { - "i32": 48 + "state": "kv", + "offset": 48168960 }, { - "i32": 96 + "state": "kv", + "offset": 48169472 }, { - "i32": 48 - } - ] - }, - { - "label": "l20.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "slot_mapping" }, { - "buf": "ba" + "buf": "kv_scales" }, { - "i32": 48 + "buf": "kv_scales", + "offset": 4 }, { - "i32": 96 + "i64": 1024 }, { - "i32": 48 - } - ] - }, - { - "label": "l20.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.20.linear_attn.A_log" + "i64": 14336 }, { - "buf": "a_c" + "i64": 25690112 }, { - "buf": "b_c" + "i64": 512 }, { - "buf": "model.layers.20.linear_attn.dt_bias" + "i64": 0 }, { - "f32": 1.0 + "i64": 0 }, { - "f32": 20.0 + "i64": 2048 }, { - "buf": "gdn_q" + "i64": 0 }, { - "buf": "gdn_k" + "i64": 0 + } + ] + }, + { + "label": "l63.attn", + "kernel": "attn", + "args": [ + { + "buf": "attn_out" }, { - "buf": "gdn_v" + "buf": "q_n" }, { - "buf": "core_attn_out" + "state": "kv", + "offset": 48168960 }, { - "state": "gdn", - "offset": 204800 + "state": "kv", + "offset": 48169472 }, { - "state": "gdn", - "offset": 204800 + "buf": "block_table" }, { - "buf": "cu_seqlens_q" + "buf": "seq_lens" }, { - "buf": "gdn.spec_slots", - "offset": 480 + "f32": 0.0625 }, { - "buf": "num_accepted_tokens" + "buf": "kv_scales" }, { - "f32": 0.0883883461356163 + "buf": "kv_scales", + "offset": 4 }, { - "i64": 1 + "f32": 1.0 }, { - "sym": "tokens" + "f32": 0.0 }, { - "i64": 0 + "i64": 8 }, { - "i64": 0 - } - ] - }, - { - "label": "l20.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" + "i64": 6144 }, { - "buf": "qkvz", - "offset": 20480 + "i64": 256 }, { - "i32": 6144 + "i64": 6144 }, { - "i32": 16384 + "i64": 256 }, { - "i32": 6144 - } - ] - }, - { - "label": "l20.gated_norm", - "kernel": "gated_norm", - "args": [ + "i64": 0 + }, { - "buf": "core_attn_out" + "buf": "seq_lens" }, { - "buf": "core_attn_out" + "i64": 25690112 }, { - "buf": "model.layers.20.linear_attn.norm.weight" + "i64": 2048 }, { - "buf": "z_c" + "i64": 512 }, { - "i32": 128 + "i64": 25690112 }, { - "i32": 128 + "i64": 2048 }, { - "i32": 128 + "i64": 512 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "cu_seqlens_q" }, { - "f32": 9.999999974752427e-07 + "i32": 1 }, { "i64": 0 @@ -108847,23 +81124,27 @@ ] }, { - "label": "l20.out_norm", - "kernel": "gemm8_add_norm", + "label": "l63.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { "buf": "x" }, { - "buf": "core_attn_out" + "buf": "attn_out" }, { - "buf": "model.layers.20.linear_attn.out_proj.weight" + "buf": "qkv", + "offset": 512 + }, + { + "buf": "model.layers.63.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.20.post_attention_layernorm.weight_p1" + "buf": "model.layers.63.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -108874,13 +81155,22 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l20.gate_up_silu", + "label": "l63.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -108890,7 +81180,7 @@ "buf": "x" }, { - "buf": "model.layers.20.mlp.gate_up_proj.weight" + "buf": "model.layers.63.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -108904,7 +81194,7 @@ ] }, { - "label": "l20.down_norm", + "label": "l63.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -108914,13 +81204,13 @@ "buf": "act" }, { - "buf": "model.layers.20.mlp.down_proj.weight" + "buf": "model.layers.63.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.21.input_layernorm.weight_p1" + "buf": "model.norm.weight_p1" }, { "sym": "tokens" @@ -108937,32 +81227,23 @@ ] }, { - "label": "l21.in_proj", - "kernel": "gemm8_dual", + "label": "lm_head", + "kernel": "gemm", "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, { "buf": "x" }, { - "buf": "model.layers.21.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.21.linear_attn.in_proj_ba.weight" + "buf": "lm_head.weight" }, { - "sym": "tokens" + "buf": "logits" }, { - "i32": 16384 + "i32": 1 }, { - "i32": 96 + "i32": 248320 }, { "i32": 5120 @@ -108970,297 +81251,253 @@ ] }, { - "label": "l21.conv_update", - "kernel": "conv_update_spec", + "label": "sample", + "kernel": "argmax_row", "args": [ { - "buf": "qkvz" + "buf": "logits" }, { - "buf": "model.layers.21.linear_attn.conv1d.weight" + "buf": "next_token" }, { - "state": "gdn" - }, + "i32": 248320 + } + ] + } + ] + }, + "verify": { + "dispatches": [ + { + "label": "embed", + "kernel": "embedding", + "args": [ { - "buf": "gdn.spec_line_index", - "offset": 68 + "buf": "token_ids" }, { - "buf": "num_accepted_tokens" + "buf": "model.embed_tokens.weight" }, { - "buf": "cu_seqlens_q" + "buf": "residual" }, { - "buf": "qkvz" + "sym": "tokens" }, { - "i32": 1 - }, + "i32": 5120 + } + ] + }, + { + "label": "rope_cos", + "kernel": "embedding", + "args": [ { - "i32": 385 + "buf": "positions" }, { - "i64": 16384 + "buf": "rope.cos" }, { - "i64": 16384 + "buf": "cos_g" }, { - "i64": 0 + "sym": "tokens" }, { - "i64": 0 + "i32": 32 } ] }, { - "label": "l21.post_conv", - "kernel": "post_conv", + "label": "rope_sin", + "kernel": "embedding", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.21.linear_attn.A_log" + "buf": "positions" }, { - "buf": "model.layers.21.linear_attn.dt_bias" + "buf": "rope.sin" }, { - "buf": "gdn_q" + "buf": "sin_g" }, { - "buf": "gdn_k" + "sym": "tokens" }, { - "buf": "gdn_v" - }, + "i32": 32 + } + ] + }, + { + "label": "l0.input_norm", + "kernel": "gemma_norm", + "args": [ { - "buf": "g" + "buf": "x" }, { - "buf": "beta" + "buf": "residual" }, { - "i32": 16384 + "buf": "model.layers.0.input_layernorm.weight_p1" }, { - "i32": 96 + "i32": 5120 }, { - "i32": 96 + "sym": "tokens" }, { - "i32": 2048 + "i32": 1 }, { - "i32": 2048 + "i32": 5120 }, { - "i32": 6144 + "i32": 0 }, { - "sym": "tokens" + "i32": 5120 }, { - "i64": 0 + "i32": 0 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l21.a_copy", - "kernel": "copy_rows", + "label": "l0.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "a_c" + "buf": "qkvz" }, { - "buf": "ba", - "offset": 96 + "buf": "ba" }, { - "i32": 48 + "buf": "x" }, { - "i32": 96 + "buf": "model.layers.0.linear_attn.in_proj_qkvz.weight" }, { - "i32": 48 - } - ] - }, - { - "label": "l21.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.0.linear_attn.in_proj_ba.weight" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 16384 }, { "i32": 96 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l21.recurrent", - "kernel": "recurrent_spec", + "label": "l0.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "model.layers.21.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.21.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" + "buf": "qkvz" }, { - "buf": "gdn_v" + "buf": "model.layers.0.linear_attn.conv1d.weight" }, { - "buf": "core_attn_out" + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "state": "gdn", - "offset": 204800 + "buf": "gdn.spec_line_index", + "offset": 4 }, { - "buf": "cu_seqlens_q" + "buf": "num_accepted_tokens" }, { - "buf": "gdn.spec_slots", - "offset": 512 + "buf": "cu_seqlens_q" }, { - "buf": "num_accepted_tokens" + "buf": "gdn.spec_slots" }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 1 + "buf": "model.layers.0.linear_attn.A_log" }, { - "sym": "tokens" + "buf": "model.layers.0.linear_attn.dt_bias" }, { - "i64": 0 + "buf": "core_attn_out" }, { - "i64": 0 - } - ] - }, - { - "label": "l21.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" + "buf": "model.layers.0.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l21.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.21.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l21.out_norm", + "label": "l0.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -109270,13 +81507,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.21.linear_attn.out_proj.weight" + "buf": "model.layers.0.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.21.post_attention_layernorm.weight_p1" + "buf": "model.layers.0.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -109293,7 +81530,7 @@ ] }, { - "label": "l21.gate_up_silu", + "label": "l0.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -109303,7 +81540,7 @@ "buf": "x" }, { - "buf": "model.layers.21.mlp.gate_up_proj.weight" + "buf": "model.layers.0.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -109317,7 +81554,7 @@ ] }, { - "label": "l21.down_norm", + "label": "l0.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -109327,13 +81564,13 @@ "buf": "act" }, { - "buf": "model.layers.21.mlp.down_proj.weight" + "buf": "model.layers.0.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.22.input_layernorm.weight_p1" + "buf": "model.layers.1.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -109350,7 +81587,7 @@ ] }, { - "label": "l22.in_proj", + "label": "l1.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -109363,10 +81600,10 @@ "buf": "x" }, { - "buf": "model.layers.22.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.1.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.22.linear_attn.in_proj_ba.weight" + "buf": "model.layers.1.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -109383,21 +81620,25 @@ ] }, { - "label": "l22.conv_update", - "kernel": "conv_update_spec", + "label": "l1.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.22.linear_attn.conv1d.weight" + "buf": "model.layers.1.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 72 + "offset": 8 }, { "buf": "num_accepted_tokens" @@ -109406,274 +81647,289 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 32 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.1.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.1.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.1.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l22.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.22.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.22.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l1.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" }, { - "i32": 6144 + "buf": "model.layers.1.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.1.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l22.a_copy", - "kernel": "copy_rows", + "label": "l1.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" }, { - "i32": 48 + "buf": "model.layers.1.mlp.gate_up_proj.weight" }, { - "i32": 96 + "sym": "tokens" }, { - "i32": 48 + "i32": 17408 + }, + { + "i32": 5120 } ] }, { - "label": "l22.b_copy", - "kernel": "copy_rows", + "label": "l1.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "act" + }, + { + "buf": "model.layers.1.mlp.down_proj.weight" }, { - "i32": 48 + "buf": "residual" }, { - "i32": 96 + "buf": "model.layers.2.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l22.recurrent", - "kernel": "recurrent_spec", + "label": "l2.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.22.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.22.linear_attn.dt_bias" + "buf": "model.layers.2.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.2.linear_attn.in_proj_ba.weight" + }, + { + "sym": "tokens" }, { - "f32": 20.0 + "i32": 16384 }, { - "buf": "gdn_q" + "i32": 96 }, { - "buf": "gdn_k" + "i32": 5120 + } + ] + }, + { + "label": "l2.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "gdn_v" + "buf": "model.layers.2.linear_attn.conv1d.weight" }, { - "buf": "core_attn_out" + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "state": "gdn", - "offset": 204800 + "buf": "gdn.spec_line_index", + "offset": 12 + }, + { + "buf": "num_accepted_tokens" }, { "buf": "cu_seqlens_q" }, { "buf": "gdn.spec_slots", - "offset": 544 + "offset": 64 }, { - "buf": "num_accepted_tokens" + "buf": "ba" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.2.linear_attn.A_log" }, { - "i64": 1 + "buf": "model.layers.2.linear_attn.dt_bias" }, { - "sym": "tokens" + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.2.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l22.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" + "buf": "gdn_q" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_k" }, { - "i32": 6144 + "buf": "gdn_v" }, { - "i32": 16384 + "buf": "g" }, { - "i32": 6144 - } - ] - }, - { - "label": "l22.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.22.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l22.out_norm", + "label": "l2.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -109683,13 +81939,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.22.linear_attn.out_proj.weight" + "buf": "model.layers.2.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.22.post_attention_layernorm.weight_p1" + "buf": "model.layers.2.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -109706,7 +81962,7 @@ ] }, { - "label": "l22.gate_up_silu", + "label": "l2.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -109716,7 +81972,7 @@ "buf": "x" }, { - "buf": "model.layers.22.mlp.gate_up_proj.weight" + "buf": "model.layers.2.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -109730,7 +81986,7 @@ ] }, { - "label": "l22.down_norm", + "label": "l2.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -109740,13 +81996,13 @@ "buf": "act" }, { - "buf": "model.layers.22.mlp.down_proj.weight" + "buf": "model.layers.2.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.23.input_layernorm.weight_p1" + "buf": "model.layers.3.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -109763,14 +82019,14 @@ ] }, { - "label": "l23.qkv_proj", + "label": "l3.qkv_proj", "kernel": "gemm", "args": [ { "buf": "x" }, { - "buf": "model.layers.23.self_attn.qkv_proj.weight" + "buf": "model.layers.3.self_attn.qkv_proj.weight" }, { "buf": "qkv" @@ -109787,7 +82043,7 @@ ] }, { - "label": "l23.q_norm", + "label": "l3.q_norm", "kernel": "gemma_norm_qhead", "args": [ { @@ -109797,7 +82053,7 @@ "buf": "qkv" }, { - "buf": "model.layers.23.self_attn.q_norm.weight_p1" + "buf": "model.layers.3.self_attn.q_norm.weight_p1" }, { "i32": 256 @@ -109833,7 +82089,7 @@ ] }, { - "label": "l23.k_norm", + "label": "l3.k_norm", "kernel": "gemma_norm_khead", "args": [ { @@ -109844,7 +82100,7 @@ "offset": 24576 }, { - "buf": "model.layers.23.self_attn.k_norm.weight_p1" + "buf": "model.layers.3.self_attn.k_norm.weight_p1" }, { "i32": 256 @@ -109880,7 +82136,7 @@ ] }, { - "label": "l23.rope", + "label": "l3.rope", "kernel": "mrope", "args": [ { @@ -109907,7 +82163,7 @@ ] }, { - "label": "l23.kv_write", + "label": "l3.kv_write", "kernel": "reshape_and_cache", "args": [ { @@ -109918,12 +82174,11 @@ "offset": 26624 }, { - "state": "kv", - "offset": 16056320 + "state": "kv" }, { "state": "kv", - "offset": 16056832 + "offset": 512 }, { "buf": "slot_mapping" @@ -109965,7 +82220,7 @@ ] }, { - "label": "l23.attn", + "label": "l3.attn", "kernel": "attn_prefill", "args": [ { @@ -109975,12 +82230,11 @@ "buf": "q_n" }, { - "state": "kv", - "offset": 16056320 + "state": "kv" }, { "state": "kv", - "offset": 16056832 + "offset": 512 }, { "buf": "block_table" @@ -110058,7 +82312,7 @@ ] }, { - "label": "l23.o_norm", + "label": "l3.o_norm", "kernel": "gemm8_sgate_add_norm", "args": [ { @@ -110072,13 +82326,13 @@ "offset": 512 }, { - "buf": "model.layers.23.self_attn.o_proj.weight" + "buf": "model.layers.3.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.23.post_attention_layernorm.weight_p1" + "buf": "model.layers.3.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -110104,7 +82358,7 @@ ] }, { - "label": "l23.gate_up_silu", + "label": "l3.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -110114,7 +82368,7 @@ "buf": "x" }, { - "buf": "model.layers.23.mlp.gate_up_proj.weight" + "buf": "model.layers.3.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -110128,7 +82382,7 @@ ] }, { - "label": "l23.down_norm", + "label": "l3.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -110138,13 +82392,13 @@ "buf": "act" }, { - "buf": "model.layers.23.mlp.down_proj.weight" + "buf": "model.layers.3.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.24.input_layernorm.weight_p1" + "buf": "model.layers.4.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -110161,7 +82415,7 @@ ] }, { - "label": "l24.in_proj", + "label": "l4.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -110174,10 +82428,10 @@ "buf": "x" }, { - "buf": "model.layers.24.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.4.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.24.linear_attn.in_proj_ba.weight" + "buf": "model.layers.4.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -110194,21 +82448,25 @@ ] }, { - "label": "l24.conv_update", - "kernel": "conv_update_spec", + "label": "l4.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.24.linear_attn.conv1d.weight" + "buf": "model.layers.4.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 76 + "offset": 16 }, { "buf": "num_accepted_tokens" @@ -110217,47 +82475,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 96 }, { - "i64": 0 - } - ] - }, - { - "label": "l24.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.4.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.4.linear_attn.dt_bias" }, { - "buf": "model.layers.24.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.24.linear_attn.dt_bias" + "buf": "model.layers.4.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -110274,85 +82508,6 @@ { "buf": "beta" }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l24.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l24.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l24.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.24.linear_attn.A_log" - }, { "buf": "a_c" }, @@ -110360,131 +82515,33 @@ "buf": "b_c" }, { - "buf": "model.layers.24.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 576 - }, - { - "buf": "num_accepted_tokens" + "buf": "z_c" }, { "f32": 0.0883883461356163 }, { - "i64": 1 + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l24.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l24.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.24.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l24.out_norm", + "label": "l4.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -110494,13 +82551,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.24.linear_attn.out_proj.weight" + "buf": "model.layers.4.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.24.post_attention_layernorm.weight_p1" + "buf": "model.layers.4.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -110517,7 +82574,7 @@ ] }, { - "label": "l24.gate_up_silu", + "label": "l4.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -110527,7 +82584,7 @@ "buf": "x" }, { - "buf": "model.layers.24.mlp.gate_up_proj.weight" + "buf": "model.layers.4.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -110541,7 +82598,7 @@ ] }, { - "label": "l24.down_norm", + "label": "l4.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -110551,13 +82608,13 @@ "buf": "act" }, { - "buf": "model.layers.24.mlp.down_proj.weight" + "buf": "model.layers.4.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.25.input_layernorm.weight_p1" + "buf": "model.layers.5.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -110574,7 +82631,7 @@ ] }, { - "label": "l25.in_proj", + "label": "l5.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -110587,10 +82644,10 @@ "buf": "x" }, { - "buf": "model.layers.25.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.5.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.25.linear_attn.in_proj_ba.weight" + "buf": "model.layers.5.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -110607,21 +82664,25 @@ ] }, { - "label": "l25.conv_update", - "kernel": "conv_update_spec", + "label": "l5.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.25.linear_attn.conv1d.weight" + "buf": "model.layers.5.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 80 + "offset": 20 }, { "buf": "num_accepted_tokens" @@ -110630,274 +82691,313 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 128 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.5.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.5.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.5.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l25.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.25.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.25.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l5.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" + }, + { + "buf": "model.layers.5.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.5.post_attention_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 }, { "i32": 6144 }, + { + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l5.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ + { + "buf": "act" + }, + { + "buf": "x" + }, + { + "buf": "model.layers.5.mlp.gate_up_proj.weight" + }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l25.a_copy", - "kernel": "copy_rows", + "label": "l5.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.5.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" + }, + { + "buf": "model.layers.6.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l25.b_copy", - "kernel": "copy_rows", + "label": "l5.fc_tap", + "kernel": "gemm", "args": [ { - "buf": "b_c" + "buf": "residual" }, { - "buf": "ba" + "buf": "draft.fc.0.weight" }, { - "i32": 48 + "buf": "fc_out" }, { - "i32": 96 + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 + }, + { + "i32": 5120 } ] }, { - "label": "l25.recurrent", - "kernel": "recurrent_spec", + "label": "l6.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.25.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.25.linear_attn.dt_bias" + "buf": "model.layers.6.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.6.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l6.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.6.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 24 }, { - "buf": "gdn.spec_slots", - "offset": 608 + "buf": "num_accepted_tokens" }, { - "buf": "num_accepted_tokens" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 160 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.6.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.6.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l25.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.6.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l25.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.25.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l25.out_norm", + "label": "l6.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -110907,13 +83007,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.25.linear_attn.out_proj.weight" + "buf": "model.layers.6.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.25.post_attention_layernorm.weight_p1" + "buf": "model.layers.6.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -110930,7 +83030,7 @@ ] }, { - "label": "l25.gate_up_silu", + "label": "l6.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -110940,7 +83040,7 @@ "buf": "x" }, { - "buf": "model.layers.25.mlp.gate_up_proj.weight" + "buf": "model.layers.6.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -110954,7 +83054,7 @@ ] }, { - "label": "l25.down_norm", + "label": "l6.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -110964,13 +83064,13 @@ "buf": "act" }, { - "buf": "model.layers.25.mlp.down_proj.weight" + "buf": "model.layers.6.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.26.input_layernorm.weight_p1" + "buf": "model.layers.7.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -110987,32 +83087,23 @@ ] }, { - "label": "l26.in_proj", - "kernel": "gemm8_dual", + "label": "l7.qkv_proj", + "kernel": "gemm", "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, { "buf": "x" }, { - "buf": "model.layers.26.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.7.self_attn.qkv_proj.weight" }, { - "buf": "model.layers.26.linear_attn.in_proj_ba.weight" + "buf": "qkv" }, { "sym": "tokens" }, { - "i32": 16384 - }, - { - "i32": 96 + "i32": 14336 }, { "i32": 5120 @@ -111020,106 +83111,116 @@ ] }, { - "label": "l26.conv_update", - "kernel": "conv_update_spec", + "label": "l7.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "model.layers.26.linear_attn.conv1d.weight" - }, - { - "state": "gdn" + "buf": "q_n" }, { - "buf": "gdn.spec_line_index", - "offset": 84 + "buf": "qkv" }, { - "buf": "num_accepted_tokens" + "buf": "model.layers.7.self_attn.q_norm.weight_p1" }, { - "buf": "cu_seqlens_q" + "i32": 256 }, { - "buf": "qkvz" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i32": 1 + "i32": 24 }, { - "i32": 385 + "i32": 14336 }, { - "i64": 16384 + "i32": 512 }, { - "i64": 16384 + "i32": 6144 }, { - "i64": 0 + "i32": 256 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l26.post_conv", - "kernel": "post_conv", + "label": "l7.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 + "buf": "k_n" }, { - "buf": "ba" + "buf": "qkv", + "offset": 24576 }, { - "buf": "model.layers.26.linear_attn.A_log" + "buf": "model.layers.7.self_attn.k_norm.weight_p1" }, { - "buf": "model.layers.26.linear_attn.dt_bias" + "i32": 256 }, { - "buf": "gdn_q" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { - "buf": "gdn_k" + "i32": 4 }, { - "buf": "gdn_v" + "i32": 14336 }, { - "buf": "g" + "i32": 256 }, { - "buf": "beta" + "i32": 1024 }, { - "i32": 16384 + "i32": 256 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l7.rope", + "kernel": "mrope", + "args": [ { - "i32": 96 + "buf": "q_n" }, { - "i32": 2048 + "buf": "k_n" }, { - "i32": 2048 + "buf": "cos_g" }, { - "i32": 6144 + "buf": "sin_g" }, { - "sym": "tokens" + "i32": 0 }, { "i64": 0 @@ -111130,176 +83231,147 @@ ] }, { - "label": "l26.a_copy", - "kernel": "copy_rows", + "label": "l7.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "a_c" + "buf": "k_n" }, { - "buf": "ba", - "offset": 96 + "buf": "qkv", + "offset": 26624 }, { - "i32": 48 + "state": "kv", + "offset": 3211264 }, { - "i32": 96 + "state": "kv", + "offset": 3211776 }, { - "i32": 48 - } - ] - }, - { - "label": "l26.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "slot_mapping" }, { - "buf": "ba" + "buf": "kv_scales" }, { - "i32": 48 + "buf": "kv_scales", + "offset": 4 }, { - "i32": 96 + "i64": 1024 }, { - "i32": 48 - } - ] - }, - { - "label": "l26.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.26.linear_attn.A_log" + "i64": 14336 }, { - "buf": "a_c" + "i64": 25690112 }, { - "buf": "b_c" + "i64": 512 }, { - "buf": "model.layers.26.linear_attn.dt_bias" + "i64": 0 }, { - "f32": 1.0 + "i64": 0 }, { - "f32": 20.0 + "i64": 2048 }, { - "buf": "gdn_q" + "i64": 0 }, { - "buf": "gdn_k" - }, + "i64": 0 + } + ] + }, + { + "label": "l7.attn", + "kernel": "attn_prefill", + "args": [ { - "buf": "gdn_v" + "buf": "attn_out" }, { - "buf": "core_attn_out" + "buf": "q_n" }, { - "state": "gdn", - "offset": 204800 + "state": "kv", + "offset": 3211264 }, { - "state": "gdn", - "offset": 204800 + "state": "kv", + "offset": 3211776 }, { - "buf": "cu_seqlens_q" + "buf": "block_table" }, { - "buf": "gdn.spec_slots", - "offset": 640 + "buf": "seq_lens" }, { - "buf": "num_accepted_tokens" + "f32": 0.0625 }, { - "f32": 0.0883883461356163 + "buf": "kv_scales" }, { - "i64": 1 + "buf": "kv_scales", + "offset": 4 }, { - "sym": "tokens" + "f32": 1.0 }, { - "i64": 0 + "f32": 0.0 }, { - "i64": 0 - } - ] - }, - { - "label": "l26.z_copy", - "kernel": "copy_rows", - "args": [ + "i64": 8 + }, { - "buf": "z_c" + "i64": 6144 }, { - "buf": "qkvz", - "offset": 20480 + "i64": 256 }, { - "i32": 6144 + "i64": 6144 }, { - "i32": 16384 + "i64": 256 }, { - "i32": 6144 - } - ] - }, - { - "label": "l26.gated_norm", - "kernel": "gated_norm", - "args": [ + "i64": 0 + }, { - "buf": "core_attn_out" + "buf": "seq_lens" }, { - "buf": "core_attn_out" + "i64": 25690112 }, { - "buf": "model.layers.26.linear_attn.norm.weight" + "i64": 2048 }, { - "buf": "z_c" + "i64": 512 }, { - "i32": 128 + "i64": 25690112 }, { - "i32": 128 + "i64": 2048 }, { - "i32": 128 + "i64": 512 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "cu_seqlens_q" }, { - "f32": 9.999999974752427e-07 + "i32": 1 }, { "i64": 0 @@ -111310,23 +83382,27 @@ ] }, { - "label": "l26.out_norm", - "kernel": "gemm8_add_norm", + "label": "l7.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { "buf": "x" }, { - "buf": "core_attn_out" + "buf": "attn_out" }, { - "buf": "model.layers.26.linear_attn.out_proj.weight" + "buf": "qkv", + "offset": 512 + }, + { + "buf": "model.layers.7.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.26.post_attention_layernorm.weight_p1" + "buf": "model.layers.7.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -111337,13 +83413,22 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l26.gate_up_silu", + "label": "l7.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -111353,7 +83438,7 @@ "buf": "x" }, { - "buf": "model.layers.26.mlp.gate_up_proj.weight" + "buf": "model.layers.7.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -111367,7 +83452,7 @@ ] }, { - "label": "l26.down_norm", + "label": "l7.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -111377,13 +83462,13 @@ "buf": "act" }, { - "buf": "model.layers.26.mlp.down_proj.weight" + "buf": "model.layers.7.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.27.input_layernorm.weight_p1" + "buf": "model.layers.8.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -111400,23 +83485,32 @@ ] }, { - "label": "l27.qkv_proj", - "kernel": "gemm", + "label": "l8.in_proj", + "kernel": "gemm8_dual", "args": [ + { + "buf": "qkvz" + }, + { + "buf": "ba" + }, { "buf": "x" }, { - "buf": "model.layers.27.self_attn.qkv_proj.weight" + "buf": "model.layers.8.linear_attn.in_proj_qkvz.weight" }, { - "buf": "qkv" + "buf": "model.layers.8.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" }, { - "i32": 14336 + "i32": 16384 + }, + { + "i32": 96 }, { "i32": 5120 @@ -111424,92 +83518,125 @@ ] }, { - "label": "l27.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l8.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "q_n" + "buf": "qkvz" }, { - "buf": "qkv" + "buf": "model.layers.8.linear_attn.conv1d.weight" }, { - "buf": "model.layers.27.self_attn.q_norm.weight_p1" + "state": "gdn" }, { - "i32": 256 + "state": "gdn", + "offset": 204800 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } + "buf": "gdn.spec_line_index", + "offset": 28 }, { - "i32": 24 + "buf": "num_accepted_tokens" }, { - "i32": 14336 + "buf": "cu_seqlens_q" }, { - "i32": 512 + "buf": "gdn.spec_slots", + "offset": 192 }, { - "i32": 6144 + "buf": "ba" }, { - "i32": 256 + "buf": "model.layers.8.linear_attn.A_log" + }, + { + "buf": "model.layers.8.linear_attn.dt_bias" + }, + { + "buf": "core_attn_out" + }, + { + "buf": "model.layers.8.linear_attn.norm.weight" + }, + { + "buf": "gdn_q" + }, + { + "buf": "gdn_k" + }, + { + "buf": "gdn_v" + }, + { + "buf": "g" + }, + { + "buf": "beta" + }, + { + "buf": "a_c" + }, + { + "buf": "b_c" + }, + { + "buf": "z_c" + }, + { + "f32": 0.0883883461356163 }, { "f32": 9.999999974752427e-07 + }, + { + "sym": "tokens" + }, + { + "i32": 385 + }, + { + "i32": 1703936 + }, + { + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l27.k_norm", - "kernel": "gemma_norm_khead", + "label": "l8.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.27.self_attn.k_norm.weight_p1" + "buf": "x" }, { - "i32": 256 + "buf": "core_attn_out" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } + "buf": "model.layers.8.linear_attn.out_proj.weight" }, { - "i32": 4 + "buf": "residual" }, { - "i32": 14336 + "buf": "model.layers.8.post_attention_layernorm.weight_p1" }, { - "i32": 256 + "sym": "tokens" }, { - "i32": 1024 + "i32": 5120 }, { - "i32": 256 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -111517,205 +83644,206 @@ ] }, { - "label": "l27.rope", - "kernel": "mrope", + "label": "l8.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "q_n" - }, - { - "buf": "k_n" + "buf": "act" }, { - "buf": "cos_g" + "buf": "x" }, { - "buf": "sin_g" + "buf": "model.layers.8.mlp.gate_up_proj.weight" }, { - "i32": 0 + "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l27.kv_write", - "kernel": "reshape_and_cache", + "label": "l8.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" + "buf": "x" }, { - "buf": "qkv", - "offset": 26624 + "buf": "act" }, { - "state": "kv", - "offset": 19267584 + "buf": "model.layers.8.mlp.down_proj.weight" }, { - "state": "kv", - "offset": 19268096 + "buf": "residual" }, { - "buf": "slot_mapping" + "buf": "model.layers.9.input_layernorm.weight_p1" }, { - "buf": "kv_scales" + "sym": "tokens" }, { - "buf": "kv_scales", - "offset": 4 + "i32": 5120 }, { - "i64": 1024 + "i32": 17408 }, { - "i64": 14336 + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l9.in_proj", + "kernel": "gemm8_dual", + "args": [ + { + "buf": "qkvz" }, { - "i64": 25690112 + "buf": "ba" }, { - "i64": 512 + "buf": "x" }, { - "i64": 0 + "buf": "model.layers.9.linear_attn.in_proj_qkvz.weight" }, { - "i64": 0 + "buf": "model.layers.9.linear_attn.in_proj_ba.weight" }, { - "i64": 2048 + "sym": "tokens" }, { - "i64": 0 + "i32": 16384 }, { - "i64": 0 + "i32": 96 + }, + { + "i32": 5120 } ] }, { - "label": "l27.attn", - "kernel": "attn_prefill", + "label": "l9.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "attn_out" + "buf": "qkvz" }, { - "buf": "q_n" + "buf": "model.layers.9.linear_attn.conv1d.weight" }, { - "state": "kv", - "offset": 19267584 + "state": "gdn" }, { - "state": "kv", - "offset": 19268096 + "state": "gdn", + "offset": 204800 }, { - "buf": "block_table" + "buf": "gdn.spec_line_index", + "offset": 32 }, { - "buf": "seq_lens" + "buf": "num_accepted_tokens" }, { - "f32": 0.0625 + "buf": "cu_seqlens_q" }, { - "buf": "kv_scales" + "buf": "gdn.spec_slots", + "offset": 224 }, { - "buf": "kv_scales", - "offset": 4 + "buf": "ba" }, { - "f32": 1.0 + "buf": "model.layers.9.linear_attn.A_log" }, { - "f32": 0.0 + "buf": "model.layers.9.linear_attn.dt_bias" }, { - "i64": 8 + "buf": "core_attn_out" }, { - "i64": 6144 + "buf": "model.layers.9.linear_attn.norm.weight" }, { - "i64": 256 + "buf": "gdn_q" }, { - "i64": 6144 + "buf": "gdn_k" }, { - "i64": 256 + "buf": "gdn_v" }, { - "i64": 0 + "buf": "g" }, { - "buf": "seq_lens" + "buf": "beta" }, { - "i64": 25690112 + "buf": "a_c" }, { - "i64": 2048 + "buf": "b_c" }, { - "i64": 512 + "buf": "z_c" }, { - "i64": 25690112 + "f32": 0.0883883461356163 }, { - "i64": 2048 + "f32": 9.999999974752427e-07 }, { - "i64": 512 + "sym": "tokens" }, { - "buf": "cu_seqlens_q" + "i32": 385 }, { - "i32": 1 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l27.o_norm", - "kernel": "gemm8_sgate_add_norm", + "label": "l9.out_norm", + "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 + "buf": "core_attn_out" }, { - "buf": "model.layers.27.self_attn.o_proj.weight" + "buf": "model.layers.9.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.27.post_attention_layernorm.weight_p1" + "buf": "model.layers.9.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -111726,22 +83854,13 @@ { "i32": 6144 }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l27.gate_up_silu", + "label": "l9.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -111751,7 +83870,7 @@ "buf": "x" }, { - "buf": "model.layers.27.mlp.gate_up_proj.weight" + "buf": "model.layers.9.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -111765,7 +83884,7 @@ ] }, { - "label": "l27.down_norm", + "label": "l9.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -111775,13 +83894,13 @@ "buf": "act" }, { - "buf": "model.layers.27.mlp.down_proj.weight" + "buf": "model.layers.9.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.28.input_layernorm.weight_p1" + "buf": "model.layers.10.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -111798,7 +83917,7 @@ ] }, { - "label": "l28.in_proj", + "label": "l10.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -111811,10 +83930,10 @@ "buf": "x" }, { - "buf": "model.layers.28.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.10.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.28.linear_attn.in_proj_ba.weight" + "buf": "model.layers.10.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -111831,21 +83950,25 @@ ] }, { - "label": "l28.conv_update", - "kernel": "conv_update_spec", + "label": "l10.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.28.linear_attn.conv1d.weight" + "buf": "model.layers.10.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 88 + "offset": 36 }, { "buf": "num_accepted_tokens" @@ -111854,47 +83977,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 256 }, { - "i64": 0 - } - ] - }, - { - "label": "l28.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.10.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.10.linear_attn.dt_bias" }, { - "buf": "model.layers.28.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.28.linear_attn.dt_bias" + "buf": "model.layers.10.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -111912,192 +84011,213 @@ "buf": "beta" }, { - "i32": 16384 + "buf": "a_c" }, { - "i32": 96 + "buf": "b_c" }, { - "i32": 96 + "buf": "z_c" }, { - "i32": 2048 + "f32": 0.0883883461356163 }, { - "i32": 2048 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 385 }, { - "i64": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l28.a_copy", - "kernel": "copy_rows", + "label": "l10.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.10.linear_attn.out_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l28.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.10.post_attention_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 6144 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l28.recurrent", - "kernel": "recurrent_spec", + "label": "l10.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "model.layers.28.linear_attn.A_log" + "buf": "act" }, { - "buf": "a_c" + "buf": "x" }, { - "buf": "b_c" + "buf": "model.layers.10.mlp.gate_up_proj.weight" }, { - "buf": "model.layers.28.linear_attn.dt_bias" + "sym": "tokens" }, { - "f32": 1.0 + "i32": 17408 }, { - "f32": 20.0 - }, + "i32": 5120 + } + ] + }, + { + "label": "l10.down_norm", + "kernel": "gemm8_add_norm", + "args": [ { - "buf": "gdn_q" + "buf": "x" }, { - "buf": "gdn_k" + "buf": "act" }, { - "buf": "gdn_v" + "buf": "model.layers.10.mlp.down_proj.weight" }, { - "buf": "core_attn_out" + "buf": "residual" }, { - "state": "gdn", - "offset": 204800 + "buf": "model.layers.11.input_layernorm.weight_p1" }, { - "state": "gdn", - "offset": 204800 + "sym": "tokens" }, { - "buf": "cu_seqlens_q" + "i32": 5120 }, { - "buf": "gdn.spec_slots", - "offset": 672 + "i32": 17408 }, { - "buf": "num_accepted_tokens" + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l11.qkv_proj", + "kernel": "gemm", + "args": [ + { + "buf": "x" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.11.self_attn.qkv_proj.weight" }, { - "i64": 1 + "buf": "qkv" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 14336 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l28.z_copy", - "kernel": "copy_rows", + "label": "l11.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "z_c" + "buf": "q_n" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "qkv" }, { - "i32": 6144 + "buf": "model.layers.11.self_attn.q_norm.weight_p1" }, { - "i32": 16384 + "i32": 256 }, { - "i32": 6144 - } - ] - }, - { - "label": "l28.gated_norm", - "kernel": "gated_norm", - "args": [ + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } + }, { - "buf": "core_attn_out" + "i32": 24 }, { - "buf": "core_attn_out" + "i32": 14336 }, { - "buf": "model.layers.28.linear_attn.norm.weight" + "i32": 512 }, { - "buf": "z_c" + "i32": 6144 }, { - "i32": 128 + "i32": 256 }, { - "i32": 128 + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l11.k_norm", + "kernel": "gemma_norm_khead", + "args": [ + { + "buf": "k_n" }, { - "i32": 128 + "buf": "qkv", + "offset": 24576 + }, + { + "buf": "model.layers.11.self_attn.k_norm.weight_p1" + }, + { + "i32": 256 }, { "expr": { @@ -112105,12 +84225,48 @@ { "sym": "tokens" }, - 48 + 4 ] } }, + { + "i32": 4 + }, + { + "i32": 14336 + }, + { + "i32": 256 + }, + { + "i32": 1024 + }, + { + "i32": 256 + }, { "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l11.rope", + "kernel": "mrope", + "args": [ + { + "buf": "q_n" + }, + { + "buf": "k_n" + }, + { + "buf": "cos_g" + }, + { + "buf": "sin_g" + }, + { + "i32": 0 }, { "i64": 0 @@ -112121,165 +84277,147 @@ ] }, { - "label": "l28.out_norm", - "kernel": "gemm8_add_norm", + "label": "l11.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "x" + "buf": "k_n" }, { - "buf": "core_attn_out" + "buf": "qkv", + "offset": 26624 }, { - "buf": "model.layers.28.linear_attn.out_proj.weight" + "state": "kv", + "offset": 6422528 }, { - "buf": "residual" + "state": "kv", + "offset": 6423040 }, { - "buf": "model.layers.28.post_attention_layernorm.weight_p1" + "buf": "slot_mapping" }, { - "sym": "tokens" + "buf": "kv_scales" }, { - "i32": 5120 + "buf": "kv_scales", + "offset": 4 }, { - "i32": 6144 + "i64": 1024 }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l28.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ + "i64": 14336 + }, { - "buf": "act" + "i64": 25690112 }, { - "buf": "x" + "i64": 512 }, { - "buf": "model.layers.28.mlp.gate_up_proj.weight" + "i64": 0 }, { - "sym": "tokens" + "i64": 0 }, { - "i32": 17408 + "i64": 2048 }, { - "i32": 5120 + "i64": 0 + }, + { + "i64": 0 } ] }, { - "label": "l28.down_norm", - "kernel": "gemm8_add_norm", + "label": "l11.attn", + "kernel": "attn_prefill", "args": [ { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.28.mlp.down_proj.weight" + "buf": "attn_out" }, { - "buf": "residual" + "buf": "q_n" }, { - "buf": "model.layers.29.input_layernorm.weight_p1" + "state": "kv", + "offset": 6422528 }, { - "sym": "tokens" + "state": "kv", + "offset": 6423040 }, { - "i32": 5120 + "buf": "block_table" }, { - "i32": 17408 + "buf": "seq_lens" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l29.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" + "f32": 0.0625 }, { - "buf": "ba" + "buf": "kv_scales" }, { - "buf": "x" + "buf": "kv_scales", + "offset": 4 }, { - "buf": "model.layers.29.linear_attn.in_proj_qkvz.weight" + "f32": 1.0 }, { - "buf": "model.layers.29.linear_attn.in_proj_ba.weight" + "f32": 0.0 }, { - "sym": "tokens" + "i64": 8 }, { - "i32": 16384 + "i64": 6144 }, { - "i32": 96 + "i64": 256 }, { - "i32": 5120 - } - ] - }, - { - "label": "l29.conv_update", - "kernel": "conv_update_spec", - "args": [ + "i64": 6144 + }, { - "buf": "qkvz" + "i64": 256 }, { - "buf": "model.layers.29.linear_attn.conv1d.weight" + "i64": 0 }, { - "state": "gdn" + "buf": "seq_lens" }, { - "buf": "gdn.spec_line_index", - "offset": 92 + "i64": 25690112 }, { - "buf": "num_accepted_tokens" + "i64": 2048 }, { - "buf": "cu_seqlens_q" + "i64": 512 }, { - "buf": "qkvz" + "i64": 25690112 }, { - "i32": 1 + "i64": 2048 }, { - "i32": 385 + "i64": 512 }, { - "i64": 16384 + "buf": "cu_seqlens_q" }, { - "i64": 16384 + "i32": 1 }, { "i64": 0 @@ -112290,251 +84428,236 @@ ] }, { - "label": "l29.post_conv", - "kernel": "post_conv", + "label": "l11.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "qkvz" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "attn_out" }, { - "buf": "ba" + "buf": "qkv", + "offset": 512 }, { - "buf": "model.layers.29.linear_attn.A_log" + "buf": "model.layers.11.self_attn.o_proj.weight" }, { - "buf": "model.layers.29.linear_attn.dt_bias" + "buf": "residual" }, { - "buf": "gdn_q" + "buf": "model.layers.11.post_attention_layernorm.weight_p1" }, { - "buf": "gdn_k" + "sym": "tokens" }, { - "buf": "gdn_v" + "i32": 5120 }, { - "buf": "g" + "i32": 6144 }, { - "buf": "beta" + "i32": 256 }, { - "i32": 16384 + "i32": 14336 }, { - "i32": 96 + "i32": 512 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l11.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ { - "i32": 2048 + "buf": "act" }, { - "i32": 2048 + "buf": "x" }, { - "i32": 6144 + "buf": "model.layers.11.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l29.a_copy", - "kernel": "copy_rows", + "label": "l11.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.11.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l29.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.12.input_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l29.recurrent", - "kernel": "recurrent_spec", + "label": "l12.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.29.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.29.linear_attn.dt_bias" + "buf": "model.layers.12.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.12.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l12.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.12.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 40 }, { - "buf": "gdn.spec_slots", - "offset": 704 + "buf": "num_accepted_tokens" }, { - "buf": "num_accepted_tokens" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 288 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.12.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.12.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l29.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.12.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l29.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.29.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l29.out_norm", + "label": "l12.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -112544,13 +84667,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.29.linear_attn.out_proj.weight" + "buf": "model.layers.12.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.29.post_attention_layernorm.weight_p1" + "buf": "model.layers.12.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -112567,7 +84690,7 @@ ] }, { - "label": "l29.gate_up_silu", + "label": "l12.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -112577,7 +84700,7 @@ "buf": "x" }, { - "buf": "model.layers.29.mlp.gate_up_proj.weight" + "buf": "model.layers.12.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -112591,7 +84714,7 @@ ] }, { - "label": "l29.down_norm", + "label": "l12.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -112601,13 +84724,13 @@ "buf": "act" }, { - "buf": "model.layers.29.mlp.down_proj.weight" + "buf": "model.layers.12.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.30.input_layernorm.weight_p1" + "buf": "model.layers.13.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -112624,7 +84747,7 @@ ] }, { - "label": "l30.in_proj", + "label": "l13.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -112637,10 +84760,10 @@ "buf": "x" }, { - "buf": "model.layers.30.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.13.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.30.linear_attn.in_proj_ba.weight" + "buf": "model.layers.13.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -112657,21 +84780,25 @@ ] }, { - "label": "l30.conv_update", - "kernel": "conv_update_spec", + "label": "l13.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.30.linear_attn.conv1d.weight" + "buf": "model.layers.13.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 96 + "offset": 44 }, { "buf": "num_accepted_tokens" @@ -112680,274 +84807,289 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 320 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.13.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.13.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.13.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l30.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.30.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.30.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l13.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" }, { - "i32": 6144 + "buf": "model.layers.13.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.13.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l30.a_copy", - "kernel": "copy_rows", + "label": "l13.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" }, { - "i32": 48 + "buf": "model.layers.13.mlp.gate_up_proj.weight" }, { - "i32": 96 + "sym": "tokens" + }, + { + "i32": 17408 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l30.b_copy", - "kernel": "copy_rows", + "label": "l13.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.13.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" + }, + { + "buf": "model.layers.14.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 }, { - "i32": 48 + "i32": 17408 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l30.recurrent", - "kernel": "recurrent_spec", + "label": "l14.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.30.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.30.linear_attn.dt_bias" + "buf": "model.layers.14.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.14.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l14.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.14.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 48 }, { - "buf": "gdn.spec_slots", - "offset": 736 + "buf": "num_accepted_tokens" }, { - "buf": "num_accepted_tokens" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 352 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.14.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.14.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l30.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.14.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l30.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.30.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l30.out_norm", + "label": "l14.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -112957,13 +85099,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.30.linear_attn.out_proj.weight" + "buf": "model.layers.14.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.30.post_attention_layernorm.weight_p1" + "buf": "model.layers.14.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -112980,7 +85122,7 @@ ] }, { - "label": "l30.gate_up_silu", + "label": "l14.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -112990,7 +85132,7 @@ "buf": "x" }, { - "buf": "model.layers.30.mlp.gate_up_proj.weight" + "buf": "model.layers.14.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -113004,7 +85146,7 @@ ] }, { - "label": "l30.down_norm", + "label": "l14.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -113014,13 +85156,13 @@ "buf": "act" }, { - "buf": "model.layers.30.mlp.down_proj.weight" + "buf": "model.layers.14.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.31.input_layernorm.weight_p1" + "buf": "model.layers.15.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -113037,14 +85179,14 @@ ] }, { - "label": "l31.qkv_proj", + "label": "l15.qkv_proj", "kernel": "gemm", "args": [ { "buf": "x" }, { - "buf": "model.layers.31.self_attn.qkv_proj.weight" + "buf": "model.layers.15.self_attn.qkv_proj.weight" }, { "buf": "qkv" @@ -113061,7 +85203,7 @@ ] }, { - "label": "l31.q_norm", + "label": "l15.q_norm", "kernel": "gemma_norm_qhead", "args": [ { @@ -113071,7 +85213,7 @@ "buf": "qkv" }, { - "buf": "model.layers.31.self_attn.q_norm.weight_p1" + "buf": "model.layers.15.self_attn.q_norm.weight_p1" }, { "i32": 256 @@ -113107,7 +85249,7 @@ ] }, { - "label": "l31.k_norm", + "label": "l15.k_norm", "kernel": "gemma_norm_khead", "args": [ { @@ -113118,7 +85260,7 @@ "offset": 24576 }, { - "buf": "model.layers.31.self_attn.k_norm.weight_p1" + "buf": "model.layers.15.self_attn.k_norm.weight_p1" }, { "i32": 256 @@ -113154,7 +85296,7 @@ ] }, { - "label": "l31.rope", + "label": "l15.rope", "kernel": "mrope", "args": [ { @@ -113181,7 +85323,7 @@ ] }, { - "label": "l31.kv_write", + "label": "l15.kv_write", "kernel": "reshape_and_cache", "args": [ { @@ -113193,11 +85335,11 @@ }, { "state": "kv", - "offset": 22478848 + "offset": 9633792 }, { "state": "kv", - "offset": 22479360 + "offset": 9634304 }, { "buf": "slot_mapping" @@ -113239,7 +85381,7 @@ ] }, { - "label": "l31.attn", + "label": "l15.attn", "kernel": "attn_prefill", "args": [ { @@ -113250,11 +85392,11 @@ }, { "state": "kv", - "offset": 22478848 + "offset": 9633792 }, { "state": "kv", - "offset": 22479360 + "offset": 9634304 }, { "buf": "block_table" @@ -113332,7 +85474,7 @@ ] }, { - "label": "l31.o_norm", + "label": "l15.o_norm", "kernel": "gemm8_sgate_add_norm", "args": [ { @@ -113346,13 +85488,13 @@ "offset": 512 }, { - "buf": "model.layers.31.self_attn.o_proj.weight" + "buf": "model.layers.15.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.31.post_attention_layernorm.weight_p1" + "buf": "model.layers.15.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -113378,7 +85520,7 @@ ] }, { - "label": "l31.gate_up_silu", + "label": "l15.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -113388,7 +85530,7 @@ "buf": "x" }, { - "buf": "model.layers.31.mlp.gate_up_proj.weight" + "buf": "model.layers.15.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -113402,7 +85544,7 @@ ] }, { - "label": "l31.down_norm", + "label": "l15.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -113412,13 +85554,13 @@ "buf": "act" }, { - "buf": "model.layers.31.mlp.down_proj.weight" + "buf": "model.layers.15.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.32.input_layernorm.weight_p1" + "buf": "model.layers.16.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -113435,7 +85577,7 @@ ] }, { - "label": "l32.in_proj", + "label": "l16.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -113448,10 +85590,10 @@ "buf": "x" }, { - "buf": "model.layers.32.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.16.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.32.linear_attn.in_proj_ba.weight" + "buf": "model.layers.16.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -113468,21 +85610,25 @@ ] }, { - "label": "l32.conv_update", - "kernel": "conv_update_spec", + "label": "l16.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.32.linear_attn.conv1d.weight" + "buf": "model.layers.16.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 100 + "offset": 52 }, { "buf": "num_accepted_tokens" @@ -113491,47 +85637,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 384 }, { - "i64": 0 - } - ] - }, - { - "label": "l32.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.16.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.16.linear_attn.dt_bias" }, { - "buf": "model.layers.32.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.32.linear_attn.dt_bias" + "buf": "model.layers.16.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -113548,85 +85670,6 @@ { "buf": "beta" }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l32.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l32.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l32.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.32.linear_attn.A_log" - }, { "buf": "a_c" }, @@ -113634,131 +85677,33 @@ "buf": "b_c" }, { - "buf": "model.layers.32.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 768 - }, - { - "buf": "num_accepted_tokens" + "buf": "z_c" }, { "f32": 0.0883883461356163 }, { - "i64": 1 + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l32.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l32.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.32.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l32.out_norm", + "label": "l16.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -113768,13 +85713,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.32.linear_attn.out_proj.weight" + "buf": "model.layers.16.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.32.post_attention_layernorm.weight_p1" + "buf": "model.layers.16.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -113791,7 +85736,7 @@ ] }, { - "label": "l32.gate_up_silu", + "label": "l16.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -113801,7 +85746,7 @@ "buf": "x" }, { - "buf": "model.layers.32.mlp.gate_up_proj.weight" + "buf": "model.layers.16.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -113815,7 +85760,7 @@ ] }, { - "label": "l32.down_norm", + "label": "l16.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -113825,13 +85770,13 @@ "buf": "act" }, { - "buf": "model.layers.32.mlp.down_proj.weight" + "buf": "model.layers.16.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.33.input_layernorm.weight_p1" + "buf": "model.layers.17.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -113848,7 +85793,7 @@ ] }, { - "label": "l33.in_proj", + "label": "l17.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -113861,10 +85806,10 @@ "buf": "x" }, { - "buf": "model.layers.33.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.17.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.33.linear_attn.in_proj_ba.weight" + "buf": "model.layers.17.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -113881,21 +85826,25 @@ ] }, { - "label": "l33.conv_update", - "kernel": "conv_update_spec", + "label": "l17.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.33.linear_attn.conv1d.weight" + "buf": "model.layers.17.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 104 + "offset": 56 }, { "buf": "num_accepted_tokens" @@ -113904,274 +85853,289 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 416 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.17.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.17.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.17.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l33.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.33.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.33.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l17.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" }, { - "i32": 6144 + "buf": "model.layers.17.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.17.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l33.a_copy", - "kernel": "copy_rows", + "label": "l17.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" + }, + { + "buf": "model.layers.17.mlp.gate_up_proj.weight" }, { - "i32": 48 + "sym": "tokens" }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l33.b_copy", - "kernel": "copy_rows", + "label": "l17.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.17.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" + }, + { + "buf": "model.layers.18.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l33.recurrent", - "kernel": "recurrent_spec", + "label": "l18.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.33.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.33.linear_attn.dt_bias" + "buf": "model.layers.18.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.18.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l18.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.18.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 60 }, { - "buf": "gdn.spec_slots", - "offset": 800 + "buf": "num_accepted_tokens" }, { - "buf": "num_accepted_tokens" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 448 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.18.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.18.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l33.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.18.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l33.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.33.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l33.out_norm", + "label": "l18.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -114181,13 +86145,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.33.linear_attn.out_proj.weight" + "buf": "model.layers.18.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.33.post_attention_layernorm.weight_p1" + "buf": "model.layers.18.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -114204,7 +86168,7 @@ ] }, { - "label": "l33.gate_up_silu", + "label": "l18.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -114214,7 +86178,7 @@ "buf": "x" }, { - "buf": "model.layers.33.mlp.gate_up_proj.weight" + "buf": "model.layers.18.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -114228,7 +86192,7 @@ ] }, { - "label": "l33.down_norm", + "label": "l18.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -114238,13 +86202,13 @@ "buf": "act" }, { - "buf": "model.layers.33.mlp.down_proj.weight" + "buf": "model.layers.18.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.34.input_layernorm.weight_p1" + "buf": "model.layers.19.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -114261,23 +86225,23 @@ ] }, { - "label": "l33.fc_tap", - "kernel": "gemm_acc", + "label": "l19.qkv_proj", + "kernel": "gemm", "args": [ { - "buf": "residual" + "buf": "x" }, { - "buf": "draft.fc.2.weight" + "buf": "model.layers.19.self_attn.qkv_proj.weight" }, { - "buf": "fc_out" + "buf": "qkv" }, { "sym": "tokens" }, { - "i32": 5120 + "i32": 14336 }, { "i32": 5120 @@ -114285,251 +86249,267 @@ ] }, { - "label": "l34.in_proj", - "kernel": "gemm8_dual", + "label": "l19.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "qkvz" + "buf": "q_n" }, { - "buf": "ba" + "buf": "qkv" }, { - "buf": "x" + "buf": "model.layers.19.self_attn.q_norm.weight_p1" }, { - "buf": "model.layers.34.linear_attn.in_proj_qkvz.weight" + "i32": 256 }, { - "buf": "model.layers.34.linear_attn.in_proj_ba.weight" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "sym": "tokens" + "i32": 24 }, { - "i32": 16384 + "i32": 14336 }, { - "i32": 96 + "i32": 512 }, { - "i32": 5120 + "i32": 6144 + }, + { + "i32": 256 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l34.conv_update", - "kernel": "conv_update_spec", + "label": "l19.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "model.layers.34.linear_attn.conv1d.weight" - }, - { - "state": "gdn" + "buf": "k_n" }, { - "buf": "gdn.spec_line_index", - "offset": 108 + "buf": "qkv", + "offset": 24576 }, { - "buf": "num_accepted_tokens" + "buf": "model.layers.19.self_attn.k_norm.weight_p1" }, { - "buf": "cu_seqlens_q" + "i32": 256 }, { - "buf": "qkvz" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { - "i32": 1 + "i32": 4 }, { - "i32": 385 + "i32": 14336 }, { - "i64": 16384 + "i32": 256 }, { - "i64": 16384 + "i32": 1024 }, { - "i64": 0 + "i32": 256 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l34.post_conv", - "kernel": "post_conv", + "label": "l19.rope", + "kernel": "mrope", "args": [ { - "buf": "qkvz" + "buf": "q_n" }, { - "buf": "ba", - "offset": 96 + "buf": "k_n" }, { - "buf": "ba" + "buf": "cos_g" }, { - "buf": "model.layers.34.linear_attn.A_log" + "buf": "sin_g" }, { - "buf": "model.layers.34.linear_attn.dt_bias" + "i32": 0 }, { - "buf": "gdn_q" + "i64": 0 }, { - "buf": "gdn_k" - }, + "i64": 0 + } + ] + }, + { + "label": "l19.kv_write", + "kernel": "reshape_and_cache", + "args": [ { - "buf": "gdn_v" + "buf": "k_n" }, { - "buf": "g" + "buf": "qkv", + "offset": 26624 }, { - "buf": "beta" + "state": "kv", + "offset": 12845056 }, { - "i32": 16384 + "state": "kv", + "offset": 12845568 }, { - "i32": 96 + "buf": "slot_mapping" }, { - "i32": 96 + "buf": "kv_scales" }, { - "i32": 2048 + "buf": "kv_scales", + "offset": 4 }, { - "i32": 2048 + "i64": 1024 }, { - "i32": 6144 + "i64": 14336 }, { - "sym": "tokens" + "i64": 25690112 }, { - "i64": 0 + "i64": 512 }, { "i64": 0 - } - ] - }, - { - "label": "l34.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" }, { - "buf": "ba", - "offset": 96 + "i64": 0 }, { - "i32": 48 + "i64": 2048 }, { - "i32": 96 + "i64": 0 }, { - "i32": 48 + "i64": 0 } ] }, { - "label": "l34.b_copy", - "kernel": "copy_rows", + "label": "l19.attn", + "kernel": "attn_prefill", "args": [ { - "buf": "b_c" + "buf": "attn_out" }, { - "buf": "ba" + "buf": "q_n" }, { - "i32": 48 + "state": "kv", + "offset": 12845056 }, { - "i32": 96 + "state": "kv", + "offset": 12845568 }, { - "i32": 48 - } - ] - }, - { - "label": "l34.recurrent", - "kernel": "recurrent_spec", - "args": [ + "buf": "block_table" + }, { - "buf": "model.layers.34.linear_attn.A_log" + "buf": "seq_lens" }, { - "buf": "a_c" + "f32": 0.0625 }, { - "buf": "b_c" + "buf": "kv_scales" }, { - "buf": "model.layers.34.linear_attn.dt_bias" + "buf": "kv_scales", + "offset": 4 }, { "f32": 1.0 }, { - "f32": 20.0 + "f32": 0.0 }, { - "buf": "gdn_q" + "i64": 8 }, { - "buf": "gdn_k" + "i64": 6144 }, { - "buf": "gdn_v" + "i64": 256 }, { - "buf": "core_attn_out" + "i64": 6144 }, { - "state": "gdn", - "offset": 204800 + "i64": 256 }, { - "state": "gdn", - "offset": 204800 + "i64": 0 }, { - "buf": "cu_seqlens_q" + "buf": "seq_lens" }, { - "buf": "gdn.spec_slots", - "offset": 832 + "i64": 25690112 }, { - "buf": "num_accepted_tokens" + "i64": 2048 }, { - "f32": 0.0883883461356163 + "i64": 512 + }, + { + "i64": 25690112 }, { - "i64": 1 + "i64": 2048 }, { - "sym": "tokens" + "i64": 512 + }, + { + "buf": "cu_seqlens_q" + }, + { + "i32": 1 }, { "i64": 0 @@ -114540,91 +86520,93 @@ ] }, { - "label": "l34.z_copy", - "kernel": "copy_rows", + "label": "l19.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "z_c" + "buf": "x" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "attn_out" }, { - "i32": 6144 + "buf": "qkv", + "offset": 512 }, { - "i32": 16384 + "buf": "model.layers.19.self_attn.o_proj.weight" }, { - "i32": 6144 - } - ] - }, - { - "label": "l34.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "residual" + }, { - "buf": "core_attn_out" + "buf": "model.layers.19.post_attention_layernorm.weight_p1" }, { - "buf": "core_attn_out" + "sym": "tokens" }, { - "buf": "model.layers.34.linear_attn.norm.weight" + "i32": 5120 }, { - "buf": "z_c" + "i32": 6144 }, { - "i32": 128 + "i32": 256 }, { - "i32": 128 + "i32": 14336 }, { - "i32": 128 + "i32": 512 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l19.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ + { + "buf": "act" + }, + { + "buf": "x" }, { - "f32": 9.999999974752427e-07 + "buf": "model.layers.19.mlp.gate_up_proj.weight" }, { - "i64": 0 + "sym": "tokens" }, { - "i64": 0 + "i32": 17408 + }, + { + "i32": 5120 } ] }, { - "label": "l34.out_norm", + "label": "l19.down_norm", "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "core_attn_out" + "buf": "act" }, { - "buf": "model.layers.34.linear_attn.out_proj.weight" + "buf": "model.layers.19.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.34.post_attention_layernorm.weight_p1" + "buf": "model.layers.20.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -114633,7 +86615,7 @@ "i32": 5120 }, { - "i32": 6144 + "i32": 17408 }, { "f32": 9.999999974752427e-07 @@ -114641,23 +86623,23 @@ ] }, { - "label": "l34.gate_up_silu", - "kernel": "gemm8_gateup_silu", + "label": "l19.fc_tap", + "kernel": "gemm_acc", "args": [ { - "buf": "act" + "buf": "residual" }, { - "buf": "x" + "buf": "draft.fc.1.weight" }, { - "buf": "model.layers.34.mlp.gate_up_proj.weight" + "buf": "fc_out" }, { "sym": "tokens" }, { - "i32": 17408 + "i32": 5120 }, { "i32": 5120 @@ -114665,149 +86647,158 @@ ] }, { - "label": "l34.down_norm", - "kernel": "gemm8_add_norm", + "label": "l20.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "x" + "buf": "qkvz" }, { - "buf": "act" + "buf": "ba" }, { - "buf": "model.layers.34.mlp.down_proj.weight" + "buf": "x" }, { - "buf": "residual" + "buf": "model.layers.20.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.35.input_layernorm.weight_p1" + "buf": "model.layers.20.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" }, { - "i32": 5120 + "i32": 16384 }, { - "i32": 17408 + "i32": 96 }, { - "f32": 9.999999974752427e-07 + "i32": 5120 } ] }, { - "label": "l35.qkv_proj", - "kernel": "gemm", + "label": "l20.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "x" + "buf": "qkvz" }, { - "buf": "model.layers.35.self_attn.qkv_proj.weight" + "buf": "model.layers.20.linear_attn.conv1d.weight" }, { - "buf": "qkv" + "state": "gdn" }, { - "sym": "tokens" + "state": "gdn", + "offset": 204800 }, { - "i32": 14336 + "buf": "gdn.spec_line_index", + "offset": 64 }, { - "i32": 5120 - } - ] - }, - { - "label": "l35.q_norm", - "kernel": "gemma_norm_qhead", - "args": [ + "buf": "num_accepted_tokens" + }, { - "buf": "q_n" + "buf": "cu_seqlens_q" }, { - "buf": "qkv" + "buf": "gdn.spec_slots", + "offset": 480 }, { - "buf": "model.layers.35.self_attn.q_norm.weight_p1" + "buf": "ba" }, { - "i32": 256 + "buf": "model.layers.20.linear_attn.A_log" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } + "buf": "model.layers.20.linear_attn.dt_bias" }, { - "i32": 24 + "buf": "core_attn_out" }, { - "i32": 14336 + "buf": "model.layers.20.linear_attn.norm.weight" }, { - "i32": 512 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 256 + "buf": "gdn_v" + }, + { + "buf": "g" + }, + { + "buf": "beta" + }, + { + "buf": "a_c" + }, + { + "buf": "b_c" + }, + { + "buf": "z_c" + }, + { + "f32": 0.0883883461356163 }, { "f32": 9.999999974752427e-07 + }, + { + "sym": "tokens" + }, + { + "i32": 385 + }, + { + "i32": 1703936 + }, + { + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l35.k_norm", - "kernel": "gemma_norm_khead", + "label": "l20.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.35.self_attn.k_norm.weight_p1" + "buf": "x" }, { - "i32": 256 + "buf": "core_attn_out" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } + "buf": "model.layers.20.linear_attn.out_proj.weight" }, { - "i32": 4 + "buf": "residual" }, { - "i32": 14336 + "buf": "model.layers.20.post_attention_layernorm.weight_p1" }, { - "i32": 256 + "sym": "tokens" }, { - "i32": 1024 + "i32": 5120 }, { - "i32": 256 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -114815,205 +86806,206 @@ ] }, { - "label": "l35.rope", - "kernel": "mrope", + "label": "l20.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "q_n" - }, - { - "buf": "k_n" + "buf": "act" }, { - "buf": "cos_g" + "buf": "x" }, { - "buf": "sin_g" + "buf": "model.layers.20.mlp.gate_up_proj.weight" }, { - "i32": 0 + "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l35.kv_write", - "kernel": "reshape_and_cache", + "label": "l20.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" + "buf": "x" }, { - "buf": "qkv", - "offset": 26624 + "buf": "act" }, { - "state": "kv", - "offset": 25690112 + "buf": "model.layers.20.mlp.down_proj.weight" }, { - "state": "kv", - "offset": 25690624 + "buf": "residual" }, { - "buf": "slot_mapping" + "buf": "model.layers.21.input_layernorm.weight_p1" }, { - "buf": "kv_scales" + "sym": "tokens" }, { - "buf": "kv_scales", - "offset": 4 + "i32": 5120 }, { - "i64": 1024 + "i32": 17408 }, { - "i64": 14336 + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l21.in_proj", + "kernel": "gemm8_dual", + "args": [ + { + "buf": "qkvz" }, { - "i64": 25690112 + "buf": "ba" }, { - "i64": 512 + "buf": "x" }, { - "i64": 0 + "buf": "model.layers.21.linear_attn.in_proj_qkvz.weight" }, { - "i64": 0 + "buf": "model.layers.21.linear_attn.in_proj_ba.weight" }, { - "i64": 2048 + "sym": "tokens" }, { - "i64": 0 + "i32": 16384 }, { - "i64": 0 + "i32": 96 + }, + { + "i32": 5120 } ] }, { - "label": "l35.attn", - "kernel": "attn_prefill", + "label": "l21.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "attn_out" + "buf": "qkvz" }, { - "buf": "q_n" + "buf": "model.layers.21.linear_attn.conv1d.weight" }, { - "state": "kv", - "offset": 25690112 + "state": "gdn" }, { - "state": "kv", - "offset": 25690624 + "state": "gdn", + "offset": 204800 }, { - "buf": "block_table" + "buf": "gdn.spec_line_index", + "offset": 68 }, { - "buf": "seq_lens" + "buf": "num_accepted_tokens" }, { - "f32": 0.0625 + "buf": "cu_seqlens_q" }, { - "buf": "kv_scales" + "buf": "gdn.spec_slots", + "offset": 512 }, { - "buf": "kv_scales", - "offset": 4 + "buf": "ba" }, { - "f32": 1.0 + "buf": "model.layers.21.linear_attn.A_log" }, { - "f32": 0.0 + "buf": "model.layers.21.linear_attn.dt_bias" }, { - "i64": 8 + "buf": "core_attn_out" }, { - "i64": 6144 + "buf": "model.layers.21.linear_attn.norm.weight" }, { - "i64": 256 + "buf": "gdn_q" }, { - "i64": 6144 + "buf": "gdn_k" }, { - "i64": 256 + "buf": "gdn_v" }, { - "i64": 0 + "buf": "g" }, { - "buf": "seq_lens" + "buf": "beta" }, { - "i64": 25690112 + "buf": "a_c" }, { - "i64": 2048 + "buf": "b_c" }, { - "i64": 512 + "buf": "z_c" }, { - "i64": 25690112 + "f32": 0.0883883461356163 }, { - "i64": 2048 + "f32": 9.999999974752427e-07 }, { - "i64": 512 + "sym": "tokens" }, { - "buf": "cu_seqlens_q" + "i32": 385 }, { - "i32": 1 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l35.o_norm", - "kernel": "gemm8_sgate_add_norm", + "label": "l21.out_norm", + "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 + "buf": "core_attn_out" }, { - "buf": "model.layers.35.self_attn.o_proj.weight" + "buf": "model.layers.21.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.35.post_attention_layernorm.weight_p1" + "buf": "model.layers.21.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -115024,22 +87016,13 @@ { "i32": 6144 }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l35.gate_up_silu", + "label": "l21.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -115049,7 +87032,7 @@ "buf": "x" }, { - "buf": "model.layers.35.mlp.gate_up_proj.weight" + "buf": "model.layers.21.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -115063,7 +87046,7 @@ ] }, { - "label": "l35.down_norm", + "label": "l21.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -115073,13 +87056,13 @@ "buf": "act" }, { - "buf": "model.layers.35.mlp.down_proj.weight" + "buf": "model.layers.21.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.36.input_layernorm.weight_p1" + "buf": "model.layers.22.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -115096,7 +87079,7 @@ ] }, { - "label": "l36.in_proj", + "label": "l22.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -115109,10 +87092,10 @@ "buf": "x" }, { - "buf": "model.layers.36.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.22.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.36.linear_attn.in_proj_ba.weight" + "buf": "model.layers.22.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -115129,21 +87112,25 @@ ] }, { - "label": "l36.conv_update", - "kernel": "conv_update_spec", + "label": "l22.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.36.linear_attn.conv1d.weight" + "buf": "model.layers.22.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 112 + "offset": 72 }, { "buf": "num_accepted_tokens" @@ -115152,47 +87139,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 544 }, { - "i64": 0 - } - ] - }, - { - "label": "l36.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.22.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.22.linear_attn.dt_bias" }, { - "buf": "model.layers.36.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.36.linear_attn.dt_bias" + "buf": "model.layers.22.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -115210,192 +87173,213 @@ "buf": "beta" }, { - "i32": 16384 + "buf": "a_c" }, { - "i32": 96 + "buf": "b_c" }, { - "i32": 96 + "buf": "z_c" }, { - "i32": 2048 + "f32": 0.0883883461356163 }, { - "i32": 2048 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 385 }, { - "i64": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l36.a_copy", - "kernel": "copy_rows", + "label": "l22.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.22.linear_attn.out_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l36.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.22.post_attention_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 6144 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l36.recurrent", - "kernel": "recurrent_spec", + "label": "l22.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "model.layers.36.linear_attn.A_log" + "buf": "act" }, { - "buf": "a_c" + "buf": "x" }, { - "buf": "b_c" + "buf": "model.layers.22.mlp.gate_up_proj.weight" }, { - "buf": "model.layers.36.linear_attn.dt_bias" + "sym": "tokens" }, { - "f32": 1.0 + "i32": 17408 }, { - "f32": 20.0 - }, + "i32": 5120 + } + ] + }, + { + "label": "l22.down_norm", + "kernel": "gemm8_add_norm", + "args": [ { - "buf": "gdn_q" + "buf": "x" }, { - "buf": "gdn_k" + "buf": "act" }, { - "buf": "gdn_v" + "buf": "model.layers.22.mlp.down_proj.weight" }, { - "buf": "core_attn_out" + "buf": "residual" }, { - "state": "gdn", - "offset": 204800 + "buf": "model.layers.23.input_layernorm.weight_p1" }, { - "state": "gdn", - "offset": 204800 + "sym": "tokens" }, { - "buf": "cu_seqlens_q" + "i32": 5120 }, { - "buf": "gdn.spec_slots", - "offset": 864 + "i32": 17408 }, { - "buf": "num_accepted_tokens" + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l23.qkv_proj", + "kernel": "gemm", + "args": [ + { + "buf": "x" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.23.self_attn.qkv_proj.weight" }, { - "i64": 1 + "buf": "qkv" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 14336 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l36.z_copy", - "kernel": "copy_rows", + "label": "l23.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "z_c" + "buf": "q_n" + }, + { + "buf": "qkv" + }, + { + "buf": "model.layers.23.self_attn.q_norm.weight_p1" + }, + { + "i32": 256 + }, + { + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } + }, + { + "i32": 24 }, { - "buf": "qkvz", - "offset": 20480 + "i32": 14336 + }, + { + "i32": 512 }, { "i32": 6144 }, { - "i32": 16384 + "i32": 256 }, { - "i32": 6144 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l36.gated_norm", - "kernel": "gated_norm", + "label": "l23.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.36.linear_attn.norm.weight" - }, - { - "buf": "z_c" + "buf": "k_n" }, { - "i32": 128 + "buf": "qkv", + "offset": 24576 }, { - "i32": 128 + "buf": "model.layers.23.self_attn.k_norm.weight_p1" }, { - "i32": 128 + "i32": 256 }, { "expr": { @@ -115403,181 +87387,199 @@ { "sym": "tokens" }, - 48 + 4 ] } }, { - "f32": 9.999999974752427e-07 + "i32": 4 }, { - "i64": 0 + "i32": 14336 }, { - "i64": 0 + "i32": 256 + }, + { + "i32": 1024 + }, + { + "i32": 256 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l36.out_norm", - "kernel": "gemm8_add_norm", + "label": "l23.rope", + "kernel": "mrope", "args": [ { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.36.linear_attn.out_proj.weight" + "buf": "q_n" }, { - "buf": "residual" + "buf": "k_n" }, { - "buf": "model.layers.36.post_attention_layernorm.weight_p1" + "buf": "cos_g" }, { - "sym": "tokens" + "buf": "sin_g" }, { - "i32": 5120 + "i32": 0 }, { - "i32": 6144 + "i64": 0 }, { - "f32": 9.999999974752427e-07 + "i64": 0 } ] }, { - "label": "l36.gate_up_silu", - "kernel": "gemm8_gateup_silu", + "label": "l23.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "act" + "buf": "k_n" }, { - "buf": "x" + "buf": "qkv", + "offset": 26624 }, { - "buf": "model.layers.36.mlp.gate_up_proj.weight" + "state": "kv", + "offset": 16056320 }, { - "sym": "tokens" + "state": "kv", + "offset": 16056832 }, { - "i32": 17408 + "buf": "slot_mapping" }, { - "i32": 5120 - } - ] - }, - { - "label": "l36.down_norm", - "kernel": "gemm8_add_norm", - "args": [ + "buf": "kv_scales" + }, { - "buf": "x" + "buf": "kv_scales", + "offset": 4 }, { - "buf": "act" + "i64": 1024 }, { - "buf": "model.layers.36.mlp.down_proj.weight" + "i64": 14336 }, { - "buf": "residual" + "i64": 25690112 }, { - "buf": "model.layers.37.input_layernorm.weight_p1" + "i64": 512 }, { - "sym": "tokens" + "i64": 0 }, { - "i32": 5120 + "i64": 0 }, { - "i32": 17408 + "i64": 2048 }, { - "f32": 9.999999974752427e-07 + "i64": 0 + }, + { + "i64": 0 } ] }, { - "label": "l37.in_proj", - "kernel": "gemm8_dual", + "label": "l23.attn", + "kernel": "attn_prefill", "args": [ { - "buf": "qkvz" + "buf": "attn_out" }, { - "buf": "ba" + "buf": "q_n" }, { - "buf": "x" + "state": "kv", + "offset": 16056320 }, { - "buf": "model.layers.37.linear_attn.in_proj_qkvz.weight" + "state": "kv", + "offset": 16056832 }, { - "buf": "model.layers.37.linear_attn.in_proj_ba.weight" + "buf": "block_table" }, { - "sym": "tokens" + "buf": "seq_lens" }, { - "i32": 16384 + "f32": 0.0625 }, { - "i32": 96 + "buf": "kv_scales" }, { - "i32": 5120 - } - ] - }, - { - "label": "l37.conv_update", - "kernel": "conv_update_spec", - "args": [ + "buf": "kv_scales", + "offset": 4 + }, { - "buf": "qkvz" + "f32": 1.0 }, { - "buf": "model.layers.37.linear_attn.conv1d.weight" + "f32": 0.0 }, { - "state": "gdn" + "i64": 8 }, { - "buf": "gdn.spec_line_index", - "offset": 116 + "i64": 6144 }, { - "buf": "num_accepted_tokens" + "i64": 256 }, { - "buf": "cu_seqlens_q" + "i64": 6144 }, { - "buf": "qkvz" + "i64": 256 }, { - "i32": 1 + "i64": 0 }, { - "i32": 385 + "buf": "seq_lens" }, { - "i64": 16384 + "i64": 25690112 }, { - "i64": 16384 + "i64": 2048 + }, + { + "i64": 512 + }, + { + "i64": 25690112 + }, + { + "i64": 2048 + }, + { + "i64": 512 + }, + { + "buf": "cu_seqlens_q" + }, + { + "i32": 1 }, { "i64": 0 @@ -115588,251 +87590,236 @@ ] }, { - "label": "l37.post_conv", - "kernel": "post_conv", + "label": "l23.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "qkvz" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "attn_out" }, { - "buf": "ba" + "buf": "qkv", + "offset": 512 }, { - "buf": "model.layers.37.linear_attn.A_log" + "buf": "model.layers.23.self_attn.o_proj.weight" }, { - "buf": "model.layers.37.linear_attn.dt_bias" + "buf": "residual" }, { - "buf": "gdn_q" + "buf": "model.layers.23.post_attention_layernorm.weight_p1" }, { - "buf": "gdn_k" + "sym": "tokens" }, { - "buf": "gdn_v" + "i32": 5120 }, { - "buf": "g" + "i32": 6144 }, { - "buf": "beta" + "i32": 256 }, { - "i32": 16384 + "i32": 14336 }, { - "i32": 96 + "i32": 512 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l23.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ { - "i32": 2048 + "buf": "act" }, { - "i32": 2048 + "buf": "x" }, { - "i32": 6144 + "buf": "model.layers.23.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l37.a_copy", - "kernel": "copy_rows", + "label": "l23.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.23.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l37.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.24.input_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l37.recurrent", - "kernel": "recurrent_spec", + "label": "l24.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.37.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.37.linear_attn.dt_bias" + "buf": "model.layers.24.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.24.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l24.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.24.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 76 }, { - "buf": "gdn.spec_slots", - "offset": 896 + "buf": "num_accepted_tokens" }, { - "buf": "num_accepted_tokens" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 576 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.24.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.24.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l37.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.24.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l37.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.37.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l37.out_norm", + "label": "l24.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -115842,13 +87829,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.37.linear_attn.out_proj.weight" + "buf": "model.layers.24.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.37.post_attention_layernorm.weight_p1" + "buf": "model.layers.24.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -115865,7 +87852,7 @@ ] }, { - "label": "l37.gate_up_silu", + "label": "l24.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -115875,7 +87862,7 @@ "buf": "x" }, { - "buf": "model.layers.37.mlp.gate_up_proj.weight" + "buf": "model.layers.24.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -115889,7 +87876,7 @@ ] }, { - "label": "l37.down_norm", + "label": "l24.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -115899,13 +87886,13 @@ "buf": "act" }, { - "buf": "model.layers.37.mlp.down_proj.weight" + "buf": "model.layers.24.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.38.input_layernorm.weight_p1" + "buf": "model.layers.25.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -115922,7 +87909,7 @@ ] }, { - "label": "l38.in_proj", + "label": "l25.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -115935,10 +87922,10 @@ "buf": "x" }, { - "buf": "model.layers.38.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.25.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.38.linear_attn.in_proj_ba.weight" + "buf": "model.layers.25.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -115955,21 +87942,25 @@ ] }, { - "label": "l38.conv_update", - "kernel": "conv_update_spec", + "label": "l25.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.38.linear_attn.conv1d.weight" + "buf": "model.layers.25.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 120 + "offset": 80 }, { "buf": "num_accepted_tokens" @@ -115978,274 +87969,289 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 608 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.25.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.25.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.25.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l38.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.38.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.38.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l25.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" }, { - "i32": 6144 + "buf": "model.layers.25.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.25.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l38.a_copy", - "kernel": "copy_rows", + "label": "l25.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" + }, + { + "buf": "model.layers.25.mlp.gate_up_proj.weight" }, { - "i32": 48 + "sym": "tokens" }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l38.b_copy", - "kernel": "copy_rows", + "label": "l25.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "act" + }, + { + "buf": "model.layers.25.mlp.down_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.26.input_layernorm.weight_p1" + }, + { + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l38.recurrent", - "kernel": "recurrent_spec", + "label": "l26.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.38.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.38.linear_attn.dt_bias" + "buf": "model.layers.26.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.26.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l26.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.26.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 84 }, { - "buf": "gdn.spec_slots", - "offset": 928 + "buf": "num_accepted_tokens" }, { - "buf": "num_accepted_tokens" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 640 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.26.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.26.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l38.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.26.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l38.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.38.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l38.out_norm", + "label": "l26.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -116255,13 +88261,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.38.linear_attn.out_proj.weight" + "buf": "model.layers.26.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.38.post_attention_layernorm.weight_p1" + "buf": "model.layers.26.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -116278,7 +88284,7 @@ ] }, { - "label": "l38.gate_up_silu", + "label": "l26.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -116288,7 +88294,7 @@ "buf": "x" }, { - "buf": "model.layers.38.mlp.gate_up_proj.weight" + "buf": "model.layers.26.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -116302,7 +88308,7 @@ ] }, { - "label": "l38.down_norm", + "label": "l26.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -116312,13 +88318,13 @@ "buf": "act" }, { - "buf": "model.layers.38.mlp.down_proj.weight" + "buf": "model.layers.26.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.39.input_layernorm.weight_p1" + "buf": "model.layers.27.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -116335,14 +88341,14 @@ ] }, { - "label": "l39.qkv_proj", + "label": "l27.qkv_proj", "kernel": "gemm", "args": [ { "buf": "x" }, { - "buf": "model.layers.39.self_attn.qkv_proj.weight" + "buf": "model.layers.27.self_attn.qkv_proj.weight" }, { "buf": "qkv" @@ -116359,7 +88365,7 @@ ] }, { - "label": "l39.q_norm", + "label": "l27.q_norm", "kernel": "gemma_norm_qhead", "args": [ { @@ -116369,7 +88375,7 @@ "buf": "qkv" }, { - "buf": "model.layers.39.self_attn.q_norm.weight_p1" + "buf": "model.layers.27.self_attn.q_norm.weight_p1" }, { "i32": 256 @@ -116405,7 +88411,7 @@ ] }, { - "label": "l39.k_norm", + "label": "l27.k_norm", "kernel": "gemma_norm_khead", "args": [ { @@ -116416,7 +88422,7 @@ "offset": 24576 }, { - "buf": "model.layers.39.self_attn.k_norm.weight_p1" + "buf": "model.layers.27.self_attn.k_norm.weight_p1" }, { "i32": 256 @@ -116452,7 +88458,7 @@ ] }, { - "label": "l39.rope", + "label": "l27.rope", "kernel": "mrope", "args": [ { @@ -116479,7 +88485,7 @@ ] }, { - "label": "l39.kv_write", + "label": "l27.kv_write", "kernel": "reshape_and_cache", "args": [ { @@ -116491,11 +88497,11 @@ }, { "state": "kv", - "offset": 28901376 + "offset": 19267584 }, { "state": "kv", - "offset": 28901888 + "offset": 19268096 }, { "buf": "slot_mapping" @@ -116537,7 +88543,7 @@ ] }, { - "label": "l39.attn", + "label": "l27.attn", "kernel": "attn_prefill", "args": [ { @@ -116548,11 +88554,11 @@ }, { "state": "kv", - "offset": 28901376 + "offset": 19267584 }, { "state": "kv", - "offset": 28901888 + "offset": 19268096 }, { "buf": "block_table" @@ -116630,7 +88636,7 @@ ] }, { - "label": "l39.o_norm", + "label": "l27.o_norm", "kernel": "gemm8_sgate_add_norm", "args": [ { @@ -116644,13 +88650,13 @@ "offset": 512 }, { - "buf": "model.layers.39.self_attn.o_proj.weight" + "buf": "model.layers.27.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.39.post_attention_layernorm.weight_p1" + "buf": "model.layers.27.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -116676,7 +88682,7 @@ ] }, { - "label": "l39.gate_up_silu", + "label": "l27.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -116686,7 +88692,7 @@ "buf": "x" }, { - "buf": "model.layers.39.mlp.gate_up_proj.weight" + "buf": "model.layers.27.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -116700,7 +88706,7 @@ ] }, { - "label": "l39.down_norm", + "label": "l27.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -116710,13 +88716,13 @@ "buf": "act" }, { - "buf": "model.layers.39.mlp.down_proj.weight" + "buf": "model.layers.27.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.40.input_layernorm.weight_p1" + "buf": "model.layers.28.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -116733,7 +88739,7 @@ ] }, { - "label": "l40.in_proj", + "label": "l28.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -116746,10 +88752,10 @@ "buf": "x" }, { - "buf": "model.layers.40.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.28.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.40.linear_attn.in_proj_ba.weight" + "buf": "model.layers.28.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -116766,21 +88772,25 @@ ] }, { - "label": "l40.conv_update", - "kernel": "conv_update_spec", + "label": "l28.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.40.linear_attn.conv1d.weight" + "buf": "model.layers.28.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 124 + "offset": 88 }, { "buf": "num_accepted_tokens" @@ -116789,47 +88799,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 672 }, { - "i64": 0 - } - ] - }, - { - "label": "l40.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.28.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.28.linear_attn.dt_bias" }, { - "buf": "model.layers.40.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.40.linear_attn.dt_bias" + "buf": "model.layers.28.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -116846,85 +88832,6 @@ { "buf": "beta" }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l40.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l40.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l40.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.40.linear_attn.A_log" - }, { "buf": "a_c" }, @@ -116932,131 +88839,33 @@ "buf": "b_c" }, { - "buf": "model.layers.40.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 960 - }, - { - "buf": "num_accepted_tokens" + "buf": "z_c" }, { "f32": 0.0883883461356163 }, { - "i64": 1 + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l40.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l40.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.40.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l40.out_norm", + "label": "l28.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -117066,13 +88875,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.40.linear_attn.out_proj.weight" + "buf": "model.layers.28.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.40.post_attention_layernorm.weight_p1" + "buf": "model.layers.28.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -117089,7 +88898,7 @@ ] }, { - "label": "l40.gate_up_silu", + "label": "l28.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -117099,7 +88908,7 @@ "buf": "x" }, { - "buf": "model.layers.40.mlp.gate_up_proj.weight" + "buf": "model.layers.28.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -117113,7 +88922,7 @@ ] }, { - "label": "l40.down_norm", + "label": "l28.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -117123,13 +88932,13 @@ "buf": "act" }, { - "buf": "model.layers.40.mlp.down_proj.weight" + "buf": "model.layers.28.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.41.input_layernorm.weight_p1" + "buf": "model.layers.29.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -117146,7 +88955,7 @@ ] }, { - "label": "l41.in_proj", + "label": "l29.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -117159,10 +88968,10 @@ "buf": "x" }, { - "buf": "model.layers.41.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.29.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.41.linear_attn.in_proj_ba.weight" + "buf": "model.layers.29.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -117179,21 +88988,25 @@ ] }, { - "label": "l41.conv_update", - "kernel": "conv_update_spec", + "label": "l29.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.41.linear_attn.conv1d.weight" + "buf": "model.layers.29.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 128 + "offset": 92 }, { "buf": "num_accepted_tokens" @@ -117202,274 +89015,289 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 704 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.29.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.29.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.29.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l41.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.41.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.41.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l29.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" + }, + { + "buf": "core_attn_out" + }, + { + "buf": "model.layers.29.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.29.post_attention_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l29.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ + { + "buf": "act" }, { - "i32": 2048 + "buf": "x" }, { - "i32": 6144 + "buf": "model.layers.29.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l41.a_copy", - "kernel": "copy_rows", + "label": "l29.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.29.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l41.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.30.input_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l41.recurrent", - "kernel": "recurrent_spec", + "label": "l30.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.41.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.41.linear_attn.dt_bias" + "buf": "model.layers.30.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.30.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l30.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.30.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 96 }, { - "buf": "gdn.spec_slots", - "offset": 992 + "buf": "num_accepted_tokens" }, { - "buf": "num_accepted_tokens" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 736 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.30.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.30.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l41.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.30.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l41.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.41.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l41.out_norm", + "label": "l30.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -117479,13 +89307,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.41.linear_attn.out_proj.weight" + "buf": "model.layers.30.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.41.post_attention_layernorm.weight_p1" + "buf": "model.layers.30.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -117502,7 +89330,7 @@ ] }, { - "label": "l41.gate_up_silu", + "label": "l30.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -117512,7 +89340,7 @@ "buf": "x" }, { - "buf": "model.layers.41.mlp.gate_up_proj.weight" + "buf": "model.layers.30.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -117526,7 +89354,7 @@ ] }, { - "label": "l41.down_norm", + "label": "l30.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -117536,13 +89364,13 @@ "buf": "act" }, { - "buf": "model.layers.41.mlp.down_proj.weight" + "buf": "model.layers.30.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.42.input_layernorm.weight_p1" + "buf": "model.layers.31.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -117559,32 +89387,23 @@ ] }, { - "label": "l42.in_proj", - "kernel": "gemm8_dual", + "label": "l31.qkv_proj", + "kernel": "gemm", "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, { "buf": "x" }, { - "buf": "model.layers.42.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.31.self_attn.qkv_proj.weight" }, { - "buf": "model.layers.42.linear_attn.in_proj_ba.weight" + "buf": "qkv" }, { "sym": "tokens" }, { - "i32": 16384 - }, - { - "i32": 96 + "i32": 14336 }, { "i32": 5120 @@ -117592,106 +89411,116 @@ ] }, { - "label": "l42.conv_update", - "kernel": "conv_update_spec", + "label": "l31.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "model.layers.42.linear_attn.conv1d.weight" - }, - { - "state": "gdn" + "buf": "q_n" }, { - "buf": "gdn.spec_line_index", - "offset": 132 + "buf": "qkv" }, { - "buf": "num_accepted_tokens" + "buf": "model.layers.31.self_attn.q_norm.weight_p1" }, { - "buf": "cu_seqlens_q" + "i32": 256 }, { - "buf": "qkvz" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i32": 1 + "i32": 24 }, { - "i32": 385 + "i32": 14336 }, { - "i64": 16384 + "i32": 512 }, { - "i64": 16384 + "i32": 6144 }, { - "i64": 0 + "i32": 256 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l42.post_conv", - "kernel": "post_conv", + "label": "l31.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 + "buf": "k_n" }, { - "buf": "ba" + "buf": "qkv", + "offset": 24576 }, { - "buf": "model.layers.42.linear_attn.A_log" + "buf": "model.layers.31.self_attn.k_norm.weight_p1" }, { - "buf": "model.layers.42.linear_attn.dt_bias" + "i32": 256 }, { - "buf": "gdn_q" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { - "buf": "gdn_k" + "i32": 4 }, { - "buf": "gdn_v" + "i32": 14336 }, { - "buf": "g" + "i32": 256 }, { - "buf": "beta" + "i32": 1024 }, { - "i32": 16384 + "i32": 256 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l31.rope", + "kernel": "mrope", + "args": [ { - "i32": 96 + "buf": "q_n" }, { - "i32": 2048 + "buf": "k_n" }, { - "i32": 2048 + "buf": "cos_g" }, { - "i32": 6144 + "buf": "sin_g" }, { - "sym": "tokens" + "i32": 0 }, { "i64": 0 @@ -117702,176 +89531,147 @@ ] }, { - "label": "l42.a_copy", - "kernel": "copy_rows", + "label": "l31.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "a_c" + "buf": "k_n" }, { - "buf": "ba", - "offset": 96 + "buf": "qkv", + "offset": 26624 }, { - "i32": 48 + "state": "kv", + "offset": 22478848 }, { - "i32": 96 + "state": "kv", + "offset": 22479360 }, { - "i32": 48 - } - ] - }, - { - "label": "l42.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "slot_mapping" }, { - "buf": "ba" + "buf": "kv_scales" }, { - "i32": 48 + "buf": "kv_scales", + "offset": 4 }, { - "i32": 96 + "i64": 1024 }, { - "i32": 48 - } - ] - }, - { - "label": "l42.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.42.linear_attn.A_log" + "i64": 14336 }, { - "buf": "a_c" + "i64": 25690112 }, { - "buf": "b_c" + "i64": 512 }, { - "buf": "model.layers.42.linear_attn.dt_bias" + "i64": 0 }, { - "f32": 1.0 + "i64": 0 }, { - "f32": 20.0 + "i64": 2048 }, { - "buf": "gdn_q" + "i64": 0 }, { - "buf": "gdn_k" - }, + "i64": 0 + } + ] + }, + { + "label": "l31.attn", + "kernel": "attn_prefill", + "args": [ { - "buf": "gdn_v" + "buf": "attn_out" }, { - "buf": "core_attn_out" + "buf": "q_n" }, { - "state": "gdn", - "offset": 204800 + "state": "kv", + "offset": 22478848 }, { - "state": "gdn", - "offset": 204800 + "state": "kv", + "offset": 22479360 }, { - "buf": "cu_seqlens_q" + "buf": "block_table" }, { - "buf": "gdn.spec_slots", - "offset": 1024 + "buf": "seq_lens" }, { - "buf": "num_accepted_tokens" + "f32": 0.0625 }, { - "f32": 0.0883883461356163 + "buf": "kv_scales" }, { - "i64": 1 + "buf": "kv_scales", + "offset": 4 }, { - "sym": "tokens" + "f32": 1.0 }, { - "i64": 0 + "f32": 0.0 }, { - "i64": 0 - } - ] - }, - { - "label": "l42.z_copy", - "kernel": "copy_rows", - "args": [ + "i64": 8 + }, { - "buf": "z_c" + "i64": 6144 }, { - "buf": "qkvz", - "offset": 20480 + "i64": 256 }, { - "i32": 6144 + "i64": 6144 }, { - "i32": 16384 + "i64": 256 }, { - "i32": 6144 - } - ] - }, - { - "label": "l42.gated_norm", - "kernel": "gated_norm", - "args": [ + "i64": 0 + }, { - "buf": "core_attn_out" + "buf": "seq_lens" }, { - "buf": "core_attn_out" + "i64": 25690112 }, { - "buf": "model.layers.42.linear_attn.norm.weight" + "i64": 2048 }, { - "buf": "z_c" + "i64": 512 }, { - "i32": 128 + "i64": 25690112 }, { - "i32": 128 + "i64": 2048 }, { - "i32": 128 + "i64": 512 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "cu_seqlens_q" }, { - "f32": 9.999999974752427e-07 + "i32": 1 }, { "i64": 0 @@ -117882,23 +89682,27 @@ ] }, { - "label": "l42.out_norm", - "kernel": "gemm8_add_norm", + "label": "l31.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { "buf": "x" }, { - "buf": "core_attn_out" + "buf": "attn_out" }, { - "buf": "model.layers.42.linear_attn.out_proj.weight" + "buf": "qkv", + "offset": 512 + }, + { + "buf": "model.layers.31.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.42.post_attention_layernorm.weight_p1" + "buf": "model.layers.31.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -117909,13 +89713,22 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l42.gate_up_silu", + "label": "l31.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -117925,7 +89738,7 @@ "buf": "x" }, { - "buf": "model.layers.42.mlp.gate_up_proj.weight" + "buf": "model.layers.31.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -117939,7 +89752,7 @@ ] }, { - "label": "l42.down_norm", + "label": "l31.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -117949,13 +89762,13 @@ "buf": "act" }, { - "buf": "model.layers.42.mlp.down_proj.weight" + "buf": "model.layers.31.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.43.input_layernorm.weight_p1" + "buf": "model.layers.32.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -117972,23 +89785,32 @@ ] }, { - "label": "l43.qkv_proj", - "kernel": "gemm", + "label": "l32.in_proj", + "kernel": "gemm8_dual", "args": [ + { + "buf": "qkvz" + }, + { + "buf": "ba" + }, { "buf": "x" }, { - "buf": "model.layers.43.self_attn.qkv_proj.weight" + "buf": "model.layers.32.linear_attn.in_proj_qkvz.weight" }, { - "buf": "qkv" + "buf": "model.layers.32.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" }, { - "i32": 14336 + "i32": 16384 + }, + { + "i32": 96 }, { "i32": 5120 @@ -117996,92 +89818,125 @@ ] }, { - "label": "l43.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l32.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "q_n" + "buf": "qkvz" + }, + { + "buf": "model.layers.32.linear_attn.conv1d.weight" + }, + { + "state": "gdn" + }, + { + "state": "gdn", + "offset": 204800 + }, + { + "buf": "gdn.spec_line_index", + "offset": 100 + }, + { + "buf": "num_accepted_tokens" + }, + { + "buf": "cu_seqlens_q" + }, + { + "buf": "gdn.spec_slots", + "offset": 768 + }, + { + "buf": "ba" + }, + { + "buf": "model.layers.32.linear_attn.A_log" + }, + { + "buf": "model.layers.32.linear_attn.dt_bias" + }, + { + "buf": "core_attn_out" + }, + { + "buf": "model.layers.32.linear_attn.norm.weight" + }, + { + "buf": "gdn_q" + }, + { + "buf": "gdn_k" + }, + { + "buf": "gdn_v" + }, + { + "buf": "g" + }, + { + "buf": "beta" }, { - "buf": "qkv" + "buf": "a_c" }, { - "buf": "model.layers.43.self_attn.q_norm.weight_p1" + "buf": "b_c" }, { - "i32": 256 + "buf": "z_c" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } + "f32": 0.0883883461356163 }, { - "i32": 24 + "f32": 9.999999974752427e-07 }, { - "i32": 14336 + "sym": "tokens" }, { - "i32": 512 + "i32": 385 }, { - "i32": 6144 + "i32": 1703936 }, { - "i32": 256 + "i32": 10 }, { - "f32": 9.999999974752427e-07 + "i32": 851968 } ] }, { - "label": "l43.k_norm", - "kernel": "gemma_norm_khead", + "label": "l32.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.43.self_attn.k_norm.weight_p1" + "buf": "x" }, { - "i32": 256 + "buf": "core_attn_out" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } + "buf": "model.layers.32.linear_attn.out_proj.weight" }, { - "i32": 4 + "buf": "residual" }, { - "i32": 14336 + "buf": "model.layers.32.post_attention_layernorm.weight_p1" }, { - "i32": 256 + "sym": "tokens" }, { - "i32": 1024 + "i32": 5120 }, { - "i32": 256 + "i32": 6144 }, { "f32": 9.999999974752427e-07 @@ -118089,205 +89944,206 @@ ] }, { - "label": "l43.rope", - "kernel": "mrope", + "label": "l32.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "q_n" - }, - { - "buf": "k_n" + "buf": "act" }, { - "buf": "cos_g" + "buf": "x" }, { - "buf": "sin_g" + "buf": "model.layers.32.mlp.gate_up_proj.weight" }, { - "i32": 0 + "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l43.kv_write", - "kernel": "reshape_and_cache", + "label": "l32.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "k_n" + "buf": "x" }, { - "buf": "qkv", - "offset": 26624 + "buf": "act" }, { - "state": "kv", - "offset": 32112640 + "buf": "model.layers.32.mlp.down_proj.weight" }, { - "state": "kv", - "offset": 32113152 + "buf": "residual" }, { - "buf": "slot_mapping" + "buf": "model.layers.33.input_layernorm.weight_p1" }, { - "buf": "kv_scales" + "sym": "tokens" }, { - "buf": "kv_scales", - "offset": 4 + "i32": 5120 }, { - "i64": 1024 + "i32": 17408 }, { - "i64": 14336 + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l33.in_proj", + "kernel": "gemm8_dual", + "args": [ + { + "buf": "qkvz" }, { - "i64": 25690112 + "buf": "ba" }, { - "i64": 512 + "buf": "x" }, { - "i64": 0 + "buf": "model.layers.33.linear_attn.in_proj_qkvz.weight" }, { - "i64": 0 + "buf": "model.layers.33.linear_attn.in_proj_ba.weight" }, { - "i64": 2048 + "sym": "tokens" }, { - "i64": 0 + "i32": 16384 }, { - "i64": 0 + "i32": 96 + }, + { + "i32": 5120 } ] }, { - "label": "l43.attn", - "kernel": "attn_prefill", + "label": "l33.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "attn_out" + "buf": "qkvz" }, { - "buf": "q_n" + "buf": "model.layers.33.linear_attn.conv1d.weight" }, { - "state": "kv", - "offset": 32112640 + "state": "gdn" }, { - "state": "kv", - "offset": 32113152 + "state": "gdn", + "offset": 204800 }, { - "buf": "block_table" + "buf": "gdn.spec_line_index", + "offset": 104 }, { - "buf": "seq_lens" + "buf": "num_accepted_tokens" }, { - "f32": 0.0625 + "buf": "cu_seqlens_q" }, { - "buf": "kv_scales" + "buf": "gdn.spec_slots", + "offset": 800 }, { - "buf": "kv_scales", - "offset": 4 + "buf": "ba" }, { - "f32": 1.0 + "buf": "model.layers.33.linear_attn.A_log" }, { - "f32": 0.0 + "buf": "model.layers.33.linear_attn.dt_bias" }, { - "i64": 8 + "buf": "core_attn_out" }, { - "i64": 6144 + "buf": "model.layers.33.linear_attn.norm.weight" }, { - "i64": 256 + "buf": "gdn_q" }, { - "i64": 6144 + "buf": "gdn_k" }, { - "i64": 256 + "buf": "gdn_v" }, { - "i64": 0 + "buf": "g" }, { - "buf": "seq_lens" + "buf": "beta" }, { - "i64": 25690112 + "buf": "a_c" }, { - "i64": 2048 + "buf": "b_c" }, { - "i64": 512 + "buf": "z_c" }, { - "i64": 25690112 + "f32": 0.0883883461356163 }, { - "i64": 2048 + "f32": 9.999999974752427e-07 }, { - "i64": 512 + "sym": "tokens" }, { - "buf": "cu_seqlens_q" + "i32": 385 }, { - "i32": 1 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l43.o_norm", - "kernel": "gemm8_sgate_add_norm", + "label": "l33.out_norm", + "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 + "buf": "core_attn_out" }, { - "buf": "model.layers.43.self_attn.o_proj.weight" + "buf": "model.layers.33.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.43.post_attention_layernorm.weight_p1" + "buf": "model.layers.33.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -118298,22 +90154,13 @@ { "i32": 6144 }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l43.gate_up_silu", + "label": "l33.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -118323,7 +90170,7 @@ "buf": "x" }, { - "buf": "model.layers.43.mlp.gate_up_proj.weight" + "buf": "model.layers.33.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -118337,7 +90184,7 @@ ] }, { - "label": "l43.down_norm", + "label": "l33.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -118347,13 +90194,13 @@ "buf": "act" }, { - "buf": "model.layers.43.mlp.down_proj.weight" + "buf": "model.layers.33.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.44.input_layernorm.weight_p1" + "buf": "model.layers.34.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -118370,7 +90217,31 @@ ] }, { - "label": "l44.in_proj", + "label": "l33.fc_tap", + "kernel": "gemm_acc", + "args": [ + { + "buf": "residual" + }, + { + "buf": "draft.fc.2.weight" + }, + { + "buf": "fc_out" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 5120 + } + ] + }, + { + "label": "l34.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -118383,10 +90254,10 @@ "buf": "x" }, { - "buf": "model.layers.44.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.34.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.44.linear_attn.in_proj_ba.weight" + "buf": "model.layers.34.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -118403,21 +90274,25 @@ ] }, { - "label": "l44.conv_update", - "kernel": "conv_update_spec", + "label": "l34.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.44.linear_attn.conv1d.weight" + "buf": "model.layers.34.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 136 + "offset": 108 }, { "buf": "num_accepted_tokens" @@ -118426,47 +90301,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 832 }, { - "i64": 0 - } - ] - }, - { - "label": "l44.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.34.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.34.linear_attn.dt_bias" }, { - "buf": "model.layers.44.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.44.linear_attn.dt_bias" + "buf": "model.layers.34.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -118484,192 +90335,213 @@ "buf": "beta" }, { - "i32": 16384 + "buf": "a_c" }, { - "i32": 96 + "buf": "b_c" }, { - "i32": 96 + "buf": "z_c" }, { - "i32": 2048 + "f32": 0.0883883461356163 }, { - "i32": 2048 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 385 }, { - "i64": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l44.a_copy", - "kernel": "copy_rows", + "label": "l34.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.34.linear_attn.out_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l44.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.34.post_attention_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 6144 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l44.recurrent", - "kernel": "recurrent_spec", + "label": "l34.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "model.layers.44.linear_attn.A_log" + "buf": "act" }, { - "buf": "a_c" + "buf": "x" }, { - "buf": "b_c" + "buf": "model.layers.34.mlp.gate_up_proj.weight" }, { - "buf": "model.layers.44.linear_attn.dt_bias" + "sym": "tokens" }, { - "f32": 1.0 + "i32": 17408 }, { - "f32": 20.0 - }, + "i32": 5120 + } + ] + }, + { + "label": "l34.down_norm", + "kernel": "gemm8_add_norm", + "args": [ { - "buf": "gdn_q" + "buf": "x" }, { - "buf": "gdn_k" + "buf": "act" }, { - "buf": "gdn_v" + "buf": "model.layers.34.mlp.down_proj.weight" }, { - "buf": "core_attn_out" + "buf": "residual" }, { - "state": "gdn", - "offset": 204800 + "buf": "model.layers.35.input_layernorm.weight_p1" }, { - "state": "gdn", - "offset": 204800 + "sym": "tokens" }, { - "buf": "cu_seqlens_q" + "i32": 5120 }, { - "buf": "gdn.spec_slots", - "offset": 1056 + "i32": 17408 }, { - "buf": "num_accepted_tokens" + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l35.qkv_proj", + "kernel": "gemm", + "args": [ + { + "buf": "x" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.35.self_attn.qkv_proj.weight" }, { - "i64": 1 + "buf": "qkv" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 14336 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l44.z_copy", - "kernel": "copy_rows", + "label": "l35.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "z_c" + "buf": "q_n" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "qkv" }, { - "i32": 6144 + "buf": "model.layers.35.self_attn.q_norm.weight_p1" }, { - "i32": 16384 + "i32": 256 }, { - "i32": 6144 - } - ] - }, - { - "label": "l44.gated_norm", - "kernel": "gated_norm", - "args": [ + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } + }, { - "buf": "core_attn_out" + "i32": 24 }, { - "buf": "core_attn_out" + "i32": 14336 }, { - "buf": "model.layers.44.linear_attn.norm.weight" + "i32": 512 }, { - "buf": "z_c" + "i32": 6144 }, { - "i32": 128 + "i32": 256 }, { - "i32": 128 + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l35.k_norm", + "kernel": "gemma_norm_khead", + "args": [ + { + "buf": "k_n" }, { - "i32": 128 + "buf": "qkv", + "offset": 24576 + }, + { + "buf": "model.layers.35.self_attn.k_norm.weight_p1" + }, + { + "i32": 256 }, { "expr": { @@ -118677,12 +90549,48 @@ { "sym": "tokens" }, - 48 + 4 ] } }, + { + "i32": 4 + }, + { + "i32": 14336 + }, + { + "i32": 256 + }, + { + "i32": 1024 + }, + { + "i32": 256 + }, { "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l35.rope", + "kernel": "mrope", + "args": [ + { + "buf": "q_n" + }, + { + "buf": "k_n" + }, + { + "buf": "cos_g" + }, + { + "buf": "sin_g" + }, + { + "i32": 0 }, { "i64": 0 @@ -118693,165 +90601,147 @@ ] }, { - "label": "l44.out_norm", - "kernel": "gemm8_add_norm", + "label": "l35.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "x" + "buf": "k_n" }, { - "buf": "core_attn_out" + "buf": "qkv", + "offset": 26624 + }, + { + "state": "kv", + "offset": 25690112 }, { - "buf": "model.layers.44.linear_attn.out_proj.weight" + "state": "kv", + "offset": 25690624 }, { - "buf": "residual" + "buf": "slot_mapping" }, { - "buf": "model.layers.44.post_attention_layernorm.weight_p1" + "buf": "kv_scales" }, { - "sym": "tokens" + "buf": "kv_scales", + "offset": 4 }, { - "i32": 5120 + "i64": 1024 }, { - "i32": 6144 + "i64": 14336 }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l44.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ + "i64": 25690112 + }, { - "buf": "act" + "i64": 512 }, { - "buf": "x" + "i64": 0 }, { - "buf": "model.layers.44.mlp.gate_up_proj.weight" + "i64": 0 }, { - "sym": "tokens" + "i64": 2048 }, { - "i32": 17408 + "i64": 0 }, { - "i32": 5120 + "i64": 0 } ] }, { - "label": "l44.down_norm", - "kernel": "gemm8_add_norm", + "label": "l35.attn", + "kernel": "attn_prefill", "args": [ { - "buf": "x" - }, - { - "buf": "act" + "buf": "attn_out" }, { - "buf": "model.layers.44.mlp.down_proj.weight" + "buf": "q_n" }, { - "buf": "residual" + "state": "kv", + "offset": 25690112 }, { - "buf": "model.layers.45.input_layernorm.weight_p1" + "state": "kv", + "offset": 25690624 }, { - "sym": "tokens" + "buf": "block_table" }, { - "i32": 5120 + "buf": "seq_lens" }, { - "i32": 17408 + "f32": 0.0625 }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l45.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" + "buf": "kv_scales" }, { - "buf": "ba" + "buf": "kv_scales", + "offset": 4 }, { - "buf": "x" + "f32": 1.0 }, { - "buf": "model.layers.45.linear_attn.in_proj_qkvz.weight" + "f32": 0.0 }, { - "buf": "model.layers.45.linear_attn.in_proj_ba.weight" + "i64": 8 }, { - "sym": "tokens" + "i64": 6144 }, { - "i32": 16384 + "i64": 256 }, { - "i32": 96 + "i64": 6144 }, { - "i32": 5120 - } - ] - }, - { - "label": "l45.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" + "i64": 256 }, { - "buf": "model.layers.45.linear_attn.conv1d.weight" + "i64": 0 }, { - "state": "gdn" + "buf": "seq_lens" }, { - "buf": "gdn.spec_line_index", - "offset": 140 + "i64": 25690112 }, { - "buf": "num_accepted_tokens" + "i64": 2048 }, { - "buf": "cu_seqlens_q" + "i64": 512 }, { - "buf": "qkvz" + "i64": 25690112 }, { - "i32": 1 + "i64": 2048 }, { - "i32": 385 + "i64": 512 }, { - "i64": 16384 + "buf": "cu_seqlens_q" }, { - "i64": 16384 + "i32": 1 }, { "i64": 0 @@ -118862,251 +90752,236 @@ ] }, { - "label": "l45.post_conv", - "kernel": "post_conv", + "label": "l35.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "qkvz" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "attn_out" }, { - "buf": "ba" + "buf": "qkv", + "offset": 512 }, { - "buf": "model.layers.45.linear_attn.A_log" + "buf": "model.layers.35.self_attn.o_proj.weight" }, { - "buf": "model.layers.45.linear_attn.dt_bias" + "buf": "residual" }, { - "buf": "gdn_q" + "buf": "model.layers.35.post_attention_layernorm.weight_p1" }, { - "buf": "gdn_k" + "sym": "tokens" }, { - "buf": "gdn_v" + "i32": 5120 }, { - "buf": "g" + "i32": 6144 }, { - "buf": "beta" + "i32": 256 }, { - "i32": 16384 + "i32": 14336 }, { - "i32": 96 + "i32": 512 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l35.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ { - "i32": 2048 + "buf": "act" }, { - "i32": 2048 + "buf": "x" }, { - "i32": 6144 + "buf": "model.layers.35.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l45.a_copy", - "kernel": "copy_rows", + "label": "l35.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.35.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l45.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.36.input_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l45.recurrent", - "kernel": "recurrent_spec", + "label": "l36.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.45.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.45.linear_attn.dt_bias" + "buf": "model.layers.36.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.36.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l36.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.36.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 112 }, { - "buf": "gdn.spec_slots", - "offset": 1088 + "buf": "num_accepted_tokens" }, { - "buf": "num_accepted_tokens" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 864 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.36.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.36.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l45.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.36.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l45.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.45.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l45.out_norm", + "label": "l36.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -119116,13 +90991,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.45.linear_attn.out_proj.weight" + "buf": "model.layers.36.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.45.post_attention_layernorm.weight_p1" + "buf": "model.layers.36.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -119139,7 +91014,7 @@ ] }, { - "label": "l45.gate_up_silu", + "label": "l36.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -119149,7 +91024,7 @@ "buf": "x" }, { - "buf": "model.layers.45.mlp.gate_up_proj.weight" + "buf": "model.layers.36.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -119163,7 +91038,7 @@ ] }, { - "label": "l45.down_norm", + "label": "l36.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -119173,13 +91048,13 @@ "buf": "act" }, { - "buf": "model.layers.45.mlp.down_proj.weight" + "buf": "model.layers.36.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.46.input_layernorm.weight_p1" + "buf": "model.layers.37.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -119196,7 +91071,7 @@ ] }, { - "label": "l46.in_proj", + "label": "l37.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -119209,10 +91084,10 @@ "buf": "x" }, { - "buf": "model.layers.46.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.37.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.46.linear_attn.in_proj_ba.weight" + "buf": "model.layers.37.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -119229,21 +91104,25 @@ ] }, { - "label": "l46.conv_update", - "kernel": "conv_update_spec", + "label": "l37.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.46.linear_attn.conv1d.weight" + "buf": "model.layers.37.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 144 + "offset": 116 }, { "buf": "num_accepted_tokens" @@ -119252,274 +91131,289 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 896 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.37.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.37.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.37.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l46.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.46.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.46.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l37.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" }, { - "i32": 6144 + "buf": "model.layers.37.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.37.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l46.a_copy", - "kernel": "copy_rows", + "label": "l37.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" }, { - "i32": 48 + "buf": "model.layers.37.mlp.gate_up_proj.weight" }, { - "i32": 96 + "sym": "tokens" + }, + { + "i32": 17408 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l46.b_copy", - "kernel": "copy_rows", + "label": "l37.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.37.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" + }, + { + "buf": "model.layers.38.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l46.recurrent", - "kernel": "recurrent_spec", + "label": "l38.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.46.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.46.linear_attn.dt_bias" + "buf": "model.layers.38.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.38.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l38.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.38.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 120 }, { - "buf": "gdn.spec_slots", - "offset": 1120 + "buf": "num_accepted_tokens" }, { - "buf": "num_accepted_tokens" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 928 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.38.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.38.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l46.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.38.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l46.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.46.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l46.out_norm", + "label": "l38.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -119529,13 +91423,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.46.linear_attn.out_proj.weight" + "buf": "model.layers.38.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.46.post_attention_layernorm.weight_p1" + "buf": "model.layers.38.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -119552,7 +91446,7 @@ ] }, { - "label": "l46.gate_up_silu", + "label": "l38.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -119562,7 +91456,7 @@ "buf": "x" }, { - "buf": "model.layers.46.mlp.gate_up_proj.weight" + "buf": "model.layers.38.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -119576,7 +91470,7 @@ ] }, { - "label": "l46.down_norm", + "label": "l38.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -119586,13 +91480,13 @@ "buf": "act" }, { - "buf": "model.layers.46.mlp.down_proj.weight" + "buf": "model.layers.38.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.47.input_layernorm.weight_p1" + "buf": "model.layers.39.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -119609,14 +91503,14 @@ ] }, { - "label": "l47.qkv_proj", + "label": "l39.qkv_proj", "kernel": "gemm", "args": [ { "buf": "x" }, { - "buf": "model.layers.47.self_attn.qkv_proj.weight" + "buf": "model.layers.39.self_attn.qkv_proj.weight" }, { "buf": "qkv" @@ -119633,7 +91527,7 @@ ] }, { - "label": "l47.q_norm", + "label": "l39.q_norm", "kernel": "gemma_norm_qhead", "args": [ { @@ -119643,7 +91537,7 @@ "buf": "qkv" }, { - "buf": "model.layers.47.self_attn.q_norm.weight_p1" + "buf": "model.layers.39.self_attn.q_norm.weight_p1" }, { "i32": 256 @@ -119679,7 +91573,7 @@ ] }, { - "label": "l47.k_norm", + "label": "l39.k_norm", "kernel": "gemma_norm_khead", "args": [ { @@ -119690,7 +91584,7 @@ "offset": 24576 }, { - "buf": "model.layers.47.self_attn.k_norm.weight_p1" + "buf": "model.layers.39.self_attn.k_norm.weight_p1" }, { "i32": 256 @@ -119726,7 +91620,7 @@ ] }, { - "label": "l47.rope", + "label": "l39.rope", "kernel": "mrope", "args": [ { @@ -119753,7 +91647,7 @@ ] }, { - "label": "l47.kv_write", + "label": "l39.kv_write", "kernel": "reshape_and_cache", "args": [ { @@ -119765,11 +91659,11 @@ }, { "state": "kv", - "offset": 35323904 + "offset": 28901376 }, { "state": "kv", - "offset": 35324416 + "offset": 28901888 }, { "buf": "slot_mapping" @@ -119811,7 +91705,7 @@ ] }, { - "label": "l47.attn", + "label": "l39.attn", "kernel": "attn_prefill", "args": [ { @@ -119822,11 +91716,11 @@ }, { "state": "kv", - "offset": 35323904 + "offset": 28901376 }, { "state": "kv", - "offset": 35324416 + "offset": 28901888 }, { "buf": "block_table" @@ -119904,7 +91798,7 @@ ] }, { - "label": "l47.o_norm", + "label": "l39.o_norm", "kernel": "gemm8_sgate_add_norm", "args": [ { @@ -119918,13 +91812,13 @@ "offset": 512 }, { - "buf": "model.layers.47.self_attn.o_proj.weight" + "buf": "model.layers.39.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.47.post_attention_layernorm.weight_p1" + "buf": "model.layers.39.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -119950,7 +91844,7 @@ ] }, { - "label": "l47.gate_up_silu", + "label": "l39.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -119960,7 +91854,7 @@ "buf": "x" }, { - "buf": "model.layers.47.mlp.gate_up_proj.weight" + "buf": "model.layers.39.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -119974,7 +91868,7 @@ ] }, { - "label": "l47.down_norm", + "label": "l39.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -119984,13 +91878,13 @@ "buf": "act" }, { - "buf": "model.layers.47.mlp.down_proj.weight" + "buf": "model.layers.39.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.48.input_layernorm.weight_p1" + "buf": "model.layers.40.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -120007,31 +91901,223 @@ ] }, { - "label": "l47.fc_tap", - "kernel": "gemm_acc", + "label": "l40.in_proj", + "kernel": "gemm8_dual", + "args": [ + { + "buf": "qkvz" + }, + { + "buf": "ba" + }, + { + "buf": "x" + }, + { + "buf": "model.layers.40.linear_attn.in_proj_qkvz.weight" + }, + { + "buf": "model.layers.40.linear_attn.in_proj_ba.weight" + }, + { + "sym": "tokens" + }, + { + "i32": 16384 + }, + { + "i32": 96 + }, + { + "i32": 5120 + } + ] + }, + { + "label": "l40.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" + }, + { + "buf": "model.layers.40.linear_attn.conv1d.weight" + }, + { + "state": "gdn" + }, + { + "state": "gdn", + "offset": 204800 + }, + { + "buf": "gdn.spec_line_index", + "offset": 124 + }, + { + "buf": "num_accepted_tokens" + }, + { + "buf": "cu_seqlens_q" + }, + { + "buf": "gdn.spec_slots", + "offset": 960 + }, + { + "buf": "ba" + }, + { + "buf": "model.layers.40.linear_attn.A_log" + }, + { + "buf": "model.layers.40.linear_attn.dt_bias" + }, + { + "buf": "core_attn_out" + }, + { + "buf": "model.layers.40.linear_attn.norm.weight" + }, + { + "buf": "gdn_q" + }, + { + "buf": "gdn_k" + }, + { + "buf": "gdn_v" + }, + { + "buf": "g" + }, + { + "buf": "beta" + }, + { + "buf": "a_c" + }, + { + "buf": "b_c" + }, + { + "buf": "z_c" + }, + { + "f32": 0.0883883461356163 + }, + { + "f32": 9.999999974752427e-07 + }, + { + "sym": "tokens" + }, + { + "i32": 385 + }, + { + "i32": 1703936 + }, + { + "i32": 10 + }, + { + "i32": 851968 + } + ] + }, + { + "label": "l40.out_norm", + "kernel": "gemm8_add_norm", "args": [ + { + "buf": "x" + }, + { + "buf": "core_attn_out" + }, + { + "buf": "model.layers.40.linear_attn.out_proj.weight" + }, { "buf": "residual" }, { - "buf": "draft.fc.3.weight" + "buf": "model.layers.40.post_attention_layernorm.weight_p1" }, { - "buf": "fc_out" + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l40.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ + { + "buf": "act" + }, + { + "buf": "x" + }, + { + "buf": "model.layers.40.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, + { + "i32": 17408 + }, { "i32": 5120 + } + ] + }, + { + "label": "l40.down_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" + }, + { + "buf": "act" + }, + { + "buf": "model.layers.40.mlp.down_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.41.input_layernorm.weight_p1" + }, + { + "sym": "tokens" }, { "i32": 5120 + }, + { + "i32": 17408 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l48.in_proj", + "label": "l41.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -120044,10 +92130,10 @@ "buf": "x" }, { - "buf": "model.layers.48.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.41.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.48.linear_attn.in_proj_ba.weight" + "buf": "model.layers.41.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -120064,21 +92150,25 @@ ] }, { - "label": "l48.conv_update", - "kernel": "conv_update_spec", + "label": "l41.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.48.linear_attn.conv1d.weight" + "buf": "model.layers.41.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 148 + "offset": 128 }, { "buf": "num_accepted_tokens" @@ -120087,47 +92177,239 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 992 }, { - "i32": 1 + "buf": "ba" + }, + { + "buf": "model.layers.41.linear_attn.A_log" + }, + { + "buf": "model.layers.41.linear_attn.dt_bias" + }, + { + "buf": "core_attn_out" + }, + { + "buf": "model.layers.41.linear_attn.norm.weight" + }, + { + "buf": "gdn_q" + }, + { + "buf": "gdn_k" + }, + { + "buf": "gdn_v" + }, + { + "buf": "g" + }, + { + "buf": "beta" + }, + { + "buf": "a_c" + }, + { + "buf": "b_c" + }, + { + "buf": "z_c" + }, + { + "f32": 0.0883883461356163 + }, + { + "f32": 9.999999974752427e-07 + }, + { + "sym": "tokens" }, { "i32": 385 }, { - "i64": 16384 + "i32": 1703936 }, { - "i64": 16384 + "i32": 10 }, { - "i64": 0 + "i32": 851968 + } + ] + }, + { + "label": "l41.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i64": 0 + "buf": "core_attn_out" + }, + { + "buf": "model.layers.41.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.41.post_attention_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l48.post_conv", - "kernel": "post_conv", + "label": "l41.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ + { + "buf": "act" + }, + { + "buf": "x" + }, + { + "buf": "model.layers.41.mlp.gate_up_proj.weight" + }, + { + "sym": "tokens" + }, + { + "i32": 17408 + }, + { + "i32": 5120 + } + ] + }, + { + "label": "l41.down_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" + }, + { + "buf": "act" + }, + { + "buf": "model.layers.41.mlp.down_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.42.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 17408 + }, + { + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l42.in_proj", + "kernel": "gemm8_dual", "args": [ { "buf": "qkvz" }, { - "buf": "ba", - "offset": 96 + "buf": "ba" + }, + { + "buf": "x" + }, + { + "buf": "model.layers.42.linear_attn.in_proj_qkvz.weight" + }, + { + "buf": "model.layers.42.linear_attn.in_proj_ba.weight" + }, + { + "sym": "tokens" + }, + { + "i32": 16384 + }, + { + "i32": 96 + }, + { + "i32": 5120 + } + ] + }, + { + "label": "l42.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" + }, + { + "buf": "model.layers.42.linear_attn.conv1d.weight" + }, + { + "state": "gdn" + }, + { + "state": "gdn", + "offset": 204800 + }, + { + "buf": "gdn.spec_line_index", + "offset": 132 + }, + { + "buf": "num_accepted_tokens" + }, + { + "buf": "cu_seqlens_q" + }, + { + "buf": "gdn.spec_slots", + "offset": 1024 }, { "buf": "ba" }, { - "buf": "model.layers.48.linear_attn.A_log" + "buf": "model.layers.42.linear_attn.A_log" }, { - "buf": "model.layers.48.linear_attn.dt_bias" + "buf": "model.layers.42.linear_attn.dt_bias" + }, + { + "buf": "core_attn_out" + }, + { + "buf": "model.layers.42.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -120145,192 +92427,213 @@ "buf": "beta" }, { - "i32": 16384 + "buf": "a_c" }, { - "i32": 96 + "buf": "b_c" }, { - "i32": 96 + "buf": "z_c" }, { - "i32": 2048 + "f32": 0.0883883461356163 }, { - "i32": 2048 + "f32": 9.999999974752427e-07 + }, + { + "sym": "tokens" }, { - "i32": 6144 + "i32": 385 }, { - "sym": "tokens" + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l48.a_copy", - "kernel": "copy_rows", + "label": "l42.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.42.linear_attn.out_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l48.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.42.post_attention_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 6144 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l48.recurrent", - "kernel": "recurrent_spec", + "label": "l42.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "model.layers.48.linear_attn.A_log" + "buf": "act" }, { - "buf": "a_c" + "buf": "x" }, { - "buf": "b_c" + "buf": "model.layers.42.mlp.gate_up_proj.weight" }, { - "buf": "model.layers.48.linear_attn.dt_bias" + "sym": "tokens" }, { - "f32": 1.0 + "i32": 17408 }, { - "f32": 20.0 - }, + "i32": 5120 + } + ] + }, + { + "label": "l42.down_norm", + "kernel": "gemm8_add_norm", + "args": [ { - "buf": "gdn_q" + "buf": "x" }, { - "buf": "gdn_k" + "buf": "act" }, { - "buf": "gdn_v" + "buf": "model.layers.42.mlp.down_proj.weight" }, { - "buf": "core_attn_out" + "buf": "residual" }, { - "state": "gdn", - "offset": 204800 + "buf": "model.layers.43.input_layernorm.weight_p1" }, { - "state": "gdn", - "offset": 204800 + "sym": "tokens" }, { - "buf": "cu_seqlens_q" + "i32": 5120 }, { - "buf": "gdn.spec_slots", - "offset": 1152 + "i32": 17408 }, { - "buf": "num_accepted_tokens" + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l43.qkv_proj", + "kernel": "gemm", + "args": [ + { + "buf": "x" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.43.self_attn.qkv_proj.weight" }, { - "i64": 1 + "buf": "qkv" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 14336 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l48.z_copy", - "kernel": "copy_rows", + "label": "l43.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "z_c" + "buf": "q_n" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "qkv" }, { - "i32": 6144 + "buf": "model.layers.43.self_attn.q_norm.weight_p1" }, { - "i32": 16384 + "i32": 256 }, { - "i32": 6144 - } - ] - }, - { - "label": "l48.gated_norm", - "kernel": "gated_norm", - "args": [ + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } + }, { - "buf": "core_attn_out" + "i32": 24 }, { - "buf": "core_attn_out" + "i32": 14336 }, { - "buf": "model.layers.48.linear_attn.norm.weight" + "i32": 512 }, { - "buf": "z_c" + "i32": 6144 }, { - "i32": 128 + "i32": 256 }, { - "i32": 128 + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l43.k_norm", + "kernel": "gemma_norm_khead", + "args": [ + { + "buf": "k_n" }, { - "i32": 128 + "buf": "qkv", + "offset": 24576 + }, + { + "buf": "model.layers.43.self_attn.k_norm.weight_p1" + }, + { + "i32": 256 }, { "expr": { @@ -120338,181 +92641,199 @@ { "sym": "tokens" }, - 48 + 4 ] } }, { - "f32": 9.999999974752427e-07 + "i32": 4 }, { - "i64": 0 + "i32": 14336 }, { - "i64": 0 + "i32": 256 + }, + { + "i32": 1024 + }, + { + "i32": 256 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l48.out_norm", - "kernel": "gemm8_add_norm", + "label": "l43.rope", + "kernel": "mrope", "args": [ { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.48.linear_attn.out_proj.weight" + "buf": "q_n" }, { - "buf": "residual" + "buf": "k_n" }, { - "buf": "model.layers.48.post_attention_layernorm.weight_p1" + "buf": "cos_g" }, { - "sym": "tokens" + "buf": "sin_g" }, { - "i32": 5120 + "i32": 0 }, { - "i32": 6144 + "i64": 0 }, { - "f32": 9.999999974752427e-07 + "i64": 0 } ] }, { - "label": "l48.gate_up_silu", - "kernel": "gemm8_gateup_silu", + "label": "l43.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "act" + "buf": "k_n" }, { - "buf": "x" + "buf": "qkv", + "offset": 26624 }, { - "buf": "model.layers.48.mlp.gate_up_proj.weight" + "state": "kv", + "offset": 32112640 }, { - "sym": "tokens" + "state": "kv", + "offset": 32113152 }, { - "i32": 17408 + "buf": "slot_mapping" }, { - "i32": 5120 - } - ] - }, - { - "label": "l48.down_norm", - "kernel": "gemm8_add_norm", - "args": [ + "buf": "kv_scales" + }, { - "buf": "x" + "buf": "kv_scales", + "offset": 4 }, { - "buf": "act" + "i64": 1024 }, { - "buf": "model.layers.48.mlp.down_proj.weight" + "i64": 14336 }, { - "buf": "residual" + "i64": 25690112 }, { - "buf": "model.layers.49.input_layernorm.weight_p1" + "i64": 512 }, { - "sym": "tokens" + "i64": 0 }, { - "i32": 5120 + "i64": 0 }, { - "i32": 17408 + "i64": 2048 }, { - "f32": 9.999999974752427e-07 + "i64": 0 + }, + { + "i64": 0 } ] }, { - "label": "l49.in_proj", - "kernel": "gemm8_dual", + "label": "l43.attn", + "kernel": "attn_prefill", "args": [ { - "buf": "qkvz" + "buf": "attn_out" }, { - "buf": "ba" + "buf": "q_n" }, { - "buf": "x" + "state": "kv", + "offset": 32112640 }, { - "buf": "model.layers.49.linear_attn.in_proj_qkvz.weight" + "state": "kv", + "offset": 32113152 }, { - "buf": "model.layers.49.linear_attn.in_proj_ba.weight" + "buf": "block_table" }, { - "sym": "tokens" + "buf": "seq_lens" }, { - "i32": 16384 + "f32": 0.0625 }, { - "i32": 96 + "buf": "kv_scales" }, { - "i32": 5120 - } - ] - }, - { - "label": "l49.conv_update", - "kernel": "conv_update_spec", - "args": [ + "buf": "kv_scales", + "offset": 4 + }, { - "buf": "qkvz" + "f32": 1.0 }, { - "buf": "model.layers.49.linear_attn.conv1d.weight" + "f32": 0.0 }, { - "state": "gdn" + "i64": 8 }, { - "buf": "gdn.spec_line_index", - "offset": 152 + "i64": 6144 }, { - "buf": "num_accepted_tokens" + "i64": 256 }, { - "buf": "cu_seqlens_q" + "i64": 6144 }, { - "buf": "qkvz" + "i64": 256 }, { - "i32": 1 + "i64": 0 }, { - "i32": 385 + "buf": "seq_lens" }, { - "i64": 16384 + "i64": 25690112 }, { - "i64": 16384 + "i64": 2048 + }, + { + "i64": 512 + }, + { + "i64": 25690112 + }, + { + "i64": 2048 + }, + { + "i64": 512 + }, + { + "buf": "cu_seqlens_q" + }, + { + "i32": 1 }, { "i64": 0 @@ -120523,251 +92844,236 @@ ] }, { - "label": "l49.post_conv", - "kernel": "post_conv", + "label": "l43.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "qkvz" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "attn_out" }, { - "buf": "ba" + "buf": "qkv", + "offset": 512 }, { - "buf": "model.layers.49.linear_attn.A_log" + "buf": "model.layers.43.self_attn.o_proj.weight" }, { - "buf": "model.layers.49.linear_attn.dt_bias" + "buf": "residual" }, { - "buf": "gdn_q" + "buf": "model.layers.43.post_attention_layernorm.weight_p1" }, { - "buf": "gdn_k" + "sym": "tokens" }, { - "buf": "gdn_v" + "i32": 5120 }, { - "buf": "g" + "i32": 6144 }, { - "buf": "beta" + "i32": 256 }, { - "i32": 16384 + "i32": 14336 }, { - "i32": 96 + "i32": 512 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l43.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ { - "i32": 2048 + "buf": "act" }, { - "i32": 2048 + "buf": "x" }, { - "i32": 6144 + "buf": "model.layers.43.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l49.a_copy", - "kernel": "copy_rows", + "label": "l43.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.43.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l49.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.44.input_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l49.recurrent", - "kernel": "recurrent_spec", + "label": "l44.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.49.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.49.linear_attn.dt_bias" + "buf": "model.layers.44.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.44.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l44.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.44.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 136 }, { - "buf": "gdn.spec_slots", - "offset": 1184 + "buf": "num_accepted_tokens" }, { - "buf": "num_accepted_tokens" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 1056 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.44.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.44.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l49.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.44.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l49.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.49.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l49.out_norm", + "label": "l44.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -120777,13 +93083,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.49.linear_attn.out_proj.weight" + "buf": "model.layers.44.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.49.post_attention_layernorm.weight_p1" + "buf": "model.layers.44.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -120800,7 +93106,7 @@ ] }, { - "label": "l49.gate_up_silu", + "label": "l44.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -120810,7 +93116,7 @@ "buf": "x" }, { - "buf": "model.layers.49.mlp.gate_up_proj.weight" + "buf": "model.layers.44.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -120824,7 +93130,7 @@ ] }, { - "label": "l49.down_norm", + "label": "l44.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -120834,13 +93140,13 @@ "buf": "act" }, { - "buf": "model.layers.49.mlp.down_proj.weight" + "buf": "model.layers.44.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.50.input_layernorm.weight_p1" + "buf": "model.layers.45.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -120857,7 +93163,7 @@ ] }, { - "label": "l50.in_proj", + "label": "l45.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -120870,10 +93176,10 @@ "buf": "x" }, { - "buf": "model.layers.50.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.45.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.50.linear_attn.in_proj_ba.weight" + "buf": "model.layers.45.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -120890,21 +93196,25 @@ ] }, { - "label": "l50.conv_update", - "kernel": "conv_update_spec", + "label": "l45.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.50.linear_attn.conv1d.weight" + "buf": "model.layers.45.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 156 + "offset": 140 }, { "buf": "num_accepted_tokens" @@ -120913,274 +93223,289 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 1088 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.45.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.45.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.45.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l50.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.50.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.50.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l45.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" }, { - "i32": 6144 + "buf": "model.layers.45.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.45.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l50.a_copy", - "kernel": "copy_rows", + "label": "l45.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" }, { - "i32": 48 + "buf": "model.layers.45.mlp.gate_up_proj.weight" }, { - "i32": 96 + "sym": "tokens" }, { - "i32": 48 + "i32": 17408 + }, + { + "i32": 5120 } ] }, { - "label": "l50.b_copy", - "kernel": "copy_rows", + "label": "l45.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "act" + }, + { + "buf": "model.layers.45.mlp.down_proj.weight" }, { - "i32": 48 + "buf": "residual" }, { - "i32": 96 + "buf": "model.layers.46.input_layernorm.weight_p1" + }, + { + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 + }, + { + "i32": 17408 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l50.recurrent", - "kernel": "recurrent_spec", + "label": "l46.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.50.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.50.linear_attn.dt_bias" + "buf": "model.layers.46.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.46.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l46.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.46.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 144 }, { - "buf": "gdn.spec_slots", - "offset": 1216 + "buf": "num_accepted_tokens" }, { - "buf": "num_accepted_tokens" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 1120 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.46.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.46.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l50.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.46.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l50.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.50.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l50.out_norm", + "label": "l46.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -121190,13 +93515,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.50.linear_attn.out_proj.weight" + "buf": "model.layers.46.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.50.post_attention_layernorm.weight_p1" + "buf": "model.layers.46.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -121213,7 +93538,7 @@ ] }, { - "label": "l50.gate_up_silu", + "label": "l46.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -121223,7 +93548,7 @@ "buf": "x" }, { - "buf": "model.layers.50.mlp.gate_up_proj.weight" + "buf": "model.layers.46.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -121237,7 +93562,7 @@ ] }, { - "label": "l50.down_norm", + "label": "l46.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -121247,13 +93572,13 @@ "buf": "act" }, { - "buf": "model.layers.50.mlp.down_proj.weight" + "buf": "model.layers.46.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.51.input_layernorm.weight_p1" + "buf": "model.layers.47.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -121270,14 +93595,14 @@ ] }, { - "label": "l51.qkv_proj", + "label": "l47.qkv_proj", "kernel": "gemm", "args": [ { "buf": "x" }, { - "buf": "model.layers.51.self_attn.qkv_proj.weight" + "buf": "model.layers.47.self_attn.qkv_proj.weight" }, { "buf": "qkv" @@ -121294,7 +93619,7 @@ ] }, { - "label": "l51.q_norm", + "label": "l47.q_norm", "kernel": "gemma_norm_qhead", "args": [ { @@ -121304,7 +93629,7 @@ "buf": "qkv" }, { - "buf": "model.layers.51.self_attn.q_norm.weight_p1" + "buf": "model.layers.47.self_attn.q_norm.weight_p1" }, { "i32": 256 @@ -121340,7 +93665,7 @@ ] }, { - "label": "l51.k_norm", + "label": "l47.k_norm", "kernel": "gemma_norm_khead", "args": [ { @@ -121351,7 +93676,7 @@ "offset": 24576 }, { - "buf": "model.layers.51.self_attn.k_norm.weight_p1" + "buf": "model.layers.47.self_attn.k_norm.weight_p1" }, { "i32": 256 @@ -121387,7 +93712,7 @@ ] }, { - "label": "l51.rope", + "label": "l47.rope", "kernel": "mrope", "args": [ { @@ -121414,7 +93739,7 @@ ] }, { - "label": "l51.kv_write", + "label": "l47.kv_write", "kernel": "reshape_and_cache", "args": [ { @@ -121426,11 +93751,11 @@ }, { "state": "kv", - "offset": 38535168 + "offset": 35323904 }, { "state": "kv", - "offset": 38535680 + "offset": 35324416 }, { "buf": "slot_mapping" @@ -121472,7 +93797,7 @@ ] }, { - "label": "l51.attn", + "label": "l47.attn", "kernel": "attn_prefill", "args": [ { @@ -121483,11 +93808,11 @@ }, { "state": "kv", - "offset": 38535168 + "offset": 35323904 }, { "state": "kv", - "offset": 38535680 + "offset": 35324416 }, { "buf": "block_table" @@ -121565,7 +93890,7 @@ ] }, { - "label": "l51.o_norm", + "label": "l47.o_norm", "kernel": "gemm8_sgate_add_norm", "args": [ { @@ -121579,13 +93904,13 @@ "offset": 512 }, { - "buf": "model.layers.51.self_attn.o_proj.weight" + "buf": "model.layers.47.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.51.post_attention_layernorm.weight_p1" + "buf": "model.layers.47.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -121611,7 +93936,7 @@ ] }, { - "label": "l51.gate_up_silu", + "label": "l47.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -121621,7 +93946,7 @@ "buf": "x" }, { - "buf": "model.layers.51.mlp.gate_up_proj.weight" + "buf": "model.layers.47.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -121635,7 +93960,7 @@ ] }, { - "label": "l51.down_norm", + "label": "l47.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -121645,13 +93970,13 @@ "buf": "act" }, { - "buf": "model.layers.51.mlp.down_proj.weight" + "buf": "model.layers.47.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.52.input_layernorm.weight_p1" + "buf": "model.layers.48.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -121668,118 +93993,50 @@ ] }, { - "label": "l52.in_proj", - "kernel": "gemm8_dual", + "label": "l47.fc_tap", + "kernel": "gemm_acc", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" + "buf": "residual" }, { - "buf": "model.layers.52.linear_attn.in_proj_qkvz.weight" + "buf": "draft.fc.3.weight" }, { - "buf": "model.layers.52.linear_attn.in_proj_ba.weight" + "buf": "fc_out" }, { "sym": "tokens" }, - { - "i32": 16384 - }, - { - "i32": 96 - }, { "i32": 5120 - } - ] - }, - { - "label": "l52.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.52.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 160 - }, - { - "buf": "num_accepted_tokens" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l52.post_conv", - "kernel": "post_conv", + "label": "l48.in_proj", + "kernel": "gemm8_dual", "args": [ { "buf": "qkvz" }, - { - "buf": "ba", - "offset": 96 - }, { "buf": "ba" }, { - "buf": "model.layers.52.linear_attn.A_log" - }, - { - "buf": "model.layers.52.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" + "buf": "x" }, { - "buf": "gdn_v" + "buf": "model.layers.48.linear_attn.in_proj_qkvz.weight" }, { - "buf": "g" + "buf": "model.layers.48.linear_attn.in_proj_ba.weight" }, { - "buf": "beta" + "sym": "tokens" }, { "i32": 16384 @@ -121788,92 +94045,55 @@ "i32": 96 }, { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l52.a_copy", - "kernel": "copy_rows", + "label": "l48.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 + "buf": "qkvz" }, { - "i32": 48 + "buf": "model.layers.48.linear_attn.conv1d.weight" }, { - "i32": 96 + "state": "gdn" }, { - "i32": 48 - } - ] - }, - { - "label": "l52.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "state": "gdn", + "offset": 204800 }, { - "buf": "ba" + "buf": "gdn.spec_line_index", + "offset": 148 }, { - "i32": 48 + "buf": "num_accepted_tokens" }, { - "i32": 96 + "buf": "cu_seqlens_q" }, { - "i32": 48 - } - ] - }, - { - "label": "l52.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.52.linear_attn.A_log" + "buf": "gdn.spec_slots", + "offset": 1152 }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "model.layers.48.linear_attn.A_log" }, { - "buf": "model.layers.52.linear_attn.dt_bias" + "buf": "model.layers.48.linear_attn.dt_bias" }, { - "f32": 1.0 + "buf": "core_attn_out" }, { - "f32": 20.0 + "buf": "model.layers.48.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -121885,113 +94105,45 @@ "buf": "gdn_v" }, { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 + "buf": "g" }, { - "state": "gdn", - "offset": 204800 + "buf": "beta" }, { - "buf": "cu_seqlens_q" + "buf": "a_c" }, { - "buf": "gdn.spec_slots", - "offset": 1248 + "buf": "b_c" }, { - "buf": "num_accepted_tokens" + "buf": "z_c" }, { "f32": 0.0883883461356163 }, { - "i64": 1 + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l52.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l52.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.52.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l52.out_norm", + "label": "l48.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -122001,13 +94153,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.52.linear_attn.out_proj.weight" + "buf": "model.layers.48.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.52.post_attention_layernorm.weight_p1" + "buf": "model.layers.48.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -122024,7 +94176,7 @@ ] }, { - "label": "l52.gate_up_silu", + "label": "l48.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -122034,7 +94186,7 @@ "buf": "x" }, { - "buf": "model.layers.52.mlp.gate_up_proj.weight" + "buf": "model.layers.48.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -122048,7 +94200,7 @@ ] }, { - "label": "l52.down_norm", + "label": "l48.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -122058,13 +94210,13 @@ "buf": "act" }, { - "buf": "model.layers.52.mlp.down_proj.weight" + "buf": "model.layers.48.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.53.input_layernorm.weight_p1" + "buf": "model.layers.49.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -122081,7 +94233,7 @@ ] }, { - "label": "l53.in_proj", + "label": "l49.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -122094,10 +94246,10 @@ "buf": "x" }, { - "buf": "model.layers.53.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.49.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.53.linear_attn.in_proj_ba.weight" + "buf": "model.layers.49.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -122114,21 +94266,25 @@ ] }, { - "label": "l53.conv_update", - "kernel": "conv_update_spec", + "label": "l49.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.53.linear_attn.conv1d.weight" + "buf": "model.layers.49.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 164 + "offset": 152 }, { "buf": "num_accepted_tokens" @@ -122137,274 +94293,289 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 1184 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.49.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.49.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.49.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l53.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.53.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.53.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l49.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" }, { - "i32": 6144 + "buf": "model.layers.49.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.49.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l53.a_copy", - "kernel": "copy_rows", + "label": "l49.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" }, { - "i32": 48 + "buf": "model.layers.49.mlp.gate_up_proj.weight" }, { - "i32": 96 + "sym": "tokens" + }, + { + "i32": 17408 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l53.b_copy", - "kernel": "copy_rows", + "label": "l49.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.49.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" + }, + { + "buf": "model.layers.50.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l53.recurrent", - "kernel": "recurrent_spec", + "label": "l50.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.53.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.53.linear_attn.dt_bias" + "buf": "model.layers.50.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.50.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l50.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.50.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 156 }, { - "buf": "gdn.spec_slots", - "offset": 1280 + "buf": "num_accepted_tokens" }, { - "buf": "num_accepted_tokens" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 1216 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.50.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.50.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l53.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.50.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l53.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.53.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l53.out_norm", + "label": "l50.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -122414,13 +94585,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.53.linear_attn.out_proj.weight" + "buf": "model.layers.50.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.53.post_attention_layernorm.weight_p1" + "buf": "model.layers.50.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -122437,7 +94608,7 @@ ] }, { - "label": "l53.gate_up_silu", + "label": "l50.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -122447,7 +94618,7 @@ "buf": "x" }, { - "buf": "model.layers.53.mlp.gate_up_proj.weight" + "buf": "model.layers.50.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -122461,7 +94632,7 @@ ] }, { - "label": "l53.down_norm", + "label": "l50.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -122471,13 +94642,13 @@ "buf": "act" }, { - "buf": "model.layers.53.mlp.down_proj.weight" + "buf": "model.layers.50.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.54.input_layernorm.weight_p1" + "buf": "model.layers.51.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -122494,32 +94665,23 @@ ] }, { - "label": "l54.in_proj", - "kernel": "gemm8_dual", + "label": "l51.qkv_proj", + "kernel": "gemm", "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, { "buf": "x" }, { - "buf": "model.layers.54.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.51.self_attn.qkv_proj.weight" }, { - "buf": "model.layers.54.linear_attn.in_proj_ba.weight" + "buf": "qkv" }, { "sym": "tokens" }, { - "i32": 16384 - }, - { - "i32": 96 + "i32": 14336 }, { "i32": 5120 @@ -122527,106 +94689,116 @@ ] }, { - "label": "l54.conv_update", - "kernel": "conv_update_spec", + "label": "l51.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "model.layers.54.linear_attn.conv1d.weight" - }, - { - "state": "gdn" + "buf": "q_n" }, { - "buf": "gdn.spec_line_index", - "offset": 168 + "buf": "qkv" }, { - "buf": "num_accepted_tokens" + "buf": "model.layers.51.self_attn.q_norm.weight_p1" }, { - "buf": "cu_seqlens_q" + "i32": 256 }, { - "buf": "qkvz" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i32": 1 + "i32": 24 }, { - "i32": 385 + "i32": 14336 }, { - "i64": 16384 + "i32": 512 }, { - "i64": 16384 + "i32": 6144 }, { - "i64": 0 + "i32": 256 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l54.post_conv", - "kernel": "post_conv", + "label": "l51.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 + "buf": "k_n" }, { - "buf": "ba" + "buf": "qkv", + "offset": 24576 }, { - "buf": "model.layers.54.linear_attn.A_log" + "buf": "model.layers.51.self_attn.k_norm.weight_p1" }, { - "buf": "model.layers.54.linear_attn.dt_bias" + "i32": 256 }, { - "buf": "gdn_q" + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { - "buf": "gdn_k" + "i32": 4 }, { - "buf": "gdn_v" + "i32": 14336 }, { - "buf": "g" + "i32": 256 }, { - "buf": "beta" + "i32": 1024 }, { - "i32": 16384 + "i32": 256 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l51.rope", + "kernel": "mrope", + "args": [ { - "i32": 96 + "buf": "q_n" }, { - "i32": 2048 + "buf": "k_n" }, { - "i32": 2048 + "buf": "cos_g" }, { - "i32": 6144 + "buf": "sin_g" }, { - "sym": "tokens" + "i32": 0 }, { "i64": 0 @@ -122637,176 +94809,147 @@ ] }, { - "label": "l54.a_copy", - "kernel": "copy_rows", + "label": "l51.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "a_c" + "buf": "k_n" }, { - "buf": "ba", - "offset": 96 + "buf": "qkv", + "offset": 26624 }, { - "i32": 48 + "state": "kv", + "offset": 38535168 }, { - "i32": 96 + "state": "kv", + "offset": 38535680 }, { - "i32": 48 - } - ] - }, - { - "label": "l54.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "slot_mapping" }, { - "buf": "ba" + "buf": "kv_scales" }, { - "i32": 48 + "buf": "kv_scales", + "offset": 4 }, { - "i32": 96 + "i64": 1024 }, { - "i32": 48 - } - ] - }, - { - "label": "l54.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.54.linear_attn.A_log" + "i64": 14336 }, { - "buf": "a_c" + "i64": 25690112 }, { - "buf": "b_c" + "i64": 512 }, { - "buf": "model.layers.54.linear_attn.dt_bias" + "i64": 0 }, { - "f32": 1.0 + "i64": 0 }, { - "f32": 20.0 + "i64": 2048 }, { - "buf": "gdn_q" + "i64": 0 }, { - "buf": "gdn_k" - }, + "i64": 0 + } + ] + }, + { + "label": "l51.attn", + "kernel": "attn_prefill", + "args": [ { - "buf": "gdn_v" + "buf": "attn_out" }, { - "buf": "core_attn_out" + "buf": "q_n" }, { - "state": "gdn", - "offset": 204800 + "state": "kv", + "offset": 38535168 }, { - "state": "gdn", - "offset": 204800 + "state": "kv", + "offset": 38535680 }, { - "buf": "cu_seqlens_q" + "buf": "block_table" }, { - "buf": "gdn.spec_slots", - "offset": 1312 + "buf": "seq_lens" }, { - "buf": "num_accepted_tokens" + "f32": 0.0625 }, { - "f32": 0.0883883461356163 + "buf": "kv_scales" }, { - "i64": 1 + "buf": "kv_scales", + "offset": 4 }, { - "sym": "tokens" + "f32": 1.0 }, { - "i64": 0 + "f32": 0.0 }, { - "i64": 0 - } - ] - }, - { - "label": "l54.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" + "i64": 8 }, { - "buf": "qkvz", - "offset": 20480 + "i64": 6144 }, { - "i32": 6144 + "i64": 256 }, { - "i32": 16384 + "i64": 6144 }, { - "i32": 6144 - } - ] - }, - { - "label": "l54.gated_norm", - "kernel": "gated_norm", - "args": [ + "i64": 256 + }, { - "buf": "core_attn_out" + "i64": 0 }, { - "buf": "core_attn_out" + "buf": "seq_lens" }, { - "buf": "model.layers.54.linear_attn.norm.weight" + "i64": 25690112 }, { - "buf": "z_c" + "i64": 2048 }, { - "i32": 128 + "i64": 512 }, { - "i32": 128 + "i64": 25690112 }, { - "i32": 128 + "i64": 2048 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i64": 512 + }, + { + "buf": "cu_seqlens_q" }, { - "f32": 9.999999974752427e-07 + "i32": 1 }, { "i64": 0 @@ -122817,23 +94960,27 @@ ] }, { - "label": "l54.out_norm", - "kernel": "gemm8_add_norm", + "label": "l51.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { "buf": "x" }, { - "buf": "core_attn_out" + "buf": "attn_out" }, { - "buf": "model.layers.54.linear_attn.out_proj.weight" + "buf": "qkv", + "offset": 512 + }, + { + "buf": "model.layers.51.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.54.post_attention_layernorm.weight_p1" + "buf": "model.layers.51.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -122844,13 +94991,22 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l54.gate_up_silu", + "label": "l51.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -122860,7 +95016,7 @@ "buf": "x" }, { - "buf": "model.layers.54.mlp.gate_up_proj.weight" + "buf": "model.layers.51.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -122874,7 +95030,7 @@ ] }, { - "label": "l54.down_norm", + "label": "l51.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -122884,13 +95040,13 @@ "buf": "act" }, { - "buf": "model.layers.54.mlp.down_proj.weight" + "buf": "model.layers.51.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.55.input_layernorm.weight_p1" + "buf": "model.layers.52.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -122907,23 +95063,32 @@ ] }, { - "label": "l55.qkv_proj", - "kernel": "gemm", + "label": "l52.in_proj", + "kernel": "gemm8_dual", "args": [ + { + "buf": "qkvz" + }, + { + "buf": "ba" + }, { "buf": "x" }, { - "buf": "model.layers.55.self_attn.qkv_proj.weight" + "buf": "model.layers.52.linear_attn.in_proj_qkvz.weight" }, { - "buf": "qkv" + "buf": "model.layers.52.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" }, { - "i32": 14336 + "i32": 16384 + }, + { + "i32": 96 }, { "i32": 5120 @@ -122931,298 +95096,332 @@ ] }, { - "label": "l55.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l52.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "q_n" + "buf": "qkvz" }, { - "buf": "qkv" + "buf": "model.layers.52.linear_attn.conv1d.weight" }, { - "buf": "model.layers.55.self_attn.q_norm.weight_p1" + "state": "gdn" }, { - "i32": 256 + "state": "gdn", + "offset": 204800 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } + "buf": "gdn.spec_line_index", + "offset": 160 }, { - "i32": 24 + "buf": "num_accepted_tokens" }, { - "i32": 14336 + "buf": "cu_seqlens_q" }, { - "i32": 512 + "buf": "gdn.spec_slots", + "offset": 1248 }, { - "i32": 6144 + "buf": "ba" }, { - "i32": 256 + "buf": "model.layers.52.linear_attn.A_log" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l55.k_norm", - "kernel": "gemma_norm_khead", - "args": [ + "buf": "model.layers.52.linear_attn.dt_bias" + }, { - "buf": "k_n" + "buf": "core_attn_out" }, { - "buf": "qkv", - "offset": 24576 + "buf": "model.layers.52.linear_attn.norm.weight" }, { - "buf": "model.layers.55.self_attn.k_norm.weight_p1" + "buf": "gdn_q" }, { - "i32": 256 + "buf": "gdn_k" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } + "buf": "gdn_v" }, { - "i32": 4 + "buf": "g" }, { - "i32": 14336 + "buf": "beta" }, { - "i32": 256 + "buf": "a_c" }, { - "i32": 1024 + "buf": "b_c" }, { - "i32": 256 + "buf": "z_c" + }, + { + "f32": 0.0883883461356163 }, { "f32": 9.999999974752427e-07 + }, + { + "sym": "tokens" + }, + { + "i32": 385 + }, + { + "i32": 1703936 + }, + { + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l55.rope", - "kernel": "mrope", + "label": "l52.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "q_n" + "buf": "x" }, { - "buf": "k_n" + "buf": "core_attn_out" }, { - "buf": "cos_g" + "buf": "model.layers.52.linear_attn.out_proj.weight" }, { - "buf": "sin_g" + "buf": "residual" }, { - "i32": 0 + "buf": "model.layers.52.post_attention_layernorm.weight_p1" }, { - "i64": 0 + "sym": "tokens" }, { - "i64": 0 + "i32": 5120 + }, + { + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l55.kv_write", - "kernel": "reshape_and_cache", + "label": "l52.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "k_n" + "buf": "act" }, { - "buf": "qkv", - "offset": 26624 + "buf": "x" }, { - "state": "kv", - "offset": 41746432 + "buf": "model.layers.52.mlp.gate_up_proj.weight" }, { - "state": "kv", - "offset": 41746944 + "sym": "tokens" }, { - "buf": "slot_mapping" + "i32": 17408 }, { - "buf": "kv_scales" + "i32": 5120 + } + ] + }, + { + "label": "l52.down_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "buf": "kv_scales", - "offset": 4 + "buf": "act" }, { - "i64": 1024 + "buf": "model.layers.52.mlp.down_proj.weight" }, { - "i64": 14336 + "buf": "residual" }, { - "i64": 25690112 + "buf": "model.layers.53.input_layernorm.weight_p1" }, { - "i64": 512 + "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 17408 }, { - "i64": 2048 + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l53.in_proj", + "kernel": "gemm8_dual", + "args": [ + { + "buf": "qkvz" }, { - "i64": 0 + "buf": "ba" }, { - "i64": 0 + "buf": "x" + }, + { + "buf": "model.layers.53.linear_attn.in_proj_qkvz.weight" + }, + { + "buf": "model.layers.53.linear_attn.in_proj_ba.weight" + }, + { + "sym": "tokens" + }, + { + "i32": 16384 + }, + { + "i32": 96 + }, + { + "i32": 5120 } ] }, { - "label": "l55.attn", - "kernel": "attn_prefill", + "label": "l53.gdn", + "kernel": "gdn_spec", "args": [ { - "buf": "attn_out" + "buf": "qkvz" }, { - "buf": "q_n" + "buf": "model.layers.53.linear_attn.conv1d.weight" }, { - "state": "kv", - "offset": 41746432 + "state": "gdn" }, { - "state": "kv", - "offset": 41746944 + "state": "gdn", + "offset": 204800 }, { - "buf": "block_table" + "buf": "gdn.spec_line_index", + "offset": 164 }, { - "buf": "seq_lens" + "buf": "num_accepted_tokens" }, { - "f32": 0.0625 + "buf": "cu_seqlens_q" }, { - "buf": "kv_scales" + "buf": "gdn.spec_slots", + "offset": 1280 }, { - "buf": "kv_scales", - "offset": 4 + "buf": "ba" }, { - "f32": 1.0 + "buf": "model.layers.53.linear_attn.A_log" }, { - "f32": 0.0 + "buf": "model.layers.53.linear_attn.dt_bias" }, { - "i64": 8 + "buf": "core_attn_out" }, { - "i64": 6144 + "buf": "model.layers.53.linear_attn.norm.weight" }, { - "i64": 256 + "buf": "gdn_q" }, { - "i64": 6144 + "buf": "gdn_k" }, { - "i64": 256 + "buf": "gdn_v" }, { - "i64": 0 + "buf": "g" }, { - "buf": "seq_lens" + "buf": "beta" }, { - "i64": 25690112 + "buf": "a_c" }, { - "i64": 2048 + "buf": "b_c" }, { - "i64": 512 + "buf": "z_c" }, { - "i64": 25690112 + "f32": 0.0883883461356163 }, { - "i64": 2048 + "f32": 9.999999974752427e-07 }, { - "i64": 512 + "sym": "tokens" }, { - "buf": "cu_seqlens_q" + "i32": 385 }, { - "i32": 1 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l55.o_norm", - "kernel": "gemm8_sgate_add_norm", + "label": "l53.out_norm", + "kernel": "gemm8_add_norm", "args": [ { "buf": "x" }, { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 + "buf": "core_attn_out" }, { - "buf": "model.layers.55.self_attn.o_proj.weight" + "buf": "model.layers.53.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.55.post_attention_layernorm.weight_p1" + "buf": "model.layers.53.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -123233,22 +95432,13 @@ { "i32": 6144 }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l55.gate_up_silu", + "label": "l53.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -123258,7 +95448,7 @@ "buf": "x" }, { - "buf": "model.layers.55.mlp.gate_up_proj.weight" + "buf": "model.layers.53.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -123272,7 +95462,7 @@ ] }, { - "label": "l55.down_norm", + "label": "l53.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -123282,13 +95472,13 @@ "buf": "act" }, { - "buf": "model.layers.55.mlp.down_proj.weight" + "buf": "model.layers.53.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.56.input_layernorm.weight_p1" + "buf": "model.layers.54.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -123305,7 +95495,7 @@ ] }, { - "label": "l56.in_proj", + "label": "l54.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -123318,10 +95508,10 @@ "buf": "x" }, { - "buf": "model.layers.56.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.54.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.56.linear_attn.in_proj_ba.weight" + "buf": "model.layers.54.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -123338,21 +95528,25 @@ ] }, { - "label": "l56.conv_update", - "kernel": "conv_update_spec", + "label": "l54.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.56.linear_attn.conv1d.weight" + "buf": "model.layers.54.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 172 + "offset": 168 }, { "buf": "num_accepted_tokens" @@ -123361,47 +95555,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 1312 }, { - "i64": 0 - } - ] - }, - { - "label": "l56.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.54.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.54.linear_attn.dt_bias" }, { - "buf": "model.layers.56.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.56.linear_attn.dt_bias" + "buf": "model.layers.54.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -123419,192 +95589,213 @@ "buf": "beta" }, { - "i32": 16384 + "buf": "a_c" }, { - "i32": 96 + "buf": "b_c" }, { - "i32": 96 + "buf": "z_c" }, { - "i32": 2048 + "f32": 0.0883883461356163 }, { - "i32": 2048 + "f32": 9.999999974752427e-07 }, { - "i32": 6144 + "sym": "tokens" }, { - "sym": "tokens" + "i32": 385 }, { - "i64": 0 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 + }, + { + "i32": 851968 } ] }, { - "label": "l56.a_copy", - "kernel": "copy_rows", + "label": "l54.out_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.54.linear_attn.out_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l56.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.54.post_attention_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 6144 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l56.recurrent", - "kernel": "recurrent_spec", + "label": "l54.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "model.layers.56.linear_attn.A_log" + "buf": "act" }, { - "buf": "a_c" + "buf": "x" }, { - "buf": "b_c" + "buf": "model.layers.54.mlp.gate_up_proj.weight" }, { - "buf": "model.layers.56.linear_attn.dt_bias" + "sym": "tokens" }, { - "f32": 1.0 + "i32": 17408 }, { - "f32": 20.0 - }, + "i32": 5120 + } + ] + }, + { + "label": "l54.down_norm", + "kernel": "gemm8_add_norm", + "args": [ { - "buf": "gdn_q" + "buf": "x" }, { - "buf": "gdn_k" + "buf": "act" }, { - "buf": "gdn_v" + "buf": "model.layers.54.mlp.down_proj.weight" }, { - "buf": "core_attn_out" + "buf": "residual" }, { - "state": "gdn", - "offset": 204800 + "buf": "model.layers.55.input_layernorm.weight_p1" }, { - "state": "gdn", - "offset": 204800 + "sym": "tokens" }, { - "buf": "cu_seqlens_q" + "i32": 5120 }, { - "buf": "gdn.spec_slots", - "offset": 1344 + "i32": 17408 }, { - "buf": "num_accepted_tokens" + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l55.qkv_proj", + "kernel": "gemm", + "args": [ + { + "buf": "x" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.55.self_attn.qkv_proj.weight" }, { - "i64": 1 + "buf": "qkv" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 14336 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l56.z_copy", - "kernel": "copy_rows", + "label": "l55.q_norm", + "kernel": "gemma_norm_qhead", "args": [ { - "buf": "z_c" + "buf": "q_n" + }, + { + "buf": "qkv" + }, + { + "buf": "model.layers.55.self_attn.q_norm.weight_p1" + }, + { + "i32": 256 + }, + { + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } + }, + { + "i32": 24 }, { - "buf": "qkvz", - "offset": 20480 + "i32": 14336 + }, + { + "i32": 512 }, { "i32": 6144 }, { - "i32": 16384 + "i32": 256 }, { - "i32": 6144 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l56.gated_norm", - "kernel": "gated_norm", + "label": "l55.k_norm", + "kernel": "gemma_norm_khead", "args": [ { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.56.linear_attn.norm.weight" - }, - { - "buf": "z_c" + "buf": "k_n" }, { - "i32": 128 + "buf": "qkv", + "offset": 24576 }, { - "i32": 128 + "buf": "model.layers.55.self_attn.k_norm.weight_p1" }, { - "i32": 128 + "i32": 256 }, { "expr": { @@ -123612,181 +95803,199 @@ { "sym": "tokens" }, - 48 + 4 ] } }, { - "f32": 9.999999974752427e-07 + "i32": 4 }, { - "i64": 0 + "i32": 14336 }, { - "i64": 0 + "i32": 256 + }, + { + "i32": 1024 + }, + { + "i32": 256 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l56.out_norm", - "kernel": "gemm8_add_norm", + "label": "l55.rope", + "kernel": "mrope", "args": [ { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.56.linear_attn.out_proj.weight" + "buf": "q_n" }, { - "buf": "residual" + "buf": "k_n" }, { - "buf": "model.layers.56.post_attention_layernorm.weight_p1" + "buf": "cos_g" }, { - "sym": "tokens" + "buf": "sin_g" }, { - "i32": 5120 + "i32": 0 }, { - "i32": 6144 + "i64": 0 }, { - "f32": 9.999999974752427e-07 + "i64": 0 } ] }, { - "label": "l56.gate_up_silu", - "kernel": "gemm8_gateup_silu", + "label": "l55.kv_write", + "kernel": "reshape_and_cache", "args": [ { - "buf": "act" + "buf": "k_n" }, { - "buf": "x" + "buf": "qkv", + "offset": 26624 }, { - "buf": "model.layers.56.mlp.gate_up_proj.weight" + "state": "kv", + "offset": 41746432 }, { - "sym": "tokens" + "state": "kv", + "offset": 41746944 }, { - "i32": 17408 + "buf": "slot_mapping" }, { - "i32": 5120 - } - ] - }, - { - "label": "l56.down_norm", - "kernel": "gemm8_add_norm", - "args": [ + "buf": "kv_scales" + }, { - "buf": "x" + "buf": "kv_scales", + "offset": 4 }, { - "buf": "act" + "i64": 1024 }, { - "buf": "model.layers.56.mlp.down_proj.weight" + "i64": 14336 }, { - "buf": "residual" + "i64": 25690112 }, { - "buf": "model.layers.57.input_layernorm.weight_p1" + "i64": 512 }, { - "sym": "tokens" + "i64": 0 }, { - "i32": 5120 + "i64": 0 }, { - "i32": 17408 + "i64": 2048 }, { - "f32": 9.999999974752427e-07 + "i64": 0 + }, + { + "i64": 0 } ] }, { - "label": "l57.in_proj", - "kernel": "gemm8_dual", + "label": "l55.attn", + "kernel": "attn_prefill", "args": [ { - "buf": "qkvz" + "buf": "attn_out" }, { - "buf": "ba" + "buf": "q_n" }, { - "buf": "x" + "state": "kv", + "offset": 41746432 }, { - "buf": "model.layers.57.linear_attn.in_proj_qkvz.weight" + "state": "kv", + "offset": 41746944 }, { - "buf": "model.layers.57.linear_attn.in_proj_ba.weight" + "buf": "block_table" }, { - "sym": "tokens" + "buf": "seq_lens" }, { - "i32": 16384 + "f32": 0.0625 }, { - "i32": 96 + "buf": "kv_scales" }, { - "i32": 5120 - } - ] - }, - { - "label": "l57.conv_update", - "kernel": "conv_update_spec", - "args": [ + "buf": "kv_scales", + "offset": 4 + }, { - "buf": "qkvz" + "f32": 1.0 }, { - "buf": "model.layers.57.linear_attn.conv1d.weight" + "f32": 0.0 }, { - "state": "gdn" + "i64": 8 }, { - "buf": "gdn.spec_line_index", - "offset": 176 + "i64": 6144 }, { - "buf": "num_accepted_tokens" + "i64": 256 }, { - "buf": "cu_seqlens_q" + "i64": 6144 }, { - "buf": "qkvz" + "i64": 256 }, { - "i32": 1 + "i64": 0 }, { - "i32": 385 + "buf": "seq_lens" }, { - "i64": 16384 + "i64": 25690112 }, { - "i64": 16384 + "i64": 2048 + }, + { + "i64": 512 + }, + { + "i64": 25690112 + }, + { + "i64": 2048 + }, + { + "i64": 512 + }, + { + "buf": "cu_seqlens_q" + }, + { + "i32": 1 }, { "i64": 0 @@ -123797,251 +96006,236 @@ ] }, { - "label": "l57.post_conv", - "kernel": "post_conv", + "label": "l55.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { - "buf": "qkvz" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "attn_out" }, { - "buf": "ba" + "buf": "qkv", + "offset": 512 }, { - "buf": "model.layers.57.linear_attn.A_log" + "buf": "model.layers.55.self_attn.o_proj.weight" }, { - "buf": "model.layers.57.linear_attn.dt_bias" + "buf": "residual" }, { - "buf": "gdn_q" + "buf": "model.layers.55.post_attention_layernorm.weight_p1" }, { - "buf": "gdn_k" + "sym": "tokens" }, { - "buf": "gdn_v" + "i32": 5120 }, { - "buf": "g" + "i32": 6144 }, { - "buf": "beta" + "i32": 256 }, { - "i32": 16384 + "i32": 14336 }, { - "i32": 96 + "i32": 512 }, { - "i32": 96 - }, + "f32": 9.999999974752427e-07 + } + ] + }, + { + "label": "l55.gate_up_silu", + "kernel": "gemm8_gateup_silu", + "args": [ { - "i32": 2048 + "buf": "act" }, { - "i32": 2048 + "buf": "x" }, { - "i32": 6144 + "buf": "model.layers.55.mlp.gate_up_proj.weight" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 17408 }, { - "i64": 0 + "i32": 5120 } ] }, { - "label": "l57.a_copy", - "kernel": "copy_rows", + "label": "l55.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "a_c" + "buf": "x" }, { - "buf": "ba", - "offset": 96 + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.55.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" }, { - "i32": 48 - } - ] - }, - { - "label": "l57.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" + "buf": "model.layers.56.input_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l57.recurrent", - "kernel": "recurrent_spec", + "label": "l56.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.57.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.57.linear_attn.dt_bias" + "buf": "model.layers.56.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.56.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l56.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.56.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, { - "buf": "cu_seqlens_q" + "buf": "gdn.spec_line_index", + "offset": 172 }, { - "buf": "gdn.spec_slots", - "offset": 1376 + "buf": "num_accepted_tokens" }, { - "buf": "num_accepted_tokens" + "buf": "cu_seqlens_q" }, { - "f32": 0.0883883461356163 + "buf": "gdn.spec_slots", + "offset": 1344 }, { - "i64": 1 + "buf": "ba" }, { - "sym": "tokens" + "buf": "model.layers.56.linear_attn.A_log" }, { - "i64": 0 + "buf": "model.layers.56.linear_attn.dt_bias" }, { - "i64": 0 - } - ] - }, - { - "label": "l57.z_copy", - "kernel": "copy_rows", - "args": [ + "buf": "core_attn_out" + }, { - "buf": "z_c" + "buf": "model.layers.56.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_q" }, { - "i32": 6144 + "buf": "gdn_k" }, { - "i32": 16384 + "buf": "gdn_v" }, { - "i32": 6144 - } - ] - }, - { - "label": "l57.gated_norm", - "kernel": "gated_norm", - "args": [ + "buf": "g" + }, { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.57.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, { - "label": "l57.out_norm", + "label": "l56.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -124051,13 +96245,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.57.linear_attn.out_proj.weight" + "buf": "model.layers.56.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.57.post_attention_layernorm.weight_p1" + "buf": "model.layers.56.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -124074,7 +96268,7 @@ ] }, { - "label": "l57.gate_up_silu", + "label": "l56.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -124084,7 +96278,7 @@ "buf": "x" }, { - "buf": "model.layers.57.mlp.gate_up_proj.weight" + "buf": "model.layers.56.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -124098,7 +96292,7 @@ ] }, { - "label": "l57.down_norm", + "label": "l56.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -124108,13 +96302,13 @@ "buf": "act" }, { - "buf": "model.layers.57.mlp.down_proj.weight" + "buf": "model.layers.56.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.58.input_layernorm.weight_p1" + "buf": "model.layers.57.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -124131,7 +96325,7 @@ ] }, { - "label": "l58.in_proj", + "label": "l57.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -124144,10 +96338,10 @@ "buf": "x" }, { - "buf": "model.layers.58.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.57.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.58.linear_attn.in_proj_ba.weight" + "buf": "model.layers.57.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -124164,21 +96358,25 @@ ] }, { - "label": "l58.conv_update", - "kernel": "conv_update_spec", + "label": "l57.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.58.linear_attn.conv1d.weight" + "buf": "model.layers.57.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 180 + "offset": 176 }, { "buf": "num_accepted_tokens" @@ -124187,177 +96385,218 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 1376 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.57.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.57.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.57.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l58.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.58.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.58.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l57.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" }, { - "i32": 6144 + "buf": "model.layers.57.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.57.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l58.a_copy", - "kernel": "copy_rows", + "label": "l57.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" }, { - "i32": 48 + "buf": "model.layers.57.mlp.gate_up_proj.weight" }, { - "i32": 96 + "sym": "tokens" + }, + { + "i32": 17408 + }, + { + "i32": 5120 + } + ] + }, + { + "label": "l57.down_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" + }, + { + "buf": "act" + }, + { + "buf": "model.layers.57.mlp.down_proj.weight" }, { - "i32": 48 - } - ] - }, - { - "label": "l58.b_copy", - "kernel": "copy_rows", - "args": [ + "buf": "residual" + }, { - "buf": "b_c" + "buf": "model.layers.58.input_layernorm.weight_p1" }, { - "buf": "ba" + "sym": "tokens" }, { - "i32": 48 + "i32": 5120 }, { - "i32": 96 + "i32": 17408 }, { - "i32": 48 + "f32": 9.999999974752427e-07 } ] }, { - "label": "l58.recurrent", - "kernel": "recurrent_spec", + "label": "l58.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.58.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.58.linear_attn.dt_bias" + "buf": "model.layers.58.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.58.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l58.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.58.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, + { + "buf": "gdn.spec_line_index", + "offset": 180 + }, + { + "buf": "num_accepted_tokens" + }, { "buf": "cu_seqlens_q" }, @@ -124366,90 +96605,64 @@ "offset": 1408 }, { - "buf": "num_accepted_tokens" + "buf": "ba" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.58.linear_attn.A_log" }, { - "i64": 1 + "buf": "model.layers.58.linear_attn.dt_bias" }, { - "sym": "tokens" + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.58.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l58.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" + "buf": "gdn_q" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_k" }, { - "i32": 6144 + "buf": "gdn_v" }, { - "i32": 16384 + "buf": "g" }, { - "i32": 6144 - } - ] - }, - { - "label": "l58.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.58.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, @@ -124801,460 +97014,34 @@ "i64": 256 }, { - "i64": 0 - }, - { - "buf": "seq_lens" - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "i64": 25690112 - }, - { - "i64": 2048 - }, - { - "i64": 512 - }, - { - "buf": "cu_seqlens_q" - }, - { - "i32": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l59.o_norm", - "kernel": "gemm8_sgate_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "attn_out" - }, - { - "buf": "qkv", - "offset": 512 - }, - { - "buf": "model.layers.59.self_attn.o_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.59.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l59.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.59.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l59.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.59.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.60.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l60.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.60.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.60.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l60.conv_update", - "kernel": "conv_update_spec", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.60.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, - { - "buf": "gdn.spec_line_index", - "offset": 184 - }, - { - "buf": "num_accepted_tokens" - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l60.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.60.linear_attn.A_log" - }, - { - "buf": "model.layers.60.linear_attn.dt_bias" - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "g" - }, - { - "buf": "beta" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l60.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l60.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l60.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.60.linear_attn.A_log" - }, - { - "buf": "a_c" - }, - { - "buf": "b_c" - }, - { - "buf": "model.layers.60.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 1440 - }, - { - "buf": "num_accepted_tokens" - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 1 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l60.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 + "i64": 0 }, { - "i32": 6144 - } - ] - }, - { - "label": "l60.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" + "buf": "seq_lens" }, { - "buf": "core_attn_out" + "i64": 25690112 }, { - "buf": "model.layers.60.linear_attn.norm.weight" + "i64": 2048 }, { - "buf": "z_c" + "i64": 512 }, { - "i32": 128 + "i64": 25690112 }, { - "i32": 128 + "i64": 2048 }, { - "i32": 128 + "i64": 512 }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "buf": "cu_seqlens_q" }, { - "f32": 9.999999974752427e-07 + "i32": 1 }, { "i64": 0 @@ -125265,23 +97052,27 @@ ] }, { - "label": "l60.out_norm", - "kernel": "gemm8_add_norm", + "label": "l59.o_norm", + "kernel": "gemm8_sgate_add_norm", "args": [ { "buf": "x" }, { - "buf": "core_attn_out" + "buf": "attn_out" }, { - "buf": "model.layers.60.linear_attn.out_proj.weight" + "buf": "qkv", + "offset": 512 + }, + { + "buf": "model.layers.59.self_attn.o_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.60.post_attention_layernorm.weight_p1" + "buf": "model.layers.59.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -125292,13 +97083,22 @@ { "i32": 6144 }, + { + "i32": 256 + }, + { + "i32": 14336 + }, + { + "i32": 512 + }, { "f32": 9.999999974752427e-07 } ] }, { - "label": "l60.gate_up_silu", + "label": "l59.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -125308,7 +97108,7 @@ "buf": "x" }, { - "buf": "model.layers.60.mlp.gate_up_proj.weight" + "buf": "model.layers.59.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -125322,7 +97122,7 @@ ] }, { - "label": "l60.down_norm", + "label": "l59.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -125332,13 +97132,13 @@ "buf": "act" }, { - "buf": "model.layers.60.mlp.down_proj.weight" + "buf": "model.layers.59.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.61.input_layernorm.weight_p1" + "buf": "model.layers.60.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -125355,7 +97155,7 @@ ] }, { - "label": "l61.in_proj", + "label": "l60.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -125368,10 +97168,10 @@ "buf": "x" }, { - "buf": "model.layers.61.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.60.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.61.linear_attn.in_proj_ba.weight" + "buf": "model.layers.60.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -125388,21 +97188,25 @@ ] }, { - "label": "l61.conv_update", - "kernel": "conv_update_spec", + "label": "l60.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.61.linear_attn.conv1d.weight" + "buf": "model.layers.60.linear_attn.conv1d.weight" }, { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", - "offset": 188 + "offset": 184 }, { "buf": "num_accepted_tokens" @@ -125411,177 +97215,218 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" + "buf": "gdn.spec_slots", + "offset": 1440 }, { - "i32": 1 + "buf": "ba" }, { - "i32": 385 + "buf": "model.layers.60.linear_attn.A_log" }, { - "i64": 16384 + "buf": "model.layers.60.linear_attn.dt_bias" }, { - "i64": 16384 + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.60.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l61.post_conv", - "kernel": "post_conv", - "args": [ + "buf": "gdn_q" + }, { - "buf": "qkvz" + "buf": "gdn_k" }, { - "buf": "ba", - "offset": 96 + "buf": "gdn_v" }, { - "buf": "ba" + "buf": "g" }, { - "buf": "model.layers.61.linear_attn.A_log" + "buf": "beta" }, { - "buf": "model.layers.61.linear_attn.dt_bias" + "buf": "a_c" }, { - "buf": "gdn_q" + "buf": "b_c" }, { - "buf": "gdn_k" + "buf": "z_c" }, { - "buf": "gdn_v" + "f32": 0.0883883461356163 }, { - "buf": "g" + "f32": 9.999999974752427e-07 }, { - "buf": "beta" + "sym": "tokens" }, { - "i32": 16384 + "i32": 385 }, { - "i32": 96 + "i32": 1703936 }, { - "i32": 96 + "i32": 10 }, { - "i32": 2048 + "i32": 851968 + } + ] + }, + { + "label": "l60.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i32": 2048 + "buf": "core_attn_out" }, { - "i32": 6144 + "buf": "model.layers.60.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.60.post_attention_layernorm.weight_p1" }, { "sym": "tokens" }, { - "i64": 0 + "i32": 5120 }, { - "i64": 0 + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l61.a_copy", - "kernel": "copy_rows", + "label": "l60.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "a_c" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" }, { - "i32": 48 + "buf": "model.layers.60.mlp.gate_up_proj.weight" }, { - "i32": 96 + "sym": "tokens" + }, + { + "i32": 17408 }, { - "i32": 48 + "i32": 5120 } ] }, { - "label": "l61.b_copy", - "kernel": "copy_rows", + "label": "l60.down_norm", + "kernel": "gemm8_add_norm", "args": [ { - "buf": "b_c" + "buf": "x" }, { - "buf": "ba" + "buf": "act" }, { - "i32": 48 + "buf": "model.layers.60.mlp.down_proj.weight" }, { - "i32": 96 + "buf": "residual" + }, + { + "buf": "model.layers.61.input_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 }, { - "i32": 48 + "i32": 17408 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l61.recurrent", - "kernel": "recurrent_spec", + "label": "l61.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "model.layers.61.linear_attn.A_log" + "buf": "qkvz" }, { - "buf": "a_c" + "buf": "ba" }, { - "buf": "b_c" + "buf": "x" }, { - "buf": "model.layers.61.linear_attn.dt_bias" + "buf": "model.layers.61.linear_attn.in_proj_qkvz.weight" }, { - "f32": 1.0 + "buf": "model.layers.61.linear_attn.in_proj_ba.weight" }, { - "f32": 20.0 + "sym": "tokens" }, { - "buf": "gdn_q" + "i32": 16384 }, { - "buf": "gdn_k" + "i32": 96 }, { - "buf": "gdn_v" + "i32": 5120 + } + ] + }, + { + "label": "l61.gdn", + "kernel": "gdn_spec", + "args": [ + { + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "model.layers.61.linear_attn.conv1d.weight" }, { - "state": "gdn", - "offset": 204800 + "state": "gdn" }, { "state": "gdn", "offset": 204800 }, + { + "buf": "gdn.spec_line_index", + "offset": 188 + }, + { + "buf": "num_accepted_tokens" + }, { "buf": "cu_seqlens_q" }, @@ -125590,90 +97435,64 @@ "offset": 1472 }, { - "buf": "num_accepted_tokens" + "buf": "ba" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.61.linear_attn.A_log" }, { - "i64": 1 + "buf": "model.layers.61.linear_attn.dt_bias" }, { - "sym": "tokens" + "buf": "core_attn_out" }, { - "i64": 0 + "buf": "model.layers.61.linear_attn.norm.weight" }, { - "i64": 0 - } - ] - }, - { - "label": "l61.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" + "buf": "gdn_q" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "gdn_k" }, { - "i32": 6144 + "buf": "gdn_v" }, { - "i32": 16384 + "buf": "g" }, { - "i32": 6144 - } - ] - }, - { - "label": "l61.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" + "buf": "beta" }, { - "buf": "core_attn_out" + "buf": "a_c" }, { - "buf": "model.layers.61.linear_attn.norm.weight" + "buf": "b_c" }, { "buf": "z_c" }, { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "sym": "tokens" }, { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, @@ -125825,8 +97644,8 @@ ] }, { - "label": "l62.conv_update", - "kernel": "conv_update_spec", + "label": "l62.gdn", + "kernel": "gdn_spec", "args": [ { "buf": "qkvz" @@ -125837,6 +97656,10 @@ { "state": "gdn" }, + { + "state": "gdn", + "offset": 204800 + }, { "buf": "gdn.spec_line_index", "offset": 192 @@ -125848,47 +97671,23 @@ "buf": "cu_seqlens_q" }, { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 385 - }, - { - "i64": 16384 - }, - { - "i64": 16384 - }, - { - "i64": 0 + "buf": "gdn.spec_slots", + "offset": 1504 }, { - "i64": 0 - } - ] - }, - { - "label": "l62.post_conv", - "kernel": "post_conv", - "args": [ - { - "buf": "qkvz" + "buf": "ba" }, { - "buf": "ba", - "offset": 96 + "buf": "model.layers.62.linear_attn.A_log" }, { - "buf": "ba" + "buf": "model.layers.62.linear_attn.dt_bias" }, { - "buf": "model.layers.62.linear_attn.A_log" + "buf": "core_attn_out" }, { - "buf": "model.layers.62.linear_attn.dt_bias" + "buf": "model.layers.62.linear_attn.norm.weight" }, { "buf": "gdn_q" @@ -125905,85 +97704,6 @@ { "buf": "beta" }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 96 - }, - { - "i32": 2048 - }, - { - "i32": 2048 - }, - { - "i32": 6144 - }, - { - "sym": "tokens" - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l62.a_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "a_c" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l62.b_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "b_c" - }, - { - "buf": "ba" - }, - { - "i32": 48 - }, - { - "i32": 96 - }, - { - "i32": 48 - } - ] - }, - { - "label": "l62.recurrent", - "kernel": "recurrent_spec", - "args": [ - { - "buf": "model.layers.62.linear_attn.A_log" - }, { "buf": "a_c" }, @@ -125991,126 +97711,28 @@ "buf": "b_c" }, { - "buf": "model.layers.62.linear_attn.dt_bias" - }, - { - "f32": 1.0 - }, - { - "f32": 20.0 - }, - { - "buf": "gdn_q" - }, - { - "buf": "gdn_k" - }, - { - "buf": "gdn_v" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "state": "gdn", - "offset": 204800 - }, - { - "buf": "cu_seqlens_q" - }, - { - "buf": "gdn.spec_slots", - "offset": 1504 - }, - { - "buf": "num_accepted_tokens" + "buf": "z_c" }, { "f32": 0.0883883461356163 }, { - "i64": 1 + "f32": 9.999999974752427e-07 }, { "sym": "tokens" }, { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l62.z_copy", - "kernel": "copy_rows", - "args": [ - { - "buf": "z_c" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 6144 - }, - { - "i32": 16384 - }, - { - "i32": 6144 - } - ] - }, - { - "label": "l62.gated_norm", - "kernel": "gated_norm", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.62.linear_attn.norm.weight" - }, - { - "buf": "z_c" - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 48 - ] - } + "i32": 385 }, { - "f32": 9.999999974752427e-07 + "i32": 1703936 }, { - "i64": 0 + "i32": 10 }, { - "i64": 0 + "i32": 851968 } ] }, diff --git a/tools/gen_qwen35.py b/tools/gen_qwen35.py index 6e14574..1c870ef 100644 --- a/tools/gen_qwen35.py +++ b/tools/gen_qwen35.py @@ -932,6 +932,23 @@ def layer_norm_kernel(src, grid, rows_shape): Z2 = [i64(0), i64(0)] if spec: + # the whole spec-path GDN chain of a layer in one launch + # (tools/kernels-src/gdn_spec.cu): conv update + post_conv split/ + # l2norm/gating + a/b/z copies + T-row delta rule with per-token + # SSM checkpoints + gated RMSNorm. Counter scratch is zero at + # rest (the last CTA resets); hpart holds data, write-before-read. + GDN_SPEC_PARAMS = [ + "inout buffer", # qkvz (conv writeback) + "in buffer", "inout ptr", "inout ptr", # conv weight, conv state, ssm state + "in buffer", "in buffer", "in buffer", # line, num_accepted, cu_seqlens_q + "in buffer", # spec_slots row + "in buffer", "in buffer", "in buffer", # ba, A_log, dt_bias + "out buffer", "in buffer", # core_attn_out, norm.weight + "out buffer", "out buffer", "out buffer", # gdn_q/k/v + "out buffer", "out buffer", # g, beta + "out buffer", "out buffer", "out buffer", # a_c, b_c, z_c + "out buffer", "out buffer", "out buffer", "out buffer", # scratch + "f32", "f32", "i32", "i32", "i32", "i32", "i32"] # scale, eps, tokens, n_pages, cls, cds, sls RMS_PARAMS = ["out buffer", "in buffer", "i64", "i64", "i64", "i64", "i64", "in buffer", "i64", "f32", "i32", "i32"] ad = spec["attn_draft"] @@ -939,24 +956,25 @@ def layer_norm_kernel(src, grid, rows_shape): "gemm_acc": single("extern:cublaslt_bf16_tn_acc", ["in buffer", "in buffer", "inout buffer", "i32", "i32", "i32"], [1, 1, 1], [1, 1, 1]), - # --- target GDN under speculation (vLLM's spec-decode kernels) - # conv update: seqlen 8 / state_len 10 are constexprs; reads the - # history taps at conv-line offset num_accepted-1, writes the - # new 10-wide window (in place on the qkvz rows) - "conv_update_spec": spec_kernel("conv_update_spec", - ["in buffer", "in buffer", "inout ptr", "in buffer", - "in buffer", "in buffer", "out buffer", - "i32", "i32", "i64", "i64"] + I2, - [1, CONV_DIM // 256, 1]), + # --- target GDN under speculation: the whole chain is fused + # into gdn_spec below (kern_gdn_spec_bf16) + "gdn_spec": { + "params": GDN_SPEC_PARAMS[:21] + GDN_SPEC_PARAMS[25:], + "impl": { + "scratch": {"xcnt": {"dtype": "i32", "shape": [GDN_Q // GDN_D]}, + "hpart": {"dtype": "f32", "shape": [SPEC_BLOCK, GDN_V_HEADS, 4]}, + "hcnt": {"dtype": "i32", "shape": [GDN_V_HEADS]}, + "gcnt": {"dtype": "i32", "shape": [1]}}, + "steps": [step("kern_gdn_spec_bf16", GDN_SPEC_PARAMS, [256, 1, 1], [192, 1, 1], + [a(i) for i in range(21)] + + [scr("xcnt"), scr("hpart"), scr("hcnt"), scr("gcnt")] + + [a(i) for i in range(21, 28)], + cubin="gdn_spec.cubin")], + }, + }, # recurrent delta rule over T rows with the sigmoid gating fused: # initial state from SSM slot num_accepted-1, every row's state # checkpointed to its own slot (ssm_state_indices) - "recurrent_spec": spec_kernel("recurrent_spec", - ["in buffer", "in buffer", "in buffer", "in buffer", - "f32", "f32", "in buffer", "in buffer", "in buffer", - "out buffer", "inout ptr", "inout ptr", "in buffer", - "in buffer", "in buffer", "f32", "i64", "i64"] + I2, - [1, GDN_D // 32, GDN_V_HEADS]), "argmax": { "params": ["in buffer", "out buffer", "i32"], "impl": { @@ -1094,30 +1112,22 @@ def gdn_layer(i, decode, nacc=None, small=False): f32(eps)] + Z2), ] else: - # vLLM's spec-decode GDN path: conv update with the accepted-token - # offset (seqlen 8 baked: it reads/writes 8 qkvz rows, rows past - # `tokens` are scratch), post_conv split, contiguous a/b, the - # recurrent kernel over T rows checkpointing every row's state. + # vLLM's spec-decode GDN path, fused into one launch (the chain + # was: conv update with the accepted-token offset, post_conv + # split + l2norm + gating, contiguous a/b copies, the recurrent + # kernel over T rows checkpointing every row's state, z copy, + # gated RMSNorm). The fused kernel reproduces every buffer + # write of that chain, including the qkvz conv writeback and + # the per-token SSM checkpoints. ds += [ - d(l + "conv_update", "conv_update_spec", - [buf("qkvz"), buf(p + "conv1d.weight"), state("gdn"), idx, nacc, buf("cu_seqlens_q"), - buf("qkvz"), i32(1), i32(n_pages), i64(QKVZ_DIM), i64(QKVZ_DIM)] + Z2), - d(l + "post_conv", "post_conv", - [buf("qkvz"), a_, b_, buf(p + "A_log"), buf(p + "dt_bias"), - buf("gdn_q"), buf("gdn_k"), buf("gdn_v"), buf("g"), buf("beta"), - i32(QKVZ_DIM), i32(BA_DIM), i32(BA_DIM), i32(GDN_Q), i32(GDN_Q), i32(GDN_V), T] + Z2), - d(l + "a_copy", "copy_rows", [buf("a_c"), a_, i32(GDN_V_HEADS), i32(BA_DIM), i32(GDN_V_HEADS)]), - d(l + "b_copy", "copy_rows", [buf("b_c"), b_, i32(GDN_V_HEADS), i32(BA_DIM), i32(GDN_V_HEADS)]), - d(l + "recurrent", "recurrent_spec", - [buf(p + "A_log"), buf("a_c"), buf("b_c"), buf(p + "dt_bias"), f32(1.0), f32(20.0), - buf("gdn_q"), buf("gdn_k"), buf("gdn_v"), buf("core_attn_out"), - state("gdn", ssm_off), state("gdn", ssm_off), buf("cu_seqlens_q"), - buf("gdn.spec_slots", 4 * SPEC_BLOCK * g), nacc, f32(gdn_scale), i64(1), T] + Z2), - d(l + "z_copy", "copy_rows", - [buf("z_c"), buf("qkvz", Z_OFF * BF16), i32(GDN_V), i32(QKVZ_DIM), i32(GDN_V)]), - d(l + "gated_norm", "gated_norm", - [buf("core_attn_out"), buf("core_attn_out"), buf(p + "norm.weight"), buf("z_c"), - i32(GDN_D), i32(GDN_D), i32(GDN_D), expr(mul(T, GDN_V_HEADS)), f32(eps)] + Z2), + d(l + "gdn", "gdn_spec", + [buf("qkvz"), buf(p + "conv1d.weight"), state("gdn"), state("gdn", ssm_off), + idx, nacc, buf("cu_seqlens_q"), buf("gdn.spec_slots", 4 * SPEC_BLOCK * g), + buf("ba"), buf(p + "A_log"), buf(p + "dt_bias"), buf("core_attn_out"), + buf(p + "norm.weight"), buf("gdn_q"), buf("gdn_k"), buf("gdn_v"), + buf("g"), buf("beta"), buf("a_c"), buf("b_c"), buf("z_c"), + f32(gdn_scale), f32(eps), T, i32(n_pages), + i32(page_bytes // BF16), i32(ssm_off // (CONV_DIM * BF16)), i32(page_bytes // 4)]), ] ds.append(gemm(l + "out_proj", "core_attn_out", p + "out_proj.weight", "y", T, HIDDEN, GDN_V)) return ds diff --git a/tools/kernels-src/gdn_spec.cu b/tools/kernels-src/gdn_spec.cu new file mode 100644 index 0000000..9857390 --- /dev/null +++ b/tools/kernels-src/gdn_spec.cu @@ -0,0 +1,369 @@ +// The speculative-path GDN chain of one layer in one launch (tokens <= 8): +// +// causal_conv1d_update (IS_SPEC_DECODING, _causal_conv1d_update_kernel +// width 4, silu, state +// roll from slot nacc-1) +// fused post-conv prep (split + l2norm + _fused_post_conv_kernel +// gating) +// a/b contiguous copies kern_copy_rows_bf16 x2 +// gated delta rule, T rows (l2norm again, per- fused_sigmoid_gating_delta_rule_update_kernel +// token SSM checkpoint +// to spec_slots[t]) +// z copy kern_copy_rows_bf16 +// gated RMSNorm (norm, then *silu(z)) layer_norm_fwd_kernel +// +// The pipeline the manifest pins normalizes q/k twice: the post_conv +// instance is the prefill one (APPLY_L2NORM, 1/sqrt form) and the +// recurrent kernel was captured with USE_QK_L2NORM_IN_KERNEL (rsqrt +// form); the fused kernel reproduces both, feeding the bf16-rounded +// first-pass values into the second, like the buffers did. +// +// Four CTAs per v head (192 total, co-resident) stream 32 state rows +// each and redundantly convolve + normalize the 256 q/k channels of +// their k head from registers/smem -- no producer/consumer chain. The +// only synchronization: a per-k-head staging counter before the conv +// writeback may overwrite qkvz (twelve sibling CTAs read those raw +// columns), and the fixed-order variance merge of the gated norm. +// +// Rounding chains reproduce the Triton kernels bit-for-bit where the +// order is defined (bf16 x*w conv products rounded before the f32 +// accumulate; silu -> bf16 store; the post_conv l2norm divides by +// tl.sqrt and rounds to bf16; the recurrent reloads that value, +// multiplies by tl.rsqrt of its own sum, then by scale; its softplus is +// the one-sided log(1+exp) form while the g/beta buffers keep the +// two-sided post_conv form; state updates go through fmaf like the +// Triton fma; the norm input is the bf16-rounded recurrent output). +// Only the sum orders of the wide reductions differ. +// +// Buffers past the cut carry every write of the chain: qkvz conv +// writeback, the conv state roll, the per-token SSM checkpoints, +// gdn_q/k/v, g/beta, a_c/b_c/z_c and the normed core_attn_out. +// +// All counter scratch is zero at rest: alloc_zeros at load, the last +// CTA resets (hpart holds data, write-before-read behind the counters). +// +// nvcc -cubin -arch=sm_103a -o kernels-qwen38-dflash2/gdn_spec.cubin tools/kernels-src/gdn_spec.cu +#include +#include + +namespace { +constexpr int HV = 48, K = 128, V = 128; +constexpr int CONV_DIM = 10240; // q | k | v channels +constexpr int Z_OFF = CONV_DIM; // z columns after q|k|v +constexpr int QKVZ = 16384, BA = 96; +constexpr int KOFF = 2048, VOFF = 4096; +constexpr int NT = 256; +constexpr int SPLIT = 4, ROWS = V / SPLIT; // CTAs per v head, state rows per CTA +constexpr int NB = SPLIT * HV; +constexpr int TMAX = 8; // SPEC_BLOCK +constexpr float L2EPS = 1e-6f; + +__device__ __forceinline__ int ld_acquire(const int* p) { + int v; + asm volatile("ld.acquire.gpu.global.s32 %0, [%1];" : "=r"(v) : "l"(p) : "memory"); + return v; +} +__device__ __forceinline__ float bf16r(float v) { return __bfloat162float(__float2bfloat16_rn(v)); } +// Triton lowers float division to rcp.approx + mul and tl.sqrt to +// sqrt.approx (see the pinned cubins' SASS); replicate the instructions. +__device__ __forceinline__ float rcpa(float x) { + float y; + asm("rcp.approx.f32 %0, %1;" : "=f"(y) : "f"(x)); + return y; +} +__device__ __forceinline__ float sqrta(float x) { + float y; + asm("sqrt.approx.f32 %0, %1;" : "=f"(y) : "f"(x)); + return y; +} +__device__ __forceinline__ float sigmoidf_(float x) { return rcpa(1.0f + expf(-x)); } +__device__ __forceinline__ float ldcg(const float* p) { return __ldcg(p); } + +struct SmemT { + __nv_bfloat16 cq[TMAX][K], ck[TMAX][K]; // conv outputs (raw x rows past T) + __nv_bfloat16 nq[TMAX][K], nk[TMAX][K]; // post_conv l2norm'd values + __nv_bfloat16 cv[TMAX][ROWS]; // v conv outputs (this CTA's rows) + __nv_bfloat16 oarr[TMAX][ROWS]; // recurrent output rows + float s1q[TMAX], s1k[TMAX]; // post_conv sums of squares + float s2q[TMAX], s2k[TMAX]; // recurrent sums of the rounded values + float red[TMAX][8]; // warp partials for the sums + float gg[TMAX], bb[TMAX]; // exp(g) and beta, recurrent form +}; +} // namespace + +// scratch: xcnt i32 [16] per-k-head staging counters, hpart f32 +// [TMAX*HV*SPLIT] variance partials, hcnt i32 [HV] arrive counters, +// gcnt i32 [1] exit counter for the reset. +extern "C" __global__ void __launch_bounds__(NT) kern_gdn_spec_bf16( + __nv_bfloat16* __restrict__ qkvz, // [tokens, 16384] inout + const __nv_bfloat16* __restrict__ w, // [10240, 4] + __nv_bfloat16* __restrict__ conv_state, // state pool, conv area + float* __restrict__ ssm_state, // state pool, ssm area + const int* __restrict__ line_p, // conv line page id + const int* __restrict__ nacc_p, // num accepted (resume slot + 1) + const int* __restrict__ cu, // cu_seqlens_q [2] + const int* __restrict__ slots, // 8 checkpoint page ids + const __nv_bfloat16* __restrict__ ba, // [tokens, 96] b | a + const float* __restrict__ A_log, // [48] + const __nv_bfloat16* __restrict__ dt_bias, // [48] + __nv_bfloat16* __restrict__ out, // core_attn_out [tokens, 6144] + const __nv_bfloat16* __restrict__ nw, // norm.weight [128] + __nv_bfloat16* __restrict__ gdn_q, // [tokens, 2048] + __nv_bfloat16* __restrict__ gdn_k, // [tokens, 2048] + __nv_bfloat16* __restrict__ gdn_v, // [tokens, 6144] + float* __restrict__ g_buf, // [tokens, 48] + float* __restrict__ beta_buf, // [tokens, 48] + __nv_bfloat16* __restrict__ a_c, // [tokens, 48] + __nv_bfloat16* __restrict__ b_c, // [tokens, 48] + __nv_bfloat16* __restrict__ z_c, // [tokens, 6144] + int* __restrict__ xcnt, float* __restrict__ hpart, + int* __restrict__ hcnt, int* __restrict__ gcnt, + float scale, float eps, int tokens, + int nlines, int cls, int cds, int sls) { + __shared__ SmemT s; + const int tid = threadIdx.x; + const int hv = blockIdx.x >> 2, sp = blockIdx.x & 3; + const int ih = hv / 3; + const bool qkwriter = (hv % 3) == 0; + const int line = line_p[0], nacc = nacc_p[0]; + const int cu0 = cu[0]; + const int T = cu[1] - cu0; // conv/recurrent extent + const int tt = tokens; // post_conv/copies/norm extent + const bool live = line > 0; + + // ---- stage: conv history + raw x for this thread's channel(s) ---- + // threads 0..127: q channel c of head ih; 128..255: k channel c. + const int c = tid & 127; + const int qk_ch = (tid < 128 ? ih * K : KOFF + ih * K) + c; + const int v_ch = VOFF + hv * V + sp * ROWS + (tid < ROWS ? tid : 0); + float wq[4], wv[4], hq[3], hvv[3]; + __nv_bfloat16 xq[TMAX], xv[TMAX]; + for (int j = 0; j < 4; j++) { + wq[j] = __bfloat162float(w[qk_ch * 4 + j]); + wv[j] = __bfloat162float(w[v_ch * 4 + j]); + } + // spec-pool conv state layout is token-major: [conv_len rows][CONV_DIM] + const int64_t cbase_qk = (int64_t)line * cls + qk_ch; + const int64_t cbase_v = (int64_t)line * cls + v_ch; + for (int j = 0; j < 3; j++) { + hq[j] = live ? __bfloat162float(conv_state[cbase_qk + (int64_t)(nacc - 1 + j) * CONV_DIM]) : 0.f; + hvv[j] = live ? __bfloat162float(conv_state[cbase_v + (int64_t)(nacc - 1 + j) * CONV_DIM]) : 0.f; + } +#pragma unroll + for (int t = 0; t < TMAX; t++) { + if (t >= tt) break; + xq[t] = qkvz[(int64_t)(cu0 + t) * QKVZ + qk_ch]; + xv[t] = qkvz[(int64_t)(cu0 + t) * QKVZ + v_ch]; + } + __threadfence(); + __syncthreads(); + if (tid == 0) atomicAdd(&xcnt[ih], 1); + + // initial SSM state, prefetched early so the cold load overlaps the conv + const int row = tid >> 3, lane8 = tid & 7, c0 = lane8 * 16; + const int page0 = slots[nacc - 1]; + const bool rec = page0 > 0; + const int64_t hb = (int64_t)hv * V * K + (int64_t)(sp * ROWS + row) * K + c0; + float bh[16]; + if (rec) { + const float4* h0 = (const float4*)(ssm_state + (int64_t)page0 * sls + hb); +#pragma unroll + for (int j = 0; j < 4; j++) *(float4*)&bh[j * 4] = h0[j]; + } + + // ---- conv (Triton: f32 acc of bf16-rounded products, then silu) ---- + auto conv1 = [&](const float* h, const float* wt, const __nv_bfloat16* x, int t) { + float acc = 0.f; +#pragma unroll + for (int j = 0; j < 4; j++) { + const int i = t + j; // window over [h0 h1 h2 x0 x1 ...] + const float xf = i < 3 ? h[i] : __bfloat162float(x[i - 3]); + acc = __fadd_rn(acc, bf16r(__fmul_rn(xf, wt[j]))); + } + return __float2bfloat16_rn(__fmul_rn(acc, rcpa(1.0f + expf(-acc)))); + }; + { + __nv_bfloat16* dst = tid < 128 ? &s.cq[0][0] : &s.ck[0][0]; +#pragma unroll + for (int t = 0; t < TMAX; t++) { + if (t >= tt) break; + dst[t * K + c] = (live && t < T) ? conv1(hq, wq, xq, t) : xq[t]; + if (tid < ROWS) s.cv[t][tid] = (live && t < T) ? conv1(hvv, wv, xv, t) : xv[t]; + } + } + // gating scalars for this v head (both softplus forms) + if (tid < tt) { + const int t = tid; + const float bv = __bfloat162float(ba[(int64_t)t * BA + hv]); + const float av = __bfloat162float(ba[(int64_t)t * BA + 48 + hv]); + const float x = av + __bfloat162float(dt_bias[hv]); + const float ea = expf(A_log[hv]); + // recurrent form: (1/beta) * log(1 + exp(beta*x)), beta = 1 + const float spr = x <= 20.f ? 1.0f * logf(1.0f + expf(x)) : x; + s.gg[t] = expf(-ea * spr); + s.bb[t] = sigmoidf_(bv); + if (sp == 0) { + // post_conv form: two-sided stable softplus + float spp = x > 0.f ? x + logf(1.0f + expf(-x)) : logf(1.0f + expf(x)); + if (x > 20.f) spp = x; + g_buf[(int64_t)t * HV + hv] = -ea * spp; + beta_buf[(int64_t)t * HV + hv] = sigmoidf_(bv); + a_c[(int64_t)t * HV + hv] = ba[(int64_t)t * BA + 48 + hv]; + b_c[(int64_t)t * HV + hv] = ba[(int64_t)t * BA + hv]; + } + } + __syncthreads(); + + // ---- sums of squares of the conv outputs (post_conv l2norm) ---- + auto sumsq = [&](const __nv_bfloat16* v128, int t, int part) { + // 128 threads (4 warps): warp-tree then fixed-order partial merge + const float x = __bfloat162float(v128[c]); + float p = __fmul_rn(x, x); + for (int d = 16; d > 0; d >>= 1) p += __shfl_xor_sync(0xffffffffu, p, d); + if ((tid & 31) == 0) s.red[t][part * 4 + ((tid >> 5) & 3)] = p; + }; + for (int t = 0; t < tt; t++) sumsq(tid < 128 ? s.cq[t] : s.ck[t], t, tid < 128 ? 0 : 1); + __syncthreads(); + if (tid < 2 * tt) { + const int t = tid >> 1; + const float* r = &s.red[t][(tid & 1) * 4]; + (tid & 1 ? s.s1k : s.s1q)[t] = (r[0] + r[1]) + (r[2] + r[3]); + } + __syncthreads(); + { + __nv_bfloat16* dst = tid < 128 ? &s.nq[0][0] : &s.nk[0][0]; + const __nv_bfloat16* src = tid < 128 ? &s.cq[0][0] : &s.ck[0][0]; + const float* ss = tid < 128 ? s.s1q : s.s1k; + for (int t = 0; t < tt; t++) { + const float inv = rcpa(sqrta(ss[t] + L2EPS)); + dst[t * K + c] = __float2bfloat16_rn(__bfloat162float(src[t * K + c]) * inv); + } + } + __syncthreads(); + // sums of squares of the rounded values (recurrent l2norm) + for (int t = 0; t < tt; t++) sumsq(tid < 128 ? s.nq[t] : s.nk[t], t, tid < 128 ? 0 : 1); + __syncthreads(); + if (tid < 2 * tt) { + const int t = tid >> 1; + const float* r = &s.red[t][(tid & 1) * 4]; + (tid & 1 ? s.s2k : s.s2q)[t] = (r[0] + r[1]) + (r[2] + r[3]); + } + __syncthreads(); + + // ---- writebacks that only this CTA touches ---- + for (int t = 0; t < tt; t++) { + if (tid < ROWS) { + const int col = hv * V + sp * ROWS + tid; + gdn_v[(int64_t)t * 6144 + col] = s.cv[t][tid]; + z_c[(int64_t)t * 6144 + col] = qkvz[(int64_t)t * QKVZ + Z_OFF + col]; + } + if (tid < 128) { + gdn_q[(int64_t)t * KOFF + ih * K + c] = s.nq[t][c]; + } else { + gdn_k[(int64_t)t * KOFF + ih * K + c] = s.nk[t][c]; + } + } + // conv state roll + qkvz writeback (v channels: this CTA is the only + // reader; q/k channels: wait for the twelve sibling CTAs to stage) + auto roll = [&](int64_t cbase, const float* h, const __nv_bfloat16* x) { + const bool ok = line < nlines; // A masks the shifted loads by this + for (int i = 0; i < T + 2 && i < cds; i++) { + __nv_bfloat16 val; + if (i < 2) + val = ok ? __float2bfloat16_rn(h[1 + i]) : __float2bfloat16_rn(0.f); + else + val = x[i - 2]; + conv_state[cbase + (int64_t)i * CONV_DIM] = val; + } + }; + if (live && tid < ROWS) { + roll(cbase_v, hvv, xv); + for (int t = 0; t < T; t++) qkvz[(int64_t)(cu0 + t) * QKVZ + v_ch] = s.cv[t][tid]; + } + if (live && qkwriter && (c >> 5) == sp) { + if (tid == (sp << 5)) while (ld_acquire(&xcnt[ih]) < 3 * SPLIT) {} + __syncwarp(); + roll(cbase_qk, hq, xq); + for (int t = 0; t < T; t++) + qkvz[(int64_t)(cu0 + t) * QKVZ + qk_ch] = (tid < 128 ? s.cq : s.ck)[t][c]; + } + + // ---- gated delta rule over T rows, checkpoint each row's state ---- + if (rec) { + for (int t = 0; t < T; t++) { + const float i2q = rsqrtf(s.s2q[t] + L2EPS), i2k = rsqrtf(s.s2k[t] + L2EPS); + float qv[16], kv[16]; + uint4 qraw[2], kraw[2]; + qraw[0] = ((const uint4*)&s.nq[t][c0])[0]; qraw[1] = ((const uint4*)&s.nq[t][c0])[1]; + kraw[0] = ((const uint4*)&s.nk[t][c0])[0]; kraw[1] = ((const uint4*)&s.nk[t][c0])[1]; +#pragma unroll + for (int j = 0; j < 16; j++) { + qv[j] = __bfloat162float(((const __nv_bfloat16*)qraw)[j]) * i2q * scale; + kv[j] = __bfloat162float(((const __nv_bfloat16*)kraw)[j]) * i2k; + } + float dot = 0.f; + for (int j = 0; j < 16; j++) { + bh[j] *= s.gg[t]; + dot += __fmul_rn(bh[j], kv[j]); + } + for (int d = 1; d < 8; d <<= 1) dot += __shfl_xor_sync(0xffffffffu, dot, d); + float bv = __bfloat162float(s.cv[t][row]) - dot; + bv *= s.bb[t]; + float o = 0.f; + for (int j = 0; j < 16; j++) { + bh[j] = fmaf(bv, kv[j], bh[j]); + o += __fmul_rn(bh[j], qv[j]); + } + for (int d = 1; d < 8; d <<= 1) o += __shfl_xor_sync(0xffffffffu, o, d); + if (lane8 == 0) s.oarr[t][row] = __float2bfloat16_rn(o); + const int st = slots[t]; + if (st > 0) { + float4* ht = (float4*)(ssm_state + (int64_t)st * sls + hb); + for (int j = 0; j < 4; j++) ht[j] = *(float4*)&bh[j * 4]; + } + } + } + __syncthreads(); + + // ---- gated RMSNorm, variance merged across the four sibling CTAs ---- + if (tid < ROWS) { + for (int t = 0; t < tt; t++) { + float x; + if (rec && t < T) + x = __bfloat162float(s.oarr[t][tid]); + else + x = __bfloat162float(out[(int64_t)t * 6144 + hv * V + sp * ROWS + tid]); + s.oarr[t][tid] = __float2bfloat16_rn(x); // keep the norm input + float p = __fmul_rn(x, x); + for (int d = 16; d > 0; d >>= 1) p += __shfl_xor_sync(0xffffffffu, p, d); + if (tid == 0) hpart[((int64_t)t * HV + hv) * SPLIT + sp] = p; + } + } + __threadfence(); + __syncthreads(); + if (tid == 0) atomicAdd(&hcnt[hv], 1); + if (tid == 0) while (ld_acquire(&hcnt[hv]) < SPLIT) {} + __syncthreads(); + if (tid < ROWS) { + for (int t = 0; t < tt; t++) { + const float* p = hpart + ((int64_t)t * HV + hv) * SPLIT; + const float var = ((ldcg(p) + ldcg(p + 1)) + (ldcg(p + 2) + ldcg(p + 3))) / (float)V; + const float rstd = rsqrtf(var + eps); + const int col = hv * V + sp * ROWS + tid; + float y = __bfloat162float(s.oarr[t][tid]) * rstd; + y *= __bfloat162float(nw[sp * ROWS + tid]); + const float z = __bfloat162float(qkvz[(int64_t)t * QKVZ + Z_OFF + col]); + y *= z * sigmoidf_(z); + out[(int64_t)t * 6144 + col] = __float2bfloat16_rn(y); + } + } + + // ---- last CTA resets the counter scratch ---- + __syncthreads(); + if (tid == 0 && atomicAdd(gcnt, 1) == NB - 1) { + for (int i = 0; i < 16; i++) xcnt[i] = 0; + for (int i = 0; i < HV; i++) hcnt[i] = 0; + *gcnt = 0; + __threadfence(); + } +} From 1d9e7fc1f8f75036ad4ecc64958aa338e174bfad Mon Sep 17 00:00:00 2001 From: JinYan Su <751080330@qq.com> Date: Mon, 31 Aug 2026 18:51:09 +0000 Subject: [PATCH 07/10] qwen38: fuse per-head q/k norm + rope + KV cache write into attn_prep The attention prep chain of every attention layer was four dispatches (gemma_norm_qhead + gemma_norm_khead + mrope + reshape_and_cache); kern_attn_prep_bf16 (tools/kernels-src/attn_prep.cu) does the whole chain in one launch with a CTA per (token, head) and no cross-CTA traffic, across decode and prefill of both manifests (and decode_spec / verify of the DFlash2 one). It removes three graph nodes per attention layer and the q_n/k_n round trips between norm, rope and the cache write. Bit-exactness against the chain (driver-API harness launching the pinned cubins with manifest-exact args, T = 1/8/96: every buffer bit-identical): - the norm reproduces ATen's reduction order (same code as gemma_rms_norm.cu, block width from the original per-instance `rows`, which stays an arg); - the rope replicates the Triton kernel's instruction shapes read from its SASS: y1 = bf16fma(x1, cos, -bf16(x2*sin)), y2 = bf16fma(x1, sin, bf16(x2*cos)) -- the x1 product is HFMA2-fused in both outputs, the x2 product pre-rounded; - the cache write is a plain bf16 copy (FP8 off). kern-attest (A = previous commit, B = this), --capacity 3920: plain manifest, decode program: step, eager 12.256 ms -> 11.999 ms (-257 us, -2.1%) step, graph (TPOT) 10.495 ms -> 10.409 ms (-86 us, -0.8%, 95 -> 96 tok/s) sum of 16 cuts 379.9 us -> 127.9 us (-66.3%) plain manifest, prefill (16 tokens): step, eager 17.909 ms -> 17.572 ms (-337 us, -1.9%) dflash2 manifest, decode program: step, eager 11.900 ms -> 11.740 ms (-160 us, -1.3%) step, graph (TPOT) 10.434 ms -> 10.415 ms (-19 us, -0.2%) sum of 16 cuts 380.7 us -> 130.0 us (-65.9%) The plain manifest's verdict is PASS (value-identical at every cut and under every fuzz distribution; only signed zeros differ under `edge`). The DFlash2 verdict is INCONCLUSIVE only because the driver cannot stage decode_spec/verify; those run the same fused kernel, and tools/qwen38_compare.py --spec covers them end to end. next_token (and draft_tokens/verify_tokens) bit-identical; every cut's q_n, k_n and kv state bit-identical on both manifests' decode and prefill. End to end (tools/qwen38_compare.py): the plain manifest generates token-for-token identical output to the previous commit on all five reference prompts, and the DFlash2 spec path reproduces the previous commit's vs-vLLM divergence points [66,139,147,91,91] and acceptance rates exactly. The attest capacity is a whole number of KV blocks (5 x 784) because the fuzz stage generates slot_mapping over the full provisioned token capacity: with the default 4096 the pool ends mid-block, and a fuzzed slot in the torn block at a late attention layer writes past the pool end. That overflow predates this change -- the pinned reshape_and_cache_kernel_flash writes the identical out-of-bounds addresses under the same inputs (compute-sanitizer shows the same invalid writes on both) -- vLLM can never produce such a slot because real pools are allocated in whole blocks. Signed-off-by: JinYan Su <751080330@qq.com> --- examples/qwen3.8-27b-dflash2.json | 10361 +++++----------------------- examples/qwen3.8-27b.json | 5405 +++------------ tools/gen_qwen35.py | 45 +- tools/kernels-src/attn_prep.cu | 149 + 4 files changed, 2776 insertions(+), 13184 deletions(-) create mode 100644 tools/kernels-src/attn_prep.cu diff --git a/examples/qwen3.8-27b-dflash2.json b/examples/qwen3.8-27b-dflash2.json index d45411d..984bfe8 100644 --- a/examples/qwen3.8-27b-dflash2.json +++ b/examples/qwen3.8-27b-dflash2.json @@ -6335,34 +6335,46 @@ ] } }, - "gemma_norm_qhead": { + "attn_prep": { "params": [ + "out buffer", "out buffer", "in buffer", "in buffer", + "in buffer", + "in buffer", + "in buffer", + "inout ptr", + "inout ptr", + "in buffer", "i32", "i32", - "i32", - "i32", - "i32", - "i32", + "i64", + "i64", + "i64", "i32", "f32" ], "impl": { "steps": [ { - "symbol": "kern_gemma_rms_norm_bf16", + "symbol": "kern_attn_prep_bf16", "params": [ + "out buffer", "out buffer", "in buffer", "in buffer", + "in buffer", + "in buffer", + "in buffer", + "inout ptr", + "inout ptr", + "in buffer", "i32", "i32", - "i32", - "i32", - "i32", - "i32", + "i64", + "i64", + "i64", "i32", "f32" ], @@ -6377,7 +6389,7 @@ { "sym": "tokens" }, - 24 + 28 ] }, 1, @@ -6416,99 +6428,27 @@ }, { "arg": 10 - } - ], - "shared_mem": 4096, - "cubin": "gemma_rms_norm.cubin" - } - ] - } - }, - "gemma_norm_khead": { - "params": [ - "out buffer", - "in buffer", - "in buffer", - "i32", - "i32", - "i32", - "i32", - "i32", - "i32", - "i32", - "f32" - ], - "impl": { - "steps": [ - { - "symbol": "kern_gemma_rms_norm_bf16", - "params": [ - "out buffer", - "in buffer", - "in buffer", - "i32", - "i32", - "i32", - "i32", - "i32", - "i32", - "i32", - "f32" - ], - "block": [ - 512, - 1, - 1 - ], - "grid": [ - { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - }, - 1, - 1 - ], - "args": [ - { - "arg": 0 - }, - { - "arg": 1 - }, - { - "arg": 2 - }, - { - "arg": 3 - }, - { - "arg": 4 }, { - "arg": 5 + "arg": 11 }, { - "arg": 6 + "arg": 12 }, { - "arg": 7 + "arg": 13 }, { - "arg": 8 + "arg": 14 }, { - "arg": 9 + "arg": 15 }, { - "arg": 10 + "arg": 16 } ], - "shared_mem": 4096, - "cubin": "gemma_rms_norm.cubin" + "cubin": "attn_prep.cubin" } ] } @@ -8106,121 +8046,86 @@ ] } }, - "mrope": { - "params": [ - "inout buffer", - "inout buffer", - "in buffer", - "in buffer", - "i32", - "i64", - "i64" - ], - "impl": { - "steps": [ - { - "symbol": "_triton_mrope_forward", - "params": [ - "inout buffer", - "inout buffer", - "in buffer", - "in buffer", - "i32", - "i64", - "i64" - ], - "block": [ - 128, - 1, - 1 - ], - "grid": [ - { - "sym": "tokens" - }, - 1, - 1 - ], - "args": [ - { - "arg": 0 - }, - { - "arg": 1 - }, - { - "arg": 2 - }, - { - "arg": 3 - }, - { - "arg": 4 - }, - { - "arg": 5 - }, - { - "arg": 6 - } - ], - "cubin": "cc5d7bff4bfd.cubin", - "sha256": "cc5d7bff4bfd36a94e8e43bfb6651908905734c8314019db41d3e469b3517483" - } - ] - } - }, - "reshape_and_cache": { + "attn_prefill": { "params": [ - "in buffer", + "out buffer", "in buffer", "inout ptr", "inout ptr", - "in buffer", + "in buffer", + "in buffer", + "f32", "in buffer", "in buffer", + "f32", + "f32", + "i64", + "i64", + "i64", + "i64", + "i64", "i64", + "in buffer", "i64", "i64", "i64", "i64", "i64", "i64", + "in buffer", + "i32", "i64", "i64" ], "impl": { "steps": [ { - "symbol": "reshape_and_cache_kernel_flash", + "symbol": "kernel_unified_attention", "params": [ - "in buffer", + "out buffer", "in buffer", "inout ptr", "inout ptr", - "in buffer", + "in buffer", + "in buffer", + "f32", "in buffer", "in buffer", + "f32", + "f32", + "i64", + "i64", + "i64", + "i64", "i64", "i64", + "in buffer", + "i64", "i64", "i64", "i64", "i64", "i64", + "in buffer", + "i32", "i64", "i64" ], "block": [ - 512, + 256, 1, 1 ], "grid": [ { - "sym": "tokens" + "ceil_div": [ + { + "sym": "tokens" + }, + 5 + ] }, - 1, + 4, 1 ], "args": [ @@ -8271,190 +8176,52 @@ }, { "arg": 15 + }, + { + "arg": 16 + }, + { + "arg": 17 + }, + { + "arg": 18 + }, + { + "arg": 19 + }, + { + "arg": 20 + }, + { + "arg": 21 + }, + { + "arg": 22 + }, + { + "arg": 23 + }, + { + "arg": 24 + }, + { + "arg": 25 + }, + { + "arg": 26 + }, + { + "arg": 27 } ], - "cubin": "93d7768f15ce.cubin", - "sha256": "93d7768f15ce02e252ad208dca2f6803d8ad65296d57f3444dccb9d1e6b88ac5" + "shared_mem": 155648, + "cubin": "ed9fb4215388.cubin", + "sha256": "ed9fb4215388f0b61af82e4aa279d61e738d32966a000b4c3cd224dd87411eb4" } ] } }, - "attn_prefill": { - "params": [ - "out buffer", - "in buffer", - "inout ptr", - "inout ptr", - "in buffer", - "in buffer", - "f32", - "in buffer", - "in buffer", - "f32", - "f32", - "i64", - "i64", - "i64", - "i64", - "i64", - "i64", - "in buffer", - "i64", - "i64", - "i64", - "i64", - "i64", - "i64", - "in buffer", - "i32", - "i64", - "i64" - ], - "impl": { - "steps": [ - { - "symbol": "kernel_unified_attention", - "params": [ - "out buffer", - "in buffer", - "inout ptr", - "inout ptr", - "in buffer", - "in buffer", - "f32", - "in buffer", - "in buffer", - "f32", - "f32", - "i64", - "i64", - "i64", - "i64", - "i64", - "i64", - "in buffer", - "i64", - "i64", - "i64", - "i64", - "i64", - "i64", - "in buffer", - "i32", - "i64", - "i64" - ], - "block": [ - 256, - 1, - 1 - ], - "grid": [ - { - "ceil_div": [ - { - "sym": "tokens" - }, - 5 - ] - }, - 4, - 1 - ], - "args": [ - { - "arg": 0 - }, - { - "arg": 1 - }, - { - "arg": 2 - }, - { - "arg": 3 - }, - { - "arg": 4 - }, - { - "arg": 5 - }, - { - "arg": 6 - }, - { - "arg": 7 - }, - { - "arg": 8 - }, - { - "arg": 9 - }, - { - "arg": 10 - }, - { - "arg": 11 - }, - { - "arg": 12 - }, - { - "arg": 13 - }, - { - "arg": 14 - }, - { - "arg": 15 - }, - { - "arg": 16 - }, - { - "arg": 17 - }, - { - "arg": 18 - }, - { - "arg": 19 - }, - { - "arg": 20 - }, - { - "arg": 21 - }, - { - "arg": 22 - }, - { - "arg": 23 - }, - { - "arg": 24 - }, - { - "arg": 25 - }, - { - "arg": 26 - }, - { - "arg": 27 - } - ], - "shared_mem": 155648, - "cubin": "ed9fb4215388.cubin", - "sha256": "ed9fb4215388f0b61af82e4aa279d61e738d32966a000b4c3cd224dd87411eb4" - } - ] - } - }, - "attn": { + "attn": { "params": [ "out buffer", "in buffer", @@ -12071,67 +11838,49 @@ ] }, { - "label": "l3.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l3.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, { - "buf": "qkv" - }, - { - "buf": "model.layers.3.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } + "buf": "k_n" }, { - "i32": 24 + "buf": "qkv" }, { - "i32": 14336 + "buf": "model.layers.3.self_attn.q_norm.weight_p1" }, { - "i32": 512 + "buf": "model.layers.3.self_attn.k_norm.weight_p1" }, { - "i32": 6144 + "buf": "cos_g" }, { - "i32": 256 + "buf": "sin_g" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l3.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" + "state": "kv" }, { - "buf": "qkv", - "offset": 24576 + "state": "kv", + "offset": 512 }, { - "buf": "model.layers.3.self_attn.k_norm.weight_p1" + "buf": "slot_mapping" }, { - "i32": 256 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { "expr": { @@ -12143,107 +11892,20 @@ ] } }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l3.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l3.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv" - }, - { - "state": "kv", - "offset": 512 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -14405,107 +14067,23 @@ ] }, { - "label": "l7.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l7.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.7.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l7.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.7.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l7.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.7.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.7.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -14513,28 +14091,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l7.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 3211264 @@ -14547,38 +14103,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -16717,107 +16274,23 @@ ] }, { - "label": "l11.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l11.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.11.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l11.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.11.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l11.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.11.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.11.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -16825,28 +16298,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l11.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 6422528 @@ -16859,38 +16310,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -19029,107 +18481,23 @@ ] }, { - "label": "l15.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l15.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.15.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l15.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.15.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l15.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.15.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.15.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -19137,28 +18505,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l15.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 9633792 @@ -19171,38 +18517,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -21341,107 +20688,23 @@ ] }, { - "label": "l19.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l19.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.19.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l19.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.19.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l19.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.19.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.19.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -21449,28 +20712,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l19.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 12845056 @@ -21483,38 +20724,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -23677,107 +22919,23 @@ ] }, { - "label": "l23.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l23.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.23.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l23.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.23.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l23.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.23.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.23.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -23785,28 +22943,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l23.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 16056320 @@ -23819,38 +22955,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -25989,107 +25126,23 @@ ] }, { - "label": "l27.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l27.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.27.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l27.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.27.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l27.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.27.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.27.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -26097,28 +25150,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l27.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 19267584 @@ -26131,38 +25162,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -28301,107 +27333,23 @@ ] }, { - "label": "l31.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l31.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.31.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l31.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.31.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l31.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.31.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.31.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -28409,28 +27357,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l31.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 22478848 @@ -28443,38 +27369,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -30637,107 +29564,23 @@ ] }, { - "label": "l35.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l35.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.35.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l35.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.35.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l35.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.35.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.35.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -30745,28 +29588,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l35.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 25690112 @@ -30779,38 +29600,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -32949,107 +31771,23 @@ ] }, { - "label": "l39.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l39.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.39.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l39.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.39.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l39.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.39.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.39.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -33057,28 +31795,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l39.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 28901376 @@ -33091,38 +31807,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -35261,107 +33978,23 @@ ] }, { - "label": "l43.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l43.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.43.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l43.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.43.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l43.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.43.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.43.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -35369,28 +34002,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l43.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 32112640 @@ -35403,38 +34014,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -37573,107 +36185,23 @@ ] }, { - "label": "l47.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l47.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.47.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l47.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.47.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l47.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.47.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.47.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -37681,28 +36209,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l47.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 35323904 @@ -37715,38 +36221,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -39909,107 +38416,23 @@ ] }, { - "label": "l51.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l51.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.51.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l51.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.51.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l51.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.51.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.51.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -40017,28 +38440,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l51.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 38535168 @@ -40051,38 +38452,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -42221,107 +40623,23 @@ ] }, { - "label": "l55.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l55.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.55.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l55.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.55.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l55.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.55.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.55.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -42329,28 +40647,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l55.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 41746432 @@ -42363,38 +40659,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -44533,107 +42830,23 @@ ] }, { - "label": "l59.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l59.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.59.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l59.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.59.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l59.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.59.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.59.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -44641,28 +42854,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l59.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 44957696 @@ -44675,38 +42866,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -46869,107 +45061,23 @@ ] }, { - "label": "l63.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l63.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.63.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l63.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.63.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l63.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.63.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.63.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -46977,28 +45085,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l63.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 48168960 @@ -47011,38 +45097,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -48167,67 +46254,49 @@ ] }, { - "label": "l3.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l3.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, { - "buf": "qkv" - }, - { - "buf": "model.layers.3.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } + "buf": "k_n" }, { - "i32": 24 + "buf": "qkv" }, { - "i32": 14336 + "buf": "model.layers.3.self_attn.q_norm.weight_p1" }, { - "i32": 512 + "buf": "model.layers.3.self_attn.k_norm.weight_p1" }, { - "i32": 6144 + "buf": "cos_g" }, { - "i32": 256 + "buf": "sin_g" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l3.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" + "state": "kv" }, { - "buf": "qkv", - "offset": 24576 + "state": "kv", + "offset": 512 }, { - "buf": "model.layers.3.self_attn.k_norm.weight_p1" + "buf": "slot_mapping" }, { - "i32": 256 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { "expr": { @@ -48239,107 +46308,20 @@ ] } }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l3.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l3.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv" - }, - { - "state": "kv", - "offset": 512 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -49211,107 +47193,23 @@ ] }, { - "label": "l7.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l7.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.7.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l7.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.7.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l7.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.7.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.7.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -49319,28 +47217,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l7.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 3211264 @@ -49353,38 +47229,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -50257,107 +48134,23 @@ ] }, { - "label": "l11.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l11.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.11.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l11.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.11.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l11.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.11.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.11.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -50365,28 +48158,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l11.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 6422528 @@ -50399,38 +48170,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -51303,107 +49075,23 @@ ] }, { - "label": "l15.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l15.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.15.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l15.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.15.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l15.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.15.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.15.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -51411,28 +49099,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l15.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 9633792 @@ -51445,38 +49111,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -52349,107 +50016,23 @@ ] }, { - "label": "l19.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l19.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.19.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l19.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.19.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l19.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.19.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.19.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -52457,28 +50040,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l19.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 12845056 @@ -52491,38 +50052,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -53395,107 +50957,23 @@ ] }, { - "label": "l23.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l23.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.23.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l23.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.23.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l23.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.23.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.23.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -53503,28 +50981,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l23.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 16056320 @@ -53537,38 +50993,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -54441,107 +51898,23 @@ ] }, { - "label": "l27.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l27.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.27.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l27.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.27.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l27.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.27.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.27.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -54549,28 +51922,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l27.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 19267584 @@ -54583,38 +51934,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -55487,107 +52839,23 @@ ] }, { - "label": "l31.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l31.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.31.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l31.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.31.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l31.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.31.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.31.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -55595,28 +52863,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l31.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 22478848 @@ -55629,38 +52875,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -56533,107 +53780,23 @@ ] }, { - "label": "l35.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l35.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.35.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l35.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.35.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l35.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.35.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.35.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -56641,28 +53804,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l35.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 25690112 @@ -56675,38 +53816,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -57579,107 +54721,23 @@ ] }, { - "label": "l39.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l39.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.39.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l39.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.39.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l39.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.39.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.39.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -57687,28 +54745,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l39.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 28901376 @@ -57721,38 +54757,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -58625,107 +55662,23 @@ ] }, { - "label": "l43.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l43.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.43.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l43.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.43.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l43.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.43.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.43.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -58733,28 +55686,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l43.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 32112640 @@ -58767,38 +55698,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -59671,107 +56603,23 @@ ] }, { - "label": "l47.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l47.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.47.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l47.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.47.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l47.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.47.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.47.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -59779,28 +56627,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l47.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 35323904 @@ -59813,38 +56639,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -60717,107 +57544,23 @@ ] }, { - "label": "l51.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l51.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.51.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l51.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.51.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l51.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.51.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.51.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -60825,28 +57568,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l51.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 38535168 @@ -60859,38 +57580,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -61763,107 +58485,23 @@ ] }, { - "label": "l55.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l55.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.55.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l55.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.55.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l55.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.55.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.55.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -61871,28 +58509,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l55.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 41746432 @@ -61905,38 +58521,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -62809,107 +59426,23 @@ ] }, { - "label": "l59.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l59.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.59.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l59.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.59.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l59.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.59.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.59.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -62917,28 +59450,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l59.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 44957696 @@ -62951,38 +59462,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -63855,107 +60367,23 @@ ] }, { - "label": "l63.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l63.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.63.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l63.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.63.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l63.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.63.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.63.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -63963,28 +60391,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l63.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 48168960 @@ -63997,38 +60403,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -65045,67 +61452,49 @@ ] }, { - "label": "l3.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l3.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, { - "buf": "qkv" - }, - { - "buf": "model.layers.3.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } + "buf": "k_n" }, { - "i32": 24 + "buf": "qkv" }, { - "i32": 14336 + "buf": "model.layers.3.self_attn.q_norm.weight_p1" }, { - "i32": 512 + "buf": "model.layers.3.self_attn.k_norm.weight_p1" }, { - "i32": 6144 + "buf": "cos_g" }, { - "i32": 256 + "buf": "sin_g" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l3.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" + "state": "kv" }, { - "buf": "qkv", - "offset": 24576 + "state": "kv", + "offset": 512 }, { - "buf": "model.layers.3.self_attn.k_norm.weight_p1" + "buf": "slot_mapping" }, { - "i32": 256 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { "expr": { @@ -65117,107 +61506,20 @@ ] } }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l3.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l3.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv" - }, - { - "state": "kv", - "offset": 512 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -66113,107 +62415,23 @@ ] }, { - "label": "l7.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l7.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.7.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l7.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.7.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l7.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.7.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.7.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -66221,28 +62439,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l7.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 3211264 @@ -66255,38 +62451,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -67159,107 +63356,23 @@ ] }, { - "label": "l11.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l11.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.11.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l11.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.11.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l11.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.11.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.11.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -67267,28 +63380,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l11.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 6422528 @@ -67301,38 +63392,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -68205,107 +64297,23 @@ ] }, { - "label": "l15.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l15.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.15.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l15.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.15.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l15.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.15.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.15.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -68313,28 +64321,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l15.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 9633792 @@ -68347,38 +64333,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -69251,107 +65238,23 @@ ] }, { - "label": "l19.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l19.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.19.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l19.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.19.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l19.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.19.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.19.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -69359,28 +65262,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l19.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 12845056 @@ -69393,38 +65274,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -70321,107 +66203,23 @@ ] }, { - "label": "l23.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l23.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.23.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l23.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.23.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l23.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.23.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.23.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -70429,28 +66227,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l23.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 16056320 @@ -70463,38 +66239,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -71367,107 +67144,23 @@ ] }, { - "label": "l27.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l27.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.27.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l27.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.27.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l27.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.27.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.27.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -71475,28 +67168,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l27.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 19267584 @@ -71509,38 +67180,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -72413,107 +68085,23 @@ ] }, { - "label": "l31.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l31.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.31.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l31.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.31.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l31.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.31.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.31.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -72521,28 +68109,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l31.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 22478848 @@ -72555,38 +68121,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -73483,107 +69050,23 @@ ] }, { - "label": "l35.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l35.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.35.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l35.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.35.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l35.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.35.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.35.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -73591,28 +69074,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l35.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 25690112 @@ -73625,38 +69086,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -74529,107 +69991,23 @@ ] }, { - "label": "l39.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l39.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.39.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l39.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.39.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l39.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.39.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.39.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -74637,28 +70015,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l39.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 28901376 @@ -74671,38 +70027,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -75575,107 +70932,23 @@ ] }, { - "label": "l43.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l43.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.43.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l43.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.43.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l43.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.43.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.43.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -75683,28 +70956,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l43.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 32112640 @@ -75717,38 +70968,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -76621,107 +71873,23 @@ ] }, { - "label": "l47.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l47.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.47.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l47.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.47.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l47.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.47.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.47.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -76729,28 +71897,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l47.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 35323904 @@ -76763,38 +71909,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -77691,107 +72838,23 @@ ] }, { - "label": "l51.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l51.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.51.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l51.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.51.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l51.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.51.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.51.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -77799,28 +72862,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l51.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 38535168 @@ -77833,38 +72874,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -78737,107 +73779,23 @@ ] }, { - "label": "l55.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l55.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.55.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l55.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.55.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l55.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.55.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.55.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -78845,28 +73803,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l55.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 41746432 @@ -78879,38 +73815,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -79783,107 +74720,23 @@ ] }, { - "label": "l59.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l59.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.59.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l59.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.59.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l59.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.59.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.59.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -79891,28 +74744,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l59.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 44957696 @@ -79925,38 +74756,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -80853,107 +75685,23 @@ ] }, { - "label": "l63.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l63.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.63.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l63.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.63.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l63.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.63.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.63.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -80961,28 +75709,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l63.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 48168960 @@ -80995,38 +75721,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -82043,67 +76770,49 @@ ] }, { - "label": "l3.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l3.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, { - "buf": "qkv" - }, - { - "buf": "model.layers.3.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } + "buf": "k_n" }, { - "i32": 24 + "buf": "qkv" }, { - "i32": 14336 + "buf": "model.layers.3.self_attn.q_norm.weight_p1" }, { - "i32": 512 + "buf": "model.layers.3.self_attn.k_norm.weight_p1" }, { - "i32": 6144 + "buf": "cos_g" }, { - "i32": 256 + "buf": "sin_g" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l3.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" + "state": "kv" }, { - "buf": "qkv", - "offset": 24576 + "state": "kv", + "offset": 512 }, { - "buf": "model.layers.3.self_attn.k_norm.weight_p1" + "buf": "slot_mapping" }, { - "i32": 256 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { "expr": { @@ -82115,107 +76824,20 @@ ] } }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l3.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l3.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv" - }, - { - "state": "kv", - "offset": 512 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -83111,107 +77733,23 @@ ] }, { - "label": "l7.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l7.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.7.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l7.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.7.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l7.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.7.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.7.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -83219,28 +77757,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l7.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 3211264 @@ -83253,38 +77769,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -84157,107 +78674,23 @@ ] }, { - "label": "l11.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l11.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.11.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l11.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.11.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l11.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.11.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.11.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -84265,28 +78698,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l11.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 6422528 @@ -84299,38 +78710,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -85203,107 +79615,23 @@ ] }, { - "label": "l15.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l15.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.15.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l15.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.15.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l15.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.15.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.15.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -85311,28 +79639,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l15.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 9633792 @@ -85345,38 +79651,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -86249,107 +80556,23 @@ ] }, { - "label": "l19.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l19.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.19.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l19.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.19.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l19.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.19.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.19.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -86357,28 +80580,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l19.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 12845056 @@ -86391,38 +80592,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -87319,107 +81521,23 @@ ] }, { - "label": "l23.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l23.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.23.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l23.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.23.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l23.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.23.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.23.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -87427,28 +81545,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l23.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 16056320 @@ -87461,38 +81557,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -88365,107 +82462,23 @@ ] }, { - "label": "l27.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l27.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.27.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l27.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.27.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l27.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.27.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.27.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -88473,28 +82486,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l27.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 19267584 @@ -88507,38 +82498,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -89411,107 +83403,23 @@ ] }, { - "label": "l31.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l31.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.31.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l31.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.31.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l31.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.31.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.31.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -89519,28 +83427,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l31.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 22478848 @@ -89553,38 +83439,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -90481,107 +84368,23 @@ ] }, { - "label": "l35.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l35.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.35.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l35.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.35.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l35.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.35.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.35.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -90589,28 +84392,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l35.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 25690112 @@ -90623,38 +84404,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -91527,107 +85309,23 @@ ] }, { - "label": "l39.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l39.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.39.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l39.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.39.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l39.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.39.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.39.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -91635,28 +85333,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l39.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 28901376 @@ -91669,38 +85345,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -92573,107 +86250,23 @@ ] }, { - "label": "l43.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l43.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.43.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l43.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.43.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l43.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.43.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.43.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -92681,28 +86274,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l43.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 32112640 @@ -92715,38 +86286,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -93619,107 +87191,23 @@ ] }, { - "label": "l47.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l47.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.47.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l47.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.47.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l47.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.47.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.47.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -93727,28 +87215,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l47.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 35323904 @@ -93761,38 +87227,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -94689,107 +88156,23 @@ ] }, { - "label": "l51.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l51.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.51.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l51.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.51.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l51.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.51.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.51.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -94797,28 +88180,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l51.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 38535168 @@ -94831,38 +88192,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -95735,107 +89097,23 @@ ] }, { - "label": "l55.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l55.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.55.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l55.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.55.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l55.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.55.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.55.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -95843,28 +89121,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l55.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 41746432 @@ -95877,38 +89133,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -96781,107 +90038,23 @@ ] }, { - "label": "l59.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l59.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.59.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l59.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.59.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l59.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.59.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.59.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -96889,28 +90062,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l59.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 44957696 @@ -96923,38 +90074,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -97851,107 +91003,23 @@ ] }, { - "label": "l63.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l63.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.63.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l63.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.63.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l63.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.63.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.63.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -97959,28 +91027,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l63.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 48168960 @@ -97993,38 +91039,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, diff --git a/examples/qwen3.8-27b.json b/examples/qwen3.8-27b.json index 5399ce4..537c631 100644 --- a/examples/qwen3.8-27b.json +++ b/examples/qwen3.8-27b.json @@ -5574,34 +5574,46 @@ ] } }, - "gemma_norm_qhead": { + "attn_prep": { "params": [ + "out buffer", "out buffer", "in buffer", "in buffer", + "in buffer", + "in buffer", + "in buffer", + "inout ptr", + "inout ptr", + "in buffer", "i32", "i32", - "i32", - "i32", - "i32", - "i32", + "i64", + "i64", + "i64", "i32", "f32" ], "impl": { "steps": [ { - "symbol": "kern_gemma_rms_norm_bf16", + "symbol": "kern_attn_prep_bf16", "params": [ + "out buffer", "out buffer", "in buffer", "in buffer", + "in buffer", + "in buffer", + "in buffer", + "inout ptr", + "inout ptr", + "in buffer", "i32", "i32", - "i32", - "i32", - "i32", - "i32", + "i64", + "i64", + "i64", "i32", "f32" ], @@ -5616,7 +5628,7 @@ { "sym": "tokens" }, - 24 + 28 ] }, 1, @@ -5655,99 +5667,27 @@ }, { "arg": 10 - } - ], - "shared_mem": 4096, - "cubin": "gemma_rms_norm.cubin" - } - ] - } - }, - "gemma_norm_khead": { - "params": [ - "out buffer", - "in buffer", - "in buffer", - "i32", - "i32", - "i32", - "i32", - "i32", - "i32", - "i32", - "f32" - ], - "impl": { - "steps": [ - { - "symbol": "kern_gemma_rms_norm_bf16", - "params": [ - "out buffer", - "in buffer", - "in buffer", - "i32", - "i32", - "i32", - "i32", - "i32", - "i32", - "i32", - "f32" - ], - "block": [ - 512, - 1, - 1 - ], - "grid": [ - { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - }, - 1, - 1 - ], - "args": [ - { - "arg": 0 - }, - { - "arg": 1 - }, - { - "arg": 2 - }, - { - "arg": 3 - }, - { - "arg": 4 }, { - "arg": 5 + "arg": 11 }, { - "arg": 6 + "arg": 12 }, { - "arg": 7 + "arg": 13 }, { - "arg": 8 + "arg": 14 }, { - "arg": 9 + "arg": 15 }, { - "arg": 10 + "arg": 16 } ], - "shared_mem": 4096, - "cubin": "gemma_rms_norm.cubin" + "cubin": "attn_prep.cubin" } ] } @@ -7610,121 +7550,86 @@ ] } }, - "mrope": { - "params": [ - "inout buffer", - "inout buffer", - "in buffer", - "in buffer", - "i32", - "i64", - "i64" - ], - "impl": { - "steps": [ - { - "symbol": "_triton_mrope_forward", - "params": [ - "inout buffer", - "inout buffer", - "in buffer", - "in buffer", - "i32", - "i64", - "i64" - ], - "block": [ - 128, - 1, - 1 - ], - "grid": [ - { - "sym": "tokens" - }, - 1, - 1 - ], - "args": [ - { - "arg": 0 - }, - { - "arg": 1 - }, - { - "arg": 2 - }, - { - "arg": 3 - }, - { - "arg": 4 - }, - { - "arg": 5 - }, - { - "arg": 6 - } - ], - "cubin": "module_173.cubin", - "sha256": "cc5d7bff4bfd36a94e8e43bfb6651908905734c8314019db41d3e469b3517483" - } - ] - } - }, - "reshape_and_cache": { + "attn_prefill": { "params": [ - "in buffer", + "out buffer", "in buffer", "inout ptr", "inout ptr", - "in buffer", + "in buffer", + "in buffer", + "f32", "in buffer", "in buffer", + "f32", + "f32", + "i64", + "i64", + "i64", + "i64", + "i64", "i64", + "in buffer", "i64", "i64", "i64", "i64", "i64", "i64", + "in buffer", + "i32", "i64", "i64" ], "impl": { "steps": [ { - "symbol": "reshape_and_cache_kernel_flash", + "symbol": "kernel_unified_attention", "params": [ - "in buffer", + "out buffer", "in buffer", "inout ptr", "inout ptr", - "in buffer", + "in buffer", + "in buffer", + "f32", "in buffer", "in buffer", + "f32", + "f32", + "i64", + "i64", + "i64", + "i64", "i64", "i64", + "in buffer", + "i64", "i64", "i64", "i64", "i64", "i64", + "in buffer", + "i32", "i64", "i64" ], "block": [ - 512, + 256, 1, 1 ], "grid": [ { - "sym": "tokens" + "ceil_div": [ + { + "sym": "tokens" + }, + 5 + ] }, - 1, + 4, 1 ], "args": [ @@ -7775,190 +7680,52 @@ }, { "arg": 15 + }, + { + "arg": 16 + }, + { + "arg": 17 + }, + { + "arg": 18 + }, + { + "arg": 19 + }, + { + "arg": 20 + }, + { + "arg": 21 + }, + { + "arg": 22 + }, + { + "arg": 23 + }, + { + "arg": 24 + }, + { + "arg": 25 + }, + { + "arg": 26 + }, + { + "arg": 27 } ], - "cubin": "module_119.cubin", - "sha256": "93d7768f15ce02e252ad208dca2f6803d8ad65296d57f3444dccb9d1e6b88ac5" + "shared_mem": 155648, + "cubin": "module_175.cubin", + "sha256": "ed9fb4215388f0b61af82e4aa279d61e738d32966a000b4c3cd224dd87411eb4" } ] } }, - "attn_prefill": { - "params": [ - "out buffer", - "in buffer", - "inout ptr", - "inout ptr", - "in buffer", - "in buffer", - "f32", - "in buffer", - "in buffer", - "f32", - "f32", - "i64", - "i64", - "i64", - "i64", - "i64", - "i64", - "in buffer", - "i64", - "i64", - "i64", - "i64", - "i64", - "i64", - "in buffer", - "i32", - "i64", - "i64" - ], - "impl": { - "steps": [ - { - "symbol": "kernel_unified_attention", - "params": [ - "out buffer", - "in buffer", - "inout ptr", - "inout ptr", - "in buffer", - "in buffer", - "f32", - "in buffer", - "in buffer", - "f32", - "f32", - "i64", - "i64", - "i64", - "i64", - "i64", - "i64", - "in buffer", - "i64", - "i64", - "i64", - "i64", - "i64", - "i64", - "in buffer", - "i32", - "i64", - "i64" - ], - "block": [ - 256, - 1, - 1 - ], - "grid": [ - { - "ceil_div": [ - { - "sym": "tokens" - }, - 5 - ] - }, - 4, - 1 - ], - "args": [ - { - "arg": 0 - }, - { - "arg": 1 - }, - { - "arg": 2 - }, - { - "arg": 3 - }, - { - "arg": 4 - }, - { - "arg": 5 - }, - { - "arg": 6 - }, - { - "arg": 7 - }, - { - "arg": 8 - }, - { - "arg": 9 - }, - { - "arg": 10 - }, - { - "arg": 11 - }, - { - "arg": 12 - }, - { - "arg": 13 - }, - { - "arg": 14 - }, - { - "arg": 15 - }, - { - "arg": 16 - }, - { - "arg": 17 - }, - { - "arg": 18 - }, - { - "arg": 19 - }, - { - "arg": 20 - }, - { - "arg": 21 - }, - { - "arg": 22 - }, - { - "arg": 23 - }, - { - "arg": 24 - }, - { - "arg": 25 - }, - { - "arg": 26 - }, - { - "arg": 27 - } - ], - "shared_mem": 155648, - "cubin": "module_175.cubin", - "sha256": "ed9fb4215388f0b61af82e4aa279d61e738d32966a000b4c3cd224dd87411eb4" - } - ] - } - }, - "attn": { + "attn": { "params": [ "out buffer", "in buffer", @@ -10191,67 +9958,49 @@ ] }, { - "label": "l3.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l3.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, { - "buf": "qkv" - }, - { - "buf": "model.layers.3.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } + "buf": "k_n" }, { - "i32": 24 + "buf": "qkv" }, { - "i32": 14336 + "buf": "model.layers.3.self_attn.q_norm.weight_p1" }, { - "i32": 512 + "buf": "model.layers.3.self_attn.k_norm.weight_p1" }, { - "i32": 6144 + "buf": "cos_g" }, { - "i32": 256 + "buf": "sin_g" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l3.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" + "state": "kv" }, { - "buf": "qkv", - "offset": 24576 + "state": "kv", + "offset": 512 }, { - "buf": "model.layers.3.self_attn.k_norm.weight_p1" + "buf": "slot_mapping" }, { - "i32": 256 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { "expr": { @@ -10263,107 +10012,20 @@ ] } }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l3.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l3.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv" - }, - { - "state": "kv", - "offset": 512 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -12501,107 +12163,23 @@ ] }, { - "label": "l7.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l7.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.7.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l7.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.7.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l7.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.7.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.7.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -12609,28 +12187,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l7.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 3211264 @@ -12643,38 +12199,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -14813,107 +14370,23 @@ ] }, { - "label": "l11.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l11.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.11.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l11.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.11.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l11.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.11.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.11.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -14921,28 +14394,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l11.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 6422528 @@ -14955,38 +14406,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -17125,107 +16577,23 @@ ] }, { - "label": "l15.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l15.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.15.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l15.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.15.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l15.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.15.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.15.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -17233,28 +16601,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l15.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 9633792 @@ -17267,38 +16613,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -19437,107 +18784,23 @@ ] }, { - "label": "l19.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l19.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.19.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l19.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.19.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l19.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.19.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.19.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -19545,28 +18808,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l19.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 12845056 @@ -19579,38 +18820,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -21749,107 +20991,23 @@ ] }, { - "label": "l23.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l23.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.23.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l23.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.23.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l23.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.23.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.23.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -21857,28 +21015,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l23.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 16056320 @@ -21891,38 +21027,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -24061,107 +23198,23 @@ ] }, { - "label": "l27.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l27.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.27.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l27.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.27.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l27.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.27.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.27.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -24169,28 +23222,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l27.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 19267584 @@ -24203,38 +23234,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -26373,107 +25405,23 @@ ] }, { - "label": "l31.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l31.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.31.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l31.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.31.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l31.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.31.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.31.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -26481,28 +25429,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l31.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 22478848 @@ -26515,38 +25441,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -28685,107 +27612,23 @@ ] }, { - "label": "l35.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l35.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.35.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l35.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.35.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l35.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.35.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.35.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -28793,28 +27636,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l35.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 25690112 @@ -28827,38 +27648,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -30997,107 +29819,23 @@ ] }, { - "label": "l39.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l39.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.39.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l39.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.39.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l39.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.39.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.39.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -31105,28 +29843,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l39.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 28901376 @@ -31139,38 +29855,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -33309,107 +32026,23 @@ ] }, { - "label": "l43.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l43.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.43.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l43.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.43.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l43.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.43.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.43.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -33417,28 +32050,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l43.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 32112640 @@ -33451,38 +32062,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -35621,107 +34233,23 @@ ] }, { - "label": "l47.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l47.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.47.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l47.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.47.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l47.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.47.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.47.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -35729,28 +34257,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l47.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 35323904 @@ -35763,38 +34269,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -37933,107 +36440,23 @@ ] }, { - "label": "l51.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l51.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.51.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l51.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.51.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l51.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.51.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.51.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -38041,28 +36464,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l51.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 38535168 @@ -38075,38 +36476,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -40245,107 +38647,23 @@ ] }, { - "label": "l55.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l55.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.55.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l55.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.55.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l55.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.55.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.55.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -40353,28 +38671,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l55.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 41746432 @@ -40387,38 +38683,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -42557,107 +40854,23 @@ ] }, { - "label": "l59.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l59.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.59.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l59.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.59.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l59.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.59.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.59.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -42665,28 +40878,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l59.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 44957696 @@ -42699,38 +40890,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -44869,107 +43061,23 @@ ] }, { - "label": "l63.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l63.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.63.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l63.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.63.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l63.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.63.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.63.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -44977,28 +43085,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l63.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 48168960 @@ -45011,38 +43097,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -46267,67 +44354,49 @@ ] }, { - "label": "l3.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l3.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, { - "buf": "qkv" - }, - { - "buf": "model.layers.3.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } + "buf": "k_n" }, { - "i32": 24 + "buf": "qkv" }, { - "i32": 14336 + "buf": "model.layers.3.self_attn.q_norm.weight_p1" }, { - "i32": 512 + "buf": "model.layers.3.self_attn.k_norm.weight_p1" }, { - "i32": 6144 + "buf": "cos_g" }, { - "i32": 256 + "buf": "sin_g" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l3.k_norm", - "kernel": "gemma_norm_khead", - "args": [ - { - "buf": "k_n" + "state": "kv" }, { - "buf": "qkv", - "offset": 24576 + "state": "kv", + "offset": 512 }, { - "buf": "model.layers.3.self_attn.k_norm.weight_p1" + "buf": "slot_mapping" }, { - "i32": 256 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { "expr": { @@ -46339,107 +44408,20 @@ ] } }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l3.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" - }, - { - "buf": "k_n" - }, - { - "buf": "cos_g" - }, - { - "buf": "sin_g" - }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l3.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, - { - "state": "kv" - }, - { - "state": "kv", - "offset": 512 - }, - { - "buf": "slot_mapping" - }, - { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 - }, - { - "i64": 14336 - }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -47410,107 +45392,23 @@ ] }, { - "label": "l7.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l7.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.7.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l7.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.7.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l7.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.7.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.7.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -47518,28 +45416,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l7.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 3211264 @@ -47552,38 +45428,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -48555,107 +46432,23 @@ ] }, { - "label": "l11.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l11.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.11.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l11.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.11.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l11.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.11.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.11.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -48663,28 +46456,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l11.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 6422528 @@ -48697,38 +46468,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -49700,107 +47472,23 @@ ] }, { - "label": "l15.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l15.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.15.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l15.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.15.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l15.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.15.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.15.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -49808,28 +47496,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l15.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 9633792 @@ -49842,38 +47508,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -50845,107 +48512,23 @@ ] }, { - "label": "l19.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l19.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.19.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l19.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.19.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l19.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.19.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.19.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -50953,28 +48536,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l19.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 12845056 @@ -50987,38 +48548,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -51990,107 +49552,23 @@ ] }, { - "label": "l23.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l23.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.23.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l23.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.23.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l23.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.23.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.23.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -52098,28 +49576,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l23.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 16056320 @@ -52132,38 +49588,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -53135,107 +50592,23 @@ ] }, { - "label": "l27.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l27.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.27.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l27.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.27.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l27.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.27.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.27.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -53243,28 +50616,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l27.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 19267584 @@ -53277,38 +50628,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -54280,107 +51632,23 @@ ] }, { - "label": "l31.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l31.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.31.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l31.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.31.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l31.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.31.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.31.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -54388,28 +51656,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l31.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 22478848 @@ -54422,38 +51668,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -55425,107 +52672,23 @@ ] }, { - "label": "l35.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l35.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.35.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l35.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.35.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l35.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.35.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.35.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -55533,28 +52696,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l35.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 25690112 @@ -55567,38 +52708,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -56570,107 +53712,23 @@ ] }, { - "label": "l39.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l39.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.39.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l39.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.39.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l39.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.39.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.39.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -56678,28 +53736,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l39.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 28901376 @@ -56712,38 +53748,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -57715,107 +54752,23 @@ ] }, { - "label": "l43.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l43.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.43.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l43.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.43.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l43.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.43.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.43.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -57823,28 +54776,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l43.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 32112640 @@ -57857,38 +54788,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -58860,107 +55792,23 @@ ] }, { - "label": "l47.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l47.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.47.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l47.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.47.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l47.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.47.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.47.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -58968,28 +55816,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l47.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 35323904 @@ -59002,38 +55828,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -60005,107 +56832,23 @@ ] }, { - "label": "l51.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l51.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.51.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l51.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.51.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l51.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.51.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.51.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -60113,28 +56856,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l51.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 38535168 @@ -60147,38 +56868,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -61150,107 +57872,23 @@ ] }, { - "label": "l55.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l55.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.55.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l55.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.55.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l55.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.55.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.55.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -61258,28 +57896,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l55.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 41746432 @@ -61292,38 +57908,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -62295,107 +58912,23 @@ ] }, { - "label": "l59.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l59.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.59.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l59.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.59.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l59.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.59.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.59.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -62403,28 +58936,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l59.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 44957696 @@ -62437,38 +58948,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, @@ -63440,107 +59952,23 @@ ] }, { - "label": "l63.q_norm", - "kernel": "gemma_norm_qhead", + "label": "l63.prep", + "kernel": "attn_prep", "args": [ { "buf": "q_n" }, - { - "buf": "qkv" - }, - { - "buf": "model.layers.63.self_attn.q_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 24 - ] - } - }, - { - "i32": 24 - }, - { - "i32": 14336 - }, - { - "i32": 512 - }, - { - "i32": 6144 - }, - { - "i32": 256 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l63.k_norm", - "kernel": "gemma_norm_khead", - "args": [ { "buf": "k_n" }, { - "buf": "qkv", - "offset": 24576 - }, - { - "buf": "model.layers.63.self_attn.k_norm.weight_p1" - }, - { - "i32": 256 - }, - { - "expr": { - "mul": [ - { - "sym": "tokens" - }, - 4 - ] - } - }, - { - "i32": 4 - }, - { - "i32": 14336 - }, - { - "i32": 256 - }, - { - "i32": 1024 - }, - { - "i32": 256 + "buf": "qkv" }, { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l63.rope", - "kernel": "mrope", - "args": [ - { - "buf": "q_n" + "buf": "model.layers.63.self_attn.q_norm.weight_p1" }, { - "buf": "k_n" + "buf": "model.layers.63.self_attn.k_norm.weight_p1" }, { "buf": "cos_g" @@ -63548,28 +59976,6 @@ { "buf": "sin_g" }, - { - "i32": 0 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l63.kv_write", - "kernel": "reshape_and_cache", - "args": [ - { - "buf": "k_n" - }, - { - "buf": "qkv", - "offset": 26624 - }, { "state": "kv", "offset": 48168960 @@ -63582,38 +59988,39 @@ "buf": "slot_mapping" }, { - "buf": "kv_scales" - }, - { - "buf": "kv_scales", - "offset": 4 - }, - { - "i64": 1024 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 24 + ] + } }, { - "i64": 14336 + "expr": { + "mul": [ + { + "sym": "tokens" + }, + 4 + ] + } }, { "i64": 25690112 }, { - "i64": 512 - }, - { - "i64": 0 - }, - { - "i64": 0 + "i64": 2048 }, { - "i64": 2048 + "i64": 512 }, { - "i64": 0 + "i32": 784 }, { - "i64": 0 + "f32": 9.999999974752427e-07 } ] }, diff --git a/tools/gen_qwen35.py b/tools/gen_qwen35.py index 1c870ef..4dcdbed 100644 --- a/tools/gen_qwen35.py +++ b/tools/gen_qwen35.py @@ -757,12 +757,15 @@ def layer_norm_kernel(src, grid, rows_shape): # reduction width depends on the row count, so `rows` is an arg). "gemma_norm": single("kern_gemma_rms_norm_bf16", GEMMA_PARAMS, [512, 1, 1], [T, 1, 1], shared_mem=GEMMA_SMEM, cubin="gemma_rms_norm.cubin"), - "gemma_norm_qhead": single("kern_gemma_rms_norm_bf16", GEMMA_PARAMS, [512, 1, 1], - [mul(T, HEADS), 1, 1], shared_mem=GEMMA_HEAD_SMEM, - cubin="gemma_rms_norm.cubin"), - "gemma_norm_khead": single("kern_gemma_rms_norm_bf16", GEMMA_PARAMS, [512, 1, 1], - [mul(T, KV_HEADS), 1, 1], shared_mem=GEMMA_HEAD_SMEM, - cubin="gemma_rms_norm.cubin"), + # per-head q/k gemma norm + partial rope + kv cache write of one + # attention layer (tools/kernels-src/attn_prep.cu): CTA = (token, head) + "attn_prep": single("kern_attn_prep_bf16", + ["out buffer", "out buffer", "in buffer", + "in buffer", "in buffer", "in buffer", + "in buffer", "inout ptr", "inout ptr", "in buffer", + "i32", "i32", "i64", "i64", "i64", "i32", "f32"], + [512, 1, 1], [mul(T, HEADS + KV_HEADS), 1, 1], + cubin="attn_prep.cubin"), "gemma_fused_norm": single("kern_gemma_fused_add_rms_norm_bf16", GEMMA_FUSED_PARAMS, [512, 1, 1], [T, 1, 1], shared_mem=GEMMA_SMEM, cubin="gemma_rms_norm.cubin"), @@ -894,14 +897,6 @@ def layer_norm_kernel(src, grid, rows_shape): [GDN_D // 32, GDN_V_HEADS, 1], src=dec), "gated_norm_decode": layer_norm_kernel(dec, [GDN_V_HEADS, 1, 1], [1, GDN_V_HEADS]), # --- attention - # one generic instance for both programs (decode's launch in vLLM is - # the num_tokens==1 specialization: same arithmetic, one arg fewer) - "mrope": tri("mrope", ["inout buffer", "inout buffer", "in buffer", - "in buffer", "i32"] + I2, [T, 1, 1]), - "reshape_and_cache": tri("cache", - ["in buffer", "in buffer", "inout ptr", "inout ptr", - "in buffer", "in buffer", "in buffer"] + ["i64"] * 9, - [T, 1, 1]), "attn_prefill": tri("unified", ATTN_IFACE, [cdiv(T, BLOCK_Q), KV_HEADS, 1]), "attn": { "params": ATTN_IFACE, @@ -1140,20 +1135,14 @@ def attn_layer(i, decode, small=False): kv_k, kv_v = state("kv", koff), state("kv", koff + V_BYTE_OFF) ds = [ gemm(l + "qkv_proj", "x", p + "qkv_proj.weight", "qkv", T, QKV_DIM, HIDDEN), - d(l + "q_norm", "gemma_norm_qhead", - [buf("q_n"), buf("qkv"), buf(p + "q_norm.weight_p1"), i32(HEAD_DIM), - expr(mul(T, HEADS)), i32(HEADS), i32(QKV_DIM), i32(2 * HEAD_DIM), i32(Q_DIM), - i32(HEAD_DIM), f32(eps)]), - d(l + "k_norm", "gemma_norm_khead", - [buf("k_n"), buf("qkv", HEADS * 2 * HEAD_DIM * BF16), buf(p + "k_norm.weight_p1"), - i32(HEAD_DIM), expr(mul(T, KV_HEADS)), i32(KV_HEADS), i32(QKV_DIM), i32(HEAD_DIM), - i32(KV_DIM), i32(HEAD_DIM), f32(eps)]), - d(l + "rope", "mrope", [buf("q_n"), buf("k_n"), buf("cos_g"), buf("sin_g"), i32(0)] + Z2), - d(l + "kv_write", "reshape_and_cache", - [buf("k_n"), buf("qkv", (HEADS * 2 * HEAD_DIM + KV_DIM) * BF16), kv_k, kv_v, - buf("slot_mapping"), ks, vs, - i64(KV_DIM), i64(QKV_DIM), i64(BLOCK_STRIDE), i64(2 * HEAD_DIM), i64(0), i64(0), - i64(KV_HEADS * 2 * HEAD_DIM), i64(0), i64(0)]), + # q/k gemma norm + partial rope + kv cache write, one CTA per + # (token, head) -- see tools/kernels-src/attn_prep.cu + d(l + "prep", "attn_prep", + [buf("q_n"), buf("k_n"), buf("qkv"), buf(p + "q_norm.weight_p1"), + buf(p + "k_norm.weight_p1"), buf("cos_g"), buf("sin_g"), kv_k, kv_v, + buf("slot_mapping"), expr(mul(T, HEADS)), expr(mul(T, KV_HEADS)), + i64(BLOCK_STRIDE), i64(KV_HEADS * 2 * HEAD_DIM), i64(2 * HEAD_DIM), + i32(BLOCK_SIZE), f32(eps)]), d(l + "attn", "attn" if decode else "attn_prefill", [buf("attn_out"), buf("q_n"), kv_k, kv_v, buf("block_table"), buf("seq_lens"), f32(attn_scale), ks, vs, f32(1.0), f32(0.0), diff --git a/tools/kernels-src/attn_prep.cu b/tools/kernels-src/attn_prep.cu new file mode 100644 index 0000000..eba81a2 --- /dev/null +++ b/tools/kernels-src/attn_prep.cu @@ -0,0 +1,149 @@ +// The attention prep chain of one layer in one launch: +// +// per-head Gemma RMSNorm of q and k kern_gemma_rms_norm_bf16 x2 +// partial rotary (dim 64 of 256) _triton_mrope_forward +// KV cache write reshape_and_cache_kernel_flash +// +// One CTA per (token, head): 24 q heads norm + rope into q_n, 4 k heads +// norm + rope into k_n and copy the k/v pair into the paged KV cache. +// No cross-CTA traffic at all -- the fusion removes three graph nodes +// per layer and the q_n/k_n round trips between norm, rope and the +// cache write. +// +// Rounding is bit-exact against the chain: the norm reproduces ATen's +// reduction order (same code as gemma_rms_norm.cu, W from the original +// per-kernel `rows`), the rope operates on the bf16-rounded norm output +// with the Triton kernel's instruction shapes (product of the far +// element rounded to bf16, then a single-rounding bf16 fma with the +// near element -- HMUL2/HFMA2 in the pinned cubin), and the cache write +// is a plain bf16 copy (FP8 off, scales unused). +// +// nvcc -cubin -arch=sm_103a -o kernels-qwen38/attn_prep.cubin tools/kernels-src/attn_prep.cu +#include +#include + +namespace { +constexpr int NT = 512; +constexpr int HEADS = 24, KV_HEADS = 4, HD = 256, ROT = 32; // rotary_dim 64 +constexpr int QKV_ROW = 14336; // q|gate 24*512 | k 4*256 | v 4*256 +constexpr int K_OFF = HEADS * 2 * HD; // 12288 +constexpr int V_OFF = K_OFF + KV_HEADS * HD; // 13312 +constexpr int GROUPS = HEADS + KV_HEADS; // CTAs per token + +__device__ inline int last_pow2(int n) { + n |= (n >> 1); n |= (n >> 2); n |= (n >> 4); n |= (n >> 8); n |= (n >> 16); + return (n - (n >> 1)) > 0 ? (n - (n >> 1)) : 1; +} +// ATen ReduceConfig::set_block_dimension(dim0 = N/vec, dim1 = rows), mnt=512. +__device__ inline int aten_block_width(int dim0, int dim1) { + int dim0_pow2 = dim0 < NT ? last_pow2(dim0) : NT; + int dim1_pow2 = dim1 < NT ? last_pow2(dim1) : NT; + int block_width = min(dim0_pow2, 32); + int block_height = min(dim1_pow2, NT / block_width); + block_width = min(dim0_pow2, NT / block_height); + return block_width; +} +// Sum of sq[0..N) in ATen's order for W lanes (see gemma_rms_norm.cu). +__device__ float aten_row_sum(const float* __restrict__ sq, int N, int W, + float* __restrict__ s) { + const int t = threadIdx.x; + float value = 0.f; + if (t < W) { + float acc[4] = {0.f, 0.f, 0.f, 0.f}; + for (int idx = t; idx * 4 + 3 < N; idx += W) { + const float4 v = *reinterpret_cast(sq + idx * 4); + acc[0] += v.x; acc[1] += v.y; acc[2] += v.z; acc[3] += v.w; + } + value = ((acc[0] + acc[1]) + acc[2]) + acc[3]; + } + if (W > 32) { + s[t] = value; + for (int off = W / 2; off >= 32; off >>= 1) { + __syncthreads(); + if (t < off && t + off < W) { value += s[t + off]; s[t] = value; } + } + } + __syncthreads(); + if (t < 32) { + for (int off = 16; off > 0; off >>= 1) + value += __shfl_down_sync(0xffffffffu, value, off); + if (t == 0) s[0] = value; + } + __syncthreads(); + return s[0]; +} +} // namespace + +extern "C" __global__ void __launch_bounds__(NT) kern_attn_prep_bf16( + __nv_bfloat16* __restrict__ q_n, // [tokens, 6144] out (post rope) + __nv_bfloat16* __restrict__ k_n, // [tokens, 1024] out (post rope) + const __nv_bfloat16* __restrict__ qkv, // [tokens, 14336] + const float* __restrict__ qw1, // q_norm weight + 1 + const float* __restrict__ kw1, // k_norm weight + 1 + const __nv_bfloat16* __restrict__ cos_g, // [tokens, 32] + const __nv_bfloat16* __restrict__ sin_g, // [tokens, 32] + __nv_bfloat16* __restrict__ kv_k, // paged cache, k plane of this layer + __nv_bfloat16* __restrict__ kv_v, // paged cache, v plane (k + 256) + const int64_t* __restrict__ slot_mapping, // [tokens] + int rows_q, int rows_k, // T*24 / T*4 (ATen width inputs) + int64_t block_stride, int64_t page_stride, int64_t head_stride, + int block_size, float eps) { + __shared__ float z[HD], s[NT], sq[HD]; + __shared__ __nv_bfloat16 nb[HD]; + const int tok = blockIdx.x / GROUPS, h = blockIdx.x % GROUPS; + const bool isq = h < HEADS; + const int kh = h - HEADS; + const __nv_bfloat16* in = + qkv + (int64_t)tok * QKV_ROW + (isq ? h * 2 * HD : K_OFF + kh * HD); + const float* w1 = isq ? qw1 : kw1; + + // ---- Gemma RMSNorm, ATen reduction order, rounded to bf16 ---- + for (int j = threadIdx.x; j < HD; j += NT) { + const float v = __bfloat162float(in[j]); + z[j] = v; + sq[j] = __fmul_rn(v, v); + } + __syncthreads(); + const int rows = isq ? rows_q : rows_k; + const int W = aten_block_width(HD / 4, rows); + const float sum = aten_row_sum(sq, HD, W, s); + const float factor = (float)rows / (float)((long long)rows * (long long)HD); + const float var = __fmul_rn(sum, factor); + const float r = rsqrtf(__fadd_rn(var, eps)); + for (int j = threadIdx.x; j < HD; j += NT) + nb[j] = __float2bfloat16_rn(__fmul_rn(__fmul_rn(z[j], r), w1[j])); + __syncthreads(); + + // ---- partial neox rotary on dims [0, 64): pair (d, d+32) ---- + // Triton emits (per SASS): y1 = bf16fma(x1, cos, -bf16(x2 * sin)) + // y2 = bf16fma(x1, sin, bf16(x2 * cos)) + // -- the x1 product is HFMA2-fused in both outputs, the x2 product + // pre-rounded. + if (threadIdx.x < ROT) { + const int j = threadIdx.x; + const __nv_bfloat16 c = cos_g[(int64_t)tok * ROT + j]; + const __nv_bfloat16 sn = sin_g[(int64_t)tok * ROT + j]; + const __nv_bfloat16 x1 = nb[j], x2 = nb[j + ROT]; + nb[j] = __hfma(x1, c, __hneg(__hmul(x2, sn))); + nb[j + ROT] = __hfma(x1, sn, __hmul(x2, c)); + } + __syncthreads(); + + // ---- stores: q_n / k_n, and the paged KV cache for k heads ---- + if (isq) { + for (int j = threadIdx.x; j < HD; j += NT) + q_n[(int64_t)tok * (HEADS * HD) + h * HD + j] = nb[j]; + return; + } + for (int j = threadIdx.x; j < HD; j += NT) + k_n[(int64_t)tok * (KV_HEADS * HD) + kh * HD + j] = nb[j]; + const int64_t slot = slot_mapping[tok]; + if (slot < 0) return; // padding token + const int64_t base = (slot / block_size) * block_stride + + (slot % block_size) * page_stride + kh * head_stride; + const __nv_bfloat16* v_src = qkv + (int64_t)tok * QKV_ROW + V_OFF + kh * HD; + for (int j = threadIdx.x; j < HD; j += NT) { + kv_k[base + j] = nb[j]; + kv_v[base + j] = v_src[j]; + } +} From 8262fdae8960a7cccb64ab51939258e80d5ca007 Mon Sep 17 00:00:00 2001 From: JinYan Su <751080330@qq.com> Date: Mon, 31 Aug 2026 19:10:47 +0000 Subject: [PATCH 08/10] qwen38: fuse the GDN decode chain into one cluster launch The decode-path GDN chain of every linear-attention layer was three dispatches (conv_update + recurrent + gated_norm_decode); kern_gdn_decode_bf16 (tools/kernels-src/gdn_decode.cu) does the whole chain in one launch of the plain manifest's decode program (the DFlash2 manifest's spec path was already fused as gdn_spec). An earlier attempt at this fusion was abandoned: the chain's kernels overlap under programmatic dependent launch in graph mode, so a fused kernel that merely removes launches -- and serializes the sibling CTAs behind a global-scratch q/k handoff -- replays slower than the chain it replaces. This kernel instead uses one thread-block cluster per q/k head (2 CTAs per v head x 3 v heads): rank 0 convolves and l2-normalizes the head's q/k row once and the siblings pick it up over distributed shared memory after a single cluster.sync(), with their state-tile loads issued before the sync so the handoff hides under them. No global scratch, no flags, nothing to reset. Standalone graph replay of one layer: 8.19 us for the pinned three-kernel chain, 6.3 us fused. The conv state is token-major (tap j of channel ch at j*10240 + ch), proved by probing the pinned cubin with marker values -- the earlier attempt had it channel-major, which survives no bit comparison. Rounding replicates the Triton kernels instruction-for-instruction (bf16-rounded x*w conv products into an f32 accumulate, division as rcp.approx + mul, l2norm via sqrt.approx, beta through bf16, rstd as rsqrtf); in the driver-API A/B harness qkvz, the conv state and core_attn_out are bit-identical against the pinned chain, and only the f32 SSM state carries the wide-reduction sum-order band. kern-attest (A = previous commit, B = this), --capacity 3920: step, eager 12.007 ms -> 11.522 ms (-486 us, -4.0%) step, graph (TPOT) 10.322 ms -> 10.152 ms (-170 us, -1.6%, 97 -> 99 tok/s) sum of 48 cuts 1.033 ms -> 579.0 us (-43.9%) next_token is bit-identical over the tapped workload. The verdict is INCONCLUSIVE because the cuts mutate the conv/SSM state and cannot be replayed idempotently: attest's own A-vs-A replay differs by ~129 MB of state at every cut, and B's divergence from the reference (the f32 SSM sum-order band, ~280 KB at the first cut; qkvz, the conv state and core_attn_out are bit-identical in the driver-API harness) sits far inside that band. tools/qwen38_compare.py covers the path end to end: the divergence points against vLLM move from the previous commit's [130,93,98,91,178] to [124,139,341,185,178] -- the same class, later on four of five prompts. Signed-off-by: JinYan Su <751080330@qq.com> --- examples/qwen3.8-27b.json | 4901 +++++-------------------------- tools/gen_qwen35.py | 37 +- tools/kernels-src/gdn_decode.cu | 238 ++ 3 files changed, 944 insertions(+), 4232 deletions(-) create mode 100644 tools/kernels-src/gdn_decode.cu diff --git a/examples/qwen3.8-27b.json b/examples/qwen3.8-27b.json index 537c631..56bece8 100644 --- a/examples/qwen3.8-27b.json +++ b/examples/qwen3.8-27b.json @@ -7285,129 +7285,55 @@ ] } }, - "conv_update": { + "gdn_decode": { "params": [ + "inout buffer", "in buffer", - "in buffer", + "inout ptr", "inout ptr", "in buffer", - "out buffer", - "i32", - "i32", - "i64", - "i64", - "i64", - "i64" - ], - "impl": { - "steps": [ - { - "symbol": "_causal_conv1d_update_kernel", - "params": [ - "in buffer", - "in buffer", - "inout ptr", - "in buffer", - "out buffer", - "i32", - "i32", - "i64", - "i64", - "i64", - "i64" - ], - "block": [ - 128, - 1, - 1 - ], - "grid": [ - 1, - 40, - 1 - ], - "args": [ - { - "arg": 0 - }, - { - "arg": 1 - }, - { - "arg": 2 - }, - { - "arg": 3 - }, - { - "arg": 4 - }, - { - "arg": 5 - }, - { - "arg": 6 - }, - { - "arg": 7 - }, - { - "arg": 8 - }, - { - "arg": 9 - }, - { - "arg": 10 - } - ], - "cubin": "module_139.cubin", - "sha256": "c2504833f4aa2997dc27f621fa8168695ba8773c41e0ced1c8ffb7d189cf8ae4" - } - ] - } - }, - "recurrent": { - "params": [ - "in buffer", - "in buffer", "in buffer", "in buffer", "in buffer", "out buffer", - "inout ptr", - "inout ptr", - "in buffer", + "in buffer", "f32", - "i64", - "i64" + "f32", + "i32", + "i32", + "i32", + "i32" ], "impl": { "steps": [ { - "symbol": "fused_recurrent_gated_delta_rule_packed_decode_kernel", + "symbol": "kern_gdn_decode_bf16", "params": [ + "inout buffer", "in buffer", - "in buffer", + "inout ptr", + "inout ptr", + "in buffer", "in buffer", "in buffer", "in buffer", "out buffer", - "inout ptr", - "inout ptr", - "in buffer", + "in buffer", "f32", - "i64", - "i64" + "f32", + "i32", + "i32", + "i32", + "i32" ], "block": [ - 32, + 256, 1, 1 ], "grid": [ - 4, - 48, + 96, + 1, 1 ], "args": [ @@ -7446,106 +7372,21 @@ }, { "arg": 11 - } - ], - "shared_mem": 64, - "cubin": "module_141.cubin", - "sha256": "ecc0dc457582a5d0ca3348d366168eb51a68deaaf59de409fb800b2665c903de" - } - ] - } - }, - "gated_norm_decode": { - "params": [ - "inout buffer", - "out buffer", - "in buffer", - "in buffer", - "i32", - "i32", - "i32", - "i32", - "f32", - "i64", - "i64" - ], - "impl": { - "scratch": { - "rstd": { - "dtype": "f32", - "shape": [ - 1, - 48 - ] - } - }, - "steps": [ - { - "symbol": "layer_norm_fwd_kernel", - "params": [ - "inout buffer", - "out buffer", - "in buffer", - "in buffer", - "out buffer", - "i32", - "i32", - "i32", - "i32", - "f32", - "i64", - "i64" - ], - "block": [ - 32, - 1, - 1 - ], - "grid": [ - 48, - 1, - 1 - ], - "args": [ - { - "arg": 0 - }, - { - "arg": 1 - }, - { - "arg": 2 - }, - { - "arg": 3 - }, - { - "scratch": "rstd" - }, - { - "arg": 4 }, { - "arg": 5 - }, - { - "arg": 6 - }, - { - "arg": 7 + "arg": 12 }, { - "arg": 8 + "arg": 13 }, { - "arg": 9 + "arg": 14 }, { - "arg": 10 + "arg": 15 } ], - "cubin": "module_143.cubin", - "sha256": "ab8921a843b50459d97332df3d691f9b442ef9c4f56e4bdca6fb3689746582e1" + "cubin": "gdn_decode.cubin" } ] } @@ -43616,8 +43457,8 @@ ] }, { - "label": "l0.conv_update", - "kernel": "conv_update", + "label": "l0.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -43628,60 +43469,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 4 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l0.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.0.linear_attn.A_log" - }, - { - "buf": "model.layers.0.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -43691,22 +43478,13 @@ "offset": 4 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.0.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l0.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.0.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -43715,29 +43493,22 @@ "buf": "model.layers.0.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -43865,8 +43636,8 @@ ] }, { - "label": "l1.conv_update", - "kernel": "conv_update", + "label": "l1.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -43877,60 +43648,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 8 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l1.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.1.linear_attn.A_log" - }, - { - "buf": "model.layers.1.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -43940,22 +43657,13 @@ "offset": 8 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.1.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l1.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.1.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -43964,29 +43672,22 @@ "buf": "model.layers.1.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -44114,8 +43815,8 @@ ] }, { - "label": "l2.conv_update", - "kernel": "conv_update", + "label": "l2.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -44126,60 +43827,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 12 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l2.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.2.linear_attn.A_log" - }, - { - "buf": "model.layers.2.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -44189,22 +43836,13 @@ "offset": 12 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.2.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l2.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.2.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -44213,29 +43851,22 @@ "buf": "model.layers.2.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -44654,8 +44285,8 @@ ] }, { - "label": "l4.conv_update", - "kernel": "conv_update", + "label": "l4.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -44666,60 +44297,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 16 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l4.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.4.linear_attn.A_log" - }, - { - "buf": "model.layers.4.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -44729,22 +44306,13 @@ "offset": 16 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.4.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l4.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.4.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -44753,29 +44321,22 @@ "buf": "model.layers.4.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -44903,8 +44464,8 @@ ] }, { - "label": "l5.conv_update", - "kernel": "conv_update", + "label": "l5.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -44915,60 +44476,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 20 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l5.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.5.linear_attn.A_log" - }, - { - "buf": "model.layers.5.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -44978,22 +44485,13 @@ "offset": 20 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.5.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l5.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.5.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -45002,29 +44500,22 @@ "buf": "model.layers.5.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -45152,8 +44643,8 @@ ] }, { - "label": "l6.conv_update", - "kernel": "conv_update", + "label": "l6.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -45164,60 +44655,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 24 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l6.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.6.linear_attn.A_log" - }, - { - "buf": "model.layers.6.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -45227,22 +44664,13 @@ "offset": 24 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.6.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l6.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.6.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -45251,29 +44679,22 @@ "buf": "model.layers.6.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -45694,8 +45115,8 @@ ] }, { - "label": "l8.conv_update", - "kernel": "conv_update", + "label": "l8.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -45706,121 +45127,230 @@ { "state": "gdn" }, + { + "state": "gdn", + "offset": 61440 + }, { "buf": "gdn.line_index", "offset": 28 }, { - "buf": "qkvz" + "buf": "ba" }, { - "i32": 1 + "buf": "model.layers.8.linear_attn.A_log" + }, + { + "buf": "model.layers.8.linear_attn.dt_bias" + }, + { + "buf": "core_attn_out" + }, + { + "buf": "model.layers.8.linear_attn.norm.weight" + }, + { + "f32": 0.0883883461356163 + }, + { + "f32": 9.999999974752427e-07 }, { "i32": 49 }, { - "i64": 1 + "i32": 1605632 }, { - "i64": 1 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 + } + ] + }, + { + "label": "l8.out_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "i64": 0 + "buf": "core_attn_out" + }, + { + "buf": "model.layers.8.linear_attn.out_proj.weight" + }, + { + "buf": "residual" + }, + { + "buf": "model.layers.8.post_attention_layernorm.weight_p1" + }, + { + "sym": "tokens" + }, + { + "i32": 5120 + }, + { + "i32": 6144 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l8.recurrent", - "kernel": "recurrent", + "label": "l8.gate_up_silu", + "kernel": "gemm8_gateup_silu", "args": [ { - "buf": "qkvz" + "buf": "act" }, { - "buf": "ba", - "offset": 96 + "buf": "x" }, { - "buf": "ba" + "buf": "model.layers.8.mlp.gate_up_proj.weight" }, { - "buf": "model.layers.8.linear_attn.A_log" + "sym": "tokens" }, { - "buf": "model.layers.8.linear_attn.dt_bias" + "i32": 17408 }, { - "buf": "core_attn_out" + "i32": 5120 + } + ] + }, + { + "label": "l8.down_norm", + "kernel": "gemm8_add_norm", + "args": [ + { + "buf": "x" }, { - "state": "gdn", - "offset": 61440 + "buf": "act" }, { - "state": "gdn", - "offset": 61440 + "buf": "model.layers.8.mlp.down_proj.weight" }, { - "buf": "gdn.line_index", - "offset": 28 + "buf": "residual" }, { - "f32": 0.0883883461356163 + "buf": "model.layers.9.input_layernorm.weight_p1" }, { - "i64": 0 + "sym": "tokens" }, { - "i64": 0 + "i32": 5120 + }, + { + "i32": 17408 + }, + { + "f32": 9.999999974752427e-07 } ] }, { - "label": "l8.gated_norm", - "kernel": "gated_norm_decode", + "label": "l9.in_proj", + "kernel": "gemm8_dual", "args": [ { - "buf": "core_attn_out" + "buf": "qkvz" }, { - "buf": "core_attn_out" + "buf": "ba" }, { - "buf": "model.layers.8.linear_attn.norm.weight" + "buf": "x" }, { - "buf": "qkvz", - "offset": 20480 + "buf": "model.layers.9.linear_attn.in_proj_qkvz.weight" }, { - "i32": 128 + "buf": "model.layers.9.linear_attn.in_proj_ba.weight" }, { - "i32": 128 + "sym": "tokens" }, { - "i32": 128 + "i32": 16384 + }, + { + "i32": 96 + }, + { + "i32": 5120 + } + ] + }, + { + "label": "l9.gdn", + "kernel": "gdn_decode", + "args": [ + { + "buf": "qkvz" + }, + { + "buf": "model.layers.9.linear_attn.conv1d.weight" + }, + { + "state": "gdn" + }, + { + "state": "gdn", + "offset": 61440 + }, + { + "buf": "gdn.line_index", + "offset": 32 + }, + { + "buf": "ba" + }, + { + "buf": "model.layers.9.linear_attn.A_log" + }, + { + "buf": "model.layers.9.linear_attn.dt_bias" + }, + { + "buf": "core_attn_out" }, { - "i32": 48 + "buf": "model.layers.9.linear_attn.norm.weight" + }, + { + "f32": 0.0883883461356163 }, { "f32": 9.999999974752427e-07 }, { - "i64": 0 + "i32": 49 }, { - "i64": 0 + "i32": 1605632 + }, + { + "i32": 10240 + }, + { + "i32": 802816 } ] }, { - "label": "l8.out_norm", + "label": "l9.out_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -45830,13 +45360,13 @@ "buf": "core_attn_out" }, { - "buf": "model.layers.8.linear_attn.out_proj.weight" + "buf": "model.layers.9.linear_attn.out_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.8.post_attention_layernorm.weight_p1" + "buf": "model.layers.9.post_attention_layernorm.weight_p1" }, { "sym": "tokens" @@ -45853,7 +45383,7 @@ ] }, { - "label": "l8.gate_up_silu", + "label": "l9.gate_up_silu", "kernel": "gemm8_gateup_silu", "args": [ { @@ -45863,7 +45393,7 @@ "buf": "x" }, { - "buf": "model.layers.8.mlp.gate_up_proj.weight" + "buf": "model.layers.9.mlp.gate_up_proj.weight" }, { "sym": "tokens" @@ -45877,7 +45407,7 @@ ] }, { - "label": "l8.down_norm", + "label": "l9.down_norm", "kernel": "gemm8_add_norm", "args": [ { @@ -45887,13 +45417,13 @@ "buf": "act" }, { - "buf": "model.layers.8.mlp.down_proj.weight" + "buf": "model.layers.9.mlp.down_proj.weight" }, { "buf": "residual" }, { - "buf": "model.layers.9.input_layernorm.weight_p1" + "buf": "model.layers.10.input_layernorm.weight_p1" }, { "sym": "tokens" @@ -45910,7 +45440,7 @@ ] }, { - "label": "l9.in_proj", + "label": "l10.in_proj", "kernel": "gemm8_dual", "args": [ { @@ -45923,10 +45453,10 @@ "buf": "x" }, { - "buf": "model.layers.9.linear_attn.in_proj_qkvz.weight" + "buf": "model.layers.10.linear_attn.in_proj_qkvz.weight" }, { - "buf": "model.layers.9.linear_attn.in_proj_ba.weight" + "buf": "model.layers.10.linear_attn.in_proj_ba.weight" }, { "sym": "tokens" @@ -45943,305 +45473,26 @@ ] }, { - "label": "l9.conv_update", - "kernel": "conv_update", + "label": "l10.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" }, { - "buf": "model.layers.9.linear_attn.conv1d.weight" + "buf": "model.layers.10.linear_attn.conv1d.weight" }, { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 32 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l9.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.9.linear_attn.A_log" - }, - { - "buf": "model.layers.9.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 }, - { - "buf": "gdn.line_index", - "offset": 32 - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l9.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.9.linear_attn.norm.weight" - }, - { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 128 - }, - { - "i32": 48 - }, - { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l9.out_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "core_attn_out" - }, - { - "buf": "model.layers.9.linear_attn.out_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.9.post_attention_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 6144 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l9.gate_up_silu", - "kernel": "gemm8_gateup_silu", - "args": [ - { - "buf": "act" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.9.mlp.gate_up_proj.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 17408 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l9.down_norm", - "kernel": "gemm8_add_norm", - "args": [ - { - "buf": "x" - }, - { - "buf": "act" - }, - { - "buf": "model.layers.9.mlp.down_proj.weight" - }, - { - "buf": "residual" - }, - { - "buf": "model.layers.10.input_layernorm.weight_p1" - }, - { - "sym": "tokens" - }, - { - "i32": 5120 - }, - { - "i32": 17408 - }, - { - "f32": 9.999999974752427e-07 - } - ] - }, - { - "label": "l10.in_proj", - "kernel": "gemm8_dual", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba" - }, - { - "buf": "x" - }, - { - "buf": "model.layers.10.linear_attn.in_proj_qkvz.weight" - }, - { - "buf": "model.layers.10.linear_attn.in_proj_ba.weight" - }, - { - "sym": "tokens" - }, - { - "i32": 16384 - }, - { - "i32": 96 - }, - { - "i32": 5120 - } - ] - }, - { - "label": "l10.conv_update", - "kernel": "conv_update", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "model.layers.10.linear_attn.conv1d.weight" - }, - { - "state": "gdn" - }, { "buf": "gdn.line_index", "offset": 36 }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l10.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, { "buf": "ba" }, @@ -46254,66 +45505,26 @@ { "buf": "core_attn_out" }, - { - "state": "gdn", - "offset": 61440 - }, - { - "state": "gdn", - "offset": 61440 - }, - { - "buf": "gdn.line_index", - "offset": 36 - }, - { - "f32": 0.0883883461356163 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l10.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" - }, - { - "buf": "core_attn_out" - }, { "buf": "model.layers.10.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -46734,8 +45945,8 @@ ] }, { - "label": "l12.conv_update", - "kernel": "conv_update", + "label": "l12.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -46746,60 +45957,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 40 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l12.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.12.linear_attn.A_log" - }, - { - "buf": "model.layers.12.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -46809,22 +45966,13 @@ "offset": 40 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.12.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l12.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.12.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -46833,29 +45981,22 @@ "buf": "model.layers.12.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 128 + "i32": 49 }, { - "i32": 48 + "i32": 1605632 }, { - "f32": 9.999999974752427e-07 - }, - { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -46983,8 +46124,8 @@ ] }, { - "label": "l13.conv_update", - "kernel": "conv_update", + "label": "l13.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -46995,60 +46136,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 44 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l13.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.13.linear_attn.A_log" - }, - { - "buf": "model.layers.13.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -47058,22 +46145,13 @@ "offset": 44 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.13.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l13.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.13.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -47082,29 +46160,22 @@ "buf": "model.layers.13.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -47232,8 +46303,8 @@ ] }, { - "label": "l14.conv_update", - "kernel": "conv_update", + "label": "l14.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -47244,60 +46315,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 48 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l14.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.14.linear_attn.A_log" - }, - { - "buf": "model.layers.14.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -47307,22 +46324,13 @@ "offset": 48 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.14.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l14.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.14.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -47331,29 +46339,22 @@ "buf": "model.layers.14.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -47774,8 +46775,8 @@ ] }, { - "label": "l16.conv_update", - "kernel": "conv_update", + "label": "l16.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -47786,60 +46787,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 52 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l16.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.16.linear_attn.A_log" - }, - { - "buf": "model.layers.16.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -47849,22 +46796,13 @@ "offset": 52 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.16.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l16.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.16.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -47873,29 +46811,22 @@ "buf": "model.layers.16.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -48023,8 +46954,8 @@ ] }, { - "label": "l17.conv_update", - "kernel": "conv_update", + "label": "l17.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -48035,60 +46966,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 56 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l17.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.17.linear_attn.A_log" - }, - { - "buf": "model.layers.17.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -48098,22 +46975,13 @@ "offset": 56 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.17.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l17.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.17.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -48122,29 +46990,22 @@ "buf": "model.layers.17.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -48272,8 +47133,8 @@ ] }, { - "label": "l18.conv_update", - "kernel": "conv_update", + "label": "l18.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -48284,60 +47145,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 60 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l18.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.18.linear_attn.A_log" - }, - { - "buf": "model.layers.18.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -48347,22 +47154,13 @@ "offset": 60 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.18.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l18.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.18.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -48371,29 +47169,22 @@ "buf": "model.layers.18.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -48814,8 +47605,8 @@ ] }, { - "label": "l20.conv_update", - "kernel": "conv_update", + "label": "l20.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -48826,60 +47617,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 64 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l20.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.20.linear_attn.A_log" - }, - { - "buf": "model.layers.20.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -48889,22 +47626,13 @@ "offset": 64 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.20.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l20.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.20.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -48913,29 +47641,22 @@ "buf": "model.layers.20.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -49063,8 +47784,8 @@ ] }, { - "label": "l21.conv_update", - "kernel": "conv_update", + "label": "l21.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -49075,60 +47796,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 68 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l21.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.21.linear_attn.A_log" - }, - { - "buf": "model.layers.21.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -49138,22 +47805,13 @@ "offset": 68 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.21.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l21.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.21.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -49162,29 +47820,22 @@ "buf": "model.layers.21.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -49312,8 +47963,8 @@ ] }, { - "label": "l22.conv_update", - "kernel": "conv_update", + "label": "l22.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -49324,60 +47975,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 72 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l22.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.22.linear_attn.A_log" - }, - { - "buf": "model.layers.22.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -49387,22 +47984,13 @@ "offset": 72 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.22.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l22.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.22.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -49411,29 +47999,22 @@ "buf": "model.layers.22.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -49854,8 +48435,8 @@ ] }, { - "label": "l24.conv_update", - "kernel": "conv_update", + "label": "l24.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -49866,60 +48447,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 76 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l24.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.24.linear_attn.A_log" - }, - { - "buf": "model.layers.24.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -49929,22 +48456,13 @@ "offset": 76 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.24.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l24.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.24.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -49953,29 +48471,22 @@ "buf": "model.layers.24.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -50103,8 +48614,8 @@ ] }, { - "label": "l25.conv_update", - "kernel": "conv_update", + "label": "l25.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -50115,60 +48626,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 80 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l25.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.25.linear_attn.A_log" - }, - { - "buf": "model.layers.25.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -50178,22 +48635,13 @@ "offset": 80 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.25.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l25.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.25.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -50202,29 +48650,22 @@ "buf": "model.layers.25.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -50352,8 +48793,8 @@ ] }, { - "label": "l26.conv_update", - "kernel": "conv_update", + "label": "l26.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -50364,60 +48805,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 84 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l26.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.26.linear_attn.A_log" - }, - { - "buf": "model.layers.26.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -50427,22 +48814,13 @@ "offset": 84 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.26.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l26.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.26.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -50451,29 +48829,22 @@ "buf": "model.layers.26.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -50894,8 +49265,8 @@ ] }, { - "label": "l28.conv_update", - "kernel": "conv_update", + "label": "l28.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -50906,60 +49277,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 88 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l28.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.28.linear_attn.A_log" - }, - { - "buf": "model.layers.28.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -50969,22 +49286,13 @@ "offset": 88 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.28.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l28.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.28.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -50993,29 +49301,22 @@ "buf": "model.layers.28.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -51143,8 +49444,8 @@ ] }, { - "label": "l29.conv_update", - "kernel": "conv_update", + "label": "l29.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -51155,60 +49456,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 92 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l29.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.29.linear_attn.A_log" - }, - { - "buf": "model.layers.29.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -51218,22 +49465,13 @@ "offset": 92 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.29.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l29.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.29.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -51242,29 +49480,22 @@ "buf": "model.layers.29.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -51392,8 +49623,8 @@ ] }, { - "label": "l30.conv_update", - "kernel": "conv_update", + "label": "l30.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -51404,60 +49635,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 96 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l30.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.30.linear_attn.A_log" - }, - { - "buf": "model.layers.30.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -51467,22 +49644,13 @@ "offset": 96 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.30.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l30.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.30.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -51491,29 +49659,22 @@ "buf": "model.layers.30.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -51934,8 +50095,8 @@ ] }, { - "label": "l32.conv_update", - "kernel": "conv_update", + "label": "l32.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -51946,60 +50107,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 100 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l32.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.32.linear_attn.A_log" - }, - { - "buf": "model.layers.32.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -52009,22 +50116,13 @@ "offset": 100 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.32.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l32.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.32.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -52033,29 +50131,22 @@ "buf": "model.layers.32.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -52183,8 +50274,8 @@ ] }, { - "label": "l33.conv_update", - "kernel": "conv_update", + "label": "l33.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -52195,60 +50286,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 104 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l33.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.33.linear_attn.A_log" - }, - { - "buf": "model.layers.33.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -52258,22 +50295,13 @@ "offset": 104 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.33.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l33.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.33.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -52282,29 +50310,22 @@ "buf": "model.layers.33.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -52432,8 +50453,8 @@ ] }, { - "label": "l34.conv_update", - "kernel": "conv_update", + "label": "l34.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -52444,60 +50465,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 108 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l34.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.34.linear_attn.A_log" - }, - { - "buf": "model.layers.34.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -52507,22 +50474,13 @@ "offset": 108 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.34.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l34.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.34.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -52531,29 +50489,22 @@ "buf": "model.layers.34.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -52974,8 +50925,8 @@ ] }, { - "label": "l36.conv_update", - "kernel": "conv_update", + "label": "l36.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -52986,60 +50937,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 112 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l36.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.36.linear_attn.A_log" - }, - { - "buf": "model.layers.36.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -53049,22 +50946,13 @@ "offset": 112 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.36.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l36.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.36.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -53073,29 +50961,22 @@ "buf": "model.layers.36.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -53223,8 +51104,8 @@ ] }, { - "label": "l37.conv_update", - "kernel": "conv_update", + "label": "l37.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -53235,60 +51116,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 116 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l37.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.37.linear_attn.A_log" - }, - { - "buf": "model.layers.37.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -53298,22 +51125,13 @@ "offset": 116 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.37.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l37.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.37.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -53322,29 +51140,22 @@ "buf": "model.layers.37.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -53472,8 +51283,8 @@ ] }, { - "label": "l38.conv_update", - "kernel": "conv_update", + "label": "l38.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -53484,60 +51295,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 120 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l38.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.38.linear_attn.A_log" - }, - { - "buf": "model.layers.38.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -53547,22 +51304,13 @@ "offset": 120 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.38.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l38.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.38.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -53571,29 +51319,22 @@ "buf": "model.layers.38.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -54014,8 +51755,8 @@ ] }, { - "label": "l40.conv_update", - "kernel": "conv_update", + "label": "l40.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -54026,60 +51767,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 124 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l40.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.40.linear_attn.A_log" - }, - { - "buf": "model.layers.40.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -54089,22 +51776,13 @@ "offset": 124 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.40.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l40.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.40.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -54113,29 +51791,22 @@ "buf": "model.layers.40.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -54263,8 +51934,8 @@ ] }, { - "label": "l41.conv_update", - "kernel": "conv_update", + "label": "l41.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -54275,60 +51946,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 128 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l41.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.41.linear_attn.A_log" - }, - { - "buf": "model.layers.41.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -54338,22 +51955,13 @@ "offset": 128 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.41.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l41.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.41.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -54362,29 +51970,22 @@ "buf": "model.layers.41.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -54512,8 +52113,8 @@ ] }, { - "label": "l42.conv_update", - "kernel": "conv_update", + "label": "l42.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -54524,60 +52125,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 132 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l42.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.42.linear_attn.A_log" - }, - { - "buf": "model.layers.42.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -54587,22 +52134,13 @@ "offset": 132 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.42.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l42.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.42.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -54611,29 +52149,22 @@ "buf": "model.layers.42.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -55054,8 +52585,8 @@ ] }, { - "label": "l44.conv_update", - "kernel": "conv_update", + "label": "l44.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -55066,60 +52597,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 136 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l44.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.44.linear_attn.A_log" - }, - { - "buf": "model.layers.44.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -55129,22 +52606,13 @@ "offset": 136 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.44.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l44.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.44.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -55153,29 +52621,22 @@ "buf": "model.layers.44.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -55303,8 +52764,8 @@ ] }, { - "label": "l45.conv_update", - "kernel": "conv_update", + "label": "l45.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -55315,60 +52776,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 140 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l45.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.45.linear_attn.A_log" - }, - { - "buf": "model.layers.45.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -55378,22 +52785,13 @@ "offset": 140 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.45.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l45.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.45.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -55402,29 +52800,22 @@ "buf": "model.layers.45.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -55552,8 +52943,8 @@ ] }, { - "label": "l46.conv_update", - "kernel": "conv_update", + "label": "l46.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -55564,60 +52955,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 144 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l46.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.46.linear_attn.A_log" - }, - { - "buf": "model.layers.46.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -55627,22 +52964,13 @@ "offset": 144 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.46.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l46.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.46.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -55651,29 +52979,22 @@ "buf": "model.layers.46.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -56094,8 +53415,8 @@ ] }, { - "label": "l48.conv_update", - "kernel": "conv_update", + "label": "l48.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -56106,60 +53427,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 148 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l48.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.48.linear_attn.A_log" - }, - { - "buf": "model.layers.48.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -56169,22 +53436,13 @@ "offset": 148 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.48.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l48.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.48.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -56193,29 +53451,22 @@ "buf": "model.layers.48.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -56343,8 +53594,8 @@ ] }, { - "label": "l49.conv_update", - "kernel": "conv_update", + "label": "l49.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -56355,60 +53606,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 152 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l49.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.49.linear_attn.A_log" - }, - { - "buf": "model.layers.49.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -56418,22 +53615,13 @@ "offset": 152 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.49.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l49.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.49.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -56442,29 +53630,22 @@ "buf": "model.layers.49.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -56592,8 +53773,8 @@ ] }, { - "label": "l50.conv_update", - "kernel": "conv_update", + "label": "l50.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -56604,60 +53785,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 156 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l50.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.50.linear_attn.A_log" - }, - { - "buf": "model.layers.50.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -56667,22 +53794,13 @@ "offset": 156 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.50.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l50.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.50.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -56691,29 +53809,22 @@ "buf": "model.layers.50.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -57134,8 +54245,8 @@ ] }, { - "label": "l52.conv_update", - "kernel": "conv_update", + "label": "l52.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -57146,60 +54257,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 160 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l52.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.52.linear_attn.A_log" - }, - { - "buf": "model.layers.52.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -57209,22 +54266,13 @@ "offset": 160 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.52.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l52.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.52.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -57233,29 +54281,22 @@ "buf": "model.layers.52.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -57383,8 +54424,8 @@ ] }, { - "label": "l53.conv_update", - "kernel": "conv_update", + "label": "l53.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -57395,60 +54436,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 164 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l53.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.53.linear_attn.A_log" - }, - { - "buf": "model.layers.53.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -57458,22 +54445,13 @@ "offset": 164 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.53.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l53.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.53.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -57482,29 +54460,22 @@ "buf": "model.layers.53.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -57632,8 +54603,8 @@ ] }, { - "label": "l54.conv_update", - "kernel": "conv_update", + "label": "l54.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -57644,60 +54615,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 168 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l54.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.54.linear_attn.A_log" - }, - { - "buf": "model.layers.54.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -57707,22 +54624,13 @@ "offset": 168 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.54.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l54.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.54.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -57731,29 +54639,22 @@ "buf": "model.layers.54.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -58174,8 +55075,8 @@ ] }, { - "label": "l56.conv_update", - "kernel": "conv_update", + "label": "l56.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -58186,60 +55087,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 172 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l56.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.56.linear_attn.A_log" - }, - { - "buf": "model.layers.56.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -58249,22 +55096,13 @@ "offset": 172 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.56.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l56.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.56.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -58273,29 +55111,22 @@ "buf": "model.layers.56.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -58423,8 +55254,8 @@ ] }, { - "label": "l57.conv_update", - "kernel": "conv_update", + "label": "l57.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -58435,60 +55266,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 176 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l57.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.57.linear_attn.A_log" - }, - { - "buf": "model.layers.57.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -58498,22 +55275,13 @@ "offset": 176 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.57.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l57.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.57.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -58522,29 +55290,22 @@ "buf": "model.layers.57.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -58672,8 +55433,8 @@ ] }, { - "label": "l58.conv_update", - "kernel": "conv_update", + "label": "l58.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -58684,60 +55445,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 180 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l58.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.58.linear_attn.A_log" - }, - { - "buf": "model.layers.58.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -58747,22 +55454,13 @@ "offset": 180 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.58.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l58.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.58.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -58771,29 +55469,22 @@ "buf": "model.layers.58.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -59214,8 +55905,8 @@ ] }, { - "label": "l60.conv_update", - "kernel": "conv_update", + "label": "l60.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -59226,60 +55917,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 184 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l60.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.60.linear_attn.A_log" - }, - { - "buf": "model.layers.60.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -59289,22 +55926,13 @@ "offset": 184 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.60.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l60.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.60.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -59313,29 +55941,22 @@ "buf": "model.layers.60.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -59463,8 +56084,8 @@ ] }, { - "label": "l61.conv_update", - "kernel": "conv_update", + "label": "l61.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -59475,60 +56096,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 188 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l61.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.61.linear_attn.A_log" - }, - { - "buf": "model.layers.61.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -59538,22 +56105,13 @@ "offset": 188 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.61.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l61.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.61.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -59562,29 +56120,22 @@ "buf": "model.layers.61.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, @@ -59712,8 +56263,8 @@ ] }, { - "label": "l62.conv_update", - "kernel": "conv_update", + "label": "l62.gdn", + "kernel": "gdn_decode", "args": [ { "buf": "qkvz" @@ -59724,60 +56275,6 @@ { "state": "gdn" }, - { - "buf": "gdn.line_index", - "offset": 192 - }, - { - "buf": "qkvz" - }, - { - "i32": 1 - }, - { - "i32": 49 - }, - { - "i64": 1 - }, - { - "i64": 1 - }, - { - "i64": 0 - }, - { - "i64": 0 - } - ] - }, - { - "label": "l62.recurrent", - "kernel": "recurrent", - "args": [ - { - "buf": "qkvz" - }, - { - "buf": "ba", - "offset": 96 - }, - { - "buf": "ba" - }, - { - "buf": "model.layers.62.linear_attn.A_log" - }, - { - "buf": "model.layers.62.linear_attn.dt_bias" - }, - { - "buf": "core_attn_out" - }, - { - "state": "gdn", - "offset": 61440 - }, { "state": "gdn", "offset": 61440 @@ -59787,22 +56284,13 @@ "offset": 192 }, { - "f32": 0.0883883461356163 + "buf": "ba" }, { - "i64": 0 + "buf": "model.layers.62.linear_attn.A_log" }, { - "i64": 0 - } - ] - }, - { - "label": "l62.gated_norm", - "kernel": "gated_norm_decode", - "args": [ - { - "buf": "core_attn_out" + "buf": "model.layers.62.linear_attn.dt_bias" }, { "buf": "core_attn_out" @@ -59811,29 +56299,22 @@ "buf": "model.layers.62.linear_attn.norm.weight" }, { - "buf": "qkvz", - "offset": 20480 - }, - { - "i32": 128 - }, - { - "i32": 128 + "f32": 0.0883883461356163 }, { - "i32": 128 + "f32": 9.999999974752427e-07 }, { - "i32": 48 + "i32": 49 }, { - "f32": 9.999999974752427e-07 + "i32": 1605632 }, { - "i64": 0 + "i32": 10240 }, { - "i64": 0 + "i32": 802816 } ] }, diff --git a/tools/gen_qwen35.py b/tools/gen_qwen35.py index 4dcdbed..986f548 100644 --- a/tools/gen_qwen35.py +++ b/tools/gen_qwen35.py @@ -885,17 +885,14 @@ def layer_norm_kernel(src, grid, rows_shape): [GDN_D // 64, cdiv(T, FLA_CHUNK), GDN_V_HEADS]), "gated_norm": layer_norm_kernel(pre, [mul(T, GDN_V_HEADS // LN_ROWS_PER_BLOCK), 1, 1], ["tokens", GDN_V_HEADS]), - # --- GDN decode - "conv_update": tri("conv_update", - ["in buffer", "in buffer", "inout ptr", "in buffer", - "out buffer", "i32", "i32", "i64", "i64"] + I2, - [1, CONV_DIM // 256, 1], src=dec), - "recurrent": tri("recurrent", - ["in buffer", "in buffer", "in buffer", "in buffer", - "in buffer", "out buffer", "inout ptr", "inout ptr", - "in buffer", "f32"] + I2, - [GDN_D // 32, GDN_V_HEADS, 1], src=dec), - "gated_norm_decode": layer_norm_kernel(dec, [GDN_V_HEADS, 1, 1], [1, GDN_V_HEADS]), + # --- GDN decode: the whole chain in one launch, one thread-block + # cluster per q/k head (tools/kernels-src/gdn_decode.cu) + "gdn_decode": single("kern_gdn_decode_bf16", + ["inout buffer", "in buffer", "inout ptr", "inout ptr", + "in buffer", "in buffer", "in buffer", + "in buffer", "out buffer", "in buffer", + "f32", "f32", "i32", "i32", "i32", "i32"], + [256, 1, 1], [2 * GDN_V_HEADS, 1, 1], cubin="gdn_decode.cubin"), # --- attention "attn_prefill": tri("unified", ATTN_IFACE, [cdiv(T, BLOCK_Q), KV_HEADS, 1]), "attn": { @@ -1093,18 +1090,14 @@ def gdn_layer(i, decode, nacc=None, small=False): i32(GDN_D), i32(GDN_D), i32(GDN_D), expr(mul(T, GDN_V_HEADS)), f32(eps)] + Z2), ] elif nacc is None: + # the decode chain (conv update + delta rule step + gated norm), + # fused into one launch -- see tools/kernels-src/gdn_decode.cu ds += [ - d(l + "conv_update", "conv_update", - [buf("qkvz"), buf(p + "conv1d.weight"), state("gdn"), idx, buf("qkvz"), - i32(1), i32(n_pages), i64(1), i64(1)] + Z2), - d(l + "recurrent", "recurrent", - [buf("qkvz"), a_, b_, buf(p + "A_log"), buf(p + "dt_bias"), buf("core_attn_out"), - state("gdn", ssm_off), state("gdn", ssm_off), idx, - f32(gdn_scale)] + Z2), - d(l + "gated_norm", "gated_norm_decode", - [buf("core_attn_out"), buf("core_attn_out"), buf(p + "norm.weight"), - buf("qkvz", Z_OFF * BF16), i32(GDN_D), i32(GDN_D), i32(GDN_D), i32(GDN_V_HEADS), - f32(eps)] + Z2), + d(l + "gdn", "gdn_decode", + [buf("qkvz"), buf(p + "conv1d.weight"), state("gdn"), state("gdn", ssm_off), + idx, buf("ba"), buf(p + "A_log"), buf(p + "dt_bias"), buf("core_attn_out"), + buf(p + "norm.weight"), f32(gdn_scale), f32(eps), i32(n_pages), + i32(page_bytes // BF16), i32(CONV_DIM), i32(page_bytes // 4)]), ] else: # vLLM's spec-decode GDN path, fused into one launch (the chain diff --git a/tools/kernels-src/gdn_decode.cu b/tools/kernels-src/gdn_decode.cu new file mode 100644 index 0000000..ad80034 --- /dev/null +++ b/tools/kernels-src/gdn_decode.cu @@ -0,0 +1,238 @@ +// The whole GDN decode chain of one layer in one launch (tokens == 1): +// +// causal_conv1d_update (width 4, silu) _causal_conv1d_update_kernel +// gated delta rule step (l2norm q/k) fused_recurrent_gated_delta_rule_packed_decode_kernel +// gated RMSNorm (norm, then *silu(z)) layer_norm_fwd_kernel +// +// The real work is one 48-head recurrent state update (48 x 128 x 128 f32, +// 3 MB each way); everything else is bandwidth-free. One thread-block +// cluster per q/k head: GDN_SPLIT CTAs per v head, 3 v heads, so the q/k +// row is convolved and l2-normalized once (cluster rank 0) and picked up +// by the siblings over distributed shared memory after one cluster.sync() +// -- no global scratch, no flags, no spinning, nothing to reset. Every +// CTA owns its v channels and state rows exclusively: it convolves them, +// shifts their conv state, runs its rows of the delta rule, and applies +// the gated norm (GDN_SPLIT == 2 exchanges the two variance partials over +// the same cluster). The sibling CTAs' state loads are issued before the +// sync, so rank 0's extra conv work hides under them. +// +// Rounding chains reproduce the Triton kernels bit-for-bit where the +// order is defined: bf16 x*w products rounded before the f32 conv +// accumulate; division is rcp.approx + mul and sqrt is sqrt.approx, the +// instructions the pinned cubins actually contain (MUFU.RCP / MUFU.SQRT +// -- Triton never emits IEEE division); silu -> bf16 store; the recurrent +// re-loads that bf16 value; beta goes through bf16; the norm input is the +// bf16-rounded recurrent output; rstd is rsqrtf (MUFU.RSQ); libdevice +// expf/logf match tl.exp / tl.log. Only the sum orders of the wide +// reductions (l2norm, variance) differ. +// +// State layout: a cache line holds the conv state [3, CONV_DIM] bf16 +// (token-major: tap j of channel ch at j*cds + ch, cds = CONV_DIM) at +// offset 0 and the SSM state [HV, V, K] f32 at the ssm offset; line +// strides are passed in elements of the respective dtype. +// +// nvcc -cubin -arch=sm_103a -o kernels-qwen38/gdn_decode.cubin tools/kernels-src/gdn_decode.cu +#include +#include +#include + +namespace cg = cooperative_groups; + +#ifndef GDN_SPLIT +#define GDN_SPLIT 2 +#endif + +namespace { +constexpr int HV = 48, H = 16, K = 128, V = 128; +constexpr int CONV_DIM = 10240; // q | k | v channels +constexpr int Z_OFF = CONV_DIM; // z columns after q|k|v in the qkvz row +constexpr int QOFF = 0, KOFF = 2048, VOFF = 4096; +constexpr int WIDTH = 4; // conv kernel width; state_len = 3 +constexpr int NT = 256; +constexpr int SPLIT = GDN_SPLIT, ROWS = V / SPLIT; // CTAs per v head, state rows per CTA +constexpr int CL = 3 * SPLIT; // CTAs per cluster (= per q/k head) +constexpr float SOFTPLUS_THRESHOLD = 20.0f; + +__device__ __forceinline__ float bf16r(float v) { return __bfloat162float(__float2bfloat16_rn(v)); } +__device__ __forceinline__ float rcpa(float x) { + float r; + asm("rcp.approx.f32 %0, %1;" : "=f"(r) : "f"(x)); + return r; +} +__device__ __forceinline__ float sqrta(float x) { + float r; + asm("sqrt.approx.f32 %0, %1;" : "=f"(r) : "f"(x)); + return r; +} +__device__ __forceinline__ float sigmoidf_(float x) { return rcpa(1.0f + expf(-x)); } + +struct SmemT { + float qk[2 * K]; // rank 0: normalized q|k of the head; others: local copy + float v[ROWS], o[ROWS]; + float red[8]; +}; +} // namespace + +extern "C" __global__ void __launch_bounds__(NT) __cluster_dims__(CL, 1, 1) +kern_gdn_decode_bf16(__nv_bfloat16* __restrict__ qkvz, const __nv_bfloat16* __restrict__ w, + __nv_bfloat16* __restrict__ conv_state, float* __restrict__ ssm_state, + const int* __restrict__ idx, const __nv_bfloat16* __restrict__ ba, + const float* __restrict__ A_log, const __nv_bfloat16* __restrict__ dt_bias, + __nv_bfloat16* __restrict__ out, const __nv_bfloat16* __restrict__ nw, + float scale, float eps, int nlines, int cls, int cds, int sls) { + __shared__ SmemT s; + const int hv = blockIdx.x / SPLIT, sp = blockIdx.x % SPLIT; + const int ih = hv / (HV / H), t = threadIdx.x; + const int r0 = sp * ROWS; // this CTA's first state row + const int coord = idx[0]; + cg::cluster_group cluster = cg::this_cluster(); + + if (coord <= 0) { // null cache line: conv skips, the recurrent zeroes o, + // and the norm output is (0 * w) * (z * sigmoid(z)) -- + // signed zeros (or NaN from an inf z) exactly as A emits + if (t < ROWS) { + const int j = r0 + t; + const float z = __bfloat162float(qkvz[Z_OFF + hv * V + j]); + const float y = __fmul_rn(__fmul_rn(0.0f, __bfloat162float(nw[j])), __fmul_rn(z, sigmoidf_(z))); + out[hv * V + j] = __float2bfloat16_rn(y); + } + return; // uniform across the cluster: no CTA reaches a cluster.sync + + } + + // ---- issue the SSM tile loads of the first row group now: thread t owns + // state row r0 + t/8 (+32 per pass), k columns [(t&7)*16, +16) + const int rl = t >> 3, c0 = (t & 7) * 16; + float* hb0 = ssm_state + (size_t)coord * sls + ((size_t)hv * V + r0 + rl) * K + c0; + float hh[ROWS / 32][16], h[16]; +#pragma unroll + for (int pass = 0; pass < ROWS / 32; pass++) +#pragma unroll + for (int j = 0; j < 16; j += 4) + *reinterpret_cast(&hh[pass][j]) = + *reinterpret_cast(hb0 + (size_t)pass * 32 * K + j); + + // ---- conv: silu(w0 s0 + w1 s1 + w2 s2 + w3 x) per channel, every value + // rounded to bf16 exactly as the in-place Triton store does + __nv_bfloat16* cbase = conv_state + (size_t)coord * cls; + const bool valid_line = coord < nlines; // Triton load mask (reads 0 beyond the pool) + auto conv1 = [&](int ch) { + const __nv_bfloat16* cs = cbase + ch; + const float s0 = valid_line ? __bfloat162float(cs[0]) : 0.f; + const float s1 = valid_line ? __bfloat162float(cs[cds]) : 0.f; + const float s2 = valid_line ? __bfloat162float(cs[2 * cds]) : 0.f; + const float x = __bfloat162float(qkvz[ch]); + // Triton's `acc += x * w` multiplies two bf16 tiles: the product is + // rounded to bf16 before the f32 accumulate + float acc = 0.f; + acc = __fadd_rn(acc, bf16r(__fmul_rn(s0, __bfloat162float(w[ch * WIDTH + 0])))); + acc = __fadd_rn(acc, bf16r(__fmul_rn(s1, __bfloat162float(w[ch * WIDTH + 1])))); + acc = __fadd_rn(acc, bf16r(__fmul_rn(s2, __bfloat162float(w[ch * WIDTH + 2])))); + acc = __fadd_rn(acc, bf16r(__fmul_rn(x, __bfloat162float(w[ch * WIDTH + 3])))); + const float y = bf16r(__fmul_rn(acc, sigmoidf_(acc))); // silu, division as rcp.approx + // the channel is exclusive to its convolving CTA: shift the conv state + // and store the conv output over the qkvz column right away + __nv_bfloat16* csw = cbase + ch; + csw[0] = __float2bfloat16_rn(s1); csw[cds] = __float2bfloat16_rn(s2); csw[2 * cds] = __float2bfloat16_rn(x); + qkvz[ch] = __float2bfloat16_rn(y); + return y; + }; + // own v channels + for (int j = t; j < ROWS; j += NT) s.v[j] = conv1(VOFF + hv * V + r0 + j); + + if (cluster.block_rank() == 0) { + // q/k conv + l2norm. q in threads 0..127, k in 128..255. + const float y = conv1(t < K ? QOFF + ih * K + t : KOFF + ih * K + (t - K)); + s.qk[t] = y; + __syncthreads(); + if (t < 64) { // warps 0/1 reduce q, k + const float* src = s.qk + (t < 32 ? 0 : K); + const int lane = t & 31; + float p = 0.f; + for (int j = lane; j < K; j += 32) p += __fmul_rn(src[j], src[j]); + for (int off = 16; off > 0; off >>= 1) p += __shfl_down_sync(0xffffffffu, p, off); + if (lane == 0) s.red[t >> 5] = p; + } + __syncthreads(); + // Triton: b_q / tl.sqrt(sum + 1e-6) lowers to sqrt.approx + rcp.approx + mul + const float iq = rcpa(sqrta(s.red[0] + 1e-6f)), ik = rcpa(sqrta(s.red[1] + 1e-6f)); + s.qk[t] = t < K ? __fmul_rn(__fmul_rn(s.qk[t], iq), scale) : __fmul_rn(s.qk[t], ik); + } + cluster.sync(); + if (cluster.block_rank() != 0) { // copy the head's q/k rows to local smem + const float* remote = cluster.map_shared_rank(s.qk, 0); + s.qk[t] = remote[t]; + __syncthreads(); + } + + // ---- delta rule step over this CTA's ROWS state rows, 32 per pass + const float a_val = __bfloat162float(ba[HV + hv]); + const float b_val = __bfloat162float(ba[hv]); + const float xg = a_val + __bfloat162float(dt_bias[hv]); + const float sp_ = xg <= SOFTPLUS_THRESHOLD ? logf(1.0f + expf(xg)) : xg; + const float g_e = expf(-expf(A_log[hv]) * sp_); + const float beta = bf16r(sigmoidf_(b_val)); // Triton rounds beta through bf16 + + const float* kk = s.qk + K; + // all row groups' state tiles are already prefetched into hh (issued + // before the conv/cluster.sync so the loads run under them) +#pragma unroll + for (int pass = 0; pass < ROWS / 32; pass++) { + const int row = pass * 32 + rl; + float* hb = hb0 + (size_t)pass * 32 * K; +#pragma unroll + for (int j = 0; j < 16; j++) h[j] = hh[pass][j]; + float dot = 0.f; +#pragma unroll + for (int j = 0; j < 16; j++) { + h[j] *= g_e; + dot = __fadd_rn(dot, __fmul_rn(h[j], kk[c0 + j])); + } + dot += __shfl_xor_sync(0xffffffffu, dot, 1); + dot += __shfl_xor_sync(0xffffffffu, dot, 2); + dot += __shfl_xor_sync(0xffffffffu, dot, 4); + const float vn = (s.v[pass * 32 + rl] - dot) * beta; + float op = 0.f; +#pragma unroll + for (int j = 0; j < 16; j++) { + h[j] = __fmaf_rn(vn, kk[c0 + j], h[j]); + op = __fadd_rn(op, __fmul_rn(h[j], s.qk[c0 + j])); + } + op += __shfl_xor_sync(0xffffffffu, op, 1); + op += __shfl_xor_sync(0xffffffffu, op, 2); + op += __shfl_xor_sync(0xffffffffu, op, 4); +#pragma unroll + for (int j = 0; j < 16; j += 4) *reinterpret_cast(hb + j) = *reinterpret_cast(&h[j]); + if ((t & 7) == 0) s.o[row] = bf16r(op); // Triton stores o as bf16; the norm re-loads it + } + __syncthreads(); + + // ---- gated RMSNorm: y = (x * rstd) * w, then y *= z * sigmoid(z) + if (t < 32) { + float p = 0.f; + for (int j = t; j < ROWS; j += 32) p += __fmul_rn(s.o[j], s.o[j]); + for (int off = 16; off > 0; off >>= 1) p += __shfl_down_sync(0xffffffffu, p, off); + if (t == 0) s.red[0] = p; + } +#if GDN_SPLIT == 2 + cluster.sync(); // exchange the two variance partials of this v head + if (t == 0) { + const float* other = cluster.map_shared_rank(s.red, cluster.block_rank() ^ 1); + const float p0 = (sp == 0) ? s.red[0] : other[0]; + const float p1 = (sp == 0) ? other[0] : s.red[0]; + s.red[1] = rsqrtf(__fadd_rn(p0, p1) / (float)V + eps); + } + __syncthreads(); + const float rstd = s.red[1]; +#else + __syncthreads(); + const float rstd = rsqrtf(s.red[0] / (float)V + eps); +#endif + for (int j = t; j < ROWS; j += NT) { + const int col = r0 + j; + const float z = __bfloat162float(qkvz[Z_OFF + hv * V + col]); + float y = __fmul_rn(__fmul_rn(s.o[j], rstd), __bfloat162float(nw[col])); + y = __fmul_rn(y, __fmul_rn(z, sigmoidf_(z))); + out[hv * V + col] = __float2bfloat16_rn(y); + } +} From 37292794979142b5ae7c29e13f0c5e8edc467a36 Mon Sep 17 00:00:00 2001 From: JinYan Su <751080330@qq.com> Date: Tue, 1 Sep 2026 02:21:36 +0000 Subject: [PATCH 09/10] qwen38: programmatic dependent launch for the decode GEMM chain Where the decode step goes: nsys on the c9 graph shows 43 us of launch gaps in a 10.19 ms step -- the graph is already tight, the cost is inside the kernels. gateup (356 MB) streams at 6.65 TB/s against lm_head's 7.05, but the small-N GEMMs do not: out_proj+norm 21.6 us for 63 MB (2.9 TB/s), down+norm 40.1 us for 178 MB (4.4 TB/s). A single-shape microbench decomposes the ~12 us fixed cost per launch into the ramp before the first weight bytes land, the single-CTA norm tail, and the drain after the last full round of tasks. Programmatic dependent launch removes the ramp: a `pdl` step flag in the manifest (kern-manifest `Step::pdl`, schema regenerated) makes the runtime launch with CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION via cuLaunchKernelEx; under stream capture that is a programmatic graph edge. The kernel contract: only the launch's own inputs (weights) may be read before griddepcontrol.wait, every read of an upstream product and every global write comes after it. gemm8 fills its ring with the first task's weights ahead of the wait and signals launch_dependents once its stream is issued, so the next launch's CTAs take the SMs it vacates during its drain and tail. (Triggering at kernel entry instead is measurably worse: the dependent's ring is full long before the primary's tail, and it only stole bandwidth in the meantime. L2-prefetching the dependent's weights beyond the ring was slower still.) The four gemm8 steps of a layer are flagged; gdn_decode is not. A gdn_decode that triggers at entry with the gemm8 behind it launched programmatically hits CUDA_ERROR_LAUNCH_FAILED after a few hundred graph steps (a cluster kernel as the primary of an early dependent -- reproduced with the harness and the decode loop; triggering at the end, or either kernel alone, is fine), and it bought nothing measurable: gdn's 76 x 256 registers cannot co-reside with gemm8's 167 x 288 anyway. gemm8's other fixed costs, arithmetic untouched: - tail: the norm weight is fetched into smem under the counter spin, and the y and residual loads of a row are issued as one batch (the runtime branch on `nranges` inside the per-group loop had kept ptxas from batching them). Folding the ATen-order sum of squares in one warp's registers instead of the smem tree was tried and dropped: 40 more registers and a local-memory tree in every add_norm variant, +3 us per launch on the M = 8 verify pass of the DFlash2 loop, nothing at M = 1; - tasks: whole 8-row blocks in a grid multiple plus, at M = 1, the leftover rows spread over the grid in two widths one granule apart, scheduled first so their latency-bound stages hide under the blocks streaming behind them. At M > 1 the leftover stays whole blocks: a narrow task runs the full MMA rounds of a wide one, and the verify pass is not bandwidth-bound. Every task walks the same K stages, so which warp accumulates which K pair does not depend on the geometry (a wider stage for narrow tasks changed the f32 summation order of the leftover rows for K=17408 and moved the decode/vLLM divergence points -- dropped); - the ring/x split of the shared area is per launch (bs=1: 5-6 stages). Harness (kern-out/pdl): an 8-layer in_proj -> gdn -> out_proj+norm -> gateup -> down+norm chain replayed as a graph, A (c9 cubins) vs B, all activations and the GDN state pool bit-identical; B is -5.4 us/layer on tray14 (144.7 -> 139.2) and -13 us/layer on tray06's GPU0, whose lower SM clock made the latency-bound tails longer to begin with. kern-attest, tray14 (GB300), --capacity 3920, A = c9, B = this commit: | manifest | program | cuts | identity | eager step | graph TPOT | | qwen3.8-27b | decode | 65 | act/ba/qkvz/residual/x/next_token bit-identical, real and every synthesized distribution | 11.324 -> 11.229 ms (-0.8%) | 10.120 -> 9.733 ms (-387 us, -3.8%, 99 -> 103 tok/s) | | qwen3.8-27b-dflash2 | decode | 65 | all buffers + draft/next/verify tokens bit-identical, every fuzz distribution | 11.217 -> 11.229 ms | 9.975 -> 9.693 ms (-282 us, -2.8%, 100 -> 103 tok/s) | Verdict PASS on the plain manifest; INCONCLUSIVE on dflash2 for the known driver reason (decode_spec/verify cannot be staged), the replays are bit-identical throughout. The decode/vLLM comparison (tools/qwen38_compare) diverges at the same tokens as c9 on all five prompts, plain and spec, with the same per-position acceptance; the DFlash2 round (draft + M = 8 verify), which attest's tokens=1 timing does not cover, goes 14.38 -> 14.12 ms (-1.8%) on the same GPU back to back. Prefill is untouched. Signed-off-by: JinYan Su <751080330@qq.com> --- .gitignore | 4 + crates/kern-manifest/src/types.rs | 8 + crates/kern-runtime/src/compile.rs | 3 + crates/kern-runtime/src/lib.rs | 30 +++- examples/qwen3.8-27b-dflash2.json | 12 +- examples/qwen3.8-27b.json | 12 +- schema/manifest-v2.schema.json | 4 + tools/gen_qwen35.py | 16 +- tools/kernels-src/gemm8.cu | 233 +++++++++++++++++++++++------ 9 files changed, 263 insertions(+), 59 deletions(-) diff --git a/.gitignore b/.gitignore index c6769a2..d588b7d 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,7 @@ tools/kernel-capture/libkernelcapture.so /.wrangler/ /attestation.json /kernels-qwen38-dflash2 +kernels-c9/ +kernels-gdnT/ +kernels-varA/ +kernels-varB/ diff --git a/crates/kern-manifest/src/types.rs b/crates/kern-manifest/src/types.rs index e8d5040..e6f9247 100644 --- a/crates/kern-manifest/src/types.rs +++ b/crates/kern-manifest/src/types.rs @@ -586,6 +586,14 @@ pub struct Step { /// Dynamic shared memory in bytes, if the step needs any. #[serde(default, skip_serializing_if = "Option::is_none")] pub shared_mem: Option, + /// Programmatic dependent launch: the runtime launches this step with + /// `CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION`, so it may + /// start while the preceding launch is still draining. Only for kernels + /// that put every read of an upstream product and every global write + /// behind `griddepcontrol.wait` (their own inputs — weights, state — + /// may stream ahead of it). + #[serde(default, skip_serializing_if = "is_false")] + pub pdl: bool, /// Wiring: where each step param comes from — a forwarded interface /// arg, a scratch buffer, or an implementation-private literal. pub args: Vec, diff --git a/crates/kern-runtime/src/compile.rs b/crates/kern-runtime/src/compile.rs index eae524d..32d2826 100644 --- a/crates/kern-runtime/src/compile.rs +++ b/crates/kern-runtime/src/compile.rs @@ -68,6 +68,8 @@ pub(crate) enum LaunchKind { block: [u32; 3], grid: [CExpr; 3], shared_mem: Option, + /// Launch with programmatic stream serialization (see `Step::pdl`). + pdl: bool, }, /// `extern:cublaslt_bf16_tn` / `..._acc` (beta 0.0 / 1.0). Gemm { beta: f32 }, @@ -350,6 +352,7 @@ fn compile_dispatch( compile_expr(&st.grid[2], syms)?, ], shared_mem: st.shared_mem.as_ref().map(|e| compile_expr(e, syms)).transpose()?, + pdl: st.pdl, }, }; launches.push(Launch { diff --git a/crates/kern-runtime/src/lib.rs b/crates/kern-runtime/src/lib.rs index c81f144..da95d4b 100644 --- a/crates/kern-runtime/src/lib.rs +++ b/crates/kern-runtime/src/lib.rs @@ -626,7 +626,7 @@ impl Runtime { } match &l.kind { LaunchKind::Gemm { beta } => gemm_bf16_tn(&self.blt, &self.stream, &vals, *beta), - LaunchKind::Cubin { func, block, grid, shared_mem } => { + LaunchKind::Cubin { func, block, grid, shared_mem, pdl } => { let grid = (grid[0].eval(env)? as u32, grid[1].eval(env)? as u32, grid[2].eval(env)? as u32); let smem = match shared_mem { @@ -638,6 +638,34 @@ impl Runtime { let raw: Vec = vals.iter().map(|r| r.val).collect(); let mut params: Vec<*mut c_void> = raw.iter().map(|s| s as *const u64 as *mut c_void).collect(); + if *pdl { + // Programmatic dependent launch: inside stream capture + // this becomes a programmatic graph edge, so the kernel + // may begin (and stream its own inputs) while the + // previous launch drains; its griddepcontrol.wait keeps + // the data dependency. + let mut attr = sys::CUlaunchAttribute { + id: sys::CUlaunchAttributeID::CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION, + pad: [0; 4], + value: sys::CUlaunchAttributeValue { programmaticStreamSerializationAllowed: 1 }, + }; + let cfg = sys::CUlaunchConfig { + gridDimX: grid.0, + gridDimY: grid.1, + gridDimZ: grid.2, + blockDimX: block[0], + blockDimY: block[1], + blockDimZ: block[2], + sharedMemBytes: smem, + hStream: self.stream.cu_stream(), + attrs: &mut attr, + numAttrs: 1, + }; + let r = unsafe { + sys::cuLaunchKernelEx(&cfg, *func, params.as_mut_ptr(), std::ptr::null_mut()) + }; + return cuda_check(r, "cuLaunchKernelEx"); + } unsafe { cu::launch_kernel( *func, diff --git a/examples/qwen3.8-27b-dflash2.json b/examples/qwen3.8-27b-dflash2.json index 984bfe8..75eebd3 100644 --- a/examples/qwen3.8-27b-dflash2.json +++ b/examples/qwen3.8-27b-dflash2.json @@ -6636,7 +6636,8 @@ } ], "shared_mem": 224128, - "cubin": "gemm8.cubin" + "cubin": "gemm8.cubin", + "pdl": true } ] } @@ -6708,7 +6709,8 @@ } ], "shared_mem": 224128, - "cubin": "gemm8.cubin" + "cubin": "gemm8.cubin", + "pdl": true } ] } @@ -6835,7 +6837,8 @@ } ], "shared_mem": 224128, - "cubin": "gemm8.cubin" + "cubin": "gemm8.cubin", + "pdl": true } ] } @@ -6942,7 +6945,8 @@ } ], "shared_mem": 224128, - "cubin": "gemm8.cubin" + "cubin": "gemm8.cubin", + "pdl": true } ] } diff --git a/examples/qwen3.8-27b.json b/examples/qwen3.8-27b.json index 56bece8..09c3d0c 100644 --- a/examples/qwen3.8-27b.json +++ b/examples/qwen3.8-27b.json @@ -5875,7 +5875,8 @@ } ], "shared_mem": 224128, - "cubin": "gemm8.cubin" + "cubin": "gemm8.cubin", + "pdl": true } ] } @@ -5947,7 +5948,8 @@ } ], "shared_mem": 224128, - "cubin": "gemm8.cubin" + "cubin": "gemm8.cubin", + "pdl": true } ] } @@ -6074,7 +6076,8 @@ } ], "shared_mem": 224128, - "cubin": "gemm8.cubin" + "cubin": "gemm8.cubin", + "pdl": true } ] } @@ -6181,7 +6184,8 @@ } ], "shared_mem": 224128, - "cubin": "gemm8.cubin" + "cubin": "gemm8.cubin", + "pdl": true } ] } diff --git a/schema/manifest-v2.schema.json b/schema/manifest-v2.schema.json index 4a3b70f..4d14d0e 100644 --- a/schema/manifest-v2.schema.json +++ b/schema/manifest-v2.schema.json @@ -564,6 +564,10 @@ }, "type": "array" }, + "pdl": { + "description": "Programmatic dependent launch: the runtime launches this step with\n`CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION`, so it may\nstart while the preceding launch is still draining. Only for kernels\nthat put every read of an upstream product and every global write\nbehind `griddepcontrol.wait` (their own inputs — weights, state —\nmay stream ahead of it).", + "type": "boolean" + }, "sha256": { "description": "sha256 of that cubin file, checked by the runtime when both are set.", "type": [ diff --git a/tools/gen_qwen35.py b/tools/gen_qwen35.py index 986f548..dc3d0a8 100644 --- a/tools/gen_qwen35.py +++ b/tools/gen_qwen35.py @@ -514,7 +514,7 @@ def scr(name, off=0): return {"scratch": name, "offset": off} if off else {"scratch": name} -def step(symbol, params, block, grid, args, shared_mem=None, cubin=None, sha256=None): +def step(symbol, params, block, grid, args, shared_mem=None, cubin=None, sha256=None, pdl=False): s = {"symbol": symbol, "params": params, "block": block, "grid": grid, "args": args} if shared_mem is not None: s["shared_mem"] = shared_mem @@ -522,13 +522,15 @@ def step(symbol, params, block, grid, args, shared_mem=None, cubin=None, sha256= s["cubin"] = cubin if sha256 is not None: s["sha256"] = sha256 + if pdl: # the kernel puts its dependent reads / all writes behind griddepcontrol.wait + s["pdl"] = True return s -def single(symbol, params, block, grid, shared_mem=None, cubin=None, sha256=None): +def single(symbol, params, block, grid, shared_mem=None, cubin=None, sha256=None, pdl=False): return {"params": params, "impl": {"steps": [step(symbol, params, block, grid, [a(i) for i in range(len(params))], - shared_mem, cubin, sha256)]}} + shared_mem, cubin, sha256, pdl)]}} TOKEN_DOMAIN = {"index_into": "model.embed_tokens.weight"} @@ -778,7 +780,7 @@ def layer_norm_kernel(src, grid, rows_shape): ["out buffer", "in buffer", "in buffer", "i32", "i32", "i32"], [GEMM8_THREADS, 1, 1], [GEMM8_GRID, 1, 1], - shared_mem=GEMM8_SMEM, cubin="gemm8.cubin"), + shared_mem=GEMM8_SMEM, cubin="gemm8.cubin", pdl=True), # down GEMM + residual add + Gemma fused_add_rms_norm of the next # layer input (gemm8's split-K partials, y and the task counters are # impl scratch; the norm tail reproduces kern_gemma_rms_norm.cu) @@ -787,7 +789,7 @@ def layer_norm_kernel(src, grid, rows_shape): ["out buffer", "out buffer", "in buffer", "in buffer", "in buffer", "i32", "i32", "i32", "i32"], [GEMM8_THREADS, 1, 1], [GEMM8_GRID, 1, 1], - shared_mem=GEMM8_SMEM, cubin="gemm8.cubin"), + shared_mem=GEMM8_SMEM, cubin="gemm8.cubin", pdl=True), # o_proj + the sigmoid gate on its input + residual add + post-attention # norm: x = attn * sigmoid(gate) is built inside the GEMM "gemm8_sgate_add_norm": { @@ -800,7 +802,7 @@ def layer_norm_kernel(src, grid, rows_shape): [GEMM8_THREADS, 1, 1], [GEMM8_GRID, 1, 1], [a(0), a(1), a(2), a(3), a(4), a(5), scr("y"), scr("partial"), scr("gcnt"), a(6), a(7), a(8), a(9), a(10), a(11), a(12)], - shared_mem=GEMM8_SMEM, cubin="gemm8.cubin")], + shared_mem=GEMM8_SMEM, cubin="gemm8.cubin", pdl=True)], }, }, "gemm8_add_norm": { @@ -813,7 +815,7 @@ def layer_norm_kernel(src, grid, rows_shape): [GEMM8_THREADS, 1, 1], [GEMM8_GRID, 1, 1], [a(0), a(1), a(2), a(3), a(4), scr("y"), scr("partial"), scr("gcnt"), a(5), a(6), a(7), a(8)], - shared_mem=GEMM8_SMEM, cubin="gemm8.cubin")], + shared_mem=GEMM8_SMEM, cubin="gemm8.cubin", pdl=True)], }, }, "copy_rows": single("kern_copy_rows_bf16", diff --git a/tools/kernels-src/gemm8.cu b/tools/kernels-src/gemm8.cu index 3fd18c8..cb7a8d1 100644 --- a/tools/kernels-src/gemm8.cu +++ b/tools/kernels-src/gemm8.cu @@ -12,11 +12,26 @@ // every output element sums them there. Smem rows are padded by 16 B so the // ldmatrix reads are bank-conflict-free (measured 3.5x slower without). // +// Tasks: whole 8-row blocks, a multiple of the grid so every CTA streams the +// same number, plus the leftover rows spread over the grid in tasks one +// granule apart -- scheduled first, where their latency-bound stages hide +// under the blocks behind them. Every task walks the same K stages, so the +// per-row accumulation order does not depend on the geometry. The ring/x +// split of the shared area is per launch, so bs=1 gets 5-6 stages in flight. +// // The tail runs after a single end-of-CTA fence + task-count atomic. With // grid <= %nsmid (one ~200 KB-smem CTA per SM, the launch geometry of every // call site) all CTAs are co-resident, so CTAs 0..M-1 spin on the counter and // each finishes one token row in parallel; on any other geometry the CTA that // finished last does all rows. Counters are back to zero at kernel end. +// The tail is pure latency: the norm weight is fetched under the spin and +// each global round trip of a row is one batch of loads. +// +// Programmatic dependent launch (manifest step `pdl`): the ring is filled +// with the first task's weights before griddepcontrol.wait, everything that +// reads an upstream product or writes comes after it, and the CTA signals +// launch_dependents once its stream is issued, so the next launch's ramp +// overlaps this launch's drain and tail. // // Entry points differ in what is fused around the GEMM (rounding chains // reproduce the vLLM / ATen kernels they replace): @@ -48,7 +63,8 @@ constexpr int SEG_MAX = 2560; // K elements per weight row per stage constexpr int PAD = 8; // 16 B row padding: bank shift 4 constexpr int X_ELEMS = 40960; // x area capacity (M * kseg elements) constexpr int X_SLOT = X_ELEMS + MMAX * PAD; -constexpr int RING_ELEMS = 69888; // 3 stages of 8 rows at SEG_MAX; 4-5 for split shapes +constexpr int RING_ELEMS = 69888; // ring minimum: 3 stages of 8 rows at SEG_MAX (x at capacity) +constexpr int BUF_ELEMS = RING_ELEMS + X_SLOT; // ring + x share one area, split per launch by M * kseg constexpr int STAGES_MAX = 6; constexpr int NCW = 8, CTHREADS = NCW * 32, NTHREADS = CTHREADS + 32; constexpr int BAR_C = 1; // named barrier of the compute warps @@ -97,15 +113,21 @@ __device__ __forceinline__ uint32_t nsmid() { return n; } __device__ __forceinline__ float bf16r(float v) { return __bfloat162float(__float2bfloat16_rn(v)); } +// Programmatic dependent launch: the caller may launch this kernel with +// CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION. Every global read of +// an upstream product and every global write sit behind pdl_wait(); only the +// weight stream (this launch's own inputs) runs ahead of it. Without the +// attribute both instructions are no-ops. +__device__ __forceinline__ void pdl_wait() { asm volatile("griddepcontrol.wait;" ::: "memory"); } +__device__ __forceinline__ void pdl_trigger() { asm volatile("griddepcontrol.launch_dependents;" ::: "memory"); } struct Smem { - alignas(128) __nv_bfloat16 ring[RING_ELEMS]; // stage s: rows [s*8*(seg+PAD), ...) - alignas(128) __nv_bfloat16 x[X_SLOT]; // current K range of x: M rows, stride kseg+PAD + alignas(128) __nv_bfloat16 buf[BUF_ELEMS]; // [ring: stage s at s*8*(seg+PAD)] ... [x: M rows, stride kseg+PAD] alignas(8) uint64_t full[STAGES_MAX], empty[STAGES_MAX], xfull, xempty; float red[NCW][MMAX][R]; int flag; }; -constexpr int SMEM_BYTES = sizeof(Smem) + 128; +static_assert(sizeof(Smem) + 128 <= 224128, "manifest shared_mem (GEMM8_SMEM) covers Smem"); enum Mode { PLAIN = 0, GATEUP = 1, DUAL = 2, NORM = 3, SGATE = 4 }; @@ -122,6 +144,42 @@ struct Args { int head_dim, gate_ts, gate_hs; }; +// Tasks of one K range: nfull whole 8-row blocks, a multiple of the grid so +// every CTA streams the same number, plus the leftover rows spread over the +// grid in tasks of `rem_g` rows (GATEUP: whole gate/up pairs). The small +// tasks come first: their stages are latency-bound, and at the head of a +// CTA's queue that latency hides under the full blocks streaming behind +// them instead of being the launch's last few microseconds. The per-row +// accumulation order is the same either way. +struct Geom { + int nrows, nfull, nsmall, na, hi, lo, nps; // rows; full blocks; small tasks: na of hi rows then hi-gran rows; tasks per range +}; +template +__device__ __forceinline__ Geom task_geom(const Args& a) { + Geom g; + g.nrows = MODE == GATEUP ? 2 * a.N : a.N; + const int nblk = (g.nrows + R - 1) / R, grid = gridDim.x; + g.nfull = nblk / grid * grid; + // leftover rows over the whole grid in two task widths differing by one + // granule, so no CTA streams more than a granule beyond another + const int rem = g.nrows - g.nfull * R, gran = MODE == GATEUP ? 2 : 1; + g.hi = min(R, ((rem + grid - 1) / grid + gran - 1) / gran * gran); + g.lo = g.hi - gran; + if (rem == 0) { g.na = g.nsmall = 0; } + else if (a.M > 1) { g.hi = R; g.lo = 0; g.na = g.nsmall = (rem + R - 1) / R; } // whole blocks: a narrow task costs full MMA rounds + else if (g.lo == 0) { g.na = g.nsmall = (rem + g.hi - 1) / g.hi; } + else { g.na = (rem - g.lo * grid + gran - 1) / gran; g.nsmall = grid; } + g.nps = g.nfull + g.nsmall; + return g; +} +__device__ __forceinline__ void task_rows(const Geom& g, int u, int& r0, int& rows) { + if (u < g.nsmall) { + r0 = g.nfull * R + (u < g.na ? u * g.hi : g.na * g.hi + (u - g.na) * g.lo); + rows = min(u < g.na ? g.hi : g.lo, g.nrows - r0); + } else { r0 = (u - g.nsmall) * R; rows = R; } +} + + // K ranges: as many as x capacity demands, and at least enough tasks to // balance the grid when the mode can split (partial != nullptr). __device__ __forceinline__ int pick_nranges(const Args& a, int nblk) { @@ -172,15 +230,21 @@ __device__ __forceinline__ void emit(const Args& a, int split, int nranges, int template __device__ __forceinline__ bool gemm8_core(const Args& a, Smem& s) { const int warp = threadIdx.x / 32, lane = threadIdx.x % 32; - const int nrows = MODE == GATEUP ? 2 * a.N : a.N; + const Geom g = task_geom(a); + const int nrows = g.nrows, nps = g.nps; const int nblk = (nrows + R - 1) / R; const int nranges = pick_nranges(a, nblk); const int kseg = (a.K + nranges - 1) / nranges + 31 & ~31; const int nst0 = (kseg + SEG_MAX - 1) / SEG_MAX; const int seg = (kseg + nst0 - 1) / nst0 + 31 & ~31; // stage slot width, whole ldmatrix pairs const int srow = seg + PAD, xrow = kseg + PAD; // smem row strides - const int nstages = min(STAGES_MAX, RING_ELEMS / (R * srow)); - const int ntasks = nblk * nranges; + // x sits at the top of the shared area; whatever it leaves (never less + // than RING_ELEMS) is ring depth -- at M = 1 that is 5-6 stages + const int xbeg = (BUF_ELEMS - a.M * xrow) & ~63; + __nv_bfloat16* const ring = s.buf; + __nv_bfloat16* const xs = s.buf + xbeg; + const int nstages = min(STAGES_MAX, xbeg / (R * srow)); + const int ntasks = nps * nranges; if (threadIdx.x == 0) { for (int i = 0; i < nstages; i++) { mbar_init(smem_u32(&s.full[i]), 1); @@ -197,39 +261,64 @@ __device__ __forceinline__ bool gemm8_core(const Args& a, Smem& s) { int stage = 0; uint32_t phase = 0, xphase = 0; int cur_split = -1; + // Weight stages of this CTA's first task fill the ring before the + // upstream dependency resolves; the main loop skips those `pre` stages. + int pre = 0; + if ((int)blockIdx.x < ntasks) { + const int t = blockIdx.x; + const int split = t / nps; + int r0, rows; + task_rows(g, t - split * nps, r0, rows); + const int k0 = split * kseg, klen = min(kseg, a.K - k0); + for (int off = 0; off < klen && pre < nstages; off += seg, pre++) { + const int len = min(seg, klen - off); + mbar_wait(smem_u32(&s.empty[stage]), phase ^ 1); + mbar_expect_tx(smem_u32(&s.full[stage]), rows * len * 2); + __nv_bfloat16* dst = &ring[stage * R * srow]; + for (int r = 0; r < rows; r++) + bulk_copy_1d(smem_u32(dst + r * srow), row_ptr(a, r0 + r) + k0 + off, len * 2, smem_u32(&s.full[stage])); + if (++stage == nstages) { stage = 0; phase ^= 1; } + } + } + pdl_wait(); for (int t = blockIdx.x; t < ntasks; t += gridDim.x) { - const int split = t / nblk, blk = t - split * nblk; // range-major - const int r0 = blk * R, rows = min(R, nrows - r0); + const int split = t / nps; // range-major + int r0, rows; + task_rows(g, t - split * nps, r0, rows); const int k0 = split * kseg, klen = min(kseg, a.K - k0); if (MODE != SGATE && split != cur_split) { // stage this range of x (consumers have released the old one) mbar_wait(smem_u32(&s.xempty), xphase); mbar_expect_tx(smem_u32(&s.xfull), a.M * klen * 2); for (int m = 0; m < a.M; m++) - bulk_copy_1d(smem_u32(&s.x[m * xrow]), a.x + (size_t)m * a.ldx + k0, klen * 2, smem_u32(&s.xfull)); + bulk_copy_1d(smem_u32(&xs[m * xrow]), a.x + (size_t)m * a.ldx + k0, klen * 2, smem_u32(&s.xfull)); xphase ^= 1; cur_split = split; } - for (int st = 0, off = 0; off < klen; st++, off += seg) { + for (int off = 0; off < klen; off += seg) { + if (pre > 0) { pre--; continue; } // already in flight (first task only) const int len = min(seg, klen - off); mbar_wait(smem_u32(&s.empty[stage]), phase ^ 1); mbar_expect_tx(smem_u32(&s.full[stage]), rows * len * 2); - __nv_bfloat16* dst = &s.ring[stage * R * srow]; + __nv_bfloat16* dst = &ring[stage * R * srow]; for (int r = 0; r < rows; r++) bulk_copy_1d(smem_u32(dst + r * srow), row_ptr(a, r0 + r) + k0 + off, len * 2, smem_u32(&s.full[stage])); if (++stage == nstages) { stage = 0; phase ^= 1; } } } + pdl_trigger(); // our weight stream is issued: the dependent launch may take the SMs we vacate } __syncthreads(); // matches the compute warps' final barrier return s.flag != 0; } const int ct = threadIdx.x - 32, cw = warp - 1; + pdl_wait(); // everything from here on touches upstream products or writes int stage = 0; uint32_t phase = 0, xphase = 0; int cur_split = -1; for (int t = blockIdx.x; t < ntasks; t += gridDim.x) { - const int split = t / nblk, blk = t - split * nblk; - const int r0 = blk * R, rows = min(R, nrows - r0); + const int split = t / nps; + int r0, rows; + task_rows(g, t - split * nps, r0, rows); const int klen = min(kseg, a.K - split * kseg); if (split != cur_split) { // release the old x range, wait for the new one if (MODE == SGATE) { // the compute warps make this range of x themselves @@ -253,7 +342,7 @@ __device__ __forceinline__ bool gemm8_core(const Args& a, Smem& s) { const float g = bf16r(1.0f / (1.0f + expf(-__bfloat162float(gv[j])))); ov[j] = __float2bfloat16_rn(__bfloat162float(av[j]) * g); } - *reinterpret_cast(&s.x[m * xrow + kk]) = oq; + *reinterpret_cast(&xs[m * xrow + kk]) = oq; } named_bar_sync(BAR_C, CTHREADS); } else { @@ -267,14 +356,15 @@ __device__ __forceinline__ bool gemm8_core(const Args& a, Smem& s) { // (l/8) = k tile-half; matrices (k 0-7, 8-15, 16-23, 24-31) of a 32-k // pair of tiles come back as (b0, b1, b0', b1') / (a0, a2, a0', a2'). // x rows beyond M are never emitted: clamp them onto row M-1 (broadcast). - const uint32_t xbase = smem_u32(&s.x[min(lane & 7, a.M - 1) * xrow + (lane >> 3) * 8]); + const uint32_t xbase = smem_u32(&xs[min(lane & 7, a.M - 1) * xrow + (lane >> 3) * 8]); float c[4][4]; #pragma unroll for (int j = 0; j < 4; j++) c[j][0] = c[j][1] = c[j][2] = c[j][3] = 0.f; - for (int st = 0, off = 0; off < klen; st++, off += seg) { + const int wrow = min(lane & 7, rows - 1); // rows beyond the task: clamp (never emitted) + for (int off = 0; off < klen; off += seg) { const int npairs = min(seg, klen - off) / 32; // len % 32 == 0 (every K is) mbar_wait(smem_u32(&s.full[stage]), phase); - const uint32_t wbase = smem_u32(&s.ring[stage * R * srow + (lane & 7) * srow + (lane >> 3) * 8]); + const uint32_t wbase = smem_u32(&ring[stage * R * srow + wrow * srow + (lane >> 3) * 8]); const uint32_t xoff = xbase + off * 2; int pr = cw; for (; pr + NCW < npairs; pr += 2 * NCW) { @@ -312,6 +402,7 @@ __device__ __forceinline__ bool gemm8_core(const Args& a, Smem& s) { } named_bar_sync(BAR_C, CTHREADS); } + pdl_trigger(); if (ct == 0) { // one thread of the compute warps const int my = (ntasks - (int)blockIdx.x + (int)gridDim.x - 1) / (int)gridDim.x; if (my > 0 && a.gcnt) { @@ -341,8 +432,10 @@ __device__ __forceinline__ int aten_block_width(int dim0, int dim1) { } // Sum of z[j]^2 over j in [0, N) in ATen's order (sq[j] = fmul_rn(z, z), then // the vectorized-by-4 reduction of kern_gemma_rms_norm.cu) for W virtual -// lanes emulated by NTHREADS threads (lane l = t + v*NTHREADS); the result is -// returned in every thread. +// lanes; the result is returned in every thread. (Folding the W lanes in +// the registers of one warp instead costs 40 registers and a local-memory +// tree in every add_norm variant, and the M = 8 verify pass pays 3 us per +// launch for it; the smem tree is the same additions in the same order.) __device__ float aten_row_sumsq(const float* __restrict__ z, int N, int W, float* __restrict__ s) { const int t = threadIdx.x; constexpr int VL = (NT_ATEN + NTHREADS - 1) / NTHREADS; @@ -403,27 +496,71 @@ __device__ __forceinline__ float4 ysum4(const Args& a, int nranges, int m, int j // Rows [m0, m1) of the tail. NORM: vLLM's Gemma fused_add_rms_norm with // ATen's reduction width for the launch's M rows; z lives in smem (ring). // PLAIN: just fold the partials to bf16 y. +// The tail is latency, not bandwidth: every global round trip of a row is +// issued for all of the thread's groups at once (TG = 6 float4 per thread +// covers N <= 6144), and w1 is already in smem (loaded during the wait). +constexpr int TG = (6144 / 4 + NTHREADS - 1) / NTHREADS; template -__device__ void tail_rows(const Args& a, int nranges, int m0, int m1, const float* w1, __nv_bfloat16* res, __nv_bfloat16* out, - float eps, float* __restrict__ z, float* __restrict__ s) { +__device__ void tail_rows(const Args& a, int nranges, int m0, int m1, const float* __restrict__ w1s, __nv_bfloat16* res, + __nv_bfloat16* out, float eps, float* __restrict__ z, float* __restrict__ s) { const int N = a.N; for (int m = m0; m < m1; m++) { - for (int j = threadIdx.x * 4; j < N; j += NTHREADS * 4) { - float4 v = ysum4(a, nranges, m, j); + float4 v[TG]; + float2 r0[TG], r1[TG]; + if (MODE >= NORM) { // the residual pair of every group, issued as one batch + uint32_t rw[TG][2]; +#pragma unroll + for (int gi = 0; gi < TG; gi++) { + const int j = (threadIdx.x + gi * NTHREADS) * 4; + const uint32_t* rr = reinterpret_cast(res + (size_t)m * N + j); + rw[gi][0] = j < N ? rr[0] : 0u; + rw[gi][1] = j < N ? rr[1] : 0u; + } +#pragma unroll + for (int gi = 0; gi < TG; gi++) { + r0[gi] = __bfloat1622float2(*reinterpret_cast(&rw[gi][0])); + r1[gi] = __bfloat1622float2(*reinterpret_cast(&rw[gi][1])); + } + } + if (nranges == 1) { // y scratch, bf16: one batch of plain loads + uint32_t yw[TG][2]; +#pragma unroll + for (int gi = 0; gi < TG; gi++) { + const int j = (threadIdx.x + gi * NTHREADS) * 4; + const uint32_t* yy = reinterpret_cast(a.y + (size_t)m * N + j); + yw[gi][0] = j < N ? __ldcg(yy) : 0u; + yw[gi][1] = j < N ? __ldcg(yy + 1) : 0u; + } +#pragma unroll + for (int gi = 0; gi < TG; gi++) { + const float2 l = __bfloat1622float2(*reinterpret_cast(&yw[gi][0])); + const float2 h = __bfloat1622float2(*reinterpret_cast(&yw[gi][1])); + v[gi] = make_float4(l.x, l.y, h.x, h.y); + } + } else { +#pragma unroll + for (int gi = 0; gi < TG; gi++) { + const int j = (threadIdx.x + gi * NTHREADS) * 4; + if (j < N) v[gi] = ysum4(a, nranges, m, j); + } + } +#pragma unroll + for (int gi = 0; gi < TG; gi++) { + const int j = (threadIdx.x + gi * NTHREADS) * 4; + if (j >= N) continue; + float4 y = v[gi]; if (MODE >= NORM) { __nv_bfloat16* rr = res + (size_t)m * N + j; - v.x = bf16r(v.x); v.y = bf16r(v.y); v.z = bf16r(v.z); v.w = bf16r(v.w); // the bf16 y rounding - const float2 r0 = __bfloat1622float2(*reinterpret_cast(rr)); - const float2 r1 = __bfloat1622float2(*reinterpret_cast(rr + 2)); - v.x = __fadd_rn(v.x, r0.x); v.y = __fadd_rn(v.y, r0.y); - v.z = __fadd_rn(v.z, r1.x); v.w = __fadd_rn(v.w, r1.y); - *reinterpret_cast<__nv_bfloat162*>(rr) = __floats2bfloat162_rn(v.x, v.y); - *reinterpret_cast<__nv_bfloat162*>(rr + 2) = __floats2bfloat162_rn(v.z, v.w); - *reinterpret_cast(z + j) = v; + y.x = bf16r(y.x); y.y = bf16r(y.y); y.z = bf16r(y.z); y.w = bf16r(y.w); // the bf16 y rounding + y.x = __fadd_rn(y.x, r0[gi].x); y.y = __fadd_rn(y.y, r0[gi].y); + y.z = __fadd_rn(y.z, r1[gi].x); y.w = __fadd_rn(y.w, r1[gi].y); + *reinterpret_cast<__nv_bfloat162*>(rr) = __floats2bfloat162_rn(y.x, y.y); + *reinterpret_cast<__nv_bfloat162*>(rr + 2) = __floats2bfloat162_rn(y.z, y.w); + *reinterpret_cast(z + j) = y; } else { __nv_bfloat16* yy = a.y + (size_t)m * N + j; - *reinterpret_cast<__nv_bfloat162*>(yy) = __floats2bfloat162_rn(v.x, v.y); - *reinterpret_cast<__nv_bfloat162*>(yy + 2) = __floats2bfloat162_rn(v.z, v.w); + *reinterpret_cast<__nv_bfloat162*>(yy) = __floats2bfloat162_rn(y.x, y.y); + *reinterpret_cast<__nv_bfloat162*>(yy + 2) = __floats2bfloat162_rn(y.z, y.w); } } if (MODE < NORM) continue; @@ -433,9 +570,12 @@ __device__ void tail_rows(const Args& a, int nranges, int m0, int m1, const floa const float factor = (float)a.M / (float)((long long)a.M * (long long)N); const float var = __fmul_rn(sum, factor); const float r = rsqrtf(__fadd_rn(var, eps)); - for (int j = threadIdx.x * 4; j < N; j += NTHREADS * 4) { +#pragma unroll + for (int gi = 0; gi < TG; gi++) { + const int j = (threadIdx.x + gi * NTHREADS) * 4; + if (j >= N) continue; const float4 zv = *reinterpret_cast(z + j); - const float4 w0 = *reinterpret_cast(w1 + j); + const float4 w0 = *reinterpret_cast(w1s + j); __nv_bfloat162 o0 = __floats2bfloat162_rn(__fmul_rn(__fmul_rn(zv.x, r), w0.x), __fmul_rn(__fmul_rn(zv.y, r), w0.y)); __nv_bfloat162 o1 = __floats2bfloat162_rn(__fmul_rn(__fmul_rn(zv.z, r), w0.z), __fmul_rn(__fmul_rn(zv.w, r), w0.w)); *reinterpret_cast<__nv_bfloat162*>(out + (size_t)m * N + j) = o0; @@ -450,18 +590,22 @@ __device__ void tail_rows(const Args& a, int nranges, int m0, int m1, const floa template __device__ __forceinline__ void run_tail(const Args& a, Smem& s, bool last, __nv_bfloat16* res, const float* w1, __nv_bfloat16* out, float eps) { - const int nrows = MODE == GATEUP ? 2 * a.N : a.N; - const int nblk = (nrows + R - 1) / R; + const Geom g = task_geom(a); + const int nblk = (g.nrows + R - 1) / R; const int nranges = pick_nranges(a, nblk); + const int ntasks = g.nps * nranges; if (MODE == PLAIN && nranges == 1) return; // nothing left to do - static_assert(sizeof(s.ring) >= 6144 * 4, "z row: N <= 6144"); - float* z = reinterpret_cast(&s.ring[0]); + static_assert(RING_ELEMS * 2 >= 2 * 6144 * 4, "z row + w1 copy: N <= 6144"); + float* z = reinterpret_cast(&s.buf[0]); + float* w1s = z + 6144; if (gridDim.x <= nsmid()) { if ((int)blockIdx.x >= a.M) return; + if (MODE >= NORM) // the norm weight is not waiting on anyone: fetch it under the spin + for (int j = threadIdx.x * 4; j < a.N; j += NTHREADS * 4) *reinterpret_cast(w1s + j) = *reinterpret_cast(w1 + j); if (threadIdx.x == 0) - while (ld_acquire(a.gcnt) < nblk * nranges) __nanosleep(64); + while (ld_acquire(a.gcnt) < ntasks) __nanosleep(64); __syncthreads(); - tail_rows(a, nranges, blockIdx.x, blockIdx.x + 1, w1, res, out, eps, z, &s.red[0][0][0]); + tail_rows(a, nranges, blockIdx.x, blockIdx.x + 1, w1s, res, out, eps, z, &s.red[0][0][0]); __syncthreads(); if (threadIdx.x == 0 && atomicAdd(a.gcnt + 1, 1) == a.M - 1) { a.gcnt[1] = 0; @@ -470,7 +614,10 @@ __device__ __forceinline__ void run_tail(const Args& a, Smem& s, bool last, __nv } } else if (last) { __threadfence(); - tail_rows(a, nranges, 0, a.M, w1, res, out, eps, z, &s.red[0][0][0]); + if (MODE >= NORM) + for (int j = threadIdx.x * 4; j < a.N; j += NTHREADS * 4) *reinterpret_cast(w1s + j) = *reinterpret_cast(w1 + j); + __syncthreads(); + tail_rows(a, nranges, 0, a.M, w1s, res, out, eps, z, &s.red[0][0][0]); __syncthreads(); if (threadIdx.x == 0) { *a.gcnt = 0; __threadfence(); } } From 958efa0151de38b56ceeff6053569bb503bae3a8 Mon Sep 17 00:00:00 2001 From: JinYan Su <751080330@qq.com> Date: Tue, 1 Sep 2026 03:35:04 +0000 Subject: [PATCH 10/10] docs: qwen3.8 kern vs vLLM 0.28 on one GB300 (tray14), same five prompts bs=1, greedy, 5 prompts x 400 tokens, measured back to back on the same tray (tools/qwen38_vllm_perf.py, tools/qwen38_compare.py): | | vLLM default (FlashInfer, trtllm-gen decode, CUDA graph) | vLLM pinned (TRITON_ATTN + triton GDN) | kern c10 | | plain decode | 95.1 tok/s (94.8-95.3) | 95.9 (95.8-96.1) | 105.1 (102.8-105.8), 9.5 ms/step | | DFlash2 (7 draft tokens) | 171.4 tok/s (148.5-206.4), 2.45 tok/round | - | 181.4 (156.9-210.4), 2.57 tok/round, 14.1 ms/round | vLLM's DFlash2 acceptance per position [521, 307, 164, 93, 45, 35, 25] over 818 rounds; kern's draft runs its attention on the Stage 1 Triton unified attention instead of vLLM's cute FA, so the accepted counts differ a little (greedy verification keeps the output exact either way). Signed-off-by: JinYan Su <751080330@qq.com> --- docs/qwen38-compare-c10-plain-tray14.json | 2078 +++++++++++++++++ docs/qwen38-compare-c10-spec-tray14.json | 2078 +++++++++++++++++ .../qwen38-vllm-perf-plain-pinned-tray14.json | 2048 ++++++++++++++++ docs/qwen38-vllm-perf-plain-tray14.json | 2048 ++++++++++++++++ docs/qwen38-vllm-perf-spec-tray14.json | 2061 ++++++++++++++++ 5 files changed, 10313 insertions(+) create mode 100644 docs/qwen38-compare-c10-plain-tray14.json create mode 100644 docs/qwen38-compare-c10-spec-tray14.json create mode 100644 docs/qwen38-vllm-perf-plain-pinned-tray14.json create mode 100644 docs/qwen38-vllm-perf-plain-tray14.json create mode 100644 docs/qwen38-vllm-perf-spec-tray14.json diff --git a/docs/qwen38-compare-c10-plain-tray14.json b/docs/qwen38-compare-c10-plain-tray14.json new file mode 100644 index 0000000..de1e92b --- /dev/null +++ b/docs/qwen38-compare-c10-plain-tray14.json @@ -0,0 +1,2078 @@ +{ + "config": { + "gpu": 3, + "chunk": 512, + "eager": false, + "steps": 400, + "capacity": 4704, + "only": null, + "out": "/mnt/shared/home/susun/agent_code/kern-out/compare-c10-final-plain-tray14.json", + "ref": "/mnt/shared/home/susun/agent_code/kern/docs/qwen38-ref.json", + "manifest": "examples/qwen3.8-27b.json", + "kernels": "kernels-qwen38", + "draft": false, + "spec": false + }, + "results": [ + { + "index": 0, + "match": 124, + "ref_len": 400, + "byte_identical": false, + "prefill": "prefill: 43 tokens in 1 chunk(s) of <= 512 (86.248078ms, 499 tok/s, eager, emits next_token)", + "decode": "400 tokens generated, 9.5 ms/step (105.8 tok/s)", + "wall_s": 14.0, + "generated": [ + 264, + 3074, + 4202, + 421, + 1467, + 524, + 2353, + 866, + 314, + 279, + 3672, + 25, + 264, + 25347, + 2512, + 279, + 348, + 32, + 322, + 6020, + 9, + 995, + 978, + 12076, + 430, + 1001, + 52513, + 506, + 9117, + 828, + 383, + 279, + 3603, + 314, + 279, + 3128, + 70595, + 11, + 3482, + 279, + 1788, + 3603, + 264, + 7397, + 4600, + 725, + 1433, + 7246, + 264, + 9613, + 11, + 14527, + 54087, + 71433, + 7397, + 501, + 13810, + 494, + 279, + 2919, + 321, + 264, + 14457, + 11, + 83345, + 3000, + 3294, + 279, + 18137, + 13, + 561, + 7110, + 725, + 5572, + 87338, + 888, + 279, + 2081, + 11, + 279, + 25570, + 1990, + 13988, + 11, + 430, + 413, + 279, + 1330, + 7189, + 998, + 4313, + 310, + 6266, + 310, + 1754, + 975, + 13, + 271, + 4639, + 3603, + 11, + 279, + 7110, + 1362, + 524, + 5894, + 13, + 1216, + 33461, + 279, + 348, + 32, + 322, + 6020, + 9, + 430, + 264, + 3255, + 421, + 995, + 41065, + 680, + 314, + 1141, + 5976, + 12096, + 321, + 25286, + 303, + 279, + 4592, + 314, + 2361, + 13, + 561, + 7397, + 4600, + 725, + 22557, + 11, + 440, + 1141, + 40630, + 11, + 46368, + 3447, + 11, + 6273, + 1040, + 264, + 11937, + 314, + 264, + 7875, + 18641, + 421, + 995, + 978, + 20496, + 3023, + 321, + 3162, + 290, + 8366, + 279, + 45366, + 13, + 561, + 7110, + 725, + 1765, + 8129, + 11, + 8785, + 321, + 57879, + 11, + 9047, + 310, + 381, + 279, + 7167, + 33528, + 421, + 1362, + 3222, + 279, + 11937, + 303, + 1925, + 13, + 271, + 1465, + 5820, + 310, + 11319, + 279, + 4368, + 13, + 5339, + 11, + 551, + 9711, + 279, + 13769, + 12688, + 25, + 279, + 2321, + 11, + 279, + 13534, + 11, + 279, + 24834, + 314, + 11679, + 290, + 19712, + 11, + 279, + 13234, + 314, + 28279, + 11, + 279, + 8831, + 2218, + 5248, + 76, + 11, + 17257, + 1657, + 11, + 264, + 14979, + 29262, + 13, + 4844, + 551, + 6316, + 310, + 279, + 7397, + 4600, + 725, + 3874, + 321, + 4439, + 1092, + 424, + 1362, + 2977, + 303, + 1782, + 3665, + 13, + 357, + 1001, + 79088, + 54087, + 71433, + 7397, + 828, + 2493, + 381, + 264, + 21172, + 314, + 279, + 17257, + 383, + 264, + 13988, + 9249, + 26, + 264, + 1001, + 26418, + 5143, + 3000, + 828, + 1362, + 381, + 279, + 46219, + 314, + 264, + 13238, + 49992, + 4560, + 13, + 3113, + 91469, + 279, + 20514, + 291, + 2099, + 303, + 63001, + 3447, + 11, + 279, + 7110, + 6316, + 264, + 37753, + 47978, + 1227, + 1083, + 264, + 1228, + 470, + 29094, + 13, + 271, + 760, + 1727, + 2923, + 557, + 310, + 9150, + 279, + 1330, + 9331, + 3008, + 539, + 3008, + 11, + 3221, + 364, + 77650, + 321, + 364, + 3387, + 314, + 3522, + 13, + 561, + 45366, + 1018, + 279, + 348, + 32, + 322, + 6020, + 9, + 557, + 1001, + 52513, + 2340, + 694, + 279, + 7397, + 4600, + 725, + 1433, + 8826, + 264, + 8026, + 303, + 279, + 2919, + 506, + 279, + 1788, + 6258, + 13, + 561, + 7110, + 10036, + 279, + 75332, + 11, + 1179, + 4439, + 1092, + 1000, + 599, + 310, + 381, + 804, + 364, + 2107, + 11889, + 310, + 3222, + 25, + 8106, + 279, + 348, + 32, + 322, + 6020, + 9, + 995, + 524, + 56507, + 694, + 995 + ], + "text": "The harbor master kept a ledger of every ship that wintered in the bay, noting cargo, crew, and the state of each hull in a cramped, looping hand. In the spring of the third year he found a single entry that did not match any of the others: a vessel called the *Aurora* had been recorded as \u201clost at sea\u201d on the night of the equinox, yet the same night a fisherman\u2019s log described a bright, silver\u2011scaled fish leaping from the water and a strange, humming light above the mast. The master\u2019s pen hovered over the page, the ink still wet, as if the two records were trying to speak to each other.\n\nThat night, the master could not sleep. He imagined the *Aurora* as a story that had slipped out of its proper chapter and landed in the margin of another. The fisherman\u2019s tale, with its vivid, sensory details, felt like a fragment of a larger narrative that had been torn away and pasted onto the ledger. The master\u2019s own notes, dry and factual, seemed to be the missing spine that could hold the fragment in place.\n\nHe began to trace the thread. First, he listed the concrete facts: the date, the coordinates, the cargo of salted cod, the crew of twelve, the weather\u2014calm, moonless, a thin fog. Then he turned to the fisherman\u2019s description and asked what it could mean in those terms. A \u201csilver\u2011scaled fish\u201d might be a reflection of the moon on a wet deck; a \u201chumming light\u201d could be the vibration of a newly repaired engine. By grounding the mythic image in measurable details, the master turned a vague anecdote into a testable hypothesis.\n\nThe next step was to compare the two accounts side by side, looking for contradictions and for points of contact. The ledger said the *Aurora* was \u201clost,\u201d but the fisherman\u2019s log placed a ship in the water at the same hour. The master noted the discrepancy, then asked what would have to be true for both statements to hold: perhaps the *Aurora* had not vanished but had\n" + }, + { + "index": 1, + "match": 139, + "ref_len": 400, + "byte_identical": false, + "prefill": "prefill: 41 tokens in 1 chunk(s) of <= 512 (82.77022ms, 495 tok/s, eager, emits next_token)", + "decode": "400 tokens generated, 9.7 ms/step (102.8 tok/s)", + "wall_s": 12.4, + "generated": [ + 264, + 36334, + 21388, + 314, + 5484, + 5415, + 321, + 264, + 716, + 314, + 34844, + 542, + 5564, + 58091, + 1172, + 279, + 7991, + 846, + 13, + 561, + 1118, + 3603, + 1172, + 279, + 491, + 12515, + 11, + 279, + 6561, + 2002, + 6749, + 92169, + 1056, + 5316, + 25624, + 11, + 3482, + 279, + 36334, + 467, + 78078, + 5432, + 68, + 1990, + 9047, + 310, + 288, + 92536, + 13, + 561, + 2015, + 14607, + 421, + 279, + 53952, + 725, + 27374, + 5257, + 557, + 874, + 4860, + 264, + 4145, + 1001, + 75, + 704, + 54087, + 429, + 54087, + 70735, + 828, + 3255, + 26, + 424, + 557, + 264, + 61010, + 23850, + 314, + 25586, + 11, + 1754, + 440, + 1141, + 1765, + 79299, + 11, + 25113, + 11, + 321, + 3558, + 13, + 271, + 1206, + 12689, + 3908, + 421, + 23850, + 11, + 567, + 1902, + 1118, + 2466, + 25, + 2972, + 4993, + 635, + 567, + 7276, + 264, + 1785, + 314, + 1599, + 18766, + 33765, + 25586, + 303, + 264, + 1560, + 421, + 14908, + 586, + 6805, + 1332, + 449, + 2099, + 668, + 1304, + 11, + 1204, + 3349, + 424, + 668, + 381, + 11, + 321, + 1204, + 279, + 3000, + 668, + 35600, + 170286, + 561, + 4087, + 14995, + 303, + 264, + 16338, + 716, + 314, + 36655, + 421, + 4089, + 279, + 4220, + 14193, + 430, + 264, + 3074, + 1001, + 24507, + 11432, + 828, + 17796, + 11, + 1345, + 1990, + 9976, + 3627, + 314, + 279, + 3714, + 5255, + 421, + 2873, + 279, + 1785, + 1141, + 3542, + 13, + 271, + 13962, + 220, + 16, + 13, + 5369, + 264, + 3074, + 7099, + 310, + 264, + 4220, + 1785, + 271, + 2381, + 264, + 3074, + 18766, + 33765, + 7099, + 279, + 1298, + 686, + 518, + 12323, + 369, + 271, + 75370, + 198, + 59, + 35790, + 88216, + 8017, + 90, + 82, + 8017, + 29533, + 35790, + 88216, + 14728, + 82, + 92, + 33289, + 35790, + 88216, + 23531, + 77, + 14728, + 81, + 2069, + 198, + 59, + 60, + 271, + 2777, + 17237, + 82, + 55821, + 321, + 17237, + 82, + 15313, + 8, + 513, + 279, + 1576, + 321, + 2099, + 25704, + 16384, + 494, + 279, + 7099, + 11, + 17237, + 77, + 55821, + 321, + 17237, + 77, + 15313, + 8, + 513, + 279, + 18766, + 2932, + 14505, + 383, + 2892, + 3008, + 11, + 321, + 17237, + 81, + 55821, + 369, + 279, + 7099, + 10264, + 13, + 18050, + 4350, + 3679, + 25586, + 513, + 8826, + 303, + 8240, + 11, + 279, + 1788, + 1304, + 79476, + 413, + 567, + 8032, + 279, + 3714, + 31591, + 539, + 2972, + 8678, + 54087, + 8877, + 332, + 5981, + 25, + 271, + 75370, + 198, + 59, + 35790, + 88216, + 8017, + 90, + 82, + 8017, + 29533, + 35790, + 88216, + 14728, + 82, + 92, + 33289, + 35790, + 88216, + 23531, + 77, + 14728, + 81, + 14717, + 59, + 1272, + 90, + 10684, + 3307, + 7563, + 198, + 59, + 60, + 271, + 8160, + 17237, + 81, + 14717, + 59, + 1272, + 90, + 10684, + 3307, + 55821, + 369, + 279, + 10264, + 314, + 79299, + 314, + 449, + 348, + 24507, + 11432, + 9, + 3074, + 7099, + 421, + 1000, + 7936, + 6681, + 279, + 1788, + 1298, + 686, + 518, + 30619, + 430, + 279, + 4220, + 5436, + 13, + 561, + 2279, + 314, + 279, + 1785, + 369, + 271, + 75370, + 198, + 59, + 43660, + 283, + 307, + 6, + 471, + 307, + 283, + 1088, + 35790, + 88216, + 23531 + ], + "text": "When the observatory finally reopened after the renovation, the docents discovered that the old refractor had been quietly recollimated by a retired machinist who lived nearby. He left no note, only a faint smell of machine oil and a set of brass shims tucked under the focuser. The first night under the new sky, the star field looked sharper than anyone remembered, yet the faintest nebulae still seemed to wobble. The team realized that the telescope\u2019s optical train was no longer a simple \u201clens\u2011and\u2011mirror\u201d story; it was a layered puzzle of surfaces, each with its own curvature, spacing, and material.\n\nTo untangle that puzzle, we must first ask: **how do we describe a system of many refracting surfaces in a way that lets us predict where an image will form, how large it will be, and how the light will bend?** The answer lies in a compact set of equations that treat the whole assembly as a single \u201cequivalent\u201d lens, while still keeping track of the individual elements that give the system its character.\n\n### 1. From a single surface to a whole system\n\nFor a single refracting surface the paraxial relation is\n\n\\[\n\\frac{n'}{s'}-\\frac{n}{s}=\\frac{n'-n}{r},\n\\]\n\nwhere \\(s\\) and \\(s'\\) are the object and image distances measured from the surface, \\(n\\) and \\(n'\\) are the refractive indices on either side, and \\(r\\) is the surface radius. \n\nWhen several surfaces are placed in sequence, the same form survives if we replace the individual quantities by **system\u2011wide** ones:\n\n\\[\n\\frac{n'}{s'}-\\frac{n}{s}=\\frac{n'-n}{r_{\\text{eq}}}.\n\\]\n\nHere \\(r_{\\text{eq}}\\) is the radius of curvature of an *equivalent* single surface that would produce exactly the same paraxial imaging as the whole stack. The power of the system is\n\n\\[\n\\Phi = n' - n = \\frac{n'-\n" + }, + { + "index": 2, + "match": 341, + "ref_len": 400, + "byte_identical": false, + "prefill": "prefill: 48 tokens in 1 chunk(s) of <= 512 (87.176143ms, 551 tok/s, eager, emits next_token)", + "decode": "400 tokens generated, 9.5 ms/step (105.5 tok/s)", + "wall_s": 11.7, + "generated": [ + 7094, + 781, + 14428, + 279, + 53627, + 287, + 440, + 22945, + 9399, + 49954, + 11, + 8132, + 1396, + 2418, + 314, + 272, + 46016, + 11, + 1396, + 10582, + 314, + 274, + 6960, + 11, + 1396, + 22263, + 23178, + 17629, + 22149, + 13, + 733, + 279, + 4688, + 7094, + 781, + 5743, + 310, + 279, + 1788, + 22945, + 52604, + 321, + 1669, + 279, + 14367, + 995, + 7481, + 13, + 271, + 760, + 42159, + 557, + 2496, + 7807, + 13, + 561, + 14367, + 8341, + 7594, + 795, + 13, + 271, + 4277, + 271, + 760, + 1118, + 3065, + 488, + 5125, + 883, + 279, + 17198, + 20139, + 369, + 421, + 424, + 369, + 524, + 264, + 1925, + 13, + 1049, + 369, + 264, + 1817, + 11884, + 279, + 30385, + 314, + 264, + 1925, + 13, + 561, + 4128, + 488, + 2418, + 383, + 557, + 14367, + 2634, + 264, + 12828, + 3998, + 321, + 668, + 381, + 14367, + 2634, + 1495, + 303, + 264, + 12828, + 13, + 561, + 12052, + 513, + 524, + 39527, + 303, + 16665, + 748, + 1691, + 430, + 303, + 264, + 46446, + 440, + 2919, + 13, + 561, + 272, + 46016, + 29528, + 513, + 524, + 19101, + 13, + 2302, + 513, + 279, + 4757, + 579, + 1560, + 314, + 25108, + 948, + 279, + 2919, + 1898, + 35937, + 3294, + 1141, + 7303, + 13, + 271, + 760, + 2018, + 3065, + 488, + 5125, + 369, + 279, + 20513, + 13, + 2717, + 279, + 18682, + 314, + 4950, + 13, + 561, + 9084, + 314, + 264, + 2086, + 2993, + 314, + 4950, + 13, + 561, + 3594, + 369, + 11702, + 440, + 279, + 11639, + 314, + 2919, + 6992, + 1472, + 51930, + 11, + 314, + 39465, + 3133, + 279, + 60847, + 11, + 314, + 19053, + 7842, + 303, + 32655, + 421, + 2714, + 5995, + 310, + 5640, + 1472, + 13988, + 7339, + 13, + 561, + 20513, + 369, + 279, + 4950, + 314, + 264, + 1785, + 303, + 53454, + 13, + 1049, + 369, + 279, + 4950, + 314, + 264, + 1925, + 421, + 682, + 978, + 3604, + 279, + 1788, + 3065, + 364, + 5600, + 15706, + 1578, + 321, + 682, + 874, + 14181, + 314, + 21835, + 13, + 271, + 760, + 4688, + 3065, + 488, + 5125, + 369, + 279, + 21388, + 13, + 561, + 21388, + 314, + 27572, + 8056, + 4766, + 11, + 314, + 69064, + 11, + 314, + 279, + 3820, + 61306, + 314, + 2919, + 421, + 682, + 978, + 11362, + 303, + 264, + 55294, + 364, + 264, + 1936, + 13, + 561, + 21388, + 369, + 524, + 45322, + 13, + 1049, + 369, + 279, + 21388, + 314, + 264, + 1925, + 421, + 369, + 13282, + 303, + 279, + 1560, + 421, + 264, + 54826, + 16853, + 369, + 13282, + 13, + 1049, + 369, + 279, + 21388, + 314, + 17454, + 13, + 271, + 4277, + 271, + 760, + 296, + 7679, + 358, + 41713, + 513, + 279, + 17198, + 20139, + 579, + 4779, + 13, + 8618, + 799, + 369, + 264, + 21599, + 1332, + 279, + 14367, + 2957, + 10298, + 321, + 1179, + 5324, + 1141, + 3838, + 13, + 561, + 2919, + 303, + 449, + 296, + 7679, + 358, + 369, + 1990, + 13, + 1049, + 369, + 279, + 1829, + 314, + 14799, + 13, + 1049, + 369, + 2400, + 314, + 259, + 985, + 1283, + 501, + 3726, + 494, + 279, + 272, + 46016, + 321, + 279, + 55463, + 19559, + 11, + 321, + 279, + 259, + 985, + 1283, + 1236, + 279, + 2919, + 80913, + 11, + 321, + 279, + 93582, + 13205, + 279, + 65562 + ], + "text": "The floodplain census took three summers to complete. In the first summer the crews mapped oxbow lakes and counted heron rookeries from canoes, losing two clipboards and one outboard motor to the river. In the second summer they walked the levees with transect tapes, logging every stand of cypress, every patch of sedge, every abandoned crawfish trap. In the third summer they returned to the same transects and found the river had moved.\n\nThe census was never finished. The river kept adding data.\n\n---\n\nThe first thing you notice about the floodplain is that it is not a place. It is a process wearing the costume of a place. The land you stand on was riverbed a decade ago and will be riverbed again in a decade. The trees are not rooted in soil so much as in a negotiation with water. The cypress knees are not roots. They are the tree's way of breathing when the water table rises above its feet.\n\nThe second thing you notice is the silence. Not the absence of sound. The presence of a different kind of sound. The air is thick with the noise of water moving through vegetation, of insects working the canopy, of birds calling in frequencies that seem designed to travel through wet wood. The silence is the sound of a system in equilibrium. It is the sound of a place that has been doing the same thing for ten thousand years and has no intention of stopping.\n\nThe third thing you notice is the smell. The smell of decomposing matter, of sulfur, of the particular sweetness of water that has been sitting in a basin for a week. The smell is not unpleasant. It is the smell of a place that is alive in the way that a compost heap is alive. It is the smell of transformation.\n\n---\n\nThe oxbow lakes are the floodplain's memory. Each one is a scar where the river once ran and then changed its mind. The water in an oxbow is still. It is the color of tea. It is full of tannins leached from the cypress and the tupelo, and the tannins make the water acidic, and the acidity keeps the algae\n" + }, + { + "index": 3, + "match": 185, + "ref_len": 400, + "byte_identical": false, + "prefill": "prefill: 42 tokens in 1 chunk(s) of <= 512 (87.373231ms, 481 tok/s, eager, emits next_token)", + "decode": "400 tokens generated, 9.5 ms/step (105.8 tok/s)", + "wall_s": 11.5, + "generated": [ + 271, + 8160, + 369, + 449, + 15673, + 314, + 1439, + 2250, + 41724, + 303, + 13983, + 3992, + 11, + 3055, + 440, + 264, + 13769, + 3010, + 364, + 1754, + 13, + 271, + 13962, + 220, + 16, + 13, + 8169, + 264, + 19269, + 7541, + 2751, + 303, + 18266, + 271, + 332, + 760, + 68868, + 64700, + 198, + 33807, + 303, + 279, + 1814, + 369, + 1801, + 314, + 13280, + 18167, + 318, + 63339, + 321, + 33470, + 8, + 421, + 513, + 14537, + 6992, + 13, + 3095, + 279, + 9039, + 35937, + 11, + 1439, + 18167, + 8457, + 4649, + 321, + 3166, + 10281, + 11, + 13969, + 1070, + 310, + 4336, + 9781, + 4473, + 10431, + 494, + 799, + 2361, + 13, + 1061, + 369, + 2512, + 2972, + 65819, + 14046, + 159034, + 271, + 7732, + 279, + 14046, + 314, + 264, + 3074, + 18546, + 369, + 28486, + 11, + 948, + 488, + 29283, + 421, + 13280, + 6977, + 539, + 279, + 30995, + 314, + 31137, + 303, + 264, + 10632, + 5759, + 1040, + 264, + 9229, + 13759, + 11, + 279, + 2702, + 2222, + 303, + 2984, + 8772, + 4927, + 13, + 1368, + 264, + 13759, + 998, + 5617, + 430, + 799, + 6235, + 11, + 632, + 47272, + 6365, + 11, + 279, + 8364, + 303, + 7094, + 1000, + 5073, + 424, + 310, + 14084, + 13, + 16643, + 2956, + 310, + 14084, + 11, + 279, + 5138, + 7035, + 1000, + 1870, + 685, + 11, + 13188, + 13969, + 279, + 13759, + 310, + 77238, + 11, + 16966, + 11, + 466, + 1442, + 17638, + 13, + 271, + 332, + 80711, + 12996, + 64700, + 198, + 49338, + 264, + 2972, + 16, + 11, + 15, + 15, + 15, + 19858, + 23046, + 9229, + 13759, + 159034, + 12142, + 50110, + 506, + 264, + 4238, + 314, + 883, + 220, + 15, + 13, + 15, + 15, + 15, + 15, + 15, + 21, + 14493, + 791, + 16618, + 364, + 1396, + 8122, + 66401, + 5096, + 303, + 9039, + 13, + 198, + 9, + 256, + 1368, + 279, + 9039, + 35937, + 539, + 2972, + 20, + 15, + 56498, + 332, + 494, + 12050, + 310, + 7094, + 11, + 421, + 220, + 16, + 11, + 15, + 15, + 15, + 19858, + 13759, + 668, + 8952, + 539, + 16757, + 2972, + 18, + 13, + 21, + 14493, + 159034, + 198, + 9, + 256, + 1946, + 27358, + 411, + 11, + 23438, + 4433, + 2972, + 4431, + 10188, + 33124, + 332, + 318, + 1719, + 10174, + 9789, + 488, + 1436, + 303, + 279, + 5459, + 7099, + 553, + 4081, + 33124, + 1121, + 1040, + 10439, + 15110, + 1837, + 11, + 10377, + 279, + 1330, + 10029, + 314, + 279, + 13759, + 310, + 14549, + 9781, + 3162, + 1754, + 975, + 430, + 279, + 9041, + 47929, + 303, + 279, + 8364, + 321, + 16577, + 303, + 279, + 8981, + 13, + 271, + 11862, + 271, + 13962, + 220, + 17, + 13, + 8169, + 264, + 710, + 46038, + 326, + 793, + 12851, + 1049, + 2436, + 8405, + 271, + 332, + 760, + 68868, + 64700, + 198, + 760, + 328, + 82, + 23279, + 1, + 466, + 412, + 375, + 2631, + 4950, + 369, + 3404, + 264, + 1067, + 314, + 2972, + 85, + 17804, + 8613, + 539, + 19695, + 1602, + 29592, + 321, + 1179, + 5698, + 159034, + 271, + 4350, + 488, + 1118, + 8364, + 2919, + 11, + 279, + 5445, + 314, + 279, + 69862, + 5055, + 3882, + 1518, + 279, + 2919, + 506, + 279, + 1844, + 13, + 1061, + 11121, + 264, + 6000, + 314, + 3882, + 2919, + 506, + 279, + 5445, + 421 + ], + "text": "Explain, in plain language and with one concrete example each, why a bridge expands in summer, why a kettle sings before it boils, and why the far side of the moon is never seen from Earth.\n\nHere is an explanation of these three phenomena in plain language, along with a concrete example for each.\n\n### 1. Why a Bridge Expands in Summer\n\n**The Explanation:**\nEverything in the world is made of tiny particles (atoms and molecules) that are constantly moving. When the temperature rises, these particles gain energy and move faster, causing them to push slightly further apart from one another. This is called **thermal expansion**.\n\nWhile the expansion of a single atom is invisible, when you multiply that tiny movement by the billions of atoms in a massive structure like a steel bridge, the total change in length becomes significant. If a bridge were built as one solid, unbroken piece, the heat in summer would cause it to stretch. Without room to stretch, the internal pressure would build up, potentially causing the bridge to buckle, crack, or even collapse.\n\n**Concrete Example:**\nImagine a **1,000-foot-long steel bridge**. Steel expands at a rate of about 0.000006 inches per inch for every degree Fahrenheit increase in temperature.\n* If the temperature rises by **50\u00b0F** from winter to summer, that 1,000-foot bridge will expand by roughly **3.6 inches**.\n* To accommodate this, engineers install **expansion joints** (the grooves you see in the road surface). These joints act like shock absorbers, allowing the two ends of the bridge to slide slightly past each other as the metal stretches in the heat and contracts in the cold.\n\n***\n\n### 2. Why a Kettle Sings Before It Boils\n\n**The Explanation:**\nThe \"singing\" or whistling sound is actually a result of **vibration caused by steam being trapped and then released**.\n\nWhen you first heat water, the bottom of the kettle gets hot before the water at the top. This creates a layer of hot water at the bottom that\n" + }, + { + "index": 4, + "match": 178, + "ref_len": 400, + "byte_identical": false, + "prefill": "prefill: 47 tokens in 1 chunk(s) of <= 512 (83.434189ms, 563 tok/s, eager, emits next_token)", + "decode": "400 tokens generated, 9.5 ms/step (105.8 tok/s)", + "wall_s": 11.7, + "generated": [ + 9896, + 2250, + 75842, + 440, + 11140, + 421, + 998, + 40361, + 42749, + 13, + 3113, + 35442, + 1292, + 995, + 5158, + 264, + 11183, + 883, + 264, + 5054, + 852, + 1362, + 6512, + 279, + 9117, + 579, + 295, + 8792, + 1472, + 279, + 6220, + 18687, + 11, + 321, + 1292, + 4035, + 2574, + 424, + 310, + 1024, + 6764, + 11, + 852, + 1301, + 424, + 303, + 799, + 11362, + 321, + 1179, + 1018, + 11, + 328, + 2523, + 2908, + 1801, + 279, + 9117, + 4950, + 1040, + 264, + 27809, + 36252, + 1149, + 2838, + 3738, + 411, + 430, + 279, + 8166, + 27463, + 13, + 271, + 760, + 11183, + 557, + 2496, + 4501, + 13, + 1049, + 7338, + 303, + 264, + 25635, + 364, + 42744, + 1578, + 11, + 22175, + 279, + 3820, + 20513, + 314, + 2433, + 421, + 513, + 9939, + 694, + 524, + 3482, + 5354, + 13, + 3095, + 1292, + 5326, + 3106, + 424, + 310, + 264, + 20609, + 11, + 781, + 2512, + 424, + 328, + 1700, + 5143, + 1, + 321, + 328, + 64, + 2545, + 2166, + 1248, + 1149, + 2838, + 75931, + 5356, + 424, + 10598, + 13, + 561, + 4688, + 2243, + 557, + 2577, + 11, + 694, + 424, + 557, + 874, + 4860, + 279, + 11183, + 1292, + 4035, + 5158, + 506, + 35442, + 11, + 321, + 1292, + 8341, + 279, + 3889, + 303, + 264, + 3618, + 58205, + 9043, + 4045, + 31193, + 11, + 864, + 557, + 264, + 9940, + 11, + 1521, + 1292, + 18559, + 424, + 14537, + 11, + 303, + 1024, + 1901, + 11, + 1345, + 11107, + 279, + 41586, + 1752, + 11, + 1345, + 295, + 2379, + 50692, + 11, + 1345, + 13879, + 310, + 279, + 338, + 68042, + 17061, + 888, + 264, + 5418, + 295, + 9395, + 300, + 13, + 271, + 7691, + 4501, + 1024, + 1118, + 2236, + 506, + 25292, + 39663, + 13, + 1049, + 557, + 264, + 4281, + 314, + 2716, + 7112, + 883, + 279, + 1208, + 852, + 11815, + 303, + 279, + 13721, + 3559, + 279, + 324, + 55965, + 25, + 279, + 7397, + 4600, + 852, + 8341, + 264, + 44603, + 314, + 1396, + 13071, + 11, + 279, + 54897, + 852, + 5898, + 1024, + 3200, + 9677, + 579, + 14882, + 321, + 1429, + 279, + 3117, + 310, + 3569, + 264, + 25439, + 11, + 279, + 7914, + 852, + 14129, + 16002, + 18009, + 321, + 11252, + 1754, + 799, + 12613, + 264, + 2086, + 17415, + 13, + 561, + 2236, + 557, + 1575, + 3816, + 13, + 357, + 9451, + 5947, + 421, + 424, + 995, + 328, + 1719, + 28342, + 314, + 40554, + 12269, + 1, + 321, + 328, + 1719, + 10647, + 8897, + 314, + 264, + 11717, + 14293, + 383, + 264, + 9766, + 29199, + 1149, + 2838, + 44457, + 279, + 3286, + 321, + 17750, + 424, + 3294, + 1024, + 17471, + 11, + 1332, + 424, + 19013, + 364, + 4590, + 1578, + 2980, + 264, + 13071, + 39957, + 279, + 3136, + 1724, + 321, + 279, + 8720, + 53507, + 383, + 279, + 6220, + 13, + 2838, + 38891, + 685, + 279, + 9378, + 321, + 8341, + 279, + 3286, + 11, + 1381, + 440, + 264, + 25888, + 3438, + 6607, + 11, + 303, + 264, + 25635, + 440, + 279, + 3889, + 11183, + 13, + 271, + 760, + 2018, + 2236, + 3738, + 2943, + 1578, + 13, + 1049, + 557, + 264, + 11183, + 883, + 264, + 5054, + 852, + 26124, + 264, + 324, + 55965, + 321, + 10782, + 421, + 279, + 3000, + 995, + 978, + 6316, + 974, + 364, + 25292, + 1578, + 11 + ], + "text": "The lighthouse keeper's daughter learned to read from shipping manifests and weather logs, so her first stories were inventories: forty barrels of salt cod, a crate of oranges gone soft, one bishop travelling incognito. By twelve she had filled three notebooks with lists that were secretly poems. By fifteen she had written a novel about a woman who could hear the sea's moods through the floorboards, and she'd given it to her father, who read it in one sitting and then said, \"You've made the sea sound like a drunk uncle.\" She took this as the highest praise.\n\nThe novel was never published. It sat in a drawer for eleven years, gathering the particular silence of things that are loved but not yet ready. When she finally sent it to a publisher, they called it \"charming\" and \"a little too long.\" She rewrote it twice. The third version was better, but it was no longer the novel she'd written at fifteen, and she kept the original in a box labelled DO NOT EDIT, which was a lie, because she edited it constantly, in her head, while walking the cliff path, while mending nets, while listening to the gulls argue over a dead mackerel.\n\nShe published her first book at thirty-four. It was a collection of short stories about the people who lived in the village below the lighthouse: the fisherman who kept a diary of every storm, the widow who sold her late husband's boat and used the money to buy a piano, the boy who collected bottle caps and believed each one contained a different ocean. The book was well received. A critic wrote that it had \"the patience of tide tables\" and \"the sudden violence of a wave breaking on a flat shore.\" She framed the review and hung it above her desk, where it stayed for six years until a storm blew the window open and the glass shattered on the floor. She swept up the pieces and kept the review, now with a jagged edge, in a drawer with the original novel.\n\nThe second book took four years. It was a novel about a woman who inherited a lighthouse and discovered that the light had been turned off for thirty years,\n" + } + ] +} \ No newline at end of file diff --git a/docs/qwen38-compare-c10-spec-tray14.json b/docs/qwen38-compare-c10-spec-tray14.json new file mode 100644 index 0000000..9257c98 --- /dev/null +++ b/docs/qwen38-compare-c10-spec-tray14.json @@ -0,0 +1,2078 @@ +{ + "config": { + "gpu": 0, + "chunk": 512, + "eager": false, + "steps": 400, + "capacity": 4704, + "only": null, + "out": "/mnt/shared/home/susun/agent_code/kern-out/compare-c10-final-spec-tray14.json", + "ref": "/mnt/shared/home/susun/agent_code/kern/docs/qwen38-ref.json", + "manifest": "examples/qwen3.8-27b-dflash2.json", + "kernels": "kernels-qwen38-dflash2", + "draft": true, + "spec": true + }, + "results": [ + { + "index": 0, + "match": 66, + "ref_len": 400, + "byte_identical": false, + "prefill": "prefill: 43 tokens in 1 chunk(s) of <= 512 (86.192974ms, 499 tok/s, eager, emits next_token)", + "decode": "spec: 399 tokens in 168 rounds (2.38 tokens/round, 19.6% drafts accepted, per position [99, 62, 29, 17, 11, 7, 6]), 14.11 ms/round (168.3 tok/s)", + "wall_s": 13.1, + "generated": [ + 264, + 3074, + 4202, + 421, + 1467, + 524, + 2353, + 866, + 314, + 279, + 3672, + 25, + 264, + 25347, + 2512, + 279, + 348, + 32, + 322, + 6020, + 9, + 995, + 978, + 12076, + 430, + 1001, + 52513, + 506, + 9117, + 828, + 383, + 279, + 3603, + 314, + 279, + 3128, + 70595, + 11, + 3482, + 279, + 1788, + 3603, + 264, + 7397, + 4600, + 725, + 1433, + 7246, + 264, + 9613, + 11, + 14527, + 54087, + 71433, + 7397, + 501, + 13810, + 494, + 279, + 2919, + 321, + 264, + 14457, + 11, + 83345, + 3000, + 888, + 279, + 54517, + 13, + 561, + 7110, + 725, + 5572, + 17621, + 36412, + 26, + 279, + 1330, + 7189, + 1362, + 524, + 2107, + 381, + 804, + 11, + 321, + 279, + 48086, + 9290, + 1384, + 310, + 2466, + 264, + 3296, + 421, + 995, + 54779, + 66509, + 364, + 22892, + 25, + 2972, + 12195, + 11, + 413, + 3977, + 11, + 14995, + 23221, + 279, + 7099, + 314, + 279, + 1814, + 567, + 1683, + 567, + 1366, + 170286, + 271, + 4639, + 3296, + 369, + 279, + 4560, + 314, + 1396, + 21831, + 421, + 10695, + 13, + 1049, + 11690, + 440, + 264, + 4145, + 21254, + 27090, + 7397, + 421, + 2682, + 27155, + 1040, + 264, + 17312, + 11, + 264, + 3000, + 421, + 2696, + 82, + 1040, + 264, + 27786, + 68220, + 16312, + 424, + 50110, + 1083, + 264, + 8516, + 314, + 5721, + 11, + 1754, + 2569, + 264, + 2029, + 421, + 628, + 381, + 9770, + 11, + 264, + 3255, + 421, + 628, + 381, + 2044, + 787, + 11, + 264, + 2253, + 421, + 628, + 381, + 12152, + 13, + 3113, + 43900, + 421, + 8516, + 567, + 3166, + 494, + 279, + 13769, + 318, + 1719, + 45366, + 11, + 279, + 7397, + 4600, + 725, + 1433, + 8, + 310, + 279, + 7859, + 318, + 1719, + 6775, + 314, + 6337, + 4924, + 681, + 321, + 567, + 6779, + 1204, + 279, + 1788, + 1654, + 421, + 65199, + 264, + 54517, + 21831, + 1048, + 1172, + 72020, + 279, + 2172, + 11991, + 89282, + 314, + 279, + 1483, + 1330, + 22892, + 13, + 271, + 13962, + 220, + 16, + 13, + 5369, + 264, + 11000, + 1473, + 80222, + 310, + 264, + 3146, + 6519, + 271, + 760, + 54517, + 7110, + 725, + 52926, + 43866, + 264, + 19565, + 3377, + 25, + 2972, + 4993, + 635, + 567, + 9973, + 864, + 314, + 1330, + 49314, + 9331, + 369, + 804, + 170286, + 561, + 4087, + 369, + 524, + 264, + 3074, + 5728, + 694, + 264, + 1817, + 25, + 271, + 16, + 13, + 2972, + 27382, + 1386, + 279, + 60826, + 159029, + 357, + 1001, + 52513, + 828, + 8026, + 321, + 264, + 1001, + 27392, + 828, + 3000, + 4021, + 1027, + 27642, + 1973, + 15673, + 13, + 198, + 17, + 13, + 2972, + 38, + 1792, + 9209, + 5721, + 159029, + 561, + 45366, + 11, + 279, + 7397, + 4600, + 725, + 1433, + 11, + 40554, + 12269, + 11, + 321, + 279, + 2876, + 314, + 279, + 38866, + 660, + 3512, + 795, + 3387, + 13, + 198, + 18, + 13, + 2972, + 1774, + 264, + 29094, + 159029, + 18200, + 279, + 348, + 32, + 322, + 6020, + 9, + 557, + 524, + 5384, + 694, + 7920, + 303, + 264, + 29262, + 5883, + 11, + 321, + 279, + 1001, + 4009, + 828, + 557, + 264, + 5843, + 1096, + 1489, + 1129, + 49722, + 13, + 198, + 19, + 13, + 2972, + 2198, + 279, + 29094, + 159029, + 4109, + 3315, + 29262, + 557 + ], + "text": "The harbor master kept a ledger of every ship that wintered in the bay, noting cargo, crew, and the state of each hull in a cramped, looping hand. In the spring of the third year he found a single entry that did not match any of the others: a vessel called the *Aurora* had been recorded as \u201clost at sea\u201d on the night of the equinox, yet the same night a fisherman\u2019s log described a bright, silver\u2011scaled fish leaping from the water and a strange, humming light over the harbor. The master\u2019s pen trembled; the two records could not both be true, and the contradiction forced him to ask a question that had haunted sailors for centuries: **what, if anything, lies beneath the surface of the world we think we know?**\n\nThat question is the engine of every mystery that follows. It begins with a simple observation\u2014a fish that glitters like a mirror, a light that hums like a distant choir\u2014and it expands into a chain of evidence, each link a fact that can be checked, a story that can be retold, a law that can be tested. By tracing that chain we move from the concrete (the ledger, the fisherman\u2019s log) to the abstract (the nature of knowledge itself), and we discover how the same method that solves a harbor mystery also underpins the great scientific revolutions of the last two centuries.\n\n### 1. From a Single Anomaly to a General Method\n\nThe harbor master\u2019s dilemma illustrates a universal problem: **how do we decide which of two conflicting accounts is true?** The answer is not a single rule but a process:\n\n1. **Identify the anomaly.** A \u201clost\u201d ship and a \u201cseen\u201d light cannot coexist without explanation.\n2. **Gather independent evidence.** The ledger, the fisherman\u2019s log, tide tables, and the condition of the hull all become data points.\n3. **Form a hypothesis.** Perhaps the *Aurora* was not lost but hidden in a fog bank, and the \u201clight\u201d was a bioluminescent bloom.\n4. **Test the hypothesis.** Check whether fog was\n" + }, + { + "index": 1, + "match": 139, + "ref_len": 400, + "byte_identical": false, + "prefill": "prefill: 41 tokens in 1 chunk(s) of <= 512 (87.633552ms, 468 tok/s, eager, emits next_token)", + "decode": "spec: 399 tokens in 143 rounds (2.79 tokens/round, 25.6% drafts accepted, per position [101, 62, 41, 21, 15, 9, 7]), 14.11 ms/round (197.7 tok/s)", + "wall_s": 10.6, + "generated": [ + 264, + 36334, + 21388, + 314, + 5484, + 5415, + 321, + 264, + 716, + 314, + 34844, + 542, + 5564, + 58091, + 1172, + 279, + 7991, + 846, + 13, + 561, + 1118, + 3603, + 1172, + 279, + 491, + 12515, + 11, + 279, + 6561, + 2002, + 6749, + 92169, + 1056, + 5316, + 25624, + 11, + 3482, + 279, + 36334, + 467, + 78078, + 5432, + 68, + 1990, + 9047, + 310, + 288, + 92536, + 13, + 561, + 2015, + 14607, + 421, + 279, + 53952, + 725, + 27374, + 5257, + 557, + 874, + 4860, + 264, + 4145, + 1001, + 75, + 704, + 54087, + 429, + 54087, + 70735, + 828, + 3255, + 26, + 424, + 557, + 264, + 61010, + 23850, + 314, + 25586, + 11, + 1754, + 440, + 1141, + 1765, + 79299, + 11, + 25113, + 11, + 321, + 3558, + 13, + 271, + 1206, + 12689, + 3908, + 421, + 23850, + 11, + 567, + 1902, + 1118, + 2466, + 25, + 2972, + 4993, + 635, + 567, + 7276, + 264, + 1785, + 314, + 1599, + 18766, + 33765, + 25586, + 303, + 264, + 1560, + 421, + 14908, + 586, + 6805, + 1332, + 449, + 2099, + 668, + 1304, + 11, + 1204, + 3349, + 424, + 668, + 381, + 11, + 321, + 1204, + 279, + 3000, + 668, + 35600, + 170286, + 561, + 4087, + 14995, + 303, + 264, + 16338, + 716, + 314, + 36655, + 421, + 4089, + 279, + 4220, + 14193, + 430, + 264, + 3074, + 1001, + 24507, + 11432, + 828, + 17796, + 11, + 1345, + 1990, + 9976, + 3627, + 314, + 279, + 3714, + 5255, + 421, + 2873, + 279, + 1785, + 1141, + 3542, + 13, + 271, + 13962, + 220, + 16, + 13, + 5369, + 264, + 3074, + 7099, + 310, + 264, + 4220, + 1785, + 271, + 2381, + 264, + 3074, + 18766, + 33765, + 7099, + 279, + 1298, + 686, + 518, + 12323, + 369, + 271, + 75370, + 198, + 59, + 35790, + 88216, + 8017, + 90, + 82, + 8017, + 29533, + 35790, + 88216, + 14728, + 82, + 92, + 33289, + 35790, + 88216, + 23531, + 77, + 14728, + 81, + 2069, + 198, + 59, + 60, + 271, + 2777, + 17237, + 82, + 55821, + 321, + 17237, + 82, + 15313, + 8, + 513, + 279, + 1576, + 321, + 2099, + 25704, + 16384, + 494, + 279, + 7099, + 11, + 17237, + 77, + 55821, + 321, + 17237, + 77, + 15313, + 8, + 513, + 279, + 18766, + 2932, + 14505, + 383, + 2892, + 3008, + 11, + 321, + 17237, + 81, + 55821, + 369, + 279, + 7099, + 10264, + 13, + 18050, + 4350, + 3679, + 25586, + 513, + 8826, + 303, + 8240, + 11, + 279, + 1788, + 1304, + 79476, + 413, + 567, + 8032, + 279, + 3714, + 31591, + 539, + 2972, + 8678, + 54087, + 8877, + 332, + 5981, + 25, + 271, + 75370, + 198, + 59, + 35790, + 88216, + 8017, + 90, + 82, + 8017, + 29533, + 35790, + 88216, + 14728, + 82, + 92, + 33289, + 35790, + 88216, + 23531, + 77, + 14728, + 81, + 14717, + 59, + 1272, + 90, + 10684, + 3307, + 7563, + 198, + 59, + 60, + 271, + 8160, + 17237, + 81, + 14717, + 59, + 1272, + 90, + 10684, + 3307, + 55821, + 369, + 279, + 10264, + 314, + 79299, + 314, + 449, + 348, + 24507, + 11432, + 9, + 3074, + 7099, + 421, + 1000, + 7936, + 6681, + 279, + 1788, + 1298, + 686, + 518, + 30619, + 430, + 279, + 4220, + 5436, + 13, + 561, + 2279, + 314, + 279, + 1785, + 369, + 271, + 75370, + 198, + 59, + 43660, + 283, + 307, + 6, + 471, + 307, + 283, + 1088, + 35790, + 88216, + 23531 + ], + "text": "When the observatory finally reopened after the renovation, the docents discovered that the old refractor had been quietly recollimated by a retired machinist who lived nearby. He left no note, only a faint smell of machine oil and a set of brass shims tucked under the focuser. The first night under the new sky, the star field looked sharper than anyone remembered, yet the faintest nebulae still seemed to wobble. The team realized that the telescope\u2019s optical train was no longer a simple \u201clens\u2011and\u2011mirror\u201d story; it was a layered puzzle of surfaces, each with its own curvature, spacing, and material.\n\nTo untangle that puzzle, we must first ask: **how do we describe a system of many refracting surfaces in a way that lets us predict where an image will form, how large it will be, and how the light will bend?** The answer lies in a compact set of equations that treat the whole assembly as a single \u201cequivalent\u201d lens, while still keeping track of the individual elements that give the system its character.\n\n### 1. From a single surface to a whole system\n\nFor a single refracting surface the paraxial relation is\n\n\\[\n\\frac{n'}{s'}-\\frac{n}{s}=\\frac{n'-n}{r},\n\\]\n\nwhere \\(s\\) and \\(s'\\) are the object and image distances measured from the surface, \\(n\\) and \\(n'\\) are the refractive indices on either side, and \\(r\\) is the surface radius. \n\nWhen several surfaces are placed in sequence, the same form survives if we replace the individual quantities by **system\u2011wide** ones:\n\n\\[\n\\frac{n'}{s'}-\\frac{n}{s}=\\frac{n'-n}{r_{\\text{eq}}}.\n\\]\n\nHere \\(r_{\\text{eq}}\\) is the radius of curvature of an *equivalent* single surface that would produce exactly the same paraxial imaging as the whole stack. The power of the system is\n\n\\[\n\\Phi = n' - n = \\frac{n'-\n" + }, + { + "index": 2, + "match": 147, + "ref_len": 400, + "byte_identical": false, + "prefill": "prefill: 48 tokens in 1 chunk(s) of <= 512 (92.620306ms, 518 tok/s, eager, emits next_token)", + "decode": "spec: 399 tokens in 161 rounds (2.48 tokens/round, 21.1% drafts accepted, per position [115, 58, 33, 17, 6, 5, 4]), 14.25 ms/round (173.8 tok/s)", + "wall_s": 10.6, + "generated": [ + 7094, + 781, + 14428, + 279, + 53627, + 287, + 440, + 22945, + 9399, + 49954, + 11, + 8132, + 1396, + 2418, + 314, + 272, + 46016, + 11, + 1396, + 10582, + 314, + 274, + 6960, + 11, + 1396, + 22263, + 23178, + 17629, + 22149, + 13, + 733, + 279, + 4688, + 7094, + 781, + 5743, + 310, + 279, + 1788, + 22945, + 52604, + 321, + 1669, + 279, + 14367, + 995, + 7481, + 13, + 271, + 760, + 42159, + 557, + 2496, + 7807, + 13, + 561, + 14367, + 8341, + 7594, + 795, + 13, + 271, + 4277, + 271, + 760, + 1118, + 3065, + 488, + 5125, + 883, + 279, + 17198, + 20139, + 369, + 421, + 424, + 369, + 524, + 264, + 1925, + 13, + 1049, + 369, + 264, + 1817, + 11884, + 279, + 30385, + 314, + 264, + 1925, + 13, + 561, + 4128, + 488, + 2418, + 383, + 557, + 14367, + 2634, + 264, + 12828, + 3998, + 321, + 668, + 381, + 14367, + 2634, + 1495, + 303, + 264, + 12828, + 13, + 561, + 12052, + 513, + 524, + 39527, + 303, + 16665, + 748, + 1691, + 430, + 303, + 264, + 46446, + 440, + 2919, + 13, + 561, + 272, + 46016, + 29528, + 513, + 524, + 19101, + 13, + 2302, + 513, + 279, + 4757, + 579, + 1560, + 314, + 25108, + 948, + 279, + 4751, + 369, + 264, + 21128, + 13, + 271, + 760, + 2018, + 3065, + 488, + 5125, + 369, + 279, + 20513, + 13, + 2717, + 279, + 18682, + 314, + 4950, + 13, + 561, + 9084, + 314, + 264, + 2086, + 2993, + 314, + 4950, + 13, + 561, + 3594, + 369, + 11702, + 440, + 279, + 11639, + 314, + 2919, + 6992, + 1472, + 51930, + 11, + 314, + 39465, + 3133, + 279, + 7099, + 22770, + 11, + 314, + 19053, + 7842, + 303, + 32655, + 421, + 2714, + 5995, + 310, + 5640, + 1472, + 13988, + 3594, + 13, + 561, + 20513, + 369, + 279, + 4950, + 314, + 264, + 1785, + 303, + 53454, + 13, + 2441, + 279, + 4950, + 314, + 264, + 1785, + 52962, + 310, + 381, + 303, + 53454, + 13, + 271, + 760, + 4688, + 3065, + 488, + 5125, + 369, + 279, + 21388, + 13, + 326, + 13898, + 322, + 13, + 93048, + 3374, + 13, + 561, + 3820, + 61306, + 314, + 2919, + 421, + 682, + 978, + 1472, + 264, + 15706, + 1578, + 314, + 15463, + 37302, + 321, + 3578, + 495, + 643, + 344, + 13, + 561, + 21388, + 314, + 264, + 1925, + 421, + 682, + 978, + 20245, + 286, + 4924, + 364, + 264, + 1546, + 1248, + 854, + 13, + 271, + 4277, + 271, + 760, + 53627, + 287, + 998, + 5617, + 303, + 279, + 220, + 16, + 24, + 18, + 15, + 82, + 13, + 561, + 12638, + 29158, + 314, + 47070, + 3571, + 440, + 836, + 10258, + 286, + 6875, + 321, + 836, + 13769, + 321, + 836, + 42197, + 421, + 264, + 14367, + 1362, + 381, + 1801, + 310, + 34512, + 13, + 2302, + 5617, + 279, + 53627, + 287, + 310, + 5827, + 279, + 22787, + 4881, + 321, + 279, + 13176, + 41276, + 321, + 279, + 2526, + 24039, + 421, + 995, + 14276, + 685, + 3055, + 279, + 13558, + 13, + 2302, + 1467, + 524, + 1870, + 1070, + 310, + 5827, + 279, + 17198, + 20139, + 13, + 2302, + 5617, + 1070, + 310, + 1236, + 279, + 17198, + 20139, + 708, + 3023, + 13, + 271, + 760, + 53627, + 287, + 6237, + 13, + 1690, + 264, + 1345, + 13, + 561, + 14367, + 19013, + 303, + 1141, + 5323, + 13, + 561, + 22787, + 13538 + ], + "text": "The floodplain census took three summers to complete. In the first summer the crews mapped oxbow lakes and counted heron rookeries from canoes, losing two clipboards and one outboard motor to the river. In the second summer they walked the levees with transect tapes, logging every stand of cypress, every patch of sedge, every abandoned crawfish trap. In the third summer they returned to the same transects and found the river had moved.\n\nThe census was never finished. The river kept adding data.\n\n---\n\nThe first thing you notice about the floodplain is that it is not a place. It is a process wearing the costume of a place. The land you stand on was riverbed a decade ago and will be riverbed again in a decade. The trees are not rooted in soil so much as in a negotiation with water. The cypress knees are not roots. They are the tree's way of breathing when the ground is a lake.\n\nThe second thing you notice is the silence. Not the absence of sound. The presence of a different kind of sound. The air is thick with the noise of water moving through vegetation, of insects working the surface tension, of birds calling in frequencies that seem designed to travel through wet air. The silence is the sound of a system in equilibrium. Or the sound of a system pretending to be in equilibrium.\n\nThe third thing you notice is the smell. Sulfur. Decomposition. The particular sweetness of water that has been through a thousand years of leaf litter and root exudate. The smell of a place that has been digesting itself for a very long time.\n\n---\n\nThe levees were built in the 1930s. The Army Corps of Engineers came with their surveying equipment and their concrete and their certainty that a river could be made to behave. They built the levees to protect the cotton fields and the railroads and the small towns that had grown up along the banks. They did not build them to protect the floodplain. They built them to make the floodplain go away.\n\nThe levees worked. For a while. The river stayed in its channel. The cotton grew\n" + }, + { + "index": 3, + "match": 91, + "ref_len": 400, + "byte_identical": false, + "prefill": "prefill: 42 tokens in 1 chunk(s) of <= 512 (90.546385ms, 464 tok/s, eager, emits next_token)", + "decode": "spec: 399 tokens in 134 rounds (2.98 tokens/round, 28.4% drafts accepted, per position [102, 68, 43, 26, 14, 9, 4]), 14.15 ms/round (210.4 tok/s)", + "wall_s": 9.9, + "generated": [ + 271, + 8160, + 369, + 449, + 15673, + 314, + 1439, + 2250, + 41724, + 303, + 13983, + 3992, + 11, + 3055, + 440, + 264, + 13769, + 3010, + 364, + 1754, + 13, + 271, + 13962, + 220, + 16, + 13, + 8169, + 264, + 19269, + 7541, + 2751, + 303, + 18266, + 271, + 332, + 760, + 68868, + 64700, + 198, + 33807, + 303, + 279, + 1814, + 369, + 1801, + 314, + 13280, + 18167, + 318, + 63339, + 321, + 33470, + 8, + 421, + 513, + 14537, + 6992, + 13, + 3095, + 279, + 9039, + 35937, + 11, + 1439, + 18167, + 8457, + 4649, + 321, + 3166, + 10281, + 11, + 13969, + 1070, + 310, + 4336, + 9781, + 4473, + 10431, + 494, + 799, + 2361, + 13, + 1061, + 369, + 2512, + 2972, + 65819, + 14046, + 159034, + 271, + 7732, + 264, + 13759, + 2493, + 1353, + 1040, + 264, + 6235, + 11, + 632, + 49971, + 2424, + 314, + 9229, + 466, + 13769, + 11, + 424, + 369, + 3404, + 264, + 4281, + 314, + 30995, + 314, + 1439, + 18167, + 13, + 733, + 279, + 7094, + 8364, + 11, + 279, + 3558, + 86914, + 4649, + 11, + 279, + 18167, + 343, + 41670, + 777, + 67274, + 11, + 321, + 279, + 4307, + 5759, + 21219, + 5055, + 4860, + 13, + 1368, + 23438, + 3105, + 914, + 2605, + 364, + 411, + 11, + 279, + 13759, + 1362, + 77238, + 466, + 16966, + 1172, + 279, + 7035, + 314, + 1141, + 1765, + 14046, + 13, + 271, + 332, + 80711, + 12996, + 64700, + 198, + 49338, + 264, + 2972, + 4670, + 9041, + 46379, + 332, + 2047, + 383, + 264, + 3882, + 1740, + 26103, + 303, + 5589, + 13, + 1368, + 488, + 6420, + 424, + 440, + 264, + 1564, + 12489, + 11, + 424, + 668, + 381, + 264, + 13280, + 18830, + 314, + 264, + 2463, + 24529, + 4860, + 1056, + 424, + 557, + 303, + 5869, + 13, + 357, + 13759, + 369, + 1066, + 264, + 14120, + 2243, + 314, + 411, + 46379, + 26, + 1521, + 424, + 369, + 11168, + 314, + 19434, + 1248, + 11, + 421, + 13280, + 14046, + 11039, + 685, + 310, + 3679, + 14493, + 314, + 6977, + 11, + 864, + 369, + 3069, + 488, + 1436, + 31092, + 318, + 4431, + 10188, + 33124, + 8, + 1881, + 13753, + 314, + 279, + 13759, + 13, + 271, + 11862, + 271, + 13962, + 220, + 17, + 13, + 8169, + 264, + 710, + 46038, + 326, + 793, + 12851, + 1049, + 2436, + 8405, + 271, + 332, + 760, + 68868, + 64700, + 198, + 760, + 328, + 82, + 23279, + 1, + 466, + 412, + 375, + 2631, + 4950, + 369, + 3404, + 264, + 1067, + 314, + 2972, + 85, + 17804, + 8613, + 539, + 19695, + 1602, + 29592, + 321, + 1179, + 5698, + 159034, + 271, + 4350, + 488, + 1118, + 8364, + 2919, + 11, + 42237, + 1304, + 506, + 279, + 5445, + 314, + 279, + 69862, + 1332, + 424, + 369, + 36056, + 13, + 4081, + 42237, + 513, + 1801, + 314, + 19695, + 13, + 4213, + 11, + 279, + 2919, + 4918, + 685, + 303, + 279, + 69862, + 369, + 1990, + 6792, + 13, + 1577, + 279, + 19695, + 42237, + 9704, + 11, + 781, + 4062, + 279, + 34635, + 2919, + 321, + 21146, + 17638, + 318, + 1252, + 1081, + 1142, + 1083, + 14058, + 553, + 1061, + 10725, + 69089, + 11121, + 264, + 50240, + 11, + 54651, + 2631, + 11639, + 13, + 271, + 2053, + 279, + 2919, + 5055, + 11784, + 310, + 48161, + 11, + 279, + 4307, + 7867, + 314, + 2919, + 8772, + 3882, + 13, + 561 + ], + "text": "Explain, in plain language and with one concrete example each, why a bridge expands in summer, why a kettle sings before it boils, and why the far side of the moon is never seen from Earth.\n\nHere is an explanation of these three phenomena in plain language, along with a concrete example for each.\n\n### 1. Why a Bridge Expands in Summer\n\n**The Explanation:**\nEverything in the world is made of tiny particles (atoms and molecules) that are constantly moving. When the temperature rises, these particles gain energy and move faster, causing them to push slightly further apart from one another. This is called **thermal expansion**.\n\nWhile a bridge might look like a solid, unchanging block of steel or concrete, it is actually a collection of billions of these particles. In the summer heat, the material absorbs energy, the particles vibrate more intensely, and the entire structure physically gets longer. If engineers didn't account for this, the bridge could buckle or crack under the pressure of its own expansion.\n\n**Concrete Example:**\nImagine a **long metal ruler** left on a hot car dashboard in July. If you measure it with a caliper, it will be a tiny fraction of a millimeter longer than it was in January. A bridge is just a giant version of this ruler; because it is hundreds of meters long, that tiny expansion adds up to several inches of movement, which is why you see gaps (expansion joints) between sections of the bridge.\n\n***\n\n### 2. Why a Kettle Sings Before It Boils\n\n**The Explanation:**\nThe \"singing\" or whistling sound is actually a result of **vibration caused by steam being trapped and then released**.\n\nWhen you first heat water, bubbles form at the bottom of the kettle where it is hottest. These bubbles are made of steam. However, the water higher up in the kettle is still cool. As the steam bubbles rise, they hit the cooler water and instantly collapse (condense back into liquid). This rapid collapsing creates a chaotic, rattling noise.\n\nAs the water gets closer to boiling, the entire volume of water becomes hot. The\n" + }, + { + "index": 4, + "match": 91, + "ref_len": 400, + "byte_identical": false, + "prefill": "prefill: 47 tokens in 1 chunk(s) of <= 512 (88.850289ms, 529 tok/s, eager, emits next_token)", + "decode": "spec: 399 tokens in 180 rounds (2.22 tokens/round, 17.5% drafts accepted, per position [113, 62, 30, 11, 2, 2, 1]), 14.13 ms/round (156.9 tok/s)", + "wall_s": 10.4, + "generated": [ + 9896, + 2250, + 75842, + 440, + 11140, + 421, + 998, + 40361, + 42749, + 13, + 3113, + 35442, + 1292, + 995, + 5158, + 264, + 11183, + 883, + 264, + 5054, + 852, + 1362, + 6512, + 279, + 9117, + 579, + 295, + 8792, + 1472, + 279, + 6220, + 18687, + 11, + 321, + 1292, + 4035, + 2574, + 424, + 310, + 1024, + 6764, + 11, + 852, + 1301, + 424, + 303, + 799, + 11362, + 321, + 1179, + 1018, + 11, + 328, + 2523, + 2908, + 1801, + 279, + 9117, + 4950, + 1040, + 264, + 27809, + 36252, + 1149, + 2838, + 3738, + 411, + 430, + 279, + 8166, + 27463, + 13, + 271, + 760, + 11183, + 557, + 2496, + 4501, + 13, + 1049, + 7338, + 303, + 264, + 25635, + 364, + 42744, + 1578, + 11, + 22175, + 279, + 3820, + 15333, + 314, + 264, + 324, + 55965, + 2218, + 40825, + 321, + 27056, + 5415, + 321, + 279, + 36334, + 43651, + 12293, + 314, + 279, + 29262, + 49172, + 13, + 3095, + 1292, + 5326, + 3738, + 424, + 680, + 11, + 279, + 6602, + 995, + 83237, + 1083, + 21030, + 16382, + 11, + 321, + 1292, + 3272, + 25, + 411, + 369, + 1092, + 424, + 3254, + 310, + 381, + 32471, + 13, + 271, + 7691, + 557, + 16570, + 52616, + 948, + 1292, + 2047, + 279, + 12552, + 13, + 561, + 48331, + 557, + 264, + 10439, + 314, + 11639, + 321, + 12106, + 11, + 264, + 1925, + 1332, + 1208, + 14466, + 888, + 1754, + 975, + 321, + 279, + 3000, + 3571, + 494, + 8799, + 51432, + 4370, + 314, + 264, + 33433, + 1292, + 4035, + 47158, + 1396, + 3603, + 13, + 2838, + 47224, + 264, + 2956, + 3294, + 264, + 509, + 5085, + 579, + 7808, + 303, + 264, + 2548, + 6092, + 11, + 321, + 279, + 21388, + 314, + 32313, + 321, + 11835, + 500, + 724, + 290, + 1472, + 279, + 6220, + 18687, + 1040, + 264, + 4779, + 1292, + 7448, + 914, + 4847, + 1925, + 13, + 271, + 20079, + 1118, + 4501, + 3255, + 9434, + 303, + 264, + 30333, + 14005, + 440, + 264, + 33606, + 314, + 2943, + 7493, + 10672, + 13, + 1049, + 557, + 883, + 264, + 5054, + 852, + 8341, + 264, + 324, + 55965, + 421, + 5532, + 914, + 1017, + 11, + 852, + 47158, + 264, + 33433, + 421, + 25774, + 303, + 279, + 3594, + 11, + 852, + 11938, + 310, + 17199, + 421, + 2496, + 3571, + 13, + 561, + 6238, + 5947, + 310, + 1024, + 25, + 328, + 2523, + 599, + 264, + 7932, + 364, + 279, + 11656, + 1801, + 18541, + 13, + 1165, + 4035, + 1040, + 310, + 3305, + 777, + 1149, + 2838, + 1301, + 279, + 6321, + 2250, + 2942, + 11, + 1179, + 46120, + 424, + 310, + 279, + 6784, + 3294, + 1024, + 17471, + 11, + 1332, + 424, + 19013, + 364, + 279, + 2645, + 314, + 1024, + 2199, + 13, + 271, + 760, + 7112, + 3571, + 303, + 26104, + 11, + 1040, + 8831, + 5757, + 13, + 357, + 35528, + 314, + 2250, + 1578, + 11, + 1179, + 264, + 17198, + 314, + 1070, + 13, + 2838, + 5947, + 883, + 279, + 3096, + 852, + 295, + 2789, + 50692, + 303, + 279, + 72103, + 11, + 836, + 18645, + 748, + 1562, + 35283, + 781, + 1362, + 2579, + 279, + 58186, + 303, + 279, + 32313, + 494, + 264, + 5821, + 13, + 2838, + 5947, + 883, + 279, + 2235, + 855, + 852, + 5898, + 1675, + 24231, + 314, + 279, + 324, + 55965, + 11, + 1754, + 799, + 9781, + 2086, + 11, + 430, + 413 + ], + "text": "The lighthouse keeper's daughter learned to read from shipping manifests and weather logs, so her first stories were inventories: forty barrels of salt cod, a crate of oranges gone soft, one bishop travelling incognito. By twelve she had filled three notebooks with lists that were secretly poems. By fifteen she had written a novel about a woman who could hear the sea's moods through the floorboards, and she'd given it to her father, who read it in one sitting and then said, \"You've made the sea sound like a drunk uncle.\" She took this as the highest praise.\n\nThe novel was never published. It sat in a drawer for eleven years, gathering the particular dust of a lighthouse\u2014salt and lamp oil and the faint metallic taste of the foghorn. When she finally took it out, the pages had warped into gentle waves, and she thought: this is what it means to be preserved.\n\nShe was twenty-six when she left the island. The mainland was a shock of noise and colour, a place where people talked over each other and the light came from electric bulbs instead of a flame she'd tended every night. She rented a room above a chandler's shop in a port town, and the smell of rope and tar seeped through the floorboards like a memory she couldn't quite place.\n\nHer first published story appeared in a literary magazine with a circulation of four hundred copies. It was about a woman who kept a lighthouse that wasn't there, who tended a flame that burned in the air, who spoke to ships that never came. The editor wrote to her: \"You have a gift for the impossible made ordinary. We'd like to publish more.\" She read the letter three times, then pinned it to the wall above her desk, where it stayed for the rest of her life.\n\nThe stories came in clusters, like weather systems. A drought of three years, then a flood of them. She wrote about the women who mended nets in the harbour, their fingers so calloused they could feel the knots in the rope from a distance. She wrote about the old man who sold postcards of the lighthouse, each one slightly different, as if\n" + } + ] +} \ No newline at end of file diff --git a/docs/qwen38-vllm-perf-plain-pinned-tray14.json b/docs/qwen38-vllm-perf-plain-pinned-tray14.json new file mode 100644 index 0000000..13d3daf --- /dev/null +++ b/docs/qwen38-vllm-perf-plain-pinned-tray14.json @@ -0,0 +1,2048 @@ +{ + "mode": "plain", + "pinned": true, + "results": [ + { + "prompt_tokens": 43, + "out_tokens": 400, + "seconds": 4.177, + "tok_s": 95.8, + "output_token_ids": [ + 264, + 3074, + 4202, + 421, + 995, + 978, + 26164, + 680, + 321, + 56546, + 25, + 1001, + 53, + 34373, + 348, + 32, + 322, + 6020, + 9, + 1317, + 220, + 16, + 17, + 15, + 19008, + 1317, + 220, + 16, + 19, + 13234, + 1317, + 38866, + 4950, + 1920, + 561, + 3889, + 1500, + 11, + 18869, + 2392, + 1196, + 23221, + 279, + 25570, + 11, + 1301, + 1001, + 53, + 34373, + 348, + 32, + 322, + 6020, + 9, + 1317, + 220, + 16, + 17, + 15, + 19008, + 1317, + 220, + 16, + 19, + 13234, + 1317, + 38866, + 41423, + 1920, + 561, + 7110, + 725, + 44579, + 995, + 41065, + 11, + 321, + 279, + 25423, + 557, + 1801, + 303, + 264, + 2086, + 26609, + 314, + 25570, + 11, + 264, + 36334, + 6105, + 421, + 1467, + 524, + 2353, + 279, + 14170, + 3565, + 13, + 271, + 4350, + 279, + 45366, + 557, + 2843, + 23354, + 539, + 264, + 55394, + 41549, + 11, + 279, + 75332, + 5924, + 279, + 73013, + 314, + 264, + 7875, + 5515, + 13, + 561, + 41549, + 17736, + 421, + 279, + 348, + 32, + 322, + 6020, + 9, + 995, + 978, + 49992, + 1518, + 279, + 43062, + 11, + 264, + 3591, + 421, + 1000, + 42359, + 279, + 24024, + 314, + 279, + 6355, + 5832, + 13, + 561, + 29236, + 17605, + 11, + 4611, + 11, + 13874, + 310, + 279, + 6105, + 25570, + 430, + 5721, + 421, + 279, + 4202, + 995, + 978, + 27811, + 1238, + 279, + 2029, + 11, + 21861, + 279, + 12368, + 2496, + 9721, + 13, + 561, + 10682, + 304, + 54664, + 524, + 383, + 279, + 8026, + 725, + 23611, + 694, + 383, + 279, + 13280, + 11, + 38226, + 2029, + 314, + 279, + 25570, + 725, + 1829, + 13, + 271, + 1919, + 8961, + 43866, + 264, + 25971, + 16988, + 25, + 264, + 3074, + 11, + 13769, + 7472, + 628, + 64336, + 449, + 4307, + 18641, + 13, + 733, + 279, + 1788, + 1560, + 11, + 264, + 20336, + 1068, + 2957, + 13293, + 421, + 264, + 8240, + 314, + 4947, + 2218, + 16, + 11, + 220, + 16, + 11, + 220, + 17, + 11, + 220, + 18, + 11, + 220, + 20, + 11, + 220, + 23, + 2218, + 265, + 40568, + 303, + 264, + 5215, + 421, + 9047, + 310, + 7276, + 279, + 6310, + 314, + 264, + 37442, + 6823, + 13, + 3113, + 32127, + 5330, + 279, + 7859, + 72632, + 12323, + 310, + 279, + 47643, + 2099, + 314, + 37910, + 66803, + 11, + 279, + 14377, + 5924, + 264, + 3255, + 421, + 5316, + 1362, + 1732, + 13, + 561, + 4947, + 998, + 874, + 4860, + 17210, + 26, + 781, + 998, + 279, + 23469, + 11, + 279, + 61368, + 11, + 279, + 491, + 30459, + 24572, + 1754, + 2182, + 13, + 271, + 35944, + 2361, + 1105, + 494, + 279, + 1814, + 314, + 14246, + 13, + 357, + 8369, + 725, + 4131, + 54087, + 2772, + 1433, + 12076, + 264, + 6937, + 314, + 9229, + 47205, + 440, + 264, + 21330, + 448, + 7913, + 314, + 220, + 20, + 23, + 15, + 373, + 107, + 5602, + 64, + 13, + 357, + 1936, + 2843, + 11, + 264, + 30687, + 1433, + 9711, + 279, + 1788, + 6937, + 506, + 220, + 21, + 17, + 15, + 373, + 107, + 5602, + 64, + 11, + 279, + 2222, + 1801, + 303, + 264, + 2086, + 5572, + 13, + 561, + 5819, + 6436, + 11, + 65937, + 279, + 3889, + 4202, + 11, + 995, + 2582, + 26380, + 279, + 47205, + 310, + 264 + ] + }, + { + "prompt_tokens": 41, + "out_tokens": 400, + "seconds": 4.171, + "tok_s": 95.9, + "output_token_ids": [ + 264, + 36334, + 21388, + 314, + 5484, + 5415, + 321, + 264, + 716, + 314, + 34844, + 542, + 5564, + 58091, + 1172, + 279, + 7991, + 846, + 13, + 561, + 1118, + 3603, + 1172, + 279, + 491, + 12515, + 11, + 279, + 6561, + 2002, + 6749, + 92169, + 1056, + 5316, + 25624, + 11, + 3482, + 279, + 36334, + 467, + 78078, + 5432, + 68, + 1990, + 9047, + 310, + 288, + 92536, + 13, + 561, + 2015, + 14607, + 421, + 279, + 53952, + 725, + 27374, + 5257, + 557, + 874, + 4860, + 264, + 4145, + 1001, + 75, + 704, + 54087, + 429, + 54087, + 70735, + 828, + 3255, + 26, + 424, + 557, + 264, + 61010, + 23850, + 314, + 25586, + 11, + 1754, + 440, + 1141, + 1765, + 79299, + 11, + 25113, + 11, + 321, + 3558, + 13, + 271, + 4639, + 3603, + 5924, + 264, + 1105, + 3788, + 303, + 1204, + 264, + 7072, + 54087, + 5911, + 53952, + 628, + 381, + 7246, + 11, + 16384, + 11, + 321, + 13260, + 34773, + 13, + 20543, + 369, + 279, + 2923, + 54087, + 1634, + 54087, + 9239, + 41223, + 314, + 279, + 3377, + 11, + 279, + 795, + 279, + 13234, + 19577, + 11, + 321, + 279, + 4602, + 781, + 4221, + 310, + 4087, + 13, + 271, + 4277, + 271, + 13962, + 220, + 16, + 13, + 561, + 27374, + 6576, + 271, + 760, + 13736, + 369, + 264, + 2972, + 32897, + 54087, + 38429, + 18766, + 5444, + 332, + 318, + 19186, + 33800, + 11, + 1754, + 440, + 264, + 3929, + 321, + 264, + 1142, + 7099, + 8, + 7854, + 539, + 264, + 2972, + 18452, + 17312, + 332, + 421, + 58469, + 279, + 22690, + 1142, + 1472, + 279, + 1788, + 33800, + 13, + 561, + 9468, + 4868, + 513, + 25, + 271, + 91, + 26099, + 735, + 39115, + 314, + 79299, + 318, + 3693, + 8, + 735, + 9926, + 318, + 77, + 8, + 735, + 198, + 91, + 22031, + 91, + 746, + 14894, + 91, + 40698, + 91, + 198, + 91, + 220, + 16, + 318, + 6735, + 314, + 1118, + 17796, + 8, + 735, + 478, + 16, + 20, + 15, + 735, + 220, + 16, + 13, + 20, + 16, + 21, + 23, + 735, + 198, + 91, + 220, + 17, + 318, + 1371, + 314, + 1118, + 17796, + 8, + 220, + 735, + 1317, + 16, + 17, + 15, + 735, + 220, + 16, + 13, + 20, + 16, + 21, + 23, + 735, + 198, + 91, + 220, + 18, + 318, + 6735, + 314, + 2018, + 17796, + 8, + 735, + 478, + 17, + 15, + 15, + 735, + 220, + 16, + 13, + 21, + 17, + 15, + 15, + 735, + 198, + 91, + 220, + 19, + 318, + 1371, + 314, + 2018, + 17796, + 8, + 220, + 735, + 1317, + 16, + 23, + 15, + 735, + 220, + 16, + 13, + 21, + 17, + 15, + 15, + 735, + 198, + 91, + 220, + 20, + 318, + 18452, + 17312, + 8, + 260, + 735, + 11654, + 252, + 318, + 25393, + 8, + 735, + 1317, + 735, + 271, + 760, + 2972, + 686, + 518, + 4681, + 778, + 332, + 318, + 2959, + 54087, + 951, + 54087, + 2959, + 25704, + 8, + 513, + 25, + 271, + 12, + 26260, + 25586, + 220, + 16, + 321, + 220, + 17, + 25, + 2972, + 16, + 15, + 9186, + 332, + 198, + 12, + 26260, + 25586, + 220, + 17, + 321, + 220, + 18, + 25, + 2972, + 17, + 20, + 9186, + 332, + 198, + 12, + 26260, + 25586, + 220, + 18, + 321, + 220, + 19, + 25, + 2972 + ] + }, + { + "prompt_tokens": 48, + "out_tokens": 400, + "seconds": 4.174, + "tok_s": 95.8, + "output_token_ids": [ + 7094, + 781, + 14428, + 279, + 53627, + 287, + 440, + 22945, + 9399, + 49954, + 11, + 8132, + 1396, + 2418, + 314, + 272, + 46016, + 11, + 1396, + 10582, + 314, + 274, + 6960, + 11, + 1396, + 22263, + 23178, + 17629, + 22149, + 13, + 733, + 279, + 4688, + 7094, + 781, + 5743, + 310, + 279, + 1788, + 22945, + 52604, + 321, + 1669, + 279, + 14367, + 995, + 7481, + 13, + 271, + 760, + 42159, + 557, + 2496, + 7807, + 13, + 561, + 14367, + 8341, + 7594, + 795, + 13, + 271, + 4277, + 271, + 760, + 1118, + 3065, + 488, + 5125, + 883, + 279, + 17198, + 20139, + 369, + 421, + 424, + 369, + 524, + 264, + 1925, + 13, + 1049, + 369, + 264, + 1817, + 11884, + 279, + 30385, + 314, + 264, + 1925, + 13, + 561, + 4128, + 488, + 2418, + 383, + 557, + 264, + 14367, + 16534, + 34227, + 1578, + 3998, + 11, + 264, + 21128, + 2634, + 1330, + 7493, + 1578, + 3998, + 11, + 264, + 13245, + 6220, + 264, + 15706, + 1578, + 3998, + 13, + 561, + 16665, + 369, + 264, + 10537, + 38121, + 267, + 314, + 71384, + 321, + 58371, + 11, + 321, + 279, + 12052, + 513, + 1066, + 279, + 5362, + 38592, + 303, + 264, + 1248, + 24270, + 13, + 271, + 760, + 2018, + 3065, + 488, + 5125, + 369, + 279, + 2919, + 13, + 2717, + 279, + 14367, + 4924, + 11, + 864, + 369, + 264, + 43089, + 314, + 13477, + 15285, + 13964, + 1472, + 279, + 17865, + 11, + 694, + 279, + 2919, + 421, + 369, + 16360, + 745, + 13, + 733, + 279, + 16665, + 13, + 733, + 279, + 19101, + 13, + 733, + 279, + 3594, + 11, + 864, + 33999, + 314, + 259, + 985, + 258, + 321, + 5571, + 13, + 733, + 279, + 20513, + 11, + 864, + 369, + 524, + 20513, + 694, + 279, + 3238, + 2696, + 314, + 264, + 3410, + 2526, + 28051, + 1881, + 2919, + 321, + 4128, + 13, + 271, + 760, + 4688, + 3065, + 488, + 5125, + 369, + 279, + 1208, + 13, + 2302, + 513, + 524, + 1532, + 13, + 2302, + 513, + 16360, + 13, + 733, + 279, + 53627, + 287, + 11, + 864, + 513, + 836, + 5515, + 440, + 279, + 14367, + 13, + 733, + 279, + 22002, + 757, + 11, + 864, + 513, + 836, + 28425, + 13, + 733, + 279, + 22263, + 4837, + 69880, + 82, + 11, + 864, + 513, + 836, + 30717, + 13, + 733, + 279, + 23178, + 17629, + 43082, + 11, + 864, + 513, + 836, + 39604, + 13, + 271, + 4277, + 271, + 760, + 53627, + 68, + 369, + 279, + 1379, + 2894, + 5759, + 303, + 279, + 17198, + 20139, + 11, + 321, + 424, + 369, + 524, + 264, + 5759, + 506, + 660, + 13, + 1049, + 369, + 264, + 10896, + 13, + 357, + 10896, + 1801, + 539, + 279, + 29158, + 314, + 47070, + 303, + 220, + 16, + 24, + 17, + 23, + 11, + 1238, + 279, + 8252, + 54242, + 11, + 421, + 279, + 14367, + 1000, + 381, + 8341, + 303, + 1141, + 5323, + 13, + 561, + 10896, + 557, + 5158, + 303, + 13769, + 321, + 9114, + 11, + 321, + 424, + 682, + 978, + 8341, + 11, + 9712, + 11, + 364, + 75211, + 75351, + 1578, + 13, + 271, + 760, + 53627, + 68, + 369, + 1048, + 264, + 9940, + 13, + 8938, + 279, + 14367, + 369, + 524, + 264, + 3065, + 421, + 628, + 381, + 8341, + 13, + 1049, + 369, + 264, + 5176, + 11, + 264, + 13727, + 11 + ] + }, + { + "prompt_tokens": 42, + "out_tokens": 400, + "seconds": 4.171, + "tok_s": 95.9, + "output_token_ids": [ + 271, + 8160, + 369, + 449, + 15673, + 314, + 1439, + 2250, + 41724, + 303, + 13983, + 3992, + 11, + 3055, + 440, + 264, + 13769, + 3010, + 364, + 1754, + 13, + 271, + 13962, + 220, + 16, + 13, + 8169, + 264, + 19269, + 7541, + 2751, + 303, + 18266, + 271, + 332, + 760, + 68868, + 64700, + 198, + 33807, + 303, + 279, + 1814, + 369, + 1801, + 314, + 13280, + 18167, + 318, + 63339, + 321, + 33470, + 8, + 421, + 513, + 14537, + 6992, + 13, + 3095, + 279, + 9039, + 35937, + 11, + 1439, + 18167, + 8457, + 4649, + 321, + 3166, + 10281, + 11, + 13969, + 1070, + 310, + 4336, + 9781, + 4473, + 10431, + 494, + 799, + 2361, + 13, + 5788, + 411, + 2222, + 369, + 85928, + 303, + 264, + 3074, + 18546, + 11, + 948, + 488, + 29283, + 424, + 539, + 279, + 30995, + 314, + 31137, + 303, + 264, + 10632, + 5759, + 1040, + 264, + 9229, + 13759, + 11, + 279, + 2702, + 14046, + 8772, + 4927, + 13, + 1368, + 264, + 13759, + 998, + 5617, + 430, + 799, + 6235, + 11, + 632, + 47272, + 6365, + 11, + 411, + 14046, + 303, + 279, + 8364, + 1000, + 5073, + 279, + 9041, + 310, + 77238, + 466, + 16966, + 1521, + 424, + 682, + 26241, + 310, + 708, + 13, + 271, + 332, + 80711, + 12996, + 64700, + 198, + 37405, + 314, + 264, + 2972, + 52195, + 46379, + 2047, + 303, + 264, + 3882, + 1740, + 159034, + 1368, + 488, + 6420, + 279, + 46379, + 440, + 264, + 1564, + 12489, + 303, + 279, + 12050, + 321, + 1179, + 1495, + 1238, + 424, + 682, + 978, + 11362, + 303, + 279, + 6797, + 364, + 449, + 6258, + 11, + 279, + 46379, + 668, + 381, + 21219, + 4860, + 303, + 279, + 7094, + 13, + 357, + 13759, + 22839, + 9331, + 364, + 411, + 539, + 25780, + 328, + 4431, + 10188, + 33124, + 62804, + 70, + 2538, + 9896, + 440, + 21970, + 466, + 9041, + 23702, + 2218, + 40486, + 13753, + 314, + 279, + 13759, + 13, + 733, + 7094, + 11, + 279, + 13759, + 50110, + 1083, + 1439, + 31092, + 11, + 10377, + 279, + 5759, + 310, + 14084, + 1973, + 14293, + 13, + 271, + 13962, + 220, + 17, + 13, + 8169, + 264, + 710, + 46038, + 326, + 793, + 12851, + 1049, + 2436, + 8405, + 271, + 332, + 760, + 68868, + 64700, + 198, + 760, + 328, + 82, + 23279, + 1, + 466, + 412, + 375, + 2631, + 4950, + 369, + 3404, + 264, + 1067, + 314, + 2972, + 408, + 263, + 663, + 332, + 321, + 2972, + 85, + 17804, + 332, + 8613, + 539, + 19695, + 13, + 1577, + 2919, + 73944, + 685, + 11, + 424, + 3070, + 914, + 42244, + 21146, + 16360, + 506, + 2957, + 13, + 21153, + 42237, + 1304, + 506, + 279, + 5445, + 314, + 279, + 69862, + 1332, + 424, + 369, + 36056, + 13, + 1577, + 1439, + 42237, + 9704, + 1472, + 279, + 34635, + 2919, + 3294, + 1070, + 11, + 781, + 3428, + 17638, + 318, + 53710, + 8, + 1518, + 18176, + 279, + 7099, + 13, + 1061, + 10725, + 17638, + 11121, + 13280, + 10439, + 55348, + 321, + 74610, + 13, + 271, + 623, + 264, + 412, + 375, + 2631, + 69862, + 11, + 279, + 2790, + 11407, + 411, + 19695, + 1472, + 264, + 2526, + 11, + 3050, + 8306, + 318, + 1719, + 38240, + 553, + 561, + 19695, + 8177, + 3594, + 310, + 343, + 41670, + 506, + 264, + 3050, + 11304, + 11, + 1691, + 1040, + 39005, + 3808, + 279 + ] + }, + { + "prompt_tokens": 47, + "out_tokens": 400, + "seconds": 4.163, + "tok_s": 96.1, + "output_token_ids": [ + 9896, + 2250, + 75842, + 440, + 11140, + 421, + 998, + 40361, + 42749, + 13, + 3113, + 35442, + 1292, + 995, + 5158, + 264, + 11183, + 883, + 264, + 5054, + 852, + 1362, + 6512, + 279, + 9117, + 579, + 295, + 8792, + 1472, + 279, + 6220, + 18687, + 11, + 321, + 1292, + 4035, + 2574, + 424, + 310, + 1024, + 6764, + 11, + 852, + 1301, + 424, + 303, + 799, + 11362, + 321, + 1179, + 1018, + 11, + 328, + 2523, + 2908, + 1801, + 279, + 9117, + 4950, + 1040, + 264, + 27809, + 36252, + 1149, + 2838, + 3738, + 411, + 430, + 279, + 8166, + 27463, + 13, + 271, + 760, + 11183, + 557, + 2496, + 4501, + 13, + 1049, + 7338, + 303, + 264, + 25635, + 364, + 42744, + 1578, + 11, + 22175, + 279, + 3820, + 20513, + 314, + 2433, + 421, + 513, + 9939, + 694, + 524, + 3482, + 5354, + 13, + 3095, + 1292, + 5326, + 3106, + 424, + 310, + 264, + 20609, + 11, + 781, + 5743, + 424, + 440, + 264, + 5020, + 421, + 557, + 4409, + 2993, + 25, + 328, + 32, + 6037, + 2351, + 364, + 16078, + 13, + 1165, + 2224, + 524, + 2617, + 1092, + 279, + 3255, + 369, + 1149, + 2838, + 15513, + 13, + 561, + 9117, + 579, + 295, + 8792, + 998, + 279, + 3255, + 13, + 1921, + 279, + 9117, + 579, + 295, + 8792, + 11, + 424, + 6316, + 680, + 11, + 998, + 524, + 264, + 3255, + 303, + 279, + 1560, + 421, + 34440, + 15513, + 7112, + 13, + 271, + 7691, + 557, + 16570, + 52616, + 948, + 1292, + 6426, + 310, + 3165, + 264, + 2086, + 2993, + 314, + 2236, + 13, + 2717, + 264, + 11183, + 13, + 2717, + 264, + 1103, + 13, + 23879, + 303, + 1881, + 13, + 2838, + 2512, + 424, + 264, + 328, + 23674, + 278, + 3150, + 62804, + 64, + 2236, + 421, + 1000, + 1732, + 279, + 35091, + 314, + 279, + 259, + 3232, + 888, + 264, + 3074, + 1007, + 11, + 1754, + 12096, + 11811, + 310, + 264, + 3050, + 82507, + 5215, + 11, + 1754, + 799, + 8222, + 264, + 2086, + 1304, + 25, + 264, + 6321, + 11, + 264, + 10793, + 11, + 264, + 378, + 355, + 15202, + 11, + 264, + 716, + 314, + 10895, + 364, + 295, + 2379, + 264, + 4041, + 11, + 264, + 10125, + 888, + 52673, + 303, + 264, + 72103, + 50203, + 13, + 561, + 7346, + 1000, + 381, + 8173, + 539, + 264, + 3074, + 4368, + 25, + 279, + 6103, + 11, + 8455, + 944, + 314, + 264, + 5054, + 6618, + 310, + 41957, + 1024, + 6764, + 364, + 9101, + 13, + 271, + 760, + 2236, + 3738, + 2943, + 1578, + 310, + 3165, + 13, + 2838, + 11815, + 303, + 264, + 2526, + 3626, + 383, + 279, + 13255, + 11, + 321, + 1292, + 8341, + 264, + 1433, + 314, + 279, + 259, + 3232, + 11, + 279, + 8831, + 11, + 279, + 1528, + 314, + 279, + 9117, + 11, + 279, + 1528, + 314, + 1024, + 1765, + 4593, + 13, + 2838, + 5947, + 303, + 279, + 55287, + 11, + 948, + 279, + 3000, + 557, + 4101, + 321, + 279, + 9117, + 557, + 1990, + 28177, + 1092, + 424, + 4674, + 310, + 381, + 13, + 2838, + 1301, + 303, + 279, + 1238, + 2083, + 2305, + 2218, + 787, + 48345, + 53340, + 11, + 11592, + 494, + 279, + 15917, + 4843, + 11, + 264, + 2236, + 314, + 95716, + 28741, + 299, + 421, + 1292, + 1301, + 364, + 279, + 1560, + 781, + 17083, + 36049, + 11 + ] + } + ], + "metrics": {}, + "mean_tok_s": 95.9 +} \ No newline at end of file diff --git a/docs/qwen38-vllm-perf-plain-tray14.json b/docs/qwen38-vllm-perf-plain-tray14.json new file mode 100644 index 0000000..d44eec1 --- /dev/null +++ b/docs/qwen38-vllm-perf-plain-tray14.json @@ -0,0 +1,2048 @@ +{ + "mode": "plain", + "pinned": false, + "results": [ + { + "prompt_tokens": 43, + "out_tokens": 400, + "seconds": 4.218, + "tok_s": 94.8, + "output_token_ids": [ + 264, + 3074, + 4202, + 421, + 1467, + 524, + 2353, + 866, + 314, + 279, + 3672, + 25, + 264, + 25347, + 2512, + 279, + 348, + 32, + 322, + 6020, + 9, + 995, + 978, + 12076, + 430, + 1001, + 52513, + 506, + 9117, + 828, + 383, + 279, + 3603, + 314, + 279, + 3128, + 70595, + 11, + 3482, + 279, + 1788, + 3603, + 264, + 7397, + 4600, + 725, + 1433, + 7246, + 264, + 9613, + 11, + 14527, + 54087, + 71433, + 7397, + 501, + 13810, + 494, + 279, + 2919, + 321, + 264, + 14457, + 11, + 83345, + 3000, + 3294, + 279, + 18137, + 13, + 561, + 7110, + 725, + 5572, + 87338, + 888, + 279, + 2081, + 11, + 279, + 25570, + 1990, + 13988, + 11, + 430, + 413, + 279, + 1330, + 7189, + 998, + 4313, + 310, + 6266, + 310, + 1754, + 975, + 13, + 271, + 4639, + 3603, + 11, + 279, + 7110, + 1362, + 524, + 5894, + 13, + 1216, + 33461, + 279, + 348, + 32, + 322, + 6020, + 9, + 430, + 264, + 3255, + 421, + 995, + 41065, + 680, + 314, + 1141, + 1765, + 18641, + 11, + 264, + 22557, + 421, + 995, + 978, + 3125, + 303, + 799, + 3992, + 321, + 1179, + 2044, + 787, + 303, + 2361, + 11, + 1754, + 2243, + 45328, + 279, + 5893, + 314, + 279, + 3889, + 1345, + 9722, + 279, + 4105, + 13, + 561, + 7397, + 4600, + 725, + 2605, + 557, + 279, + 1001, + 2955, + 828, + 314, + 279, + 8026, + 725, + 23611, + 25, + 279, + 4557, + 314, + 279, + 25347, + 5924, + 279, + 4557, + 314, + 264, + 7397, + 11, + 279, + 25457, + 314, + 279, + 9117, + 5924, + 279, + 25457, + 314, + 279, + 3603, + 12515, + 11, + 321, + 279, + 13234, + 725, + 20513, + 5924, + 279, + 20513, + 314, + 279, + 2919, + 13, + 14205, + 279, + 1330, + 9331, + 998, + 524, + 18922, + 26, + 279, + 7397, + 4600, + 3568, + 264, + 7472, + 27090, + 83345, + 3000, + 38697, + 279, + 54517, + 7110, + 725, + 45366, + 2496, + 9444, + 13, + 561, + 7110, + 14607, + 421, + 264, + 14053, + 628, + 2496, + 381, + 264, + 4574, + 2880, + 26, + 424, + 369, + 2590, + 264, + 491, + 3255, + 421, + 22651, + 279, + 4779, + 314, + 279, + 1118, + 13, + 271, + 1465, + 3272, + 314, + 279, + 1560, + 264, + 20336, + 1068, + 13514, + 264, + 10741, + 13, + 561, + 10741, + 369, + 264, + 8240, + 314, + 17210, + 11, + 1754, + 2923, + 264, + 13280, + 3255, + 883, + 4947, + 13, + 3095, + 279, + 10741, + 369, + 1301, + 68030, + 11, + 279, + 17210, + 3512, + 10054, + 11, + 321, + 279, + 10054, + 3512, + 5167, + 303, + 279, + 11117, + 725, + 3838, + 13, + 561, + 3889, + 10741, + 11, + 279, + 20699, + 2243, + 11, + 321, + 279, + 10189, + 6588, + 513, + 2250, + 2086, + 1001, + 41409, + 828, + 21988, + 279, + 1788, + 7793, + 13, + 1368, + 799, + 314, + 1070, + 369, + 27811, + 27090, + 1777, + 44543, + 11, + 264, + 3299, + 5605, + 68723, + 18863, + 11, + 264, + 6588, + 33461, + 41915, + 21010, + 7793, + 628, + 381, + 5384, + 11, + 1442, + 3384, + 279, + 975, + 1330, + 6922, + 33295, + 13, + 561, + 7110, + 5312, + 421, + 279, + 348, + 32, + 322, + 6020, + 9, + 515, + 82, + 45366, + 4202, + 321, + 279, + 7397, + 4600, + 725, + 1433, + 998, + 1040, + 1330, + 74519, + 314, + 279, + 1788, + 55877, + 25 + ] + }, + { + "prompt_tokens": 41, + "out_tokens": 400, + "seconds": 4.198, + "tok_s": 95.3, + "output_token_ids": [ + 264, + 36334, + 21388, + 314, + 5484, + 5415, + 321, + 264, + 716, + 314, + 34844, + 542, + 5564, + 58091, + 1172, + 279, + 7991, + 846, + 13, + 561, + 1118, + 3603, + 1172, + 279, + 491, + 12515, + 11, + 279, + 6561, + 2002, + 6749, + 92169, + 1056, + 5316, + 25624, + 11, + 3482, + 279, + 36334, + 467, + 78078, + 5432, + 68, + 1990, + 9047, + 310, + 288, + 92536, + 13, + 561, + 2015, + 14607, + 421, + 279, + 53952, + 725, + 27374, + 5257, + 557, + 874, + 4860, + 264, + 4145, + 1001, + 75, + 704, + 54087, + 429, + 54087, + 70735, + 828, + 3255, + 26, + 424, + 557, + 264, + 61010, + 23850, + 314, + 25586, + 11, + 1754, + 440, + 1141, + 1765, + 79299, + 11, + 25113, + 11, + 321, + 3558, + 13, + 271, + 4639, + 3603, + 5924, + 264, + 1105, + 3788, + 303, + 1204, + 264, + 7072, + 54087, + 5911, + 53952, + 628, + 381, + 7246, + 11, + 16384, + 11, + 321, + 13260, + 34773, + 13, + 20543, + 369, + 279, + 2923, + 54087, + 1634, + 54087, + 9239, + 41223, + 314, + 279, + 3377, + 11, + 279, + 795, + 279, + 13234, + 19577, + 11, + 321, + 279, + 4602, + 781, + 4221, + 310, + 4087, + 13, + 271, + 4277, + 271, + 13962, + 220, + 16, + 13, + 561, + 27374, + 6576, + 271, + 760, + 13736, + 369, + 264, + 2972, + 32897, + 54087, + 38429, + 18766, + 5444, + 332, + 318, + 19186, + 33800, + 11, + 1754, + 440, + 264, + 3929, + 321, + 264, + 1142, + 7099, + 8, + 7854, + 539, + 264, + 2972, + 18452, + 17312, + 332, + 421, + 58469, + 279, + 22690, + 1142, + 1472, + 279, + 1788, + 33800, + 13, + 561, + 9468, + 4868, + 513, + 25, + 271, + 91, + 26099, + 735, + 39115, + 314, + 79299, + 318, + 3693, + 8, + 735, + 9926, + 318, + 77, + 8, + 735, + 198, + 91, + 22031, + 91, + 746, + 14894, + 91, + 40698, + 91, + 198, + 91, + 220, + 16, + 318, + 6735, + 314, + 1118, + 17796, + 8, + 735, + 478, + 16, + 20, + 15, + 735, + 220, + 16, + 13, + 20, + 16, + 21, + 23, + 735, + 198, + 91, + 220, + 17, + 318, + 1371, + 314, + 1118, + 17796, + 8, + 220, + 735, + 1317, + 17, + 15, + 15, + 735, + 220, + 16, + 13, + 20, + 16, + 21, + 23, + 735, + 198, + 91, + 220, + 18, + 318, + 6735, + 314, + 2018, + 17796, + 8, + 735, + 478, + 16, + 17, + 15, + 735, + 220, + 16, + 13, + 21, + 17, + 15, + 15, + 735, + 198, + 91, + 220, + 19, + 318, + 1371, + 314, + 2018, + 17796, + 8, + 220, + 735, + 1317, + 16, + 23, + 15, + 735, + 220, + 16, + 13, + 21, + 17, + 15, + 15, + 735, + 198, + 91, + 220, + 20, + 318, + 18452, + 17312, + 8, + 260, + 735, + 11654, + 252, + 318, + 25393, + 8, + 735, + 1317, + 735, + 271, + 760, + 2972, + 686, + 518, + 4681, + 778, + 332, + 318, + 2959, + 54087, + 951, + 54087, + 2959, + 25704, + 8, + 513, + 25, + 271, + 12, + 26260, + 25586, + 220, + 16, + 321, + 220, + 17, + 25, + 2972, + 16, + 15, + 9186, + 332, + 198, + 12, + 26260, + 25586, + 220, + 17, + 321, + 220, + 18, + 25, + 2972, + 17, + 20, + 9186, + 332, + 198, + 12, + 26260, + 25586, + 220, + 18, + 321, + 220, + 19, + 25, + 2972 + ] + }, + { + "prompt_tokens": 48, + "out_tokens": 400, + "seconds": 4.205, + "tok_s": 95.1, + "output_token_ids": [ + 7094, + 781, + 14428, + 279, + 53627, + 287, + 440, + 22945, + 9399, + 49954, + 11, + 8132, + 1396, + 2418, + 314, + 272, + 46016, + 11, + 1396, + 10582, + 314, + 274, + 6960, + 11, + 1396, + 22263, + 23178, + 17629, + 22149, + 13, + 733, + 279, + 4688, + 7094, + 781, + 5743, + 310, + 279, + 1788, + 22945, + 52604, + 321, + 1669, + 279, + 14367, + 995, + 7481, + 13, + 271, + 760, + 42159, + 557, + 2496, + 7807, + 13, + 561, + 14367, + 8341, + 7594, + 795, + 13, + 271, + 4277, + 271, + 760, + 1118, + 3065, + 488, + 5125, + 883, + 279, + 17198, + 20139, + 369, + 421, + 424, + 369, + 524, + 264, + 1925, + 13, + 1049, + 369, + 264, + 1817, + 11884, + 279, + 30385, + 314, + 264, + 1925, + 13, + 561, + 4128, + 488, + 2418, + 383, + 557, + 14367, + 2634, + 264, + 12828, + 3998, + 321, + 668, + 381, + 14367, + 2634, + 1495, + 303, + 264, + 12828, + 13, + 561, + 12052, + 513, + 524, + 39527, + 303, + 16665, + 748, + 1691, + 430, + 303, + 264, + 46446, + 440, + 2919, + 13, + 561, + 272, + 46016, + 29528, + 513, + 524, + 19101, + 13, + 2302, + 513, + 279, + 4757, + 579, + 1560, + 314, + 25108, + 948, + 279, + 2919, + 1898, + 35937, + 3294, + 1141, + 7303, + 13, + 271, + 760, + 2018, + 3065, + 488, + 5125, + 369, + 279, + 20513, + 13, + 2717, + 279, + 18682, + 314, + 4950, + 13, + 561, + 9084, + 314, + 264, + 2086, + 2993, + 314, + 4950, + 13, + 561, + 3594, + 369, + 11702, + 440, + 279, + 11639, + 314, + 2919, + 6992, + 1472, + 51930, + 11, + 314, + 39465, + 3133, + 279, + 25348, + 11, + 314, + 19053, + 7842, + 303, + 32655, + 421, + 2714, + 5995, + 310, + 5640, + 1472, + 13988, + 3594, + 13, + 561, + 20513, + 369, + 279, + 4950, + 314, + 264, + 1785, + 303, + 53454, + 13, + 271, + 760, + 4688, + 3065, + 488, + 5125, + 369, + 279, + 21388, + 13, + 326, + 13898, + 322, + 13, + 93048, + 3374, + 13, + 561, + 3820, + 61306, + 314, + 2919, + 421, + 682, + 978, + 1472, + 279, + 16665, + 321, + 2445, + 680, + 279, + 975, + 3008, + 14885, + 4156, + 279, + 16665, + 1042, + 708, + 13, + 561, + 21388, + 369, + 524, + 45322, + 13, + 1049, + 369, + 279, + 21388, + 314, + 264, + 1925, + 421, + 369, + 3604, + 1141, + 944, + 13, + 271, + 4277, + 271, + 760, + 42159, + 40670, + 6237, + 303, + 7036, + 314, + 2943, + 13, + 8771, + 383, + 279, + 2919, + 11, + 1330, + 383, + 279, + 4128, + 13, + 561, + 2919, + 2015, + 11354, + 264, + 80611, + 11, + 264, + 22619, + 4821, + 11, + 264, + 44497, + 11, + 321, + 264, + 28868, + 428, + 314, + 10482, + 421, + 3804, + 8981, + 539, + 279, + 2018, + 6258, + 13, + 561, + 4128, + 2015, + 11354, + 264, + 22945, + 9399, + 16473, + 11, + 264, + 88821, + 11, + 264, + 16665, + 21059, + 11, + 321, + 264, + 35935, + 421, + 9896, + 685, + 539, + 279, + 4688, + 1834, + 13, + 271, + 760, + 2919, + 2015, + 579, + 2531, + 557, + 310, + 2336, + 279, + 11407, + 13, + 2717, + 279, + 1822, + 5323, + 13, + 561, + 1822, + 5323, + 557, + 2582, + 23098, + 13, + 561, + 1142, + 11407, + 11, + 279, + 296, + 7679, + 4102, + 11, + 279, + 1678, + 1336, + 82, + 11, + 279, + 7247 + ] + }, + { + "prompt_tokens": 42, + "out_tokens": 400, + "seconds": 4.2, + "tok_s": 95.2, + "output_token_ids": [ + 271, + 8160, + 369, + 449, + 15673, + 314, + 1439, + 2250, + 41724, + 303, + 13983, + 3992, + 11, + 3055, + 440, + 264, + 13769, + 3010, + 364, + 1754, + 13, + 271, + 13962, + 220, + 16, + 13, + 8169, + 264, + 19269, + 7541, + 2751, + 303, + 18266, + 271, + 332, + 760, + 68868, + 64700, + 198, + 33807, + 303, + 279, + 1814, + 369, + 1801, + 314, + 13280, + 18167, + 318, + 63339, + 321, + 33470, + 8, + 421, + 513, + 14537, + 6992, + 13, + 3095, + 279, + 9039, + 35937, + 11, + 1439, + 18167, + 8457, + 4649, + 321, + 3166, + 10281, + 11, + 13969, + 1070, + 310, + 4336, + 9781, + 4473, + 10431, + 494, + 799, + 2361, + 13, + 5788, + 411, + 2222, + 369, + 85928, + 303, + 264, + 3074, + 18546, + 11, + 948, + 488, + 29283, + 424, + 539, + 279, + 30995, + 314, + 31137, + 303, + 264, + 10632, + 5759, + 1040, + 264, + 9229, + 13759, + 11, + 279, + 2702, + 14046, + 8772, + 4927, + 13, + 1368, + 264, + 13759, + 998, + 5617, + 430, + 799, + 6235, + 11, + 632, + 47272, + 6365, + 11, + 411, + 14046, + 303, + 279, + 8364, + 1000, + 5073, + 279, + 9041, + 310, + 77238, + 466, + 16966, + 1521, + 424, + 682, + 26241, + 310, + 708, + 13, + 271, + 332, + 80711, + 12996, + 64700, + 198, + 37405, + 314, + 264, + 2972, + 52195, + 46379, + 2047, + 303, + 264, + 3882, + 1740, + 159034, + 1368, + 488, + 6420, + 279, + 46379, + 440, + 264, + 1564, + 12489, + 303, + 279, + 12050, + 321, + 1179, + 1495, + 1238, + 424, + 682, + 978, + 11362, + 303, + 279, + 6797, + 364, + 449, + 6258, + 11, + 279, + 46379, + 668, + 381, + 21219, + 4860, + 303, + 279, + 7094, + 13, + 357, + 13759, + 22839, + 9331, + 364, + 411, + 539, + 25780, + 328, + 4431, + 10188, + 33124, + 62804, + 70, + 2538, + 9896, + 440, + 21970, + 466, + 9041, + 23702, + 2218, + 40486, + 13753, + 314, + 279, + 13759, + 13, + 733, + 7094, + 11, + 279, + 13759, + 50110, + 1083, + 1439, + 31092, + 11, + 10377, + 279, + 5759, + 310, + 14084, + 1973, + 14293, + 13, + 271, + 13962, + 220, + 17, + 13, + 8169, + 264, + 710, + 46038, + 326, + 793, + 12851, + 1049, + 2436, + 8405, + 271, + 332, + 760, + 68868, + 64700, + 198, + 760, + 328, + 82, + 23279, + 1, + 466, + 412, + 375, + 2631, + 4950, + 369, + 3404, + 264, + 1067, + 314, + 2972, + 408, + 263, + 663, + 332, + 321, + 2972, + 85, + 17804, + 332, + 8613, + 539, + 19695, + 13, + 1577, + 2919, + 73944, + 685, + 11, + 424, + 3070, + 914, + 42244, + 21146, + 16360, + 506, + 2957, + 13, + 21153, + 42237, + 1304, + 506, + 279, + 5445, + 314, + 279, + 69862, + 1332, + 424, + 369, + 36056, + 13, + 1577, + 1439, + 42237, + 9704, + 1472, + 279, + 34635, + 2919, + 3294, + 1070, + 11, + 781, + 3428, + 17638, + 318, + 53710, + 8, + 1518, + 18176, + 279, + 7099, + 13, + 1061, + 10725, + 17638, + 11121, + 13280, + 10439, + 55348, + 321, + 74610, + 13, + 271, + 623, + 264, + 412, + 375, + 2631, + 69862, + 11, + 279, + 2790, + 11407, + 411, + 19695, + 1472, + 264, + 2526, + 11, + 3050, + 8306, + 318, + 1719, + 38240, + 553, + 561, + 19695, + 8177, + 3594, + 310, + 343, + 41670, + 506, + 264, + 3050, + 11304, + 11, + 1691, + 1040, + 39005, + 3808, + 279 + ] + }, + { + "prompt_tokens": 47, + "out_tokens": 400, + "seconds": 4.198, + "tok_s": 95.3, + "output_token_ids": [ + 9896, + 2250, + 75842, + 440, + 11140, + 421, + 998, + 40361, + 42749, + 13, + 3113, + 35442, + 1292, + 995, + 5158, + 264, + 11183, + 883, + 264, + 5054, + 852, + 1362, + 6512, + 279, + 9117, + 579, + 295, + 8792, + 1472, + 279, + 6220, + 18687, + 11, + 321, + 1292, + 4035, + 2574, + 424, + 310, + 1024, + 6764, + 11, + 852, + 1301, + 424, + 303, + 799, + 11362, + 321, + 1179, + 1018, + 11, + 328, + 2523, + 2908, + 1801, + 279, + 9117, + 4950, + 1040, + 264, + 27809, + 36252, + 1149, + 2838, + 3738, + 411, + 430, + 279, + 8166, + 27463, + 13, + 271, + 760, + 11183, + 557, + 2496, + 4501, + 13, + 1049, + 7338, + 303, + 264, + 25635, + 364, + 42744, + 1578, + 11, + 22175, + 279, + 3820, + 20513, + 314, + 2433, + 421, + 513, + 9939, + 694, + 524, + 3482, + 5354, + 13, + 3095, + 1292, + 5326, + 3106, + 424, + 310, + 264, + 20609, + 11, + 781, + 5743, + 424, + 440, + 264, + 5020, + 421, + 557, + 4409, + 2993, + 25, + 328, + 32, + 6037, + 2351, + 364, + 16078, + 13, + 1165, + 2224, + 524, + 2617, + 1092, + 279, + 3255, + 369, + 1149, + 2838, + 15513, + 13, + 561, + 9117, + 579, + 295, + 8792, + 998, + 279, + 3255, + 13, + 1921, + 279, + 9117, + 579, + 295, + 8792, + 11, + 424, + 6316, + 680, + 11, + 998, + 524, + 264, + 3255, + 303, + 279, + 1560, + 421, + 34440, + 15513, + 7112, + 13, + 271, + 7691, + 557, + 16570, + 52616, + 948, + 1292, + 6426, + 310, + 3165, + 264, + 2086, + 2993, + 314, + 2236, + 13, + 2717, + 264, + 11183, + 13, + 2717, + 264, + 1103, + 13, + 23879, + 303, + 1881, + 13, + 357, + 2236, + 421, + 1000, + 381, + 264, + 3626, + 440, + 1599, + 11683, + 11, + 1332, + 1754, + 2956, + 5467, + 264, + 2086, + 2993, + 314, + 7793, + 11, + 321, + 279, + 6396, + 1362, + 37922, + 1472, + 1070, + 303, + 866, + 1906, + 13, + 2838, + 2512, + 424, + 348, + 760, + 78812, + 579, + 211358, + 565, + 11961, + 321, + 424, + 3738, + 1024, + 2943, + 1578, + 310, + 3165, + 13, + 271, + 760, + 444, + 1461, + 565, + 557, + 17249, + 1083, + 28279, + 13753, + 11, + 799, + 364, + 1754, + 2182, + 11, + 694, + 279, + 3818, + 998, + 524, + 279, + 3818, + 314, + 279, + 12786, + 13, + 5869, + 557, + 279, + 2182, + 314, + 11679, + 13, + 7165, + 557, + 279, + 2182, + 314, + 279, + 1118, + 3000, + 13, + 5297, + 557, + 279, + 2182, + 314, + 279, + 295, + 2379, + 13, + 5632, + 557, + 279, + 2182, + 314, + 279, + 1248, + 20513, + 13, + 1541, + 748, + 383, + 11, + 1472, + 279, + 1007, + 314, + 1024, + 1765, + 3154, + 11, + 264, + 1007, + 421, + 7481, + 524, + 539, + 279, + 12680, + 314, + 279, + 9114, + 694, + 539, + 279, + 12680, + 314, + 6326, + 13, + 271, + 4699, + 3644, + 12613, + 264, + 2086, + 1304, + 13, + 733, + 279, + 2182, + 314, + 11679, + 11, + 1292, + 5947, + 264, + 3878, + 314, + 2716, + 11, + 16724, + 9378, + 883, + 279, + 3096, + 852, + 995, + 8341, + 279, + 324, + 55965, + 1518, + 1024, + 6351, + 11, + 2019, + 1142, + 7840, + 21116, + 13, + 733, + 279, + 2182, + 314, + 279, + 1118, + 3000, + 11, + 1292, + 5947, + 264, + 1248, + 11, + 6103, + 8627, + 883 + ] + } + ], + "metrics": {}, + "mean_tok_s": 95.1 +} \ No newline at end of file diff --git a/docs/qwen38-vllm-perf-spec-tray14.json b/docs/qwen38-vllm-perf-spec-tray14.json new file mode 100644 index 0000000..b446736 --- /dev/null +++ b/docs/qwen38-vllm-perf-spec-tray14.json @@ -0,0 +1,2061 @@ +{ + "mode": "spec", + "pinned": false, + "results": [ + { + "prompt_tokens": 43, + "out_tokens": 400, + "seconds": 2.558, + "tok_s": 156.4, + "output_token_ids": [ + 264, + 3074, + 4202, + 421, + 1467, + 524, + 2353, + 866, + 314, + 279, + 3672, + 25, + 264, + 25347, + 2512, + 279, + 348, + 32, + 322, + 6020, + 9, + 995, + 978, + 12076, + 430, + 1001, + 52513, + 506, + 9117, + 828, + 383, + 279, + 3603, + 314, + 279, + 3128, + 70595, + 11, + 3482, + 279, + 1788, + 3603, + 264, + 7397, + 4600, + 725, + 1433, + 7246, + 264, + 9613, + 11, + 14527, + 54087, + 71433, + 7397, + 501, + 13810, + 494, + 279, + 2919, + 321, + 264, + 14457, + 11, + 83345, + 3000, + 888, + 279, + 54517, + 13, + 561, + 7110, + 725, + 5572, + 17621, + 36412, + 26, + 279, + 1330, + 7189, + 1362, + 524, + 2107, + 381, + 804, + 11, + 321, + 279, + 48086, + 9290, + 1384, + 310, + 2466, + 264, + 3296, + 421, + 995, + 54779, + 66509, + 364, + 22892, + 25, + 2972, + 12195, + 11, + 413, + 3977, + 11, + 14995, + 23221, + 279, + 7099, + 314, + 279, + 1814, + 567, + 1683, + 567, + 1366, + 170286, + 271, + 4639, + 3296, + 369, + 279, + 4560, + 314, + 1396, + 21831, + 421, + 10695, + 13, + 1049, + 31950, + 586, + 494, + 279, + 13769, + 2218, + 741, + 383, + 264, + 45366, + 11, + 264, + 7397, + 4600, + 725, + 11155, + 383, + 264, + 8981, + 3603, + 2218, + 17583, + 279, + 7859, + 21215, + 314, + 279, + 9496, + 11, + 1332, + 279, + 1001, + 76, + 91968, + 828, + 369, + 524, + 264, + 3074, + 6038, + 694, + 264, + 4220, + 17865, + 314, + 72872, + 5154, + 13, + 271, + 13962, + 220, + 16, + 13, + 561, + 46403, + 314, + 279, + 4196, + 725, + 16613, + 2228, + 760, + 1118, + 2172, + 21831, + 369, + 279, + 799, + 421, + 6348, + 9704, + 310, + 279, + 1546, + 3299, + 348, + 76, + 91968, + 77340, + 279, + 6042, + 314, + 279, + 79699, + 13, + 35725, + 30404, + 33461, + 264, + 14120, + 34895, + 17504, + 279, + 9114, + 11, + 264, + 52862, + 18075, + 11, + 466, + 264, + 28407, + 11155, + 13, + 17722, + 7785, + 39356, + 279, + 34895, + 440, + 264, + 3882, + 11, + 27044, + 1528, + 421, + 16676, + 220, + 16, + 18, + 13, + 23, + 373, + 107, + 65, + 14300, + 1578, + 3998, + 21010, + 5971, + 16419, + 13, + 14205, + 279, + 3255, + 1503, + 524, + 809, + 1017, + 13, + 1165, + 628, + 11319, + 279, + 15039, + 1142, + 310, + 264, + 18830, + 314, + 264, + 2018, + 1238, + 421, + 23439, + 11, + 694, + 279, + 9402, + 348, + 14372, + 9, + 8198, + 264, + 9813, + 2081, + 13, + 561, + 2354, + 1680, + 430, + 29144, + 22525, + 11, + 886, + 9826, + 11, + 321, + 6136, + 29144, + 53785, + 2369, + 1754, + 28647, + 264, + 2086, + 1001, + 3765, + 4299, + 2340, + 3482, + 6643, + 682, + 978, + 9064, + 722, + 10457, + 13, + 561, + 21831, + 11, + 8646, + 11, + 369, + 524, + 264, + 3074, + 2029, + 310, + 381, + 41012, + 694, + 264, + 46398, + 1332, + 36352, + 11, + 21254, + 11, + 321, + 26896, + 3258, + 13, + 271, + 13962, + 220, + 17, + 13, + 561, + 46403, + 314, + 88492, + 2022, + 2228, + 2592, + 279, + 15039, + 5820, + 440, + 264, + 7960, + 314, + 4649, + 11, + 279, + 1727, + 21831, + 369, + 1204, + 421, + 4649, + 5924, + 7605, + 314, + 4924, + 13, + 561, + 1001, + 18140, + 3377, + 828, + 314, + 24086, + 16561, + 3069, + 6745, + 11036 + ] + }, + { + "prompt_tokens": 41, + "out_tokens": 400, + "seconds": 1.938, + "tok_s": 206.4, + "output_token_ids": [ + 264, + 36334, + 21388, + 314, + 5484, + 5415, + 321, + 264, + 716, + 314, + 34844, + 542, + 5564, + 58091, + 1172, + 279, + 7991, + 846, + 13, + 561, + 1118, + 3603, + 1172, + 279, + 491, + 12515, + 11, + 279, + 6561, + 2002, + 6749, + 92169, + 1056, + 5316, + 25624, + 11, + 3482, + 279, + 36334, + 467, + 78078, + 5432, + 68, + 1990, + 9047, + 310, + 288, + 92536, + 13, + 561, + 2015, + 14607, + 421, + 279, + 53952, + 725, + 27374, + 5257, + 557, + 874, + 4860, + 264, + 4145, + 1001, + 75, + 704, + 54087, + 429, + 54087, + 70735, + 828, + 3255, + 26, + 424, + 557, + 264, + 61010, + 23850, + 314, + 25586, + 11, + 1754, + 440, + 1141, + 1765, + 79299, + 11, + 25113, + 11, + 321, + 3558, + 13, + 271, + 4639, + 3603, + 5924, + 264, + 1105, + 3788, + 303, + 1204, + 264, + 7072, + 54087, + 5911, + 53952, + 628, + 381, + 7246, + 11, + 16384, + 11, + 321, + 13260, + 34773, + 13, + 20543, + 369, + 279, + 2923, + 54087, + 1634, + 54087, + 9239, + 41223, + 314, + 279, + 3377, + 11, + 279, + 795, + 279, + 13234, + 19577, + 11, + 321, + 279, + 4602, + 781, + 4221, + 310, + 4087, + 13, + 271, + 4277, + 271, + 13962, + 220, + 16, + 13, + 561, + 27374, + 6576, + 271, + 760, + 13736, + 369, + 264, + 2972, + 32897, + 54087, + 38429, + 18766, + 5444, + 332, + 318, + 19186, + 33800, + 11, + 1754, + 440, + 264, + 3929, + 321, + 264, + 1142, + 7099, + 8, + 7854, + 539, + 264, + 2972, + 18452, + 17312, + 332, + 421, + 58469, + 279, + 22690, + 1142, + 1472, + 279, + 1788, + 33800, + 13, + 561, + 9468, + 4868, + 513, + 25, + 271, + 91, + 26099, + 735, + 39115, + 314, + 79299, + 318, + 3693, + 8, + 735, + 9926, + 318, + 77, + 8, + 735, + 198, + 91, + 22031, + 91, + 746, + 14894, + 91, + 40698, + 91, + 198, + 91, + 220, + 16, + 318, + 6735, + 314, + 1118, + 17796, + 8, + 735, + 478, + 16, + 20, + 15, + 735, + 220, + 16, + 13, + 20, + 16, + 21, + 23, + 735, + 198, + 91, + 220, + 17, + 318, + 1371, + 314, + 1118, + 17796, + 8, + 220, + 735, + 1317, + 16, + 17, + 15, + 735, + 220, + 16, + 13, + 20, + 16, + 21, + 23, + 735, + 198, + 91, + 220, + 18, + 318, + 6735, + 314, + 2018, + 17796, + 8, + 735, + 478, + 17, + 15, + 15, + 735, + 220, + 16, + 13, + 21, + 17, + 15, + 15, + 735, + 198, + 91, + 220, + 19, + 318, + 1371, + 314, + 2018, + 17796, + 8, + 220, + 735, + 1317, + 16, + 23, + 15, + 735, + 220, + 16, + 13, + 21, + 17, + 15, + 15, + 735, + 198, + 91, + 220, + 20, + 318, + 18452, + 17312, + 8, + 260, + 735, + 11654, + 252, + 318, + 25393, + 8, + 735, + 1317, + 735, + 271, + 760, + 2972, + 686, + 518, + 4681, + 778, + 332, + 318, + 2959, + 54087, + 951, + 54087, + 2959, + 25704, + 8, + 513, + 25, + 271, + 12, + 26260, + 7099, + 220, + 16, + 321, + 7099, + 220, + 17, + 25, + 2972, + 16, + 15, + 9186, + 332, + 198, + 12, + 26260, + 7099, + 220, + 17, + 321, + 7099, + 220, + 18, + 25, + 2972, + 17, + 20, + 9186, + 332, + 198, + 12, + 26260, + 7099, + 220, + 18, + 321, + 7099, + 220 + ] + }, + { + "prompt_tokens": 48, + "out_tokens": 400, + "seconds": 2.389, + "tok_s": 167.4, + "output_token_ids": [ + 7094, + 781, + 14428, + 279, + 53627, + 287, + 440, + 22945, + 9399, + 49954, + 11, + 8132, + 1396, + 2418, + 314, + 272, + 46016, + 11, + 1396, + 10582, + 314, + 274, + 6960, + 11, + 1396, + 22263, + 23178, + 17629, + 22149, + 13, + 733, + 279, + 4688, + 7094, + 781, + 5743, + 310, + 279, + 1788, + 22945, + 52604, + 321, + 1669, + 279, + 14367, + 995, + 7481, + 13, + 271, + 760, + 42159, + 557, + 2496, + 7807, + 13, + 561, + 14367, + 8341, + 7594, + 795, + 13, + 271, + 4277, + 271, + 760, + 1118, + 3065, + 488, + 5125, + 883, + 279, + 17198, + 20139, + 369, + 421, + 424, + 369, + 524, + 264, + 1925, + 13, + 1049, + 369, + 264, + 1817, + 11884, + 279, + 30385, + 314, + 264, + 1925, + 13, + 561, + 4128, + 488, + 2418, + 383, + 557, + 14367, + 2634, + 264, + 12828, + 3998, + 321, + 668, + 381, + 14367, + 2634, + 1495, + 303, + 264, + 12828, + 13, + 561, + 12052, + 513, + 524, + 39527, + 303, + 16665, + 748, + 1691, + 430, + 303, + 264, + 46446, + 440, + 2919, + 13, + 561, + 272, + 46016, + 29528, + 513, + 524, + 19101, + 13, + 2302, + 513, + 279, + 4757, + 579, + 1560, + 314, + 25108, + 948, + 279, + 2919, + 1898, + 35937, + 3294, + 1141, + 7303, + 13, + 271, + 760, + 2018, + 3065, + 488, + 5125, + 369, + 279, + 20513, + 13, + 2717, + 279, + 18682, + 314, + 4950, + 13, + 561, + 9084, + 314, + 264, + 2086, + 2993, + 314, + 4950, + 13, + 561, + 3594, + 369, + 11702, + 440, + 279, + 11639, + 314, + 2919, + 6992, + 1472, + 51930, + 11, + 314, + 39465, + 3133, + 279, + 25348, + 11, + 314, + 19053, + 7842, + 303, + 32655, + 421, + 2714, + 5995, + 310, + 5640, + 1472, + 13988, + 3594, + 13, + 561, + 20513, + 369, + 279, + 4950, + 314, + 264, + 1785, + 303, + 53454, + 11, + 321, + 424, + 369, + 279, + 27705, + 4818, + 3065, + 303, + 279, + 1814, + 13, + 271, + 760, + 4688, + 3065, + 488, + 5125, + 369, + 279, + 21388, + 13, + 326, + 13898, + 322, + 13, + 93048, + 3374, + 13, + 561, + 5983, + 11, + 9922, + 5571, + 314, + 16845, + 4766, + 14293, + 1441, + 303, + 38957, + 261, + 29799, + 25348, + 13, + 1049, + 369, + 279, + 21388, + 314, + 264, + 1925, + 1332, + 4397, + 369, + 524, + 449, + 13004, + 694, + 264, + 10106, + 13, + 271, + 4277, + 271, + 760, + 296, + 7679, + 358, + 41713, + 513, + 279, + 17198, + 20139, + 579, + 4779, + 13, + 3095, + 279, + 14367, + 4203, + 3199, + 11, + 424, + 10583, + 4661, + 264, + 44234, + 1129, + 314, + 2919, + 421, + 13569, + 39248, + 440, + 56084, + 11, + 13632, + 15049, + 11, + 321, + 8460, + 13, + 8618, + 296, + 7679, + 358, + 369, + 264, + 3150, + 314, + 264, + 3820, + 35600, + 303, + 279, + 14367, + 579, + 1752, + 11, + 264, + 3820, + 3098, + 314, + 36900, + 11, + 264, + 3820, + 6343, + 314, + 279, + 17865, + 421, + 668, + 2496, + 2905, + 1495, + 13, + 271, + 760, + 1024, + 263, + 897, + 547, + 4547, + 513, + 279, + 17198, + 20139, + 579, + 2945, + 41272, + 13, + 561, + 19053, + 16821, + 303, + 5297, + 321, + 5106, + 303, + 5963, + 13, + 2302, + 1870, + 836, + 91838, + 303, + 279, + 272, + 46016, + 12052, + 11, + 321, + 279, + 91838, + 513, + 748 + ] + }, + { + "prompt_tokens": 42, + "out_tokens": 400, + "seconds": 2.244, + "tok_s": 178.3, + "output_token_ids": [ + 271, + 8160, + 369, + 449, + 15673, + 314, + 1439, + 2250, + 41724, + 303, + 13983, + 3992, + 11, + 3055, + 440, + 264, + 13769, + 3010, + 364, + 1754, + 13, + 271, + 13962, + 220, + 16, + 13, + 8169, + 264, + 19269, + 7541, + 2751, + 303, + 18266, + 271, + 332, + 760, + 68868, + 64700, + 198, + 33807, + 303, + 279, + 1814, + 369, + 1801, + 314, + 13280, + 18167, + 318, + 63339, + 321, + 33470, + 8, + 421, + 513, + 14537, + 6992, + 13, + 3095, + 279, + 9039, + 35937, + 11, + 1439, + 18167, + 8457, + 4649, + 321, + 3166, + 10281, + 11, + 13969, + 1070, + 310, + 4336, + 9781, + 4473, + 10431, + 494, + 799, + 2361, + 13, + 5788, + 411, + 2222, + 369, + 85928, + 303, + 264, + 3074, + 18546, + 11, + 948, + 488, + 29283, + 424, + 539, + 279, + 30995, + 314, + 31137, + 303, + 264, + 10632, + 5759, + 1040, + 264, + 9229, + 13759, + 11, + 279, + 2702, + 14046, + 8772, + 4927, + 13, + 1368, + 264, + 13759, + 998, + 5617, + 430, + 799, + 6235, + 11, + 632, + 47272, + 6365, + 11, + 411, + 14046, + 303, + 279, + 8364, + 1000, + 5073, + 279, + 9041, + 310, + 77238, + 466, + 16966, + 1521, + 424, + 682, + 26241, + 310, + 708, + 13, + 271, + 332, + 80711, + 12996, + 64700, + 198, + 37405, + 314, + 264, + 2972, + 52195, + 46379, + 2047, + 303, + 264, + 3882, + 1740, + 159034, + 1368, + 488, + 6420, + 279, + 46379, + 440, + 264, + 1564, + 12489, + 303, + 279, + 12050, + 321, + 1179, + 1495, + 1238, + 424, + 682, + 978, + 11362, + 303, + 279, + 6797, + 364, + 449, + 6258, + 11, + 279, + 46379, + 668, + 381, + 21219, + 4860, + 303, + 279, + 7094, + 13, + 357, + 13759, + 22839, + 9331, + 364, + 411, + 539, + 25780, + 328, + 4431, + 10188, + 33124, + 62804, + 70, + 2538, + 9896, + 440, + 21970, + 466, + 9041, + 23702, + 2218, + 40486, + 13753, + 314, + 279, + 13759, + 13, + 733, + 7094, + 11, + 279, + 13759, + 50110, + 1083, + 1439, + 31092, + 11, + 10377, + 279, + 5759, + 310, + 14084, + 1973, + 14293, + 13, + 271, + 13962, + 220, + 17, + 13, + 8169, + 264, + 710, + 46038, + 326, + 793, + 12851, + 1049, + 2436, + 8405, + 271, + 332, + 760, + 68868, + 64700, + 198, + 760, + 328, + 82, + 23279, + 1, + 466, + 412, + 375, + 2631, + 4950, + 369, + 3404, + 264, + 1067, + 314, + 2972, + 408, + 263, + 663, + 332, + 321, + 2972, + 85, + 17804, + 332, + 8613, + 539, + 19695, + 13, + 1577, + 2919, + 73944, + 685, + 11, + 424, + 3070, + 914, + 42244, + 21146, + 16360, + 506, + 2957, + 13, + 21153, + 42237, + 1304, + 506, + 279, + 5445, + 314, + 279, + 69862, + 1332, + 424, + 369, + 36056, + 13, + 1577, + 1439, + 42237, + 9704, + 1472, + 279, + 34635, + 2919, + 3294, + 1070, + 11, + 781, + 3428, + 17638, + 318, + 53710, + 8, + 1518, + 18176, + 279, + 7099, + 13, + 1061, + 10725, + 17638, + 11121, + 13280, + 10439, + 55348, + 321, + 74610, + 13, + 271, + 623, + 264, + 412, + 375, + 2631, + 69862, + 11, + 279, + 2790, + 11407, + 411, + 19695, + 1472, + 264, + 2526, + 11, + 3050, + 8306, + 318, + 1719, + 38240, + 553, + 561, + 19695, + 8177, + 3594, + 310, + 343, + 41670, + 506, + 264, + 3050, + 11304, + 11, + 1691, + 1040, + 39005, + 3808, + 279 + ] + }, + { + "prompt_tokens": 47, + "out_tokens": 400, + "seconds": 2.693, + "tok_s": 148.5, + "output_token_ids": [ + 9896, + 2250, + 75842, + 440, + 11140, + 421, + 998, + 40361, + 42749, + 13, + 3113, + 35442, + 1292, + 995, + 5158, + 264, + 11183, + 883, + 264, + 5054, + 852, + 1362, + 6512, + 279, + 9117, + 579, + 295, + 8792, + 1472, + 279, + 6220, + 18687, + 11, + 321, + 1292, + 4035, + 2574, + 424, + 310, + 1024, + 6764, + 11, + 852, + 1301, + 424, + 303, + 799, + 11362, + 321, + 1179, + 1018, + 11, + 328, + 2523, + 2908, + 1801, + 279, + 9117, + 4950, + 1040, + 264, + 27809, + 36252, + 1149, + 2838, + 3738, + 411, + 430, + 279, + 8166, + 27463, + 13, + 271, + 760, + 11183, + 557, + 2496, + 4501, + 13, + 1049, + 7338, + 303, + 264, + 25635, + 364, + 42744, + 1578, + 11, + 22175, + 279, + 3820, + 20513, + 314, + 2433, + 421, + 513, + 9939, + 694, + 524, + 3482, + 5354, + 13, + 3095, + 1292, + 5326, + 3106, + 424, + 310, + 264, + 20609, + 11, + 781, + 5743, + 424, + 440, + 264, + 5020, + 421, + 557, + 4409, + 2993, + 25, + 328, + 32, + 6037, + 2351, + 364, + 16078, + 13, + 1165, + 2224, + 524, + 2617, + 1092, + 279, + 3255, + 369, + 1149, + 2838, + 15513, + 13, + 561, + 9117, + 579, + 295, + 8792, + 998, + 279, + 3255, + 13, + 1921, + 279, + 9117, + 579, + 295, + 8792, + 11, + 424, + 6316, + 680, + 11, + 998, + 524, + 264, + 3255, + 421, + 1000, + 4410, + 13, + 271, + 4272, + 1292, + 5947, + 975, + 2433, + 13, + 10382, + 7112, + 364, + 30801, + 421, + 6945, + 303, + 11988, + 321, + 26957, + 69204, + 13, + 357, + 48555, + 883, + 279, + 324, + 55965, + 11, + 864, + 5898, + 25989, + 391, + 321, + 1801, + 1024, + 264, + 2526, + 803, + 303, + 264, + 2526, + 1814, + 13, + 2838, + 11876, + 264, + 855, + 852, + 14129, + 47558, + 321, + 11252, + 421, + 1396, + 3046, + 995, + 264, + 5016, + 421, + 557, + 9781, + 2166, + 3349, + 364, + 1141, + 17435, + 13, + 2302, + 995, + 1330, + 2748, + 852, + 13538, + 685, + 5122, + 1024, + 75898, + 888, + 1024, + 16388, + 11, + 852, + 9218, + 421, + 836, + 6351, + 579, + 22157, + 995, + 264, + 3820, + 35091, + 11, + 1040, + 16382, + 2272, + 264, + 3820, + 29199, + 13, + 271, + 760, + 324, + 55965, + 557, + 27572, + 2641, + 290, + 303, + 220, + 16, + 24, + 23, + 22, + 13, + 2838, + 3804, + 1142, + 2957, + 11, + 303, + 279, + 40297, + 11, + 321, + 14217, + 303, + 279, + 51624, + 579, + 2956, + 1332, + 279, + 6220, + 18687, + 1990, + 272, + 1072, + 290, + 303, + 279, + 2235, + 5215, + 13, + 2838, + 16810, + 1024, + 2351, + 310, + 279, + 7339, + 321, + 6408, + 4161, + 13, + 2441, + 4598, + 11, + 1292, + 6408, + 4156, + 11, + 864, + 557, + 279, + 1788, + 3065, + 13, + 561, + 9117, + 557, + 1990, + 1017, + 11, + 1990, + 4396, + 1041, + 11, + 1990, + 27809, + 13, + 1049, + 995, + 4777, + 10184, + 15899, + 364, + 1024, + 13, + 271, + 7691, + 557, + 31347, + 46780, + 948, + 279, + 2018, + 11183, + 3571, + 13, + 2717, + 279, + 324, + 55965, + 11183, + 13, + 357, + 2086, + 799, + 13, + 9680, + 264, + 5054, + 303, + 264, + 33101, + 6092, + 852, + 13205, + 264, + 1103, + 314, + 1396, + 14882, + 421, + 15734, + 11, + 321, + 852, + 11690, + 310, + 5125, + 421 + ] + } + ], + "metrics": { + "vllm:spec_decode_num_drafts": 818, + "vllm:spec_decode_num_draft_tokens": 5726, + "vllm:spec_decode_num_accepted_tokens": 1190, + "vllm:spec_decode_num_accepted_tokens_per_pos": [ + 521, + 307, + 164, + 93, + 45, + 35, + 25 + ] + }, + "mean_tok_s": 171.4 +} \ No newline at end of file