{
 "$schema": "./kernel-registry.schema.json",
 "version": "1.0",
 "operations": {
  "moe_route_remap": {
   "description": "Preserve route order while translating source expert IDs to compact resident slots",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "source_indices",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "source_to_slot",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_routes",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "source_experts",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "slot_count",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "u32": {
     "wgsl": "moe_route_remap.wgsl",
     "entryPoint": "remap_routes",
     "workgroup": [256,1,1],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "moe_shared_slot_gu": {
   "description": "Explicit native GGUF F32 shared-slot gu without outer residual",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "gate_weights",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "up_weights",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "shared_gate",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "shared_up",
     "type": "read-only-storage"
    },
    {
     "index": 6,
     "name": "indices",
     "type": "read-only-storage"
    },
    {
     "index": 7,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "intermediate_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "shared_size",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "num_experts",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "slot_stride",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "clamp_max",
      "type": "f32",
      "offset": 24
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "native_f32": {
     "wgsl": "moe_shared_slot_gu_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 64
     },
     "outputDtype": "f32",
     "variantMetadata": {
      "activationDtype": "f32",
      "outerResidual": false
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "pair_f32": {
     "wgsl": "moe_shared_slot_gu_pair_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "THREADS_PER_ROW": 32
     },
     "outputDtype": "f32",
     "variantMetadata": {
      "activationDtype": "f32",
      "outerResidual": false,
      "sharedSlotGeometry": "pair"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "moe_shared_slot_combine": {
   "description": "Fixed slot-order combine of per-slot native GGUF shared-slot down outputs",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "slots",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "route_weights",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "scalar_gate",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "intermediate_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "shared_size",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "num_experts",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "slot_stride",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "clamp_max",
      "type": "f32",
      "offset": 24
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "moe_shared_slot_combine_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "outputDtype": "f32",
     "variantMetadata": {
      "activationDtype": "f32",
      "outerResidual": false
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "moe_shared_slot_down": {
   "description": "Explicit native GGUF F32 shared-slot down; outerResidual variants also add the layer residual",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "down_weights",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "shared_down",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "indices",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "route_weights",
     "type": "read-only-storage"
    },
    {
     "index": 6,
     "name": "scalar_gate",
     "type": "read-only-storage"
    },
    {
     "index": 7,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "intermediate_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "shared_size",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "num_experts",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "slot_stride",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "clamp_max",
      "type": "f32",
      "offset": 24
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "native_f32": {
     "wgsl": "moe_shared_slot_down_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 64
     },
     "outputDtype": "f32",
     "variantMetadata": {
      "activationDtype": "f32",
      "outerResidual": false
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "pair_f32": {
     "wgsl": "moe_shared_slot_down_pair_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "down_weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "shared_down",
       "type": "read-only-storage"
      },
      {
       "index": 4,
       "name": "indices",
       "type": "read-only-storage"
      },
      {
       "index": 5,
       "name": "output",
       "type": "storage"
      }
     ],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "THREADS_PER_ROW": 8
     },
     "outputDtype": "f32",
     "variantMetadata": {
      "activationDtype": "f32",
      "outerResidual": false,
      "sharedSlotGeometry": "pair",
      "perSlotOutput": true
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "pair_combine_f32": {
     "wgsl": "moe_shared_slot_down_pair_combine_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "THREADS_PER_ROW": 8
     },
     "outputDtype": "f32",
     "variantMetadata": {
      "activationDtype": "f32",
      "outerResidual": false,
      "sharedSlotGeometry": "pair_combine",
      "perSlotOutput": false
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "pair_combine_residual_f32": {
     "wgsl": "moe_shared_slot_down_pair_combine_residual_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "down_weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "shared_down",
       "type": "read-only-storage"
      },
      {
       "index": 4,
       "name": "indices",
       "type": "read-only-storage"
      },
      {
       "index": 5,
       "name": "route_weights",
       "type": "read-only-storage"
      },
      {
       "index": 6,
       "name": "scalar_gate",
       "type": "read-only-storage"
      },
      {
       "index": 7,
       "name": "output",
       "type": "storage"
      },
      {
       "index": 8,
       "name": "residual",
       "type": "read-only-storage"
      }
     ],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "THREADS_PER_ROW": 8
     },
     "outputDtype": "f32",
     "variantMetadata": {
      "activationDtype": "f32",
      "outerResidual": true,
      "sharedSlotGeometry": "pair_combine",
      "perSlotOutput": false
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "moe_norm_router": {
   "description": "Decode post-attention RMSNorm (folded attention residual) with the MoE expert-router and shared-expert router GEMVs in one dispatch",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "residual",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "norm_weight",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "router_weight",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "shared_router_weight",
     "type": "read-only-storage"
    },
    {
     "index": 6,
     "name": "normed",
     "type": "storage"
    },
    {
     "index": 7,
     "name": "prenorm",
     "type": "storage"
    },
    {
     "index": 8,
     "name": "logits",
     "type": "storage"
    },
    {
     "index": 9,
     "name": "shared_gate",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_experts",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "workgroups_x",
      "type": "u32",
      "offset": 12
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "moe_norm_router_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["subgroup_id"],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "NORM_THREADS": 256
     },
     "outputDtype": "f32",
     "variantMetadata": {
      "activationDtype": "f32",
      "reproduces": ["rmsnorm/default","matmul/gemv_f32_subgroup"]
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "f32_single_pass": {
     "wgsl": "moe_norm_router_f32.wgsl",
     "entryPoint": "single_pass",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["subgroup_id"],
     "wgslOverrides": {
      "NORM_THREADS": 256,
      "ROWS": 4
     },
     "outputDtype": "f32",
     "variantMetadata": {
      "activationDtype": "f32",
      "reproduces": ["rmsnorm/default","matmul/gemv_f32_subgroup"]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "linear_norm_ab": {
   "description": "Decode linear-attention input RMSNorm with the in_proj_a and in_proj_b GEMVs in one dispatch",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "norm_weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "a_weight",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "b_weight",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "normed",
     "type": "storage"
    },
    {
     "index": 6,
     "name": "a_out",
     "type": "storage"
    },
    {
     "index": 7,
     "name": "b_out",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "rows",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "workgroups_x",
      "type": "u32",
      "offset": 12
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "linear_norm_ab_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["subgroup_id"],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 2,
      "NORM_THREADS": 256
     },
     "outputDtype": "f32",
     "variantMetadata": {
      "activationDtype": "f32",
      "reproduces": ["rmsnorm/default","matmul/gemv_f32_subgroup"]
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "f32_single_pass": {
     "wgsl": "linear_norm_ab_f32.wgsl",
     "entryPoint": "single_pass",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["subgroup_id"],
     "wgslOverrides": {
      "NORM_THREADS": 256,
      "ROWS": 1
     },
     "outputDtype": "f32",
     "variantMetadata": {
      "activationDtype": "f32",
      "reproduces": ["rmsnorm/default"]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "w8a8_quantize": {
   "description": "Exact rational row-interleaved signed activation packing",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    },
    {
     "index": 3,
     "name": "status",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "rows",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "columns",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "inner",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "row_words",
      "type": "u32",
      "offset": 12
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "quantize_w8a8.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["gemma3/gemma-3-270m-it-w8a8-ehf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "w8a8_rescale": {
   "description": "Ordered W8A8 F32 scale multiplication with signed-zero subnormal flush",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "packed_scales",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    },
    {
     "index": 4,
     "name": "status",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "rows",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "columns",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "inner",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "row_words",
      "type": "u32",
      "offset": 12
     }
    ]
   },
   "variants": {
    "activation": {
     "wgsl": "rescale_w8a8.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "INPUT_IS_I32": true,
      "SCALE_BY_ROW": true
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["gemma3/gemma-3-270m-it-w8a8-ehf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "weight": {
     "wgsl": "rescale_w8a8.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "INPUT_IS_I32": false,
      "SCALE_BY_ROW": false
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["gemma3/gemma-3-270m-it-w8a8-ehf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "qwen_attention_split_q_gate": {
   "description": "Split Qwen full-attention interleaved per-head query and output gate",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "query",
     "type": "storage"
    },
    {
     "index": 3,
     "name": "gate",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "element_count",
      "type": "u32",
      "offset": 12
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "qwen_attention_split_q_gate.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "qwen_attention_split_q_gate_backward": {
   "description": "Reverse Qwen full-attention query/output-gate split",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "grad_query",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "grad_gate",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "grad_input",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "element_count",
      "type": "u32",
      "offset": 12
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/qwen_attention_split_q_gate_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "qwen_gqa_softmax_recompute": {
   "description": "Recompute causal GQA softmax rows for Qwen attention backward",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "query",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "key",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "softmax",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "seq_len",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "num_kv_heads",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "scale",
      "type": "f32",
      "offset": 16
     },
     {
      "name": "causal",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 28
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/qwen_gqa_softmax_recompute.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "qwen_gqa_softmax_backward_scores": {
   "description": "Compute causal GQA softmax-logit gradients",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "value",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "softmax",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "grad_scores",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "seq_len",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "num_kv_heads",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "scale",
      "type": "f32",
      "offset": 16
     },
     {
      "name": "causal",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 28
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/qwen_gqa_softmax_backward_scores.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "qwen_gqa_attention_backward": {
   "description": "Causal Qwen GQA query/key/value gradients with KV-head reduction",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "query",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "key",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "softmax",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "grad_scores",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 6,
     "name": "grad_query",
     "type": "storage"
    },
    {
     "index": 7,
     "name": "grad_key",
     "type": "storage"
    },
    {
     "index": 8,
     "name": "grad_value",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "seq_len",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "num_kv_heads",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "scale",
      "type": "f32",
      "offset": 16
     },
     {
      "name": "causal",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 28
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/qwen_gqa_attention_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "sigmoid_gated_backward": {
   "description": "Sigmoid or SiLU gated backward",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "gate",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "grad_input",
     "type": "storage"
    },
    {
     "index": 5,
     "name": "grad_gate",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "count",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "gate_mode",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "swiglu_limit",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 12
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/sigmoid_gated_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "qwen_linear_attention_prepare": {
   "description": "Qwen linear-attention QKV split, Q/K L2 normalization, head repeat, and decay/beta preparation",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "mixed",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "a_projection",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "b_projection",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "packed_parameters",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "query",
     "type": "storage"
    },
    {
     "index": 6,
     "name": "key",
     "type": "storage"
    },
    {
     "index": 7,
     "name": "value",
     "type": "storage"
    },
    {
     "index": 8,
     "name": "log_decay",
     "type": "storage"
    },
    {
     "index": 9,
     "name": "beta",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 48,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_key_heads",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "num_value_heads",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "key_dim",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "value_dim",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "conv_size",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "query_size",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "key_size",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "value_size",
      "type": "u32",
      "offset": 32
     },
     {
      "name": "repeat_factor",
      "type": "u32",
      "offset": 36
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 40
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 44
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "qwen_linear_attention_prepare.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "paired_beta": {
     "wgsl": "qwen_linear_attention_prepare_paired.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "outputDtype": "f32",
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "wgslName": "u",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "b",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "gates",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 80,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "conv_dim",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "conv_kernel_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_v_heads",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "num_k_heads",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "head_k_dim",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "head_v_dim",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "q_size",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "k_size",
        "type": "u32",
        "offset": 32
       },
       {
        "name": "value_dim",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "q_rep",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "norm_mode",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "rms_eps_hi",
        "type": "f32",
        "offset": 48
       },
       {
        "name": "rms_eps_lo",
        "type": "f32",
        "offset": 52
       },
       {
        "name": "qk_eps_hi",
        "type": "f32",
        "offset": 56
       },
       {
        "name": "qk_eps_lo",
        "type": "f32",
        "offset": 60
       },
       {
        "name": "packed_flags",
        "type": "u32",
        "offset": 64
       },
       {
        "name": "b_offset",
        "type": "u32",
        "offset": 68
       },
       {
        "name": "norm_weight_offset",
        "type": "u32",
        "offset": 72
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 76,
        "padding": true
       }
      ]
     },
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "activationComponents": 2,
      "activationElementStrideBytes": 8
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "paired_decay_scale": {
     "wgsl": "qwen_linear_attention_scale_paired.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "outputDtype": "f32",
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "wgslName": "u",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "a_log",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "a",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "dt_bias",
       "type": "read-only-storage"
      },
      {
       "index": 4,
       "name": "gates",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 80,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "conv_dim",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "conv_kernel_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_v_heads",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "num_k_heads",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "head_k_dim",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "head_v_dim",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "q_size",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "k_size",
        "type": "u32",
        "offset": 32
       },
       {
        "name": "value_dim",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "q_rep",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "norm_mode",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "rms_eps_hi",
        "type": "f32",
        "offset": 48
       },
       {
        "name": "rms_eps_lo",
        "type": "f32",
        "offset": 52
       },
       {
        "name": "qk_eps_hi",
        "type": "f32",
        "offset": 56
       },
       {
        "name": "qk_eps_lo",
        "type": "f32",
        "offset": 60
       },
       {
        "name": "packed_flags",
        "type": "u32",
        "offset": 64
       },
       {
        "name": "b_offset",
        "type": "u32",
        "offset": 68
       },
       {
        "name": "norm_weight_offset",
        "type": "u32",
        "offset": 72
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 76,
        "padding": true
       }
      ]
     },
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "activationComponents": 2,
      "activationElementStrideBytes": 8
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "paired_log_decay": {
     "wgsl": "qwen_linear_attention_log_decay_paired.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "outputDtype": "f32",
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "wgslName": "u",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "a",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "dt_bias",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "gates",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 80,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "conv_dim",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "conv_kernel_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_v_heads",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "num_k_heads",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "head_k_dim",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "head_v_dim",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "q_size",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "k_size",
        "type": "u32",
        "offset": 32
       },
       {
        "name": "value_dim",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "q_rep",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "norm_mode",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "rms_eps_hi",
        "type": "f32",
        "offset": 48
       },
       {
        "name": "rms_eps_lo",
        "type": "f32",
        "offset": 52
       },
       {
        "name": "qk_eps_hi",
        "type": "f32",
        "offset": 56
       },
       {
        "name": "qk_eps_lo",
        "type": "f32",
        "offset": 60
       },
       {
        "name": "packed_flags",
        "type": "u32",
        "offset": 64
       },
       {
        "name": "b_offset",
        "type": "u32",
        "offset": 68
       },
       {
        "name": "norm_weight_offset",
        "type": "u32",
        "offset": 72
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 76,
        "padding": true
       }
      ]
     },
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "activationComponents": 2,
      "activationElementStrideBytes": 8
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "paired_decay": {
     "wgsl": "qwen_linear_attention_decay_paired.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "outputDtype": "f32",
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "wgslName": "u",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "gates",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 80,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "conv_dim",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "conv_kernel_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_v_heads",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "num_k_heads",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "head_k_dim",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "head_v_dim",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "q_size",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "k_size",
        "type": "u32",
        "offset": 32
       },
       {
        "name": "value_dim",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "q_rep",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "norm_mode",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "rms_eps_hi",
        "type": "f32",
        "offset": 48
       },
       {
        "name": "rms_eps_lo",
        "type": "f32",
        "offset": 52
       },
       {
        "name": "qk_eps_hi",
        "type": "f32",
        "offset": 56
       },
       {
        "name": "qk_eps_lo",
        "type": "f32",
        "offset": 60
       },
       {
        "name": "packed_flags",
        "type": "u32",
        "offset": 64
       },
       {
        "name": "b_offset",
        "type": "u32",
        "offset": 68
       },
       {
        "name": "norm_weight_offset",
        "type": "u32",
        "offset": 72
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 76,
        "padding": true
       }
      ]
     },
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "activationComponents": 2,
      "activationElementStrideBytes": 8
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "qwen_linear_attention_prepare_backward": {
   "description": "Qwen linear-attention preparation backward for frozen recurrent parameters",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "mixed",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "packed_a_b",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "packed_parameters",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "packed_grad_query_key",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "grad_value",
     "type": "read-only-storage"
    },
    {
     "index": 6,
     "name": "packed_grad_decay_beta",
     "type": "read-only-storage"
    },
    {
     "index": 7,
     "name": "grad_mixed",
     "type": "storage"
    },
    {
     "index": 8,
     "name": "grad_a",
     "type": "storage"
    },
    {
     "index": 9,
     "name": "grad_b",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 48,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_key_heads",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "num_value_heads",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "key_dim",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "value_dim",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "conv_size",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "query_size",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "key_size",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "value_size",
      "type": "u32",
      "offset": 32
     },
     {
      "name": "repeat_factor",
      "type": "u32",
      "offset": 36
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 40
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 44
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/qwen_linear_attention_prepare_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "gated_rmsnorm": {
   "description": "Gated RMSNorm forward for Qwen linear attention",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "gate",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "weight",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "rows",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "width",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 12
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "gated_rmsnorm.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "causal_conv1d_silu": {
   "description": "Causal depthwise Conv1D plus SiLU forward for Qwen linear attention",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "channels",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "kernel_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 12
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "causal_conv1d_silu.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "gated_delta_recurrent_checkpoint_forward": {
   "description": "Bounded checkpoint gated-delta recurrent forward",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "query_key",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "value",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "decay_beta",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "initial_state",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "current_state",
     "type": "storage"
    },
    {
     "index": 6,
     "name": "checkpoints",
     "type": "storage"
    },
    {
     "index": 7,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 48,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "total_tokens",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "token_offset",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "key_dim",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "value_dim",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "checkpoint_interval",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "checkpoint_count",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "query_scale",
      "type": "f32",
      "offset": 32
     },
     {
      "name": "initial_state_offset",
      "type": "u32",
      "offset": 36
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 40
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 44
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/gated_delta_recurrent_checkpoint_forward.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "matmul": {
   "description": "Matrix multiplication kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "A",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "B",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "C",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "M",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "N",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "K",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "alpha",
      "type": "f32",
      "offset": 12
     },
     {
      "name": "num_blocks_per_row",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "q4_0_cooperative": {
     "wgsl": "matmul_q4_0.wgsl",
     "entryPoint": "cooperative",
     "workgroup": [128,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_0",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 18,
      "QUANT_FORMAT": 0
     },
     "variantMetadata": {
      "q40Geometry": "cooperative",
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4_1_cooperative": {
     "wgsl": "matmul_q4_0.wgsl",
     "entryPoint": "cooperative",
     "workgroup": [128,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_1",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 20,
      "QUANT_FORMAT": 1
     },
     "variantMetadata": {
      "q40Geometry": "cooperative",
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q5_0_cooperative": {
     "wgsl": "matmul_q4_0.wgsl",
     "entryPoint": "cooperative",
     "workgroup": [128,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q5_0",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 22,
      "QUANT_FORMAT": 4
     },
     "variantMetadata": {
      "q40Geometry": "cooperative",
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q6k_cooperative": {
     "wgsl": "matmul_q4_0.wgsl",
     "entryPoint": "cooperative",
     "workgroup": [128,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q6k",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 256,
      "BLOCK_BYTES": 210,
      "QUANT_FORMAT": 3
     },
     "variantMetadata": {
      "q40Geometry": "cooperative",
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q8_0_cooperative": {
     "wgsl": "matmul_q4_0.wgsl",
     "entryPoint": "cooperative",
     "workgroup": [128,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q8_0",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 34,
      "QUANT_FORMAT": 2
     },
     "variantMetadata": {
      "q40Geometry": "cooperative",
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4_0_pair": {
     "wgsl": "matmul_gguf_pair_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_0",
     "outputDtype": "f32",
     "sharedMemory": 2048,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "ROWS": 1,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 18,
      "QUANT_FORMAT": 0
     },
     "variantMetadata": {
      "q40Geometry": "pair",
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4_0_pair_rows2": {
     "wgsl": "matmul_gguf_pair_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_0",
     "outputDtype": "f32",
     "sharedMemory": 2048,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "ROWS": 2,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 18,
      "QUANT_FORMAT": 0
     },
     "variantMetadata": {
      "q40Geometry": "pair",
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4_0_pair_rows4": {
     "wgsl": "matmul_gguf_pair_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_0",
     "outputDtype": "f32",
     "sharedMemory": 2048,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "ROWS": 4,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 18,
      "QUANT_FORMAT": 0
     },
     "variantMetadata": {
      "q40Geometry": "pair",
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q8_0_pair": {
     "wgsl": "matmul_gguf_pair_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q8_0",
     "outputDtype": "f32",
     "sharedMemory": 2048,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "ROWS": 1,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 34,
      "QUANT_FORMAT": 2
     },
     "variantMetadata": {
      "q40Geometry": "pair",
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q6k_pair": {
     "wgsl": "matmul_gguf_pair_f32.wgsl",
     "entryPoint": "main_q6k",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q6k",
     "outputDtype": "f32",
     "sharedMemory": 2048,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "ROWS": 4,
      "BLOCK_VALUES": 256,
      "BLOCK_BYTES": 210,
      "QUANT_FORMAT": 3
     },
     "variantMetadata": {
      "q40Geometry": "pair",
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "fp8_e4m3fn_f32": {
     "wgsl": "matmul_fp8.wgsl",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "requiredWgslFeatures": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "block_n",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "block_k",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "blocks_k",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "block_words",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "weightDtype": "fp8e4",
     "outputDtype": "f32",
     "sharedMemory": 0,
     "variantMetadata": {
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null],
      "workgroupStorageBytesPerInvocation": 4
     },
     "wgslOverrides": {
      "WORKGROUP_SIZE": 64,
      "E4M3FN": true
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#fp8Variant"],
      "wgslOnDisk": true
     }
    },
    "fp8_e5m2_f32": {
     "wgsl": "matmul_fp8.wgsl",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "requiredWgslFeatures": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "block_n",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "block_k",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "blocks_k",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "block_words",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "weightDtype": "fp8e5",
     "outputDtype": "f32",
     "sharedMemory": 0,
     "variantMetadata": {
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null],
      "workgroupStorageBytesPerInvocation": 4
     },
     "wgslOverrides": {
      "WORKGROUP_SIZE": 64,
      "E4M3FN": false
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#fp8Variant"],
      "wgslOnDisk": true
     }
    },
    "w8a8_portable": {
     "wgsl": "matmul_w8a8.wgsl",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "requiredWgslFeatures": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "activations",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      },
      {
       "index": 4,
       "name": "status",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 16,
      "fields": [
       {
        "name": "rows",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "columns",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "inner",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "row_words",
        "type": "u32",
        "offset": 12
       }
      ]
     },
     "weightDtype": "w8a8",
     "outputDtype": "i32",
     "variantMetadata": {
      "dispatchGeometry": "linear-output-workgroup",
      "mechanismKernels": [
       {
        "operation": "w8a8_quantize",
        "variant": "f32"
       },
       {
        "operation": "w8a8_rescale",
        "variant": "activation"
       },
       {
        "operation": "w8a8_rescale",
        "variant": "weight"
       }
      ]
     },
     "wgslOverrides": {
      "WORKGROUP_SIZE": 64
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["gemma3/gemma-3-270m-it-w8a8-ehf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "w8a8_packed": {
     "wgsl": "matmul_w8a8_packed.wgsl",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "activations",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      },
      {
       "index": 4,
       "name": "status",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 16,
      "fields": [
       {
        "name": "rows",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "columns",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "inner",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "row_words",
        "type": "u32",
        "offset": 12
       }
      ]
     },
     "weightDtype": "w8a8",
     "outputDtype": "i32",
     "variantMetadata": {
      "dispatchGeometry": "linear-output-workgroup",
      "mechanismKernels": [
       {
        "operation": "w8a8_quantize",
        "variant": "f32"
       },
       {
        "operation": "w8a8_rescale",
        "variant": "activation"
       },
       {
        "operation": "w8a8_rescale",
        "variant": "weight"
       }
      ]
     },
     "wgslOverrides": {
      "WORKGROUP_SIZE": 64
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "w8a8_packed_cooperative": {
     "wgsl": "matmul_w8a8_packed_cooperative.wgsl",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "activations",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      },
      {
       "index": 4,
       "name": "status",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 16,
      "fields": [
       {
        "name": "rows",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "columns",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "inner",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "row_words",
        "type": "u32",
        "offset": 12
       }
      ]
     },
     "weightDtype": "w8a8",
     "outputDtype": "i32",
     "variantMetadata": {
      "dispatchGeometry": "row-column-block",
      "mechanismKernels": [
       {
        "operation": "w8a8_quantize",
        "variant": "f32"
       },
       {
        "operation": "w8a8_rescale",
        "variant": "activation"
       },
       {
        "operation": "w8a8_rescale",
        "variant": "weight"
       }
      ],
      "colsPerWg": 4
     },
     "wgslOverrides": {
      "WORKGROUP_SIZE": 64,
      "LANES_PER_OUTPUT": 16
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "f16": {
     "wgsl": "matmul_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [16,16,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "weightDtype": "f16",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#matmulKernel"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 20,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ],
     "variantMetadata": {
      "dispatchGeometry": "matrix-workgroup",
      "colsPerThread": 1
     }
    },
    "f16_vec4": {
     "wgsl": "matmul_f16.wgsl",
     "entryPoint": "main_vec4",
     "workgroup": [16,16,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "weightDtype": "f16",
     "variantMetadata": {
      "colsPerThread": 4,
      "dispatchGeometry": "matrix-workgroup"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#matmulKernel"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 20,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "f16_tiled": {
     "wgsl": "matmul_f16_tiled.wgsl",
     "entryPoint": "main",
     "workgroup": [16,16,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "weightDtype": "f16",
     "variantMetadata": {
      "tileM": 64,
      "tileN": 64,
      "dispatchGeometry": "matrix-tile"
     },
     "description": "Register-tiled prefill matmul (transpose_b=1 row-major B): 4x4 thread tile, 64x64 workgroup tile, 16x outputs/workgroup vs base",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#matmulKernel"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 20,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "f16w_f32a": {
     "wgsl": "matmul_f16w_f32a.wgsl",
     "entryPoint": "main",
     "workgroup": [16,16,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "weightDtype": "f16",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "amplify/amplify-120m-f16-af32",
       "diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16",
       "embeddinggemma/google-embeddinggemma-300m-q4k-ehf16-af32",
       "gemma3/translategemma-4b-1b-enes-q4k-ehf16-af32",
       "gemma3/translategemma-4b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16",
       "gemma4/gemma-4-12b-it-text-w4a16-ct-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32-int4ple",
       "gemma4/gemma-4-moe-q4k-ehf16-af32",
       "gpt-oss-20b-f16-xmxfp4",
       "janus/janus-pro-1b-text-q4k-ehaf16",
       "minicpm/minicpm4-0-5b-f16-af32",
       "muse-glimmer/muse-glimmer-30b-text-f16-af32",
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-5-0-8b-q4k-ehaf16",
       "qwen3/qwen-3-5-2b-q4k-ehaf16",
       "qwen3/qwen-3-5-9b-f16-af32",
       "qwen3/qwen-3-5-9b-q4k-ehaf16",
       "qwen3/qwen-3-6-27b-q4k-eaf16",
       "qwen3/qwen-3-6-27b-q4k-ehaf16",
       "qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32",
       "qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32",
       "qwen3/qwen-3-embedding-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32",
       "qwen3/qwen3.8-27b-text-f16-af32",
       "qwen3/qwen3.8-27b-text-q4k-ehaf16"
      ],
      "ruleChains": ["matmul.rules.json#matmulKernel"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 20,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ],
     "variantMetadata": {
      "dispatchGeometry": "matrix-workgroup",
      "colsPerThread": 1
     }
    },
    "bf16w_f32a": {
     "wgsl": "matmul_bf16w_f32a.wgsl",
     "entryPoint": "main",
     "workgroup": [16,16,1],
     "requires": [],
     "outputDtype": "f32",
     "weightDtype": "bf16",
     "description": "Packed BF16 checkpoint weights expanded to F32 at use with F32 activations and output.",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["muse-glimmer/muse-glimmer-30b-text-bf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 20,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ],
     "variantMetadata": {
      "dispatchGeometry": "matrix-workgroup",
      "colsPerThread": 1
     }
    },
    "f16w_f32a_tiled": {
     "wgsl": "matmul_f16w_f32a_tiled.wgsl",
     "entryPoint": "main",
     "workgroup": [16,16,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "weightDtype": "f16",
     "variantMetadata": {
      "tileM": 64,
      "tileN": 64,
      "dispatchGeometry": "matrix-tile"
     },
     "description": "Register-tiled prefill matmul: f32 activations, f16 weights, f32 output. 4x4 thread tile, 64x64 workgroup tile.",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "gemma3/gemma-3-1b-it-f16-af32",
       "gemma3/gemma-3-1b-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-f16-af32",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af16",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-w8a8-ehf16-af32",
       "glmocr/glm-ocr-f16-af32",
       "lfm2/lfm2.5-1.2b-instruct-q4k-ehf16-af32",
       "qwen3/qwen-3-embedding-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32",
       "runtime/profiles/qwen-3-5-0-8b-f16-m3"
      ],
      "ruleChains": ["matmul.rules.json#matmulKernel"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 20,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "gemv": {
     "wgsl": "matmul_gemv.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "weightDtype": "f16",
     "description": "Optimized GEMV for M=1 decode: uses shared memory for A vector",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#gemvVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 20,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ],
     "variantMetadata": {
      "dispatchGeometry": "column"
     }
    },
    "gemv_f16a": {
     "wgsl": "matmul_gemv_f16a.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "weightDtype": "f16",
     "description": "Optimized GEMV for M=1 decode with f16 activations + f16 output",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#gemvVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 20,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ],
     "variantMetadata": {
      "dispatchGeometry": "column"
     }
    },
    "gemv_subgroup": {
     "wgsl": "matmul_gemv_subgroup.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f32",
     "weightDtype": "f16",
     "variantMetadata": {
      "colsPerWg": 4,
      "dispatchGeometry": "linear-column-block"
     },
     "description": "Subgroup-optimized GEMV - 1.5x faster using subgroupAdd",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#gemvPathVariant","matmul.rules.json#gemvVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "gemv_subgroup_bf16w": {
     "wgsl": "matmul_gemv_subgroup_bf16w.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "outputDtype": "f32",
     "weightDtype": "bf16",
     "variantMetadata": {
      "colsPerWg": 4,
      "dispatchGeometry": "linear-column-block"
     },
     "description": "Subgroup GEMV over packed BF16 checkpoint weights with F32 activations and output.",
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "gemv_subgroup_bf16w_vec4": {
     "wgsl": "matmul_gemv_subgroup_bf16w.wgsl",
     "entryPoint": "main_vec4",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "outputDtype": "f32",
     "weightDtype": "bf16",
     "variantMetadata": {
      "colsPerWg": 4,
      "dispatchGeometry": "linear-column-block"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["muse-glimmer/muse-glimmer-30b-text-bf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "gemv_subgroup_bf16w_multicol": {
     "wgsl": "matmul_gemv_subgroup_bf16w.wgsl",
     "entryPoint": "main_multicol",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "outputDtype": "f32",
     "weightDtype": "bf16",
     "variantMetadata": {
      "colsPerWg": 64,
      "dispatchGeometry": "linear-column-block"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["muse-glimmer/muse-glimmer-30b-text-bf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "gemv_subgroup_f16a": {
     "wgsl": "matmul_gemv_subgroup_f16a.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f16",
     "weightDtype": "f16",
     "variantMetadata": {
      "colsPerWg": 4,
      "dispatchGeometry": "linear-column-block"
     },
     "description": "Subgroup-optimized GEMV with f16 activations + f16 output",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#gemvPathVariant","matmul.rules.json#gemvVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "gemv_subgroup_vec4": {
     "wgsl": "matmul_gemv_subgroup.wgsl",
     "entryPoint": "main_vec4",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f32",
     "weightDtype": "f16",
     "variantMetadata": {
      "colsPerWg": 4,
      "dispatchGeometry": "linear-column-block"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16",
       "forge/lineage/qwen3.8-27b",
       "gemma3/gemma-3-1b-it-f16-af32",
       "gemma3/gemma-3-1b-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-f16-af32",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af16",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-w8a8-ehf16-af32",
       "gemma3/translategemma-4b-1b-enes-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16",
       "gemma4/gemma-4-12b-it-text-w4a16-ct-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32-int4ple",
       "gemma4/gemma-4-moe-q4k-ehf16-af32",
       "glmocr/glm-ocr-f16-af32",
       "gpt-oss-20b-f16-xmxfp4",
       "janus/janus-pro-1b-text-q4k-ehaf16",
       "lfm2/lfm2.5-1.2b-instruct-q4k-ehf16-af32",
       "minicpm/minicpm4-0-5b-f16-af32",
       "muse-glimmer/muse-glimmer-30b-text-f16-af32",
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-5-9b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32",
       "qwen3/qwen3.8-27b-text-f16-af32"
      ],
      "ruleChains": ["matmul.rules.json#gemvVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "gemv_subgroup_vec4_f16a": {
     "wgsl": "matmul_gemv_subgroup_f16a.wgsl",
     "entryPoint": "main_vec4",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f16",
     "weightDtype": "f16",
     "variantMetadata": {
      "colsPerWg": 4,
      "dispatchGeometry": "linear-column-block"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#gemvVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "gemv_subgroup_cols8_f16a": {
     "wgsl": "matmul_gemv_subgroup_f16a.wgsl",
     "entryPoint": "main_cols8",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f16",
     "weightDtype": "f16",
     "variantMetadata": {
      "colsPerWg": 8,
      "dispatchGeometry": "linear-column-block"
     },
     "description": "Subgroup GEMV with 8 columns per workgroup (f16 activations/output)",
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "gemv_subgroup_vec4_cols8_f16a": {
     "wgsl": "matmul_gemv_subgroup_f16a.wgsl",
     "entryPoint": "main_vec4_cols8",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f16",
     "weightDtype": "f16",
     "variantMetadata": {
      "colsPerWg": 8,
      "dispatchGeometry": "linear-column-block"
     },
     "description": "Subgroup GEMV vec4 with 8 columns per workgroup (f16 activations/output)",
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "gemv_subgroup_multicol": {
     "wgsl": "matmul_gemv_subgroup.wgsl",
     "entryPoint": "main_multicol",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f32",
     "weightDtype": "f16",
     "variantMetadata": {
      "colsPerWg": 8,
      "dispatchGeometry": "linear-column-block"
     },
     "description": "Multi-column GEMV for large vocab (LM head F16) - 32 columns per workgroup",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16",
       "gemma3/gemma-3-1b-it-f16-af32",
       "gemma3/gemma-3-1b-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-f16-af32",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af16",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-w8a8-ehf16-af32",
       "gemma3/translategemma-4b-1b-enes-q4k-ehf16-af32",
       "gemma3/translategemma-4b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16",
       "gemma4/gemma-4-12b-it-text-w4a16-ct-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32-int4ple",
       "gemma4/gemma-4-moe-q4k-ehf16-af32",
       "glmocr/glm-ocr-f16-af32",
       "gpt-oss-20b-f16-xmxfp4",
       "janus/janus-pro-1b-text-q4k-ehaf16",
       "lfm2/lfm2.5-1.2b-instruct-q4k-ehf16-af32",
       "minicpm/minicpm4-0-5b-f16-af32",
       "muse-glimmer/muse-glimmer-30b-text-f16-af32",
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-5-2b-q4k-ehaf16",
       "qwen3/qwen-3-5-9b-f16-af32",
       "qwen3/qwen-3-5-9b-q4k-ehaf16",
       "qwen3/qwen-3-6-27b-q4k-eaf16",
       "qwen3/qwen-3-6-27b-q4k-ehaf16",
       "qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32",
       "qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32",
       "qwen3/qwen3.8-27b-text-f16-af32",
       "qwen3/qwen3.8-27b-text-q4k-ehaf16",
       "runtime/profiles/qwen-3-5-0-8b-f16-m3"
      ],
      "ruleChains": [
       "matmul.rules.json#denseDecodeCandidate",
       "matmul.rules.json#gemvPathVariant",
       "matmul.rules.json#gemvVariant"
      ],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "gemv_subgroup_multicol_f16a": {
     "wgsl": "matmul_gemv_subgroup_f16a.wgsl",
     "entryPoint": "main_multicol",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f16",
     "weightDtype": "f16",
     "variantMetadata": {
      "colsPerWg": 8,
      "dispatchGeometry": "linear-column-block"
     },
     "description": "Multi-column GEMV for large vocab (LM head F16) - f16 activations/output",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-5-0-8b-q4k-ehaf16"],
      "ruleChains": ["matmul.rules.json#gemvPathVariant","matmul.rules.json#gemvVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "gemv_subgroup_cols64": {
     "wgsl": "matmul_gemv_subgroup.wgsl",
     "entryPoint": "main_cols64",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f32",
     "weightDtype": "f16",
     "variantMetadata": {
      "colsPerWg": 64,
      "dispatchGeometry": "linear-column-block"
     },
     "description": "Cooperative 4-thread GEMV - 64 columns per workgroup, 4 threads per column (experimental)",
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "gemv_subgroup_cols64_f16a": {
     "wgsl": "matmul_gemv_subgroup_f16a.wgsl",
     "entryPoint": "main_cols64",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f16",
     "weightDtype": "f16",
     "variantMetadata": {
      "colsPerWg": 64,
      "dispatchGeometry": "linear-column-block"
     },
     "description": "Cooperative 4-thread GEMV f16a - 64 columns per workgroup, 4 threads per column (experimental)",
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "gemv_subgroup_vec4_cols64_f16a": {
     "wgsl": "matmul_gemv_subgroup_f16a.wgsl",
     "entryPoint": "main_vec4_cols64",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f16",
     "weightDtype": "f16",
     "variantMetadata": {
      "colsPerWg": 64,
      "dispatchGeometry": "linear-column-block"
     },
     "description": "Cooperative 4-thread GEMV f16a vec4 - 64 columns per workgroup with vec4 loads (experimental)",
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "q4_fused_f16a": {
     "wgsl": "fused_matmul_q4_f16a.wgsl",
     "entryPoint": "main_f16a",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f16",
     "weightDtype": "q4k",
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage",
       "wgslName": "C_f16"
      }
     ],
     "variantMetadata": {
      "dispatchGeometry": "column"
     }
    },
    "litert_int4_multicol_f16a": {
     "wgsl": "fused_matmul_litert_int4_f16a.wgsl",
     "entryPoint": "main_multicol_f16a",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "weightDtype": "litert_int4",
     "variantMetadata": {
      "colsPerWg": 8,
      "dispatchGeometry": "row-column-block"
     },
     "description": "LiteRT fixed-affine INT4 batched matmul with f16 activations and f16 output; keeps Gemma 4 split-package weights packed on GPU",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#litertInt4FusedVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_words"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C_f16"
      }
     ]
    },
    "litert_int4_multicol_f16a_f32out": {
     "wgsl": "fused_matmul_litert_int4_f16a_f32out.wgsl",
     "entryPoint": "main_multicol_f16a_f32out",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "weightDtype": "litert_int4",
     "variantMetadata": {
      "colsPerWg": 8,
      "dispatchGeometry": "row-column-block"
     },
     "description": "LiteRT fixed-affine INT4 batched matmul with f16 activations and f32 output; keeps Gemma 4 split-package weights packed on GPU",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#litertInt4FusedVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_words"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C_f32"
      }
     ]
    },
    "litert_int4_multicol_f32a_f32out": {
     "wgsl": "fused_matmul_litert_int4_f32a_f32out.wgsl",
     "entryPoint": "main_multicol_f32a_f32out",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "weightDtype": "litert_int4",
     "variantMetadata": {
      "colsPerWg": 8,
      "dispatchGeometry": "row-column-block"
     },
     "description": "LiteRT fixed-affine INT4 batched matmul with f32 activations and f32 output; keeps Gemma 4 split-package logits packed on GPU",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#litertInt4FusedVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_words"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C_f32"
      }
     ]
    },
    "w4a16_multicol_f16a": {
     "wgsl": "fused_matmul_w4a16_f16a.wgsl",
     "entryPoint": "main_multicol_f16a",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "weightDtype": "w4a16",
     "variantMetadata": {
      "colsPerWg": 8,
      "dispatchGeometry": "row-column-block"
     },
     "description": "Compressed-tensors W4A16 packed matmul with f16 activations and f16 output; keeps QAT weights packed on GPU with per-row-group scales",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#w4a16FusedVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_words"
      },
      {
       "index": 3,
       "name": "scales",
       "type": "read-only-storage",
       "wgslName": "S_words"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage",
       "wgslName": "C_f16"
      }
     ]
    },
    "w4a16_multicol_f16a_f32out": {
     "wgsl": "fused_matmul_w4a16_f16a_f32out.wgsl",
     "entryPoint": "main_multicol_f16a_f32out",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "weightDtype": "w4a16",
     "variantMetadata": {
      "colsPerWg": 8,
      "dispatchGeometry": "row-column-block"
     },
     "description": "Compressed-tensors W4A16 packed matmul with f16 activations and f32 output; keeps QAT weights packed on GPU with per-row-group scales",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#w4a16FusedVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_words"
      },
      {
       "index": 3,
       "name": "scales",
       "type": "read-only-storage",
       "wgslName": "S_words"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage",
       "wgslName": "C_f32"
      }
     ]
    },
    "w4a16_batched_f16a": {
     "wgsl": "fused_matmul_w4a16_batched_f16a.wgsl",
     "entryPoint": "main_batched_f16a",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "weightDtype": "w4a16",
     "variantMetadata": {
      "colsPerWg": 8,
      "tileM": 4,
      "dispatchGeometry": "row-column-tile"
     },
     "description": "Compressed-tensors W4A16 packed batched prefill matmul with f16 activations and f16 output; keeps QAT weights packed on GPU with per-row-group scales",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#w4a16FusedVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_words"
      },
      {
       "index": 3,
       "name": "scales",
       "type": "read-only-storage",
       "wgslName": "S_words"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage",
       "wgslName": "C_f16"
      }
     ]
    },
    "w4a16_batched_f16a_f32out": {
     "wgsl": "fused_matmul_w4a16_batched_f16a_f32out.wgsl",
     "entryPoint": "main_batched_f16a_f32out",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "weightDtype": "w4a16",
     "variantMetadata": {
      "colsPerWg": 8,
      "tileM": 4,
      "dispatchGeometry": "row-column-tile"
     },
     "description": "Compressed-tensors W4A16 packed batched prefill matmul with f16 activations and f32 output; keeps QAT weights packed on GPU with per-row-group scales",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#w4a16FusedVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_words"
      },
      {
       "index": 3,
       "name": "scales",
       "type": "read-only-storage",
       "wgslName": "S_words"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage",
       "wgslName": "C_f32"
      }
     ]
    },
    "q4_fused_batched": {
     "wgsl": "fused_matmul_q4_batched.wgsl",
     "entryPoint": "main_batched",
     "workgroup": [64,4,1],
     "requires": ["subgroups"],
     "outputDtype": "f32",
     "weightDtype": "q4k",
     "variantMetadata": {
      "tileM": 4,
      "dispatchGeometry": "column-row-tile"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#q4kFusedVariant"],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "q4_fused_batched_multicol_shared": {
     "wgsl": "fused_matmul_q4_batched_multicol_shared.wgsl",
     "entryPoint": "main",
     "workgroup": [32,4,1],
     "requires": [],
     "outputDtype": "f32",
     "weightDtype": "q4k",
     "variantMetadata": {
      "tileM": 4,
      "colsPerWg": 8,
      "dispatchGeometry": "row-column-tile"
     },
     "description": "Shared-A Q4_K prefill matmul: 4 rows x 8 columns per workgroup while preserving block/subblock traversal",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16",
       "gemma3/gemma-3-1b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32-int4ple",
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-5-0-8b-q4k-ehaf16",
       "qwen3/qwen-3-5-2b-q4k-ehaf16",
       "qwen3/qwen-3-5-9b-q4k-ehaf16",
       "qwen3/qwen-3-6-27b-q4k-eaf16",
       "qwen3/qwen-3-6-27b-q4k-ehaf16",
       "qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32",
       "qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32",
       "qwen3/qwen3.8-27b-text-f16-af32",
       "qwen3/qwen3.8-27b-text-q4k-ehaf16"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "q4_fused_multicol": {
     "wgsl": "fused_matmul_q4.wgsl",
     "entryPoint": "main_multicol",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "outputDtype": "f32",
     "weightDtype": "q4k",
     "variantMetadata": {
      "colsPerWg": 32,
      "dispatchGeometry": "column-block"
     },
     "description": "Multi-column GEMV for large vocab (LM head) - 32 columns per workgroup",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "qwen3/qwen-3-5-0-8b-q4k-ehaf16",
       "qwen3/qwen-3-5-2b-q4k-ehaf16",
       "qwen3/qwen-3-5-9b-q4k-ehaf16",
       "qwen3/qwen-3-6-27b-q4k-eaf16",
       "qwen3/qwen-3-6-27b-q4k-ehaf16",
       "qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32",
       "qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32",
       "qwen3/qwen3.8-27b-text-f16-af32",
       "qwen3/qwen3.8-27b-text-q4k-ehaf16"
      ],
      "ruleChains": ["matmul.rules.json#q4kFusedVariant"],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "q4_fused_gemv": {
     "wgsl": "fused_matmul_q4.wgsl",
     "entryPoint": "main_gemv",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "outputDtype": "f32",
     "weightDtype": "q4k",
     "variantMetadata": {
      "colsPerWg": 32,
      "dispatchGeometry": "column-block"
     },
     "description": "Optimised fused Q4K GEMV - shared-A cooperative load + fast nibble extraction for maximum M=1 decode throughput without f16 precision loss",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple",
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-5-0-8b-q4k-ehaf16",
       "qwen3/qwen-3-5-2b-q4k-ehaf16",
       "qwen3/qwen-3-5-9b-q4k-ehaf16",
       "qwen3/qwen-3-6-27b-q4k-eaf16",
       "qwen3/qwen-3-6-27b-q4k-ehaf16",
       "qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32",
       "qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32",
       "qwen3/qwen-3-embedding-0-6b-q4k-ehf16-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32",
       "qwen3/qwen3.8-27b-text-f16-af32",
       "qwen3/qwen3.8-27b-text-q4k-ehaf16"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "q4_fused_multicol_f16": {
     "wgsl": "fused_matmul_q4_multicol_f16.wgsl",
     "entryPoint": "main_multicol_f16",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f16",
     "weightDtype": "q4k",
     "variantMetadata": {
      "colsPerWg": 32,
      "dispatchGeometry": "column-block"
     },
     "description": "Multi-column GEMV for large vocab (LM head) - F16 output",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#q4kFusedVariant"],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage",
       "wgslName": "C_f16"
      }
     ]
    },
    "q4_fused_multicol_f16a": {
     "wgsl": "fused_matmul_q4_multicol_f16a.wgsl",
     "entryPoint": "main_multicol_f16a",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f16",
     "weightDtype": "q4k",
     "variantMetadata": {
      "colsPerWg": 32,
      "dispatchGeometry": "column-block"
     },
     "description": "Multi-column GEMV for large vocab (LM head) - F16 input/output",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16"],
      "ruleChains": ["matmul.rules.json#q4kFusedVariant"],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage",
       "wgslName": "C_f16"
      }
     ]
    },
    "q4_fused_multicol_f16a_f32acc": {
     "wgsl": "fused_matmul_q4_multicol_f16a_f32acc.wgsl",
     "entryPoint": "main_multicol_f16a_f32acc",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f16",
     "weightDtype": "q4k",
     "variantMetadata": {
      "colsPerWg": 32,
      "dispatchGeometry": "column-block"
     },
     "description": "F16 IO + F32 accumulator twin of q4_fused_multicol_f16a. Closes the f16-accum decode-gemv gap on AMD RDNA3 where f32 accumulation outperforms f16 by ~60%.",
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage",
       "wgslName": "C_f16"
      }
     ]
    },
    "q4_fused_subgroup1": {
     "wgsl": "fused_matmul_q4_subgroup.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "outputDtype": "f32",
     "weightDtype": "q4k",
     "variantMetadata": {
      "colsPerWg": 256,
      "dispatchGeometry": "row-column-block",
      "subgroupPartitionLanes": 1
     },
     "description": "Q4_K GEMV with 1 contiguous subgroup lanes per row.",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "runtime/profiles/qwen-3-5-0-8b-vulkan-subgroup8",
       "runtime/profiles/qwen3-8-27b-orin-projections"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "COLS_PER_WG": 256,
      "THREADS_PER_COL_GEMV": 1
     }
    },
    "q4_fused_subgroup2": {
     "wgsl": "fused_matmul_q4_subgroup.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "outputDtype": "f32",
     "weightDtype": "q4k",
     "variantMetadata": {
      "colsPerWg": 128,
      "dispatchGeometry": "row-column-block",
      "subgroupPartitionLanes": 2
     },
     "description": "Q4_K GEMV with 2 contiguous subgroup lanes per row.",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "runtime/profiles/qwen-3-5-0-8b-vulkan-subgroup8",
       "runtime/profiles/qwen3-8-27b-orin-projections"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "COLS_PER_WG": 128,
      "THREADS_PER_COL_GEMV": 2
     }
    },
    "q4_fused_subgroup4": {
     "wgsl": "fused_matmul_q4_subgroup.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "outputDtype": "f32",
     "weightDtype": "q4k",
     "variantMetadata": {
      "colsPerWg": 64,
      "dispatchGeometry": "row-column-block",
      "subgroupPartitionLanes": 4
     },
     "description": "Q4_K GEMV with 4 contiguous subgroup lanes per row.",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "runtime/profiles/qwen-3-5-0-8b-vulkan-subgroup8",
       "runtime/profiles/qwen3-8-27b-orin-projections"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "COLS_PER_WG": 64,
      "THREADS_PER_COL_GEMV": 4
     }
    },
    "q4_fused_subgroup8": {
     "wgsl": "fused_matmul_q4_subgroup.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "outputDtype": "f32",
     "weightDtype": "q4k",
     "variantMetadata": {
      "colsPerWg": 32,
      "dispatchGeometry": "row-column-block",
      "subgroupPartitionLanes": 8
     },
     "description": "Q4_K GEMV with 8 contiguous subgroup lanes per row.",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "runtime/profiles/qwen-3-5-0-8b-vulkan-subgroup8",
       "runtime/profiles/qwen3-8-27b-orin-projections"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "COLS_PER_WG": 32,
      "THREADS_PER_COL_GEMV": 8
     }
    },
    "q4_fused_subgroup16": {
     "wgsl": "fused_matmul_q4_subgroup.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "outputDtype": "f32",
     "weightDtype": "q4k",
     "variantMetadata": {
      "colsPerWg": 16,
      "dispatchGeometry": "row-column-block",
      "subgroupPartitionLanes": 16
     },
     "description": "Q4_K GEMV with 16 contiguous subgroup lanes per row.",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "runtime/profiles/qwen-3-5-0-8b-vulkan-subgroup8",
       "runtime/profiles/qwen3-8-27b-orin-projections"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "COLS_PER_WG": 16,
      "THREADS_PER_COL_GEMV": 16
     }
    },
    "q4_fused_subgroup32": {
     "wgsl": "fused_matmul_q4_subgroup.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "outputDtype": "f32",
     "weightDtype": "q4k",
     "variantMetadata": {
      "colsPerWg": 8,
      "dispatchGeometry": "row-column-block",
      "subgroupPartitionLanes": 32
     },
     "description": "Q4_K GEMV with 32 contiguous subgroup lanes per row.",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "runtime/profiles/qwen-3-5-0-8b-vulkan-subgroup8",
       "runtime/profiles/qwen3-8-27b-orin-projections"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "COLS_PER_WG": 8,
      "THREADS_PER_COL_GEMV": 32
     }
    },
    "q4_fused_metal_simd16": {
     "wgsl": "fused_matmul_q4_metal_simd16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "outputDtype": "f32",
     "weightDtype": "q4k",
     "variantMetadata": {
      "colsPerWg": 16,
      "dispatchGeometry": "column-block"
     },
     "description": "Metal Q4_K GEMV with one 16-lane subgroup partition per output row.",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen-3-5-2b-metal-throughput"],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "q4_fused_batched_f16": {
     "wgsl": "fused_matmul_q4_batched_f16.wgsl",
     "entryPoint": "main_batched_f16",
     "workgroup": [64,4,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f16",
     "weightDtype": "q4k",
     "variantMetadata": {
      "tileM": 4,
      "dispatchGeometry": "column-row-tile"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#q4kFusedVariant"],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage",
       "wgslName": "C_f16"
      }
     ]
    },
    "q4_fused_batched_f16a": {
     "wgsl": "fused_matmul_q4_batched_f16a.wgsl",
     "entryPoint": "main_batched_f16a",
     "workgroup": [64,4,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f16",
     "weightDtype": "q4k",
     "variantMetadata": {
      "tileM": 4,
      "dispatchGeometry": "column-row-tile"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#q4kFusedVariant"],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage",
       "wgslName": "C_f16"
      }
     ]
    },
    "q4_fused_batched_f16acc_f16a": {
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "num_blocks_per_row",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "wgsl": "fused_matmul_q4_batched_f16acc_f16a.wgsl",
     "entryPoint": "main_batched_f16acc_f16a",
     "workgroup": [256,4,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f16",
     "weightDtype": "q4k",
     "variantMetadata": {
      "tileM": 4,
      "accumDtype": "f16",
      "dispatchGeometry": "column-row-tile-3d"
     },
     "description": "Batched Q4_K prefill matmul with f16 activation input, f16 accumulation, and f16 output for experimental all-f16 execution lanes.",
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage",
       "wgslName": "C_f16"
      }
     ]
    },
    "q4_fused_prefill_tiled_f16": {
     "wgsl": "fused_matmul_q4_prefill_tiled_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [16,16,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "weightDtype": "q4k",
     "variantMetadata": {
      "tileM": 64,
      "colsPerWg": 64,
      "dispatchGeometry": "row-column-tile"
     },
     "description": "Register-tiled Q4_K prefill matmul: 64x64 outputs per WG via 4x4 register tile per thread, amortizing Q4K dequant across 16x the outputs of q4_fused_batched_f16a.",
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "q4_fused_widetile_f16": {
     "wgsl": "fused_matmul_q4_widetile_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "weightDtype": "q4k",
     "variantMetadata": {
      "tileM": 4,
      "colsPerWg": 256,
      "dispatchGeometry": "row-column-tile"
     },
     "description": "WideTile Q4_K prefill matmul (adapted from ORT MatMulNBitsWideTile, MIT licensed). Each thread owns 1 output column × TILE_M rows; register-tiled accumulation. F32 A, Q4_K B (llama.cpp 256-block), F16 C. ~128x fewer WGs than q4_fused_batched_f16 at Gemma-4 prefill shape.",
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "q4_fused_widetile_f16a": {
     "wgsl": "fused_matmul_q4_widetile_f16a.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "weightDtype": "q4k",
     "variantMetadata": {
      "tileM": 4,
      "colsPerWg": 256,
      "dispatchGeometry": "row-column-tile"
     },
     "description": "WideTile Q4_K prefill matmul with f16 activation input and f16 output for execution-v1 f16 activation lanes.",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "q4_fused_widetile_direct": {
     "wgsl": "fused_matmul_q4_widetile_direct.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "weightDtype": "q4k",
     "variantMetadata": {
      "tileM": 4,
      "colsPerWg": 256,
      "dispatchGeometry": "row-column-tile"
     },
     "description": "Q4_K WideTile with direct packed-weight reads and statically indexed row accumulators. Preserves f32 arithmetic; selected only by explicit execution graphs.",
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "runtime/profiles/qwen-3-5-0-8b-metal-parity",
       "runtime/profiles/qwen-3-5-0-8b-metal-throughput",
       "runtime/profiles/qwen-3-5-2b-metal-throughput"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4_fused_widetile_f32": {
     "wgsl": "fused_matmul_q4_widetile_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "weightDtype": "q4k",
     "variantMetadata": {
      "tileM": 4,
      "colsPerWg": 256,
      "dispatchGeometry": "row-column-tile"
     },
     "description": "Q4_K WideTile prefill with f32 activations and output on devices without shader-f16.",
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "runtime/profiles/qwen-3-5-2b-orin-prefill",
       "runtime/profiles/qwen3-8-27b-orin-prefill",
       "runtime/profiles/qwen3-8-27b-orin-projections"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4_fused_widetile": {
     "wgsl": "fused_matmul_q4_widetile.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "weightDtype": "q4k",
     "variantMetadata": {
      "tileM": 4,
      "colsPerWg": 256,
      "dispatchGeometry": "row-column-tile"
     },
     "description": "F32-output twin of q4_fused_widetile_f16. Same WideTile design, f32 output for callers that need it (e.g. FFN gate/up when activationDtype=f32).",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple",
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-5-0-8b-q4k-ehaf16",
       "qwen3/qwen-3-5-2b-q4k-ehaf16",
       "qwen3/qwen-3-5-9b-q4k-ehaf16",
       "qwen3/qwen-3-6-27b-q4k-eaf16",
       "qwen3/qwen-3-6-27b-q4k-ehaf16",
       "qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32",
       "qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32",
       "qwen3/qwen-3-embedding-0-6b-q4k-ehf16-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32",
       "qwen3/qwen3.8-27b-text-f16-af32",
       "qwen3/qwen3.8-27b-text-q4k-ehaf16"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "q4_fused_rmsnorm_widetile": {
     "wgsl": "fused_rmsnorm_q4_widetile.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "weightDtype": "q4k",
     "variantMetadata": {
      "tileM": 4,
      "colsPerWg": 256,
      "dispatchGeometry": "row-column-tile"
     },
     "description": "Fused RMSNorm + Q4_K WideTile matmul. Two-pass: pass 1 computes per-row sum-of-squares across all K; pass 2 reloads A, applies normed*weight + matmul in same tileA buffer. Saves 1 standalone rmsnorm dispatch per fusion point. Bind slot 4 = norm_weight (f32).",
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "num_blocks_per_row",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "eps",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      },
      {
       "index": 4,
       "name": "norm_weight",
       "type": "read-only-storage",
       "wgslName": "norm_weight"
      }
     ]
    },
    "q4_fused_widetile_residual": {
     "wgsl": "fused_matmul_q4_widetile_residual.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "weightDtype": "q4k",
     "variantMetadata": {
      "tileM": 4,
      "colsPerWg": 256,
      "dispatchGeometry": "row-column-tile"
     },
     "description": "WideTile Q4_K matmul fused with residual add in one dispatch. Used at o_proj + attn_residual and ffn_down + ffn_residual call sites to cut 1 dispatch per layer per fusion point (~0.85 ms bubble each).",
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B_q4k"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      },
      {
       "index": 4,
       "name": "residual",
       "type": "read-only-storage",
       "wgslName": "residual"
      }
     ]
    },
    "gemv_f32_subgroup": {
     "wgsl": "matmul_gemv_f32_subgroup.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "outputDtype": "f32",
     "weightDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4
     },
     "variantMetadata": {
      "workgroupPowerOfTwo": false,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null],
      "workgroupStorageBytesPerInvocation": 0,
      "colsPerWg": 4,
      "dispatchGeometry": "linear-column-block"
     },
     "description": "Opt-in full-F32 subgroup GEMV, compact active ranks, four-component arithmetic, exact scalar buffer tails and zero workgroup scratch.",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "runtime/profiles/flash-next-gguf-control-gemv",
       "runtime/profiles/flash-next-gguf-hc-inject-gemv",
       "runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"
      ],
      "ruleChains": ["matmul.rules.json#denseDecodeCandidate"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ],
     "requiredWgslFeatures": ["subgroup_id"],
     "sharedMemory": 0
    },
    "gemv_f32": {
     "wgsl": "matmul_gemv_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [32,4,1],
     "requires": [],
     "outputDtype": "f32",
     "weightDtype": "f32",
     "wgslOverrides": {
      "THREADS_PER_COL": 32,
      "COLS_PER_WG": 4
     },
     "variantMetadata": {
      "workgroupConstants": ["THREADS_PER_COL","COLS_PER_WG",null],
      "workgroupStorageBytesPerInvocation": 4,
      "colsPerWg": 4,
      "dispatchGeometry": "linear-column-block"
     },
     "description": "Opt-in full-F32 single-row GEMV with workgroup reductions, scalar K tails and explicit matrix layout.",
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "f32_compensated": {
     "wgsl": "matmul_compensated_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [16,16,1],
     "requires": [],
     "outputDtype": "f32",
     "weightDtype": "f32",
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 20,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ],
     "variantMetadata": {
      "workgroupConstants": ["TILE_SIZE","TILE_SIZE",null],
      "workgroupStorageBytesPerInvocation": 8,
      "dispatchGeometry": "matrix-workgroup",
      "colsPerThread": 1,
      "numericContract": {
       "activationRepresentation": "single-f32",
       "weightRepresentation": "single-f32",
       "internalAccumulation": "compensated-f32-pair",
       "outputRepresentation": "single-f32",
       "residualRecovery": "integer-significand",
       "roundingBoundary": "compensated-alpha-product-to-f32",
       "range": "finite-operands-and-finite-intermediates; no-extended-exponent"
      }
     },
     "description": "Opt-in single-F32 matmul with compensated internal product, accumulation and alpha scaling.",
     "wgslOverrides": {
      "COMPENSATED_F32": true,
      "TILE_SIZE": 16
     }
    },
    "gemv_f32_compensated": {
     "wgsl": "matmul_gemv_compensated_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [32,4,1],
     "requires": [],
     "outputDtype": "f32",
     "weightDtype": "f32",
     "wgslOverrides": {
      "THREADS_PER_COL": 32,
      "COLS_PER_WG": 4,
      "COMPENSATED_F32": true
     },
     "variantMetadata": {
      "workgroupConstants": ["THREADS_PER_COL","COLS_PER_WG",null],
      "workgroupStorageBytesPerInvocation": 8,
      "colsPerWg": 4,
      "dispatchGeometry": "linear-column-block",
      "numericContract": {
       "activationRepresentation": "single-f32",
       "weightRepresentation": "single-f32",
       "internalAccumulation": "compensated-f32-pair",
       "outputRepresentation": "single-f32",
       "residualRecovery": "integer-significand",
       "roundingBoundary": "compensated-alpha-product-to-f32",
       "range": "finite-operands-and-finite-intermediates; no-extended-exponent"
      }
     },
     "description": "Opt-in single-F32 matmul with compensated internal product, accumulation and alpha scaling.",
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ]
    },
    "f32": {
     "wgsl": "matmul_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [16,16,1],
     "requires": [],
     "outputDtype": "f32",
     "weightDtype": "f32",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "esm/esm2-t12-35m-ur50d-f32-af32",
       "esmc/esmc-300m-f32-af32",
       "forge/forecast/chronos-bolt-tiny",
       "gemma3/translategemma-4b-it-q4k-ehf16-af32",
       "nucleotide-transformer/nucleotide-transformer-v2-50m-f32-af32",
       "qwen3/qwen-3-5-0-8b-canonical-f32",
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32",
       "qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32",
       "qwen3/qwen3.8-27b-q4_0-passthrough",
       "runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"
      ],
      "ruleChains": ["matmul.rules.json#gemvVariant","matmul.rules.json#matmulKernel"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 20,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ],
     "variantMetadata": {
      "dispatchGeometry": "matrix-workgroup",
      "colsPerThread": 1
     }
    },
    "paired_f32": {
     "wgsl": "matmul_paired.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "weightDtype": "f32",
     "constants": {
      "WEIGHT_F16": false,
      "WEIGHT_Q4K": false
     },
     "bindings": [
      {
       "name": "uniforms",
       "type": "uniform",
       "index": 0
      },
      {
       "name": "input",
       "type": "read-only-storage",
       "index": 1
      },
      {
       "name": "weight",
       "type": "read-only-storage",
       "index": 2
      },
      {
       "name": "output",
       "type": "storage",
       "index": 3
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "grid_width",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "alpha_hi",
        "type": "f32",
        "offset": 16
       },
       {
        "name": "alpha_lo",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "dispatchGeometry": "pairedReduction"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#pairedVariant"],
      "wgslOnDisk": true
     },
     "wgslOverrides": {
      "WEIGHT_F16": false,
      "WEIGHT_Q4K": false,
      "SCALAR_OUTPUT": false
     }
    },
    "paired_f16": {
     "wgsl": "matmul_paired.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "weightDtype": "f16",
     "constants": {
      "WEIGHT_F16": true,
      "WEIGHT_Q4K": false
     },
     "bindings": [
      {
       "name": "uniforms",
       "type": "uniform",
       "index": 0
      },
      {
       "name": "input",
       "type": "read-only-storage",
       "index": 1
      },
      {
       "name": "weight",
       "type": "read-only-storage",
       "index": 2
      },
      {
       "name": "output",
       "type": "storage",
       "index": 3
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "grid_width",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "alpha_hi",
        "type": "f32",
        "offset": 16
       },
       {
        "name": "alpha_lo",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "dispatchGeometry": "pairedReduction"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#pairedVariant"],
      "wgslOnDisk": true
     },
     "wgslOverrides": {
      "WEIGHT_F16": true,
      "WEIGHT_Q4K": false,
      "SCALAR_OUTPUT": false
     }
    },
    "paired_q4k": {
     "wgsl": "matmul_paired.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "weightDtype": "q4k",
     "constants": {
      "WEIGHT_F16": false,
      "WEIGHT_Q4K": true
     },
     "bindings": [
      {
       "name": "uniforms",
       "type": "uniform",
       "index": 0
      },
      {
       "name": "input",
       "type": "read-only-storage",
       "index": 1
      },
      {
       "name": "weight",
       "type": "read-only-storage",
       "index": 2
      },
      {
       "name": "output",
       "type": "storage",
       "index": 3
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "grid_width",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "alpha_hi",
        "type": "f32",
        "offset": 16
       },
       {
        "name": "alpha_lo",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "dispatchGeometry": "pairedReduction"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#pairedVariant"],
      "wgslOnDisk": true
     },
     "wgslOverrides": {
      "WEIGHT_F16": false,
      "WEIGHT_Q4K": true,
      "SCALAR_OUTPUT": false
     }
    },
    "paired_f32_scalar": {
     "wgsl": "matmul_paired.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "weightDtype": "f32",
     "constants": {
      "WEIGHT_F16": false,
      "WEIGHT_Q4K": false,
      "SCALAR_OUTPUT": true
     },
     "bindings": [
      {
       "name": "uniforms",
       "type": "uniform",
       "index": 0
      },
      {
       "name": "input",
       "type": "read-only-storage",
       "index": 1
      },
      {
       "name": "weight",
       "type": "read-only-storage",
       "index": 2
      },
      {
       "name": "output",
       "type": "storage",
       "index": 3
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "grid_width",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "alpha_hi",
        "type": "f32",
        "offset": 16
       },
       {
        "name": "alpha_lo",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "f32",
      "dispatchGeometry": "pairedReduction"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#pairedVariant"],
      "wgslOnDisk": true
     },
     "wgslOverrides": {
      "WEIGHT_F16": false,
      "WEIGHT_Q4K": false,
      "SCALAR_OUTPUT": true
     }
    },
    "paired_f16_scalar": {
     "wgsl": "matmul_paired.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "weightDtype": "f16",
     "constants": {
      "WEIGHT_F16": true,
      "WEIGHT_Q4K": false,
      "SCALAR_OUTPUT": true
     },
     "bindings": [
      {
       "name": "uniforms",
       "type": "uniform",
       "index": 0
      },
      {
       "name": "input",
       "type": "read-only-storage",
       "index": 1
      },
      {
       "name": "weight",
       "type": "read-only-storage",
       "index": 2
      },
      {
       "name": "output",
       "type": "storage",
       "index": 3
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "grid_width",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "alpha_hi",
        "type": "f32",
        "offset": 16
       },
       {
        "name": "alpha_lo",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "f32",
      "dispatchGeometry": "pairedReduction"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#pairedVariant"],
      "wgslOnDisk": true
     },
     "wgslOverrides": {
      "WEIGHT_F16": true,
      "WEIGHT_Q4K": false,
      "SCALAR_OUTPUT": true
     }
    },
    "paired_q4k_scalar": {
     "wgsl": "matmul_paired.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "weightDtype": "q4k",
     "constants": {
      "WEIGHT_F16": false,
      "WEIGHT_Q4K": true,
      "SCALAR_OUTPUT": true
     },
     "bindings": [
      {
       "name": "uniforms",
       "type": "uniform",
       "index": 0
      },
      {
       "name": "input",
       "type": "read-only-storage",
       "index": 1
      },
      {
       "name": "weight",
       "type": "read-only-storage",
       "index": 2
      },
      {
       "name": "output",
       "type": "storage",
       "index": 3
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "grid_width",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "alpha_hi",
        "type": "f32",
        "offset": 16
       },
       {
        "name": "alpha_lo",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "f32",
      "dispatchGeometry": "pairedReduction"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#pairedVariant"],
      "wgslOnDisk": true
     },
     "wgslOverrides": {
      "WEIGHT_F16": false,
      "WEIGHT_Q4K": true,
      "SCALAR_OUTPUT": true
     }
    },
    "paired_f32_compensated": {
     "wgsl": "matmul_paired_compensated.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "weightDtype": "f32",
     "constants": {
      "WEIGHT_F16": false,
      "WEIGHT_Q4K": false
     },
     "bindings": [
      {
       "name": "uniforms",
       "type": "uniform",
       "index": 0
      },
      {
       "name": "input",
       "type": "read-only-storage",
       "index": 1
      },
      {
       "name": "weight",
       "type": "read-only-storage",
       "index": 2
      },
      {
       "name": "output",
       "type": "storage",
       "index": 3
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "grid_width",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "alpha_hi",
        "type": "f32",
        "offset": 16
       },
       {
        "name": "alpha_lo",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "dispatchGeometry": "pairedReduction",
      "replacesMechanism": {
       "operation": "matmul",
       "variant": "paired_f32"
      }
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "wgslOverrides": {
      "WEIGHT_F16": false,
      "WEIGHT_Q4K": false,
      "SCALAR_OUTPUT": false
     }
    },
    "paired_f16_compensated": {
     "wgsl": "matmul_paired_compensated.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "weightDtype": "f16",
     "constants": {
      "WEIGHT_F16": true,
      "WEIGHT_Q4K": false
     },
     "bindings": [
      {
       "name": "uniforms",
       "type": "uniform",
       "index": 0
      },
      {
       "name": "input",
       "type": "read-only-storage",
       "index": 1
      },
      {
       "name": "weight",
       "type": "read-only-storage",
       "index": 2
      },
      {
       "name": "output",
       "type": "storage",
       "index": 3
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "grid_width",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "alpha_hi",
        "type": "f32",
        "offset": 16
       },
       {
        "name": "alpha_lo",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "dispatchGeometry": "pairedReduction",
      "replacesMechanism": {
       "operation": "matmul",
       "variant": "paired_f16"
      }
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "wgslOverrides": {
      "WEIGHT_F16": true,
      "WEIGHT_Q4K": false,
      "SCALAR_OUTPUT": false
     }
    },
    "paired_q4k_compensated": {
     "wgsl": "matmul_paired_compensated.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "weightDtype": "q4k",
     "constants": {
      "WEIGHT_F16": false,
      "WEIGHT_Q4K": true
     },
     "bindings": [
      {
       "name": "uniforms",
       "type": "uniform",
       "index": 0
      },
      {
       "name": "input",
       "type": "read-only-storage",
       "index": 1
      },
      {
       "name": "weight",
       "type": "read-only-storage",
       "index": 2
      },
      {
       "name": "output",
       "type": "storage",
       "index": 3
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "grid_width",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "alpha_hi",
        "type": "f32",
        "offset": 16
       },
       {
        "name": "alpha_lo",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "dispatchGeometry": "pairedReduction",
      "replacesMechanism": {
       "operation": "matmul",
       "variant": "paired_q4k"
      }
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "wgslOverrides": {
      "WEIGHT_F16": false,
      "WEIGHT_Q4K": true,
      "SCALAR_OUTPUT": false
     }
    },
    "paired_f32_scalar_compensated": {
     "wgsl": "matmul_paired_compensated.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "weightDtype": "f32",
     "constants": {
      "WEIGHT_F16": false,
      "WEIGHT_Q4K": false,
      "SCALAR_OUTPUT": true
     },
     "bindings": [
      {
       "name": "uniforms",
       "type": "uniform",
       "index": 0
      },
      {
       "name": "input",
       "type": "read-only-storage",
       "index": 1
      },
      {
       "name": "weight",
       "type": "read-only-storage",
       "index": 2
      },
      {
       "name": "output",
       "type": "storage",
       "index": 3
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "grid_width",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "alpha_hi",
        "type": "f32",
        "offset": 16
       },
       {
        "name": "alpha_lo",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "f32",
      "dispatchGeometry": "pairedReduction",
      "replacesMechanism": {
       "operation": "matmul",
       "variant": "paired_f32_scalar"
      }
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "wgslOverrides": {
      "WEIGHT_F16": false,
      "WEIGHT_Q4K": false,
      "SCALAR_OUTPUT": true
     }
    },
    "paired_f16_scalar_compensated": {
     "wgsl": "matmul_paired_compensated.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "weightDtype": "f16",
     "constants": {
      "WEIGHT_F16": true,
      "WEIGHT_Q4K": false,
      "SCALAR_OUTPUT": true
     },
     "bindings": [
      {
       "name": "uniforms",
       "type": "uniform",
       "index": 0
      },
      {
       "name": "input",
       "type": "read-only-storage",
       "index": 1
      },
      {
       "name": "weight",
       "type": "read-only-storage",
       "index": 2
      },
      {
       "name": "output",
       "type": "storage",
       "index": 3
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "grid_width",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "alpha_hi",
        "type": "f32",
        "offset": 16
       },
       {
        "name": "alpha_lo",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "f32",
      "dispatchGeometry": "pairedReduction",
      "replacesMechanism": {
       "operation": "matmul",
       "variant": "paired_f16_scalar"
      }
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "wgslOverrides": {
      "WEIGHT_F16": true,
      "WEIGHT_Q4K": false,
      "SCALAR_OUTPUT": true
     }
    },
    "paired_q4k_scalar_compensated": {
     "wgsl": "matmul_paired_compensated.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "weightDtype": "q4k",
     "constants": {
      "WEIGHT_F16": false,
      "WEIGHT_Q4K": true,
      "SCALAR_OUTPUT": true
     },
     "bindings": [
      {
       "name": "uniforms",
       "type": "uniform",
       "index": 0
      },
      {
       "name": "input",
       "type": "read-only-storage",
       "index": 1
      },
      {
       "name": "weight",
       "type": "read-only-storage",
       "index": 2
      },
      {
       "name": "output",
       "type": "storage",
       "index": 3
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "grid_width",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "alpha_hi",
        "type": "f32",
        "offset": 16
       },
       {
        "name": "alpha_lo",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "f32",
      "dispatchGeometry": "pairedReduction",
      "replacesMechanism": {
       "operation": "matmul",
       "variant": "paired_q4k_scalar"
      }
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "wgslOverrides": {
      "WEIGHT_F16": false,
      "WEIGHT_Q4K": true,
      "SCALAR_OUTPUT": true
     }
    },
    "q4_0_gemv": {
     "wgsl": "matmul_q4_0.wgsl",
     "entryPoint": "gemv",
     "workgroup": [128,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_0",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 18,
      "QUANT_FORMAT": 0
     },
     "variantMetadata": {
      "q40Geometry": "gemv",
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen3.8-27b-q4_0-passthrough",
       "runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"
      ],
      "ruleChains": ["matmul.rules.json#q40Variant"],
      "wgslOnDisk": true
     }
    },
    "q4_0_prefill": {
     "wgsl": "matmul_q4_0.wgsl",
     "entryPoint": "prefill",
     "workgroup": [16,16,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_0",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 18,
      "QUANT_FORMAT": 0
     },
     "variantMetadata": {
      "q40Geometry": "tiled",
      "dispatchGeometry": "column-row-tile",
      "tileM": 16,
      "workgroupConstants": ["TILE_SIZE","TILE_SIZE",null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-6-35b-a3b-q4_0-passthrough","qwen3/qwen3.8-27b-q4_0-passthrough"],
      "ruleChains": ["matmul.rules.json#q40Variant"],
      "wgslOnDisk": true
     }
    },
    "q4_0_prefill_tile64": {
     "wgsl": "matmul_q4_0_tile64.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_0",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 18,
      "QUANT_FORMAT": 0
     },
     "variantMetadata": {
      "q40Geometry": "tile64",
      "dispatchGeometry": "column-row-tile",
      "tileM": 16,
      "workgroupConstants": ["TILE_SIZE","TILE_SIZE",null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4_1_gemv": {
     "wgsl": "matmul_q4_0.wgsl",
     "entryPoint": "gemv",
     "workgroup": [128,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_1",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 20,
      "QUANT_FORMAT": 1
     },
     "variantMetadata": {
      "q40Geometry": "gemv",
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen3.8-27b-q4_0-passthrough",
       "runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"
      ],
      "ruleChains": ["matmul.rules.json#q40Variant"],
      "wgslOnDisk": true
     }
    },
    "q5_0_gemv": {
     "wgsl": "matmul_q4_0.wgsl",
     "entryPoint": "gemv",
     "workgroup": [128,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q5_0",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 22,
      "QUANT_FORMAT": 4
     },
     "variantMetadata": {
      "q40Geometry": "gemv",
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen3.8-27b-q4_0-passthrough",
       "runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"
      ],
      "ruleChains": ["matmul.rules.json#q40Variant"],
      "wgslOnDisk": true
     }
    },
    "q4_1_prefill": {
     "wgsl": "matmul_q4_0.wgsl",
     "entryPoint": "prefill",
     "workgroup": [16,16,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_1",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 20,
      "QUANT_FORMAT": 1
     },
     "variantMetadata": {
      "q40Geometry": "tiled",
      "dispatchGeometry": "column-row-tile",
      "tileM": 16,
      "workgroupConstants": ["TILE_SIZE","TILE_SIZE",null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-6-35b-a3b-q4_0-passthrough","qwen3/qwen3.8-27b-q4_0-passthrough"],
      "ruleChains": ["matmul.rules.json#q40Variant"],
      "wgslOnDisk": true
     }
    },
    "q4_1_prefill_tile64": {
     "wgsl": "matmul_q4_0_tile64.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_1",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 20,
      "QUANT_FORMAT": 1
     },
     "variantMetadata": {
      "q40Geometry": "tile64",
      "dispatchGeometry": "column-row-tile",
      "tileM": 16,
      "workgroupConstants": ["TILE_SIZE","TILE_SIZE",null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q5_0_prefill": {
     "wgsl": "matmul_q4_0.wgsl",
     "entryPoint": "prefill",
     "workgroup": [16,16,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q5_0",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 22,
      "QUANT_FORMAT": 4
     },
     "variantMetadata": {
      "q40Geometry": "tiled",
      "dispatchGeometry": "column-row-tile",
      "tileM": 16,
      "workgroupConstants": ["TILE_SIZE","TILE_SIZE",null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-6-35b-a3b-q4_0-passthrough","qwen3/qwen3.8-27b-q4_0-passthrough"],
      "ruleChains": ["matmul.rules.json#q40Variant"],
      "wgslOnDisk": true
     }
    },
    "q5_0_prefill_tile64": {
     "wgsl": "matmul_q4_0_tile64.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q5_0",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 22,
      "QUANT_FORMAT": 4
     },
     "variantMetadata": {
      "q40Geometry": "tile64",
      "dispatchGeometry": "column-row-tile",
      "tileM": 16,
      "workgroupConstants": ["TILE_SIZE","TILE_SIZE",null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q8_0_gemv": {
     "wgsl": "matmul_q4_0.wgsl",
     "entryPoint": "gemv",
     "workgroup": [128,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q8_0",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 34,
      "QUANT_FORMAT": 2
     },
     "variantMetadata": {
      "q40Geometry": "gemv",
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen3.8-27b-q4_0-passthrough",
       "runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"
      ],
      "ruleChains": ["matmul.rules.json#q40Variant"],
      "wgslOnDisk": true
     }
    },
    "q8_0_prefill": {
     "wgsl": "matmul_q4_0.wgsl",
     "entryPoint": "prefill",
     "workgroup": [16,16,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q8_0",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 34,
      "QUANT_FORMAT": 2
     },
     "variantMetadata": {
      "q40Geometry": "tiled",
      "dispatchGeometry": "column-row-tile",
      "tileM": 16,
      "workgroupConstants": ["TILE_SIZE","TILE_SIZE",null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-6-35b-a3b-q4_0-passthrough","qwen3/qwen3.8-27b-q4_0-passthrough"],
      "ruleChains": ["matmul.rules.json#q40Variant"],
      "wgslOnDisk": true
     }
    },
    "q8_0_prefill_tile64": {
     "wgsl": "matmul_q4_0_tile64.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q8_0",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 34,
      "QUANT_FORMAT": 2
     },
     "variantMetadata": {
      "q40Geometry": "tile64",
      "dispatchGeometry": "column-row-tile",
      "tileM": 16,
      "workgroupConstants": ["TILE_SIZE","TILE_SIZE",null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q5k_gemv": {
     "wgsl": "matmul_q5k.wgsl",
     "entryPoint": "gemv",
     "workgroup": [128,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q5k",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 256,
      "BLOCK_BYTES": 176,
      "QUANT_FORMAT": 5
     },
     "variantMetadata": {
      "q40Geometry": "gemv",
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen3.8-27b-q4_0-passthrough"],
      "ruleChains": ["matmul.rules.json#q40Variant"],
      "wgslOnDisk": true
     }
    },
    "q5k_gemv_blockwise": {
     "wgsl": "matmul_q5k.wgsl",
     "entryPoint": "gemv_blockwise",
     "workgroup": [128,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q5k",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 256,
      "BLOCK_BYTES": 176,
      "QUANT_FORMAT": 5
     },
     "variantMetadata": {
      "q40Geometry": "gemv",
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q5k_prefill": {
     "wgsl": "matmul_q5k.wgsl",
     "entryPoint": "prefill",
     "workgroup": [16,16,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q5k",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 256,
      "BLOCK_BYTES": 176,
      "QUANT_FORMAT": 5
     },
     "variantMetadata": {
      "q40Geometry": "tiled",
      "dispatchGeometry": "column-row-tile",
      "tileM": 16,
      "workgroupConstants": ["TILE_SIZE","TILE_SIZE",null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen3.8-27b-q4_0-passthrough"],
      "ruleChains": ["matmul.rules.json#q40Variant"],
      "wgslOnDisk": true
     }
    },
    "q6k_gemv": {
     "wgsl": "matmul_q4_0.wgsl",
     "entryPoint": "gemv",
     "workgroup": [128,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q6k",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 256,
      "BLOCK_BYTES": 210,
      "QUANT_FORMAT": 3
     },
     "variantMetadata": {
      "q40Geometry": "gemv",
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen3.8-27b-q4_0-passthrough",
       "runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"
      ],
      "ruleChains": ["matmul.rules.json#q40Variant"],
      "wgslOnDisk": true
     }
    },
    "q6k_prefill": {
     "wgsl": "matmul_q4_0.wgsl",
     "entryPoint": "prefill",
     "workgroup": [16,16,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q6k",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 256,
      "BLOCK_BYTES": 210,
      "QUANT_FORMAT": 3
     },
     "variantMetadata": {
      "q40Geometry": "tiled",
      "dispatchGeometry": "column-row-tile",
      "tileM": 16,
      "workgroupConstants": ["TILE_SIZE","TILE_SIZE",null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-6-35b-a3b-q4_0-passthrough","qwen3/qwen3.8-27b-q4_0-passthrough"],
      "ruleChains": ["matmul.rules.json#q40Variant"],
      "wgslOnDisk": true
     }
    },
    "q6k_prefill_tile64": {
     "wgsl": "matmul_q4_0_tile64.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q6k",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 256,
      "BLOCK_BYTES": 210,
      "QUANT_FORMAT": 3
     },
     "variantMetadata": {
      "q40Geometry": "tile64",
      "dispatchGeometry": "column-row-tile",
      "tileM": 16,
      "workgroupConstants": ["TILE_SIZE","TILE_SIZE",null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4_0_pair_columns": {
     "wgsl": "matmul_gguf_pair_columns_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_0",
     "outputDtype": "f32",
     "sharedMemory": 8192,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "ROWS": 1,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 18,
      "QUANT_FORMAT": 0,
      "COLS": 4
     },
     "variantMetadata": {
      "q40Geometry": "pair-columns",
      "dispatchGeometry": "column-row-tile",
      "tileM": 4,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q8_0_pair_columns": {
     "wgsl": "matmul_gguf_pair_columns_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q8_0",
     "outputDtype": "f32",
     "sharedMemory": 8192,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "ROWS": 1,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 34,
      "QUANT_FORMAT": 2,
      "COLS": 4
     },
     "variantMetadata": {
      "q40Geometry": "pair-columns",
      "dispatchGeometry": "column-row-tile",
      "tileM": 4,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q5k_gemv_blockwise_columns": {
     "wgsl": "matmul_q5k_columns.wgsl",
     "entryPoint": "gemv_blockwise",
     "workgroup": [128,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q5k",
     "outputDtype": "f32",
     "sharedMemory": 4608,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 256,
      "BLOCK_BYTES": 176,
      "QUANT_FORMAT": 5,
      "BATCH_ROWS": 4
     },
     "variantMetadata": {
      "q40Geometry": "gemv-columns",
      "dispatchGeometry": "column-row-tile",
      "tileM": 4,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "f32_row_subgroup": {
     "wgsl": "matmul_f32_row_subgroup.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "outputDtype": "f32",
     "weightDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4
     },
     "variantMetadata": {
      "workgroupPowerOfTwo": false,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null],
      "workgroupStorageBytesPerInvocation": 0,
      "colsPerWg": 4,
      "dispatchGeometry": "row-column-block"
     },
     "description": "Explicit F32 matrix row projections with subgroup-owned outputs; independent activation rows use grid y and retain the scalar-buffer single-row arithmetic.",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/flash-next-routed-f32kv-qualification"],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage",
       "wgslName": "A"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage",
       "wgslName": "B"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage",
       "wgslName": "C"
      }
     ],
     "requiredWgslFeatures": ["subgroup_id"],
     "sharedMemory": 0
    },
    "q6k_pair_columns": {
     "wgsl": "matmul_gguf_pair_columns_f32.wgsl",
     "entryPoint": "main_q6k",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q6k",
     "outputDtype": "f32",
     "sharedMemory": 16384,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "ROWS": 4,
      "BLOCK_VALUES": 256,
      "BLOCK_BYTES": 210,
      "QUANT_FORMAT": 3,
      "COLS": 4
     },
     "variantMetadata": {
      "q40Geometry": "pair-columns",
      "dispatchGeometry": "column-row-tile",
      "tileM": 4,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4_0_pair_columns_rows4": {
     "wgsl": "matmul_gguf_pair_columns_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_0",
     "outputDtype": "f32",
     "sharedMemory": 8192,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "ROWS": 4,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 18,
      "QUANT_FORMAT": 0,
      "COLS": 4
     },
     "variantMetadata": {
      "q40Geometry": "pair-columns",
      "dispatchGeometry": "column-row-tile",
      "tileM": 4,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q8_0_pair_columns_rows4": {
     "wgsl": "matmul_gguf_pair_columns_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q8_0",
     "outputDtype": "f32",
     "sharedMemory": 8192,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "ROWS": 4,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 34,
      "QUANT_FORMAT": 2,
      "COLS": 4
     },
     "variantMetadata": {
      "q40Geometry": "pair-columns",
      "dispatchGeometry": "column-row-tile",
      "tileM": 4,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q6k_pair_columns_wg128_rows1": {
     "wgsl": "matmul_gguf_pair_columns_f32.wgsl",
     "entryPoint": "main_q6k",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q6k",
     "outputDtype": "f32",
     "sharedMemory": 8192,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "ROWS": 1,
      "BLOCK_VALUES": 256,
      "BLOCK_BYTES": 210,
      "QUANT_FORMAT": 3,
      "COLS": 4
     },
     "variantMetadata": {
      "q40Geometry": "pair-columns",
      "dispatchGeometry": "column-row-tile",
      "tileM": 4,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4_1_block_columns_single": {
     "wgsl": "matmul_q4_1_columns_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_1",
     "outputDtype": "f32",
     "sharedMemory": 2048,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "ROWS": 1,
      "COLS": 1,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 20,
      "QUANT_FORMAT": 1
     },
     "variantMetadata": {
      "q40Geometry": "block-columns",
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4_1_block_columns": {
     "wgsl": "matmul_q4_1_columns_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_1",
     "outputDtype": "f32",
     "sharedMemory": 8192,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "ROWS": 2,
      "COLS": 4,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 20,
      "QUANT_FORMAT": 1
     },
     "variantMetadata": {
      "q40Geometry": "block-columns",
      "dispatchGeometry": "column-row-tile",
      "tileM": 4,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4_0_pair_columns_hoisted": {
     "wgsl": "matmul_gguf_columns_hoisted_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_0",
     "outputDtype": "f32",
     "sharedMemory": 1024,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "ROWS": 4,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 18,
      "QUANT_FORMAT": 0,
      "COLS": 4
     },
     "variantMetadata": {
      "q40Geometry": "pair-columns",
      "dispatchGeometry": "column-row-tile",
      "tileM": 4,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q8_0_pair_columns_hoisted": {
     "wgsl": "matmul_gguf_columns_hoisted_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q8_0",
     "outputDtype": "f32",
     "sharedMemory": 1024,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "ROWS": 4,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 34,
      "QUANT_FORMAT": 2,
      "COLS": 4
     },
     "variantMetadata": {
      "q40Geometry": "pair-columns",
      "dispatchGeometry": "column-row-tile",
      "tileM": 4,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q6k_pair_columns_hoisted": {
     "wgsl": "matmul_gguf_columns_hoisted_f32.wgsl",
     "entryPoint": "main_q6k",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q6k",
     "outputDtype": "f32",
     "sharedMemory": 1024,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "ROWS": 4,
      "BLOCK_VALUES": 256,
      "BLOCK_BYTES": 210,
      "QUANT_FORMAT": 3,
      "COLS": 4
     },
     "variantMetadata": {
      "q40Geometry": "pair-columns",
      "dispatchGeometry": "column-row-tile",
      "tileM": 4,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q5k_cooperative": {
     "wgsl": "matmul_q5k_cooperative.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q5k",
     "outputDtype": "f32",
     "sharedMemory": 2048,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "ROWS": 2,
      "COLS": 1,
      "BLOCK_VALUES": 256,
      "BLOCK_BYTES": 176,
      "QUANT_FORMAT": 5
     },
     "variantMetadata": {
      "q40Geometry": "block-columns",
      "dispatchGeometry": "column-row-tile",
      "tileM": 1,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q5k_cooperative_columns": {
     "wgsl": "matmul_q5k_cooperative.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["packed_4x8_integer_dot_product","subgroup_id"],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q5k",
     "outputDtype": "f32",
     "sharedMemory": 8192,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "ROWS": 2,
      "COLS": 4,
      "BLOCK_VALUES": 256,
      "BLOCK_BYTES": 176,
      "QUANT_FORMAT": 5
     },
     "variantMetadata": {
      "q40Geometry": "block-columns",
      "dispatchGeometry": "column-row-tile",
      "tileM": 4,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q5k_prefill_tile64": {
     "wgsl": "matmul_q5k_tile64.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q5k",
     "outputDtype": "f32",
     "sharedMemory": 2560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 256,
      "BLOCK_BYTES": 176,
      "QUANT_FORMAT": 5
     },
     "variantMetadata": {
      "q40Geometry": "tile64",
      "dispatchGeometry": "column-row-tile",
      "tileM": 16,
      "workgroupConstants": ["TILE_SIZE","TILE_SIZE",null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4_0_prefill_tile64x128": {
     "wgsl": "matmul_q4_0_tile64x128.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_0",
     "outputDtype": "f32",
     "sharedMemory": 24576,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 18,
      "QUANT_FORMAT": 0
     },
     "variantMetadata": {
      "q40Geometry": "rectangular",
      "dispatchGeometry": "column-row-tile",
      "tileM": 128,
      "tileRows": 64,
      "tileColumns": 128,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4_0_prefill_tile64x128_bounded": {
     "wgsl": "matmul_q4_0_tile64x128_bounded.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_0",
     "outputDtype": "f32",
     "sharedMemory": 24576,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 18,
      "QUANT_FORMAT": 0
     },
     "variantMetadata": {
      "q40Geometry": "rectangular",
      "dispatchGeometry": "column-row-tile",
      "tileM": 128,
      "tileRows": 64,
      "tileColumns": 128,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4_0_prefill_tile128": {
     "wgsl": "matmul_q4_0_tile128.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_0",
     "outputDtype": "f32",
     "sharedMemory": 32768,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 18,
      "QUANT_FORMAT": 0
     },
     "variantMetadata": {
      "q40Geometry": "rectangular",
      "dispatchGeometry": "column-row-tile",
      "tileM": 128,
      "tileRows": 128,
      "tileColumns": 128,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4_1_prefill_tile128": {
     "wgsl": "matmul_q4_0_tile128.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_1",
     "outputDtype": "f32",
     "sharedMemory": 32768,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 20,
      "QUANT_FORMAT": 1
     },
     "variantMetadata": {
      "q40Geometry": "rectangular",
      "dispatchGeometry": "column-row-tile",
      "tileM": 128,
      "tileRows": 128,
      "tileColumns": 128,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4_0_prefill_tile128_bounded": {
     "wgsl": "matmul_q4_0_tile128_bounded.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_0",
     "outputDtype": "f32",
     "sharedMemory": 32768,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 18,
      "QUANT_FORMAT": 0
     },
     "variantMetadata": {
      "q40Geometry": "rectangular",
      "dispatchGeometry": "column-row-tile",
      "tileM": 128,
      "tileRows": 128,
      "tileColumns": 128,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4_1_prefill_tile128_bounded": {
     "wgsl": "matmul_q4_0_tile128_bounded.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_1",
     "outputDtype": "f32",
     "sharedMemory": 32768,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 20,
      "QUANT_FORMAT": 1
     },
     "variantMetadata": {
      "q40Geometry": "rectangular",
      "dispatchGeometry": "column-row-tile",
      "tileM": 128,
      "tileRows": 128,
      "tileColumns": 128,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4_0_prefill_tile64_bounded": {
     "wgsl": "matmul_q4_0_tile64_bounded.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_0",
     "outputDtype": "f32",
     "sharedMemory": 16384,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 18,
      "QUANT_FORMAT": 0
     },
     "variantMetadata": {
      "q40Geometry": "tile64",
      "dispatchGeometry": "column-row-tile",
      "tileM": 16,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4_1_prefill_tile64_bounded": {
     "wgsl": "matmul_q4_0_tile64_bounded.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "a_offset",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "b_row",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "c_offset",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_1",
     "outputDtype": "f32",
     "sharedMemory": 16384,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 20,
      "QUANT_FORMAT": 1
     },
     "variantMetadata": {
      "q40Geometry": "tile64",
      "dispatchGeometry": "column-row-tile",
      "tileM": 16,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "fused_ffn": {
   "description": "Fused FFN kernels (Tier 2 P0)",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "gate_weights",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "up_weights",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "M",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "intermediate_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "alpha",
      "type": "f32",
      "offset": 12
     },
     {
      "name": "activation",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "clamp_max",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "fused_ffn.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["fused-ffn.rules.json#variant","residual.rules.json#biasAddVariant"],
      "wgslOnDisk": true
     }
    },
    "multi": {
     "wgsl": "fused_ffn.wgsl",
     "entryPoint": "main_multi",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["fused-ffn.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "f16": {
     "wgsl": "fused_ffn.wgsl",
     "entryPoint": "main_f16",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["fused-ffn.rules.json#variant","residual.rules.json#biasAddVariant"],
      "wgslOnDisk": true
     }
    },
    "f16_batched": {
     "wgsl": "fused_ffn_f16w_f32a_batched.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "description": "Packed f16 gate/up weights with f32 activations and f32 output for prefill",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["fused-ffn.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "f16_native": {
     "wgsl": "fused_ffn_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "description": "Native f16 weight reads via array<f16> bindings (no unpack2x16float)",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["fused-ffn.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "f16_native_batched": {
     "wgsl": "fused_ffn_f16.wgsl",
     "entryPoint": "main_batched",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "description": "Native f16 batched variant for prefill",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["fused-ffn.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "batched": {
     "wgsl": "fused_ffn.wgsl",
     "entryPoint": "main_batched",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["fused-ffn.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "q4k": {
     "wgsl": "fused_ffn_q4k.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["fused-ffn.rules.json#variant","matmul.rules.json#preferredWeightDtype"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "intermediate_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "activation",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "num_blocks_per_row",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "clamp_max",
        "type": "f32",
        "offset": 24
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     }
    },
    "q4k_metal_simd16": {
     "wgsl": "fused_ffn_q4k_metal_simd16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "description": "Metal Q4_K fused gate/up GEMV with one 16-lane subgroup partition per output row.",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen-3-5-2b-metal-throughput"],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "intermediate_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "activation",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "num_blocks_per_row",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "clamp_max",
        "type": "f32",
        "offset": 24
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "variantMetadata": {
      "fusedFfnDefaults": {
       "WORKGROUP_SIZE": 256,
       "COLS_PER_WG": 16,
       "THREADS_PER_COL": 16
      }
     }
    },
    "q4k_f16a": {
     "wgsl": "fused_ffn_q4k_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "description": "Q4K fused FFN with f16 activation reads and f32 output",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16"],
      "ruleChains": ["fused-ffn.rules.json#variant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "intermediate_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "activation",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "num_blocks_per_row",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "clamp_max",
        "type": "f32",
        "offset": 24
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     }
    },
    "q4k_batched": {
     "wgsl": "fused_ffn_q4k.wgsl",
     "entryPoint": "main_batched",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["fused-ffn.rules.json#variant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "intermediate_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "activation",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "num_blocks_per_row",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "clamp_max",
        "type": "f32",
        "offset": 24
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     }
    },
    "q4k_batched_f16a": {
     "wgsl": "fused_ffn_q4k_f16.wgsl",
     "entryPoint": "main_batched",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "description": "Q4K fused FFN batched path with f16 activation reads and f32 output",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["fused-ffn.rules.json#variant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "intermediate_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "activation",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "num_blocks_per_row",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "clamp_max",
        "type": "f32",
        "offset": 24
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     }
    },
    "gate_up_gelu_gated_tiled_f16": {
     "wgsl": "fused_gate_up_gelu_gated_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["shader-f16"],
     "description": "Fused gate + up FFN projections + GeGLU activation (F16 weights, per-layer intermediate_size uniform)",
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "intermediate_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 16,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 20,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad3",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     }
    },
    "q4k_normed": {
     "wgsl": "fused_normed_ffn_q4k.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "bindingsOverride": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "prenorm_input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "norm_weight",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "inv_rms",
       "type": "read-only-storage"
      },
      {
       "index": 4,
       "name": "gate_weights",
       "type": "read-only-storage"
      },
      {
       "index": 5,
       "name": "up_weights",
       "type": "read-only-storage"
      },
      {
       "index": 6,
       "name": "output",
       "type": "storage"
      }
     ],
     "description": "Fused prenorm plus Q4K gate/up projection and activation.",
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 48,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "intermediate_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "activation",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "num_blocks_per_row",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "clamp_max",
        "type": "f32",
        "offset": 24
       },
       {
        "name": "rms_norm_weight_offset",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "norm_weight_is_f16",
        "type": "u32",
        "offset": 32
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 36,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 40,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 44,
        "padding": true
       }
      ]
     }
    },
    "q4k_subgroup8": {
     "wgsl": "fused_ffn_q4k_subgroup8.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "description": "Q4_K fused gate/up GEMV with one eight-lane subgroup partition per output row.",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "runtime/profiles/qwen-3-5-0-8b-vulkan-subgroup8",
       "runtime/profiles/qwen3-8-27b-orin-decode"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "intermediate_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "activation",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "num_blocks_per_row",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "clamp_max",
        "type": "f32",
        "offset": 24
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "variantMetadata": {
      "subgroupPartitionLanes": 8,
      "fusedFfnDefaults": {
       "WORKGROUP_SIZE": 256,
       "COLS_PER_WG": 32,
       "THREADS_PER_COL": 8
      }
     }
    }
   }
  },
  "dequant": {
   "description": "Dequantization kernels for various quant formats",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "quantized",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_blocks",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "output_offset",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "subgroup": {
     "wgsl": "dequant_subgroup.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "variantMetadata": {
      "dispatchMode": "per_block"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#tier","dequant.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "subgroup_vec4": {
     "wgsl": "dequant_subgroup.wgsl",
     "entryPoint": "main_vec4",
     "workgroup": [64,1,1],
     "requires": ["subgroups"],
     "variantMetadata": {
      "dispatchMode": "per_block"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["dequant.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "subgroup_f16out": {
     "wgsl": "dequant_f16_out.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "variantMetadata": {
      "dispatchMode": "per_block"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["dequant.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "subgroup_vec4_f16out": {
     "wgsl": "dequant_f16_out_vec4.wgsl",
     "entryPoint": "main_vec4",
     "workgroup": [64,1,1],
     "requires": ["shader-f16"],
     "variantMetadata": {
      "dispatchMode": "per_block"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32"
      ],
      "ruleChains": ["dequant.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "shared": {
     "wgsl": "dequant_shared.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "variantMetadata": {
      "dispatchMode": "per_block"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["dequant.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "mxfp4": {
     "wgsl": "dequant_mxfp4.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "description": "MXFP4 dequantization (GPT-OSS)",
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 16,
      "fields": [
       {
        "name": "total_elements",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_groups",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "group_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "row_stride",
        "type": "u32",
        "offset": 12
       }
      ]
     }
    },
    "mxfp4_expert": {
     "wgsl": "dequant_mxfp4_expert.wgsl",
     "entryPoint": "main_expert",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["dequant.rules.json#mxfp4ExpertVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "expert_idx",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_experts",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "out_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_groups",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "total_output",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 20,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     }
    },
    "mxfp4_expert_f16": {
     "wgsl": "dequant_mxfp4_expert_f16.wgsl",
     "entryPoint": "main_expert",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["dequant.rules.json#mxfp4ExpertVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "expert_idx",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_experts",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "out_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_groups",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "total_output",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 20,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     }
    },
    "q6k_f16out": {
     "wgsl": "dequant_q6k.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "description": "Q6_K dequantization (GGUF 6-bit quantization)",
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 16,
      "fields": [
       {
        "name": "num_blocks",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "output_offset",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "workgroups_x",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 12,
        "padding": true
       }
      ]
     }
    },
    "f32_rowwise": {
     "wgsl": "dequant_f32_rowwise.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "description": "Q4_K dequantization with row-wise layout (f32 output)",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["dequant.rules.json#rowwiseVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 16,
      "fields": [
       {
        "name": "num_blocks",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "blocks_per_row",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "rows",
        "type": "u32",
        "offset": 12
       }
      ]
     }
    },
    "f16_rowwise": {
     "wgsl": "dequant_f16_rowwise.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "description": "Q4_K dequantization with row-wise matrix layout for non-256-aligned K",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["dequant.rules.json#rowwiseVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 16,
      "fields": [
       {
        "name": "num_blocks",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "blocks_per_row",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "rows",
        "type": "u32",
        "offset": 12
       }
      ]
     }
    },
    "mxfp4_expert_fused_f16": {
     "wgsl": "gptoss_mxfp4_expert_fused.wgsl",
     "entryPoint": "main_expert",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f16",
     "variantMetadata": {
      "modelType": "gpt-oss",
      "groupSize": 32,
      "tileShape": "vec4",
      "expertFormat": "mxfp4"
     },
     "description": "GPT-OSS fused MXFP4 expert dequant kernel with vec4-oriented write path.",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["dequant.rules.json#mxfp4ExpertVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "expert_idx",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_experts",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "out_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_groups",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "total_output",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 20,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     }
    }
   }
  },
  "attention": {
   "description": "Flash attention kernels for prefill and decode",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "Q",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "K",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "V",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    },
    {
     "index": 5,
     "name": "kv_len",
     "type": "read-only-storage"
    },
    {
     "index": 6,
     "name": "page_table",
     "type": "read-only-storage"
    }
   ],
   "baseUniforms": {
    "size": 60,
    "fields": [
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_kv_heads",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "seq_len",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "query_len",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "scale",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "is_causal",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "start_pos",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "attn_softcap",
      "type": "f32",
      "offset": 32
     },
     {
      "name": "sliding_window",
      "type": "u32",
      "offset": 36
     },
     {
      "name": "kv_len_source",
      "type": "u32",
      "offset": 40
     },
     {
      "name": "kv_start",
      "type": "u32",
      "offset": 44
     },
     {
      "name": "page_size",
      "type": "u32",
      "offset": 48
     },
     {
      "name": "kv_layout",
      "type": "u32",
      "offset": 52
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 56,
      "padding": true
     }
    ]
   },
   "variants": {
    "prefill": {
     "wgsl": "attention.wgsl",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "tiled_large"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["esm/esm2-t12-35m-ur50d-f32-af32"],
      "ruleChains": [
       "attention.rules.json#phase",
       "attention.rules.json#variant",
       "matmul.rules.json#phase"
      ],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 76,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "query_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "bidirectional_span_start",
        "type": "u32",
        "offset": 56
       },
       {
        "name": "bidirectional_span_length",
        "type": "u32",
        "offset": 60
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 64,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 68,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 72,
        "padding": true
       }
      ]
     }
    },
    "decode": {
     "wgsl": "attention_decode.wgsl",
     "entryPoint": "attention_decode",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "tiled_large"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": [
       "attention.rules.json#phase",
       "attention.rules.json#variant",
       "matmul.rules.json#phase"
      ],
      "wgslOnDisk": true
     }
    },
    "prefill_small": {
     "wgsl": "attention_small.wgsl",
     "entryPoint": "main",
     "workgroup": [32,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "tiled_small"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "embeddinggemma/google-embeddinggemma-300m-q4k-ehf16-af32",
       "esm/esm2-t12-35m-ur50d-f32-af32",
       "esmc/esmc-300m-f32-af32",
       "nucleotide-transformer/nucleotide-transformer-v2-50m-f32-af32"
      ],
      "ruleChains": ["attention.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "decode_small": {
     "wgsl": "attention_small.wgsl",
     "entryPoint": "main",
     "workgroup": [32,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "tiled_small"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "embeddinggemma/google-embeddinggemma-300m-q4k-ehf16-af32",
       "esm/esm2-t12-35m-ur50d-f32-af32",
       "esmc/esmc-300m-f32-af32",
       "nucleotide-transformer/nucleotide-transformer-v2-50m-f32-af32"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "prefill_streaming": {
     "wgsl": "attention_streaming.wgsl",
     "entryPoint": "main",
     "workgroup": [1,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "streaming"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#variant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 76,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "query_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "bidirectional_span_start",
        "type": "u32",
        "offset": 56
       },
       {
        "name": "bidirectional_span_length",
        "type": "u32",
        "offset": 60
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 64,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 68,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 72,
        "padding": true
       }
      ]
     }
    },
    "decode_streaming": {
     "wgsl": "attention_streaming.wgsl",
     "entryPoint": "main",
     "workgroup": [1,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "streaming"
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 76,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "query_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "bidirectional_span_start",
        "type": "u32",
        "offset": 56
       },
       {
        "name": "bidirectional_span_length",
        "type": "u32",
        "offset": 60
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 64,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 68,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 72,
        "padding": true
       }
      ]
     }
    },
    "prefill_f16": {
     "wgsl": "attention_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "variantMetadata": {
      "tier": "tiled_large"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#variant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 76,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "query_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "bidirectional_span_start",
        "type": "u32",
        "offset": 56
       },
       {
        "name": "bidirectional_span_length",
        "type": "u32",
        "offset": 60
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 64,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 68,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 72,
        "padding": true
       }
      ]
     }
    },
    "decode_f16": {
     "wgsl": "attention_decode_f16.wgsl",
     "entryPoint": "attention_decode",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "variantMetadata": {
      "tier": "tiled_large"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "prefill_small_f16": {
     "wgsl": "attention_small_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [32,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "variantMetadata": {
      "tier": "tiled_small"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["gemma4/gemma-4-12b-it-text-w4a16-ct-ehf16-af16"],
      "ruleChains": ["attention.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "decode_small_f16": {
     "wgsl": "attention_small_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [32,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "variantMetadata": {
      "tier": "tiled_small"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["gemma4/gemma-4-12b-it-text-w4a16-ct-ehf16-af16"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "prefill_streaming_f16": {
     "wgsl": "attention_streaming_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [1,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "variantMetadata": {
      "tier": "streaming"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["gemma4/gemma-4-12b-it-text-w4a16-ct-ehf16-af16"],
      "ruleChains": ["attention.rules.json#variant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 76,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "query_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "bidirectional_span_start",
        "type": "u32",
        "offset": 56
       },
       {
        "name": "bidirectional_span_length",
        "type": "u32",
        "offset": 60
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 64,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 68,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 72,
        "padding": true
       }
      ]
     }
    },
    "decode_streaming_f16": {
     "wgsl": "attention_streaming_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [1,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "variantMetadata": {
      "tier": "streaming"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["gemma4/gemma-4-12b-it-text-w4a16-ct-ehf16-af16"],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 76,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "query_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "bidirectional_span_start",
        "type": "u32",
        "offset": 56
       },
       {
        "name": "bidirectional_span_length",
        "type": "u32",
        "offset": 60
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 64,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 68,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 72,
        "padding": true
       }
      ]
     }
    },
    "prefill_f16kv": {
     "wgsl": "attention_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "tiled_large"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#variant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 76,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "query_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "bidirectional_span_start",
        "type": "u32",
        "offset": 56
       },
       {
        "name": "bidirectional_span_length",
        "type": "u32",
        "offset": 60
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 64,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 68,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 72,
        "padding": true
       }
      ]
     }
    },
    "decode_f16kv": {
     "wgsl": "attention_decode_f16kv.wgsl",
     "entryPoint": "attention_decode",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "tiled_large"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "prefill_small_f16kv": {
     "wgsl": "attention_small_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [32,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "tiled_small"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "amplify/amplify-120m-f16-af32",
       "diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16",
       "gemma3/gemma-3-1b-it-f16-af32",
       "gemma3/gemma-3-1b-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-f16-af32",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af16",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-w8a8-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32-int4ple",
       "lfm2/lfm2.5-1.2b-instruct-q4k-ehf16-af32",
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32"
      ],
      "ruleChains": ["attention.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "decode_small_f16kv": {
     "wgsl": "attention_small_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [32,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "tiled_small"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "amplify/amplify-120m-f16-af32",
       "diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16",
       "gemma3/gemma-3-1b-it-f16-af32",
       "gemma3/gemma-3-1b-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-f16-af32",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af16",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-w8a8-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32-int4ple",
       "lfm2/lfm2.5-1.2b-instruct-q4k-ehf16-af32",
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "prefill_head128_f16kv": {
     "wgsl": "attention_head128_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [32,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "tiled_small",
      "queryBlockSize": 32,
      "exactHeadDim": 128,
      "maxHeadDim": 128,
      "requiredShared": 8192
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "glmocr/glm-ocr-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32",
       "runtime/profiles/qwen-3-reranker-0-6b-metal-stability",
       "runtime/profiles/qwen-3-reranker-0-6b-metal-throughput"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "prefill_head256_f16kv": {
     "wgsl": "attention_head256_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [32,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "tiled_small",
      "queryBlockSize": 32,
      "exactHeadDim": 256,
      "maxHeadDim": 256,
      "requiredShared": 16384
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16",
       "gemma3/gemma-3-1b-it-f16-af32",
       "gemma3/gemma-3-1b-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-f16-af32",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af16",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-w8a8-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32-int4ple",
       "muse-glimmer/muse-glimmer-30b-text-bf16-af32",
       "muse-glimmer/muse-glimmer-30b-text-f16-af32",
       "qwen3/qwen-3-5-0-8b-canonical-f32",
       "qwen3/qwen-3-5-0-8b-q4k-ehaf16",
       "qwen3/qwen-3-5-2b-q4k-ehaf16",
       "qwen3/qwen-3-5-9b-f16-af32",
       "qwen3/qwen-3-5-9b-q4k-ehaf16",
       "qwen3/qwen-3-6-27b-q4k-eaf16",
       "qwen3/qwen-3-6-27b-q4k-ehaf16",
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32",
       "qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32",
       "qwen3/qwen3.8-27b-q4_0-passthrough",
       "qwen3/qwen3.8-27b-text-f16-af32",
       "qwen3/qwen3.8-27b-text-q4k-ehaf16"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "prefill_head512_f16kv": {
     "wgsl": "attention_head512_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [16,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "tiled_small",
      "queryBlockSize": 16,
      "exactHeadDim": 512,
      "maxHeadDim": 512,
      "requiredShared": 16384
     },
     "description": "head_dim=512 variant of prefill_head256_f16kv for Gemma-4 global attention layers. BLOCK_SIZE=16 keeps shared_block at 16KB and avoids VGPR spill from 128 vec4<f32> private arrays per thread (iter 26 measured BLOCK_SIZE=32 at -1.7% due to register pressure).",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32-int4ple"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "prefill_head512_f16": {
     "wgsl": "attention_head512_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [16,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "variantMetadata": {
      "tier": "tiled_small",
      "queryBlockSize": 16,
      "exactHeadDim": 512,
      "maxHeadDim": 512,
      "requiredShared": 16384
     },
     "description": "head_dim=512 pure-f16 activation prefill kernel for Gemma-4 global attention layers.",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-w4a16-ct-ehf16-af16"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "prefill_flash_head256_f16kv": {
     "wgsl": "attention_prefill_flash_head256_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [32,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "flash_prefill",
      "exactHeadDim": 256,
      "maxHeadDim": 256,
      "requiredShared": 32768
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "Q",
       "type": "read-only-storage",
       "wgslName": "Q"
      },
      {
       "index": 2,
       "name": "K",
       "type": "read-only-storage",
       "wgslName": "K"
      },
      {
       "index": 3,
       "name": "V",
       "type": "read-only-storage",
       "wgslName": "V"
      },
      {
       "index": 4,
       "name": "partialAcc",
       "type": "storage",
       "wgslName": "partial_acc"
      },
      {
       "index": 5,
       "name": "partialM",
       "type": "storage",
       "wgslName": "partial_m"
      },
      {
       "index": 6,
       "name": "partialL",
       "type": "storage",
       "wgslName": "partial_l"
      },
      {
       "index": 7,
       "name": "kvLen",
       "type": "read-only-storage",
       "wgslName": "kv_len_buffer"
      },
      {
       "index": 8,
       "name": "pageTable",
       "type": "read-only-storage",
       "wgslName": "page_table"
      }
     ],
     "uniformsOverride": {
      "size": 64,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "query_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "num_kv_splits",
        "type": "u32",
        "offset": 56
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 60,
        "padding": true
       }
      ]
     }
    },
    "prefill_flash_reduce": {
     "wgsl": "attention_prefill_flash_reduce.wgsl",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "flash_reduce"
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "partialAcc",
       "type": "read-only-storage",
       "wgslName": "partial_acc"
      },
      {
       "index": 2,
       "name": "partialM",
       "type": "read-only-storage",
       "wgslName": "partial_m"
      },
      {
       "index": 3,
       "name": "partialL",
       "type": "read-only-storage",
       "wgslName": "partial_l"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage",
       "wgslName": "output"
      }
     ],
     "uniformsOverride": {
      "size": 16,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "query_len",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "num_kv_splits",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 12,
        "padding": true
       }
      ]
     }
    },
    "prefill_streaming_f16kv": {
     "wgsl": "attention_streaming_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [1,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "streaming"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16",
       "gemma3/translategemma-4b-1b-enes-q4k-ehf16-af32",
       "gemma3/translategemma-4b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32-int4ple",
       "gemma4/gemma-4-moe-q4k-ehf16-af32",
       "gpt-oss-20b-f16-xmxfp4",
       "janus/janus-pro-1b-text-q4k-ehaf16",
       "minicpm/minicpm4-0-5b-f16-af32",
       "muse-glimmer/muse-glimmer-30b-text-bf16-af32",
       "muse-glimmer/muse-glimmer-30b-text-f16-af32",
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-5-0-8b-canonical-f32",
       "qwen3/qwen-3-5-0-8b-q4k-ehaf16",
       "qwen3/qwen-3-5-2b-q4k-ehaf16",
       "qwen3/qwen-3-5-9b-f16-af32",
       "qwen3/qwen-3-5-9b-q4k-ehaf16",
       "qwen3/qwen-3-6-27b-q4k-eaf16",
       "qwen3/qwen-3-6-27b-q4k-ehaf16",
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32",
       "qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32",
       "qwen3/qwen-3-embedding-0-6b-f16-af32",
       "qwen3/qwen-3-embedding-0-6b-q4k-ehf16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32",
       "qwen3/qwen3.8-27b-text-f16-af32",
       "qwen3/qwen3.8-27b-text-q4k-ehaf16"
      ],
      "ruleChains": ["attention.rules.json#variant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 76,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "query_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "bidirectional_span_start",
        "type": "u32",
        "offset": 56
       },
       {
        "name": "bidirectional_span_length",
        "type": "u32",
        "offset": 60
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 64,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 68,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 72,
        "padding": true
       }
      ]
     }
    },
    "decode_streaming_f16kv": {
     "wgsl": "attention_streaming_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [1,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "streaming"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16",
       "gemma3/translategemma-4b-1b-enes-q4k-ehf16-af32",
       "gemma3/translategemma-4b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32-int4ple",
       "gemma4/gemma-4-moe-q4k-ehf16-af32",
       "gpt-oss-20b-f16-xmxfp4",
       "janus/janus-pro-1b-text-q4k-ehaf16",
       "minicpm/minicpm4-0-5b-f16-af32",
       "muse-glimmer/muse-glimmer-30b-text-bf16-af32",
       "muse-glimmer/muse-glimmer-30b-text-f16-af32",
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-5-0-8b-canonical-f32",
       "qwen3/qwen-3-5-0-8b-q4k-ehaf16",
       "qwen3/qwen-3-5-2b-q4k-ehaf16",
       "qwen3/qwen-3-5-9b-f16-af32",
       "qwen3/qwen-3-5-9b-q4k-ehaf16",
       "qwen3/qwen-3-6-27b-q4k-eaf16",
       "qwen3/qwen-3-6-27b-q4k-ehaf16",
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32",
       "qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32",
       "qwen3/qwen-3-embedding-0-6b-f16-af32",
       "qwen3/qwen-3-embedding-0-6b-q4k-ehf16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32",
       "qwen3/qwen3.8-27b-text-f16-af32",
       "qwen3/qwen3.8-27b-text-q4k-ehaf16"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 76,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "query_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "bidirectional_span_start",
        "type": "u32",
        "offset": 56
       },
       {
        "name": "bidirectional_span_length",
        "type": "u32",
        "offset": 60
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 64,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 68,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 72,
        "padding": true
       }
      ]
     }
    },
    "decode_online_f16": {
     "wgsl": "attention_decode_online_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f16",
     "variantMetadata": {
      "tier": "subgroup",
      "maxHeadDim": 512
     },
     "description": "Online decode kernel - f16 QKV with subgroup reductions",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["gemma4/gemma-4-12b-it-text-w4a16-ct-ehf16-af16"],
      "ruleChains": ["attention.rules.json#optimizedVariant","attention.rules.json#variant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 60,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "kv_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 56,
        "padding": true
       }
      ]
     }
    },
    "decode_online_f16kv": {
     "wgsl": "attention_decode_online_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "subgroup",
      "maxHeadDim": 512
     },
     "description": "Online decode kernel - f32 Q with f16 KV and subgroup reductions",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16",
       "gemma3/gemma-3-1b-it-f16-af32",
       "gemma3/gemma-3-1b-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af16",
       "gemma3/translategemma-4b-1b-enes-q4k-ehf16-af32",
       "gemma3/translategemma-4b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32-int4ple",
       "gemma4/gemma-4-moe-q4k-ehf16-af32",
       "glmocr/glm-ocr-f16-af32",
       "gpt-oss-20b-f16-xmxfp4",
       "janus/janus-pro-1b-text-q4k-ehaf16",
       "lfm2/lfm2.5-1.2b-instruct-q4k-ehf16-af32",
       "minicpm/minicpm4-0-5b-f16-af32",
       "muse-glimmer/muse-glimmer-30b-text-bf16-af32",
       "muse-glimmer/muse-glimmer-30b-text-f16-af32",
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-5-0-8b-canonical-f32",
       "qwen3/qwen-3-5-0-8b-q4k-ehaf16",
       "qwen3/qwen-3-5-2b-q4k-ehaf16",
       "qwen3/qwen-3-5-9b-f16-af32",
       "qwen3/qwen-3-5-9b-q4k-ehaf16",
       "qwen3/qwen-3-6-27b-q4k-eaf16",
       "qwen3/qwen-3-6-27b-q4k-ehaf16",
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32",
       "qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32",
       "qwen3/qwen-3-embedding-0-6b-f16-af32",
       "qwen3/qwen-3-embedding-0-6b-q4k-ehf16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32",
       "qwen3/qwen3.8-27b-q4_0-passthrough",
       "qwen3/qwen3.8-27b-text-f16-af32",
       "qwen3/qwen3.8-27b-text-q4k-ehaf16"
      ],
      "ruleChains": ["attention.rules.json#optimizedVariant","attention.rules.json#variant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 60,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "kv_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 56,
        "padding": true
       }
      ]
     }
    },
    "decode_online_head256_f16kv": {
     "wgsl": "attention_decode_online_head256_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "subgroup",
      "exactHeadDim": 256,
      "maxHeadDim": 256
     },
     "description": "Online decode kernel specialized for head_dim=256 with f32 Q, f16 KV, and subgroup reductions",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "gemma3/gemma-3-270m-it-f16-af32",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-w8a8-ehf16-af32",
       "runtime/profiles/qwen-3-5-0-8b-f16-m3"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 60,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "kv_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 56,
        "padding": true
       }
      ]
     }
    },
    "decode_online_head256_f16kv_output_gate": {
     "wgsl": "attention_decode_online_head256_f16kv_output_gate.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "subgroup",
      "exactHeadDim": 256,
      "maxHeadDim": 256
     },
     "description": "Online decode kernel specialized for head_dim=256 with f32 Q, f16 KV, subgroup reductions, and fused f32 output-gate sigmoid",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "runtime/profiles/qwen-3-5-0-8b-metal-parity",
       "runtime/profiles/qwen-3-5-0-8b-metal-throughput",
       "runtime/profiles/qwen-3-5-0-8b-vulkan-parity",
       "runtime/profiles/qwen-3-5-0-8b-vulkan-subgroup8",
       "runtime/profiles/qwen-3-5-2b-metal-throughput"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 60,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "kv_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 56,
        "padding": true
       }
      ]
     }
    },
    "decode_chunked_f16": {
     "wgsl": "attention_decode_chunked_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "variantMetadata": {
      "tier": "streaming",
      "maxKVLen": 2048
     },
     "description": "Chunked decode kernel - f16 QKV + f16 output",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#chunkedVariant","attention.rules.json#variant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 60,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "kv_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 56,
        "padding": true
       }
      ]
     }
    },
    "decode_chunked_f16kv": {
     "wgsl": "attention_decode_chunked_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "streaming",
      "maxKVLen": 2048
     },
     "description": "Chunked decode kernel - parallelizes headDim for models with few heads",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#chunkedVariant","attention.rules.json#variant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 60,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "kv_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 56,
        "padding": true
       }
      ]
     }
    },
    "decode_paged_f16": {
     "wgsl": "attention_decode_paged_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "variantMetadata": {
      "tier": "tiled_large"
     },
     "description": "Paged decode kernel - f16 Q/K/V with page table indirection",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#pagedVariant","attention.rules.json#variant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 60,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "kv_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 56,
        "padding": true
       }
      ]
     }
    },
    "decode_paged_f16kv": {
     "wgsl": "attention_decode_paged_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "tiled_large"
     },
     "description": "Paged decode kernel - f16 KV with page table indirection",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#pagedVariant","attention.rules.json#variant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 60,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "kv_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 56,
        "padding": true
       }
      ]
     }
    },
    "decode_subgroup": {
     "wgsl": "attention_decode_subgroup.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["subgroup_id"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "subgroup"
     },
     "description": "Subgroup-optimized decode kernel - 4 barriers (vs 80), 100% thread utilization",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#variant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 60,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "kv_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 56,
        "padding": true
       }
      ]
     }
    },
    "paired": {
     "wgsl": "attention_paired.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "kvDtype": "f16"
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "queries",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "keys",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "values",
       "type": "read-only-storage"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 48,
      "fields": [
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "kv_len",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "scale_hi",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "scale_lo",
        "type": "f32",
        "offset": 36
       },
       {
        "name": "causal",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 44,
        "padding": true
       }
      ]
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "paired_tiled": {
     "wgsl": "attention_paired_tiled.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "DOT_LANES": 4
     },
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "kvDtype": "f16"
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "queries",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "keys",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "values",
       "type": "read-only-storage"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 48,
      "fields": [
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "kv_len",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "scale_hi",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "scale_lo",
        "type": "f32",
        "offset": 36
       },
       {
        "name": "causal",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 44,
        "padding": true
       }
      ]
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "prefill_partitioned_head256_f16kv": {
     "wgsl": "attention_prefill_partitioned_head256_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "tiled_small",
      "queryBlockSize": 16,
      "exactHeadDim": 256,
      "maxHeadDim": 256,
      "requiredShared": 18688,
      "subgroupPartitionLanes": 16
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen-3-5-0-8b-vulkan-subgroup8"],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "description": "Head-256 F32-query/F16-KV prefill with compensated partitioned dot products and bounded per-lane accumulators."
    },
    "decode_online": {
     "wgsl": "attention_decode_online.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "subgroup",
      "maxHeadDim": 512
     },
     "description": "Online decode kernel with f32 Q/K/V, f32 compensated accumulation, and subgroup reductions",
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 60,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "kv_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 56,
        "padding": true
       }
      ]
     }
    },
    "decode_gqa_splitk": {
     "wgsl": "attention_decode_gqa_splitk.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "subgroup",
      "exactHeadDim": 256,
      "maxHeadDim": 256,
      "requiredShared": 10304
     },
     "description": "Split-K single-query decode over f32 contiguous KV: one workgroup per (split, KV head) serving eight query heads; per-split partials merged by decode_gqa_splitk_combine",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 60,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "kv_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 56,
        "padding": true
       }
      ]
     }
    },
    "decode_gqa_splitk_combine": {
     "wgsl": "attention_decode_gqa_splitk.wgsl",
     "entryPoint": "combine",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "splitk_combine",
      "exactHeadDim": 256,
      "maxHeadDim": 256
     },
     "description": "Per-head merge of decode_gqa_splitk partials in split order",
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 60,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "kv_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 56,
        "padding": true
       }
      ]
     }
    },
    "prefill_query_tile_f32": {
     "wgsl": "attention_prefill_query_tile_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "wgslOverrides": {
      "HEAD_DIM": 256,
      "WORKGROUP_SIZE": 256,
      "QUERY_TILE": 8
     },
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["subgroup_id"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "tiled_small",
      "queryBlockSize": 8,
      "exactHeadDim": 256,
      "maxHeadDim": 256,
      "requiredShared": 16384,
      "subgroupPartitionLanes": 32,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "description": "Opt-in F32 online prefill query tile; component and model qualification pending.",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 76,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "query_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "bidirectional_span_start",
        "type": "u32",
        "offset": 56
       },
       {
        "name": "bidirectional_span_length",
        "type": "u32",
        "offset": 60
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 64,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 68,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 72,
        "padding": true
       }
      ]
     }
    },
    "prefill_query_tile16_f32": {
     "wgsl": "attention_prefill_query_tile_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [512,1,1],
     "wgslOverrides": {
      "HEAD_DIM": 256,
      "WORKGROUP_SIZE": 512,
      "QUERY_TILE": 16
     },
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["subgroup_id"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "tiled_small",
      "queryBlockSize": 16,
      "exactHeadDim": 256,
      "maxHeadDim": 256,
      "requiredShared": 16384,
      "subgroupPartitionLanes": 32,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "description": "Opt-in F32 online prefill, 16 queries share one key/value tile; requires 512-invocation workgroups.",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 76,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "query_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "bidirectional_span_start",
        "type": "u32",
        "offset": 56
       },
       {
        "name": "bidirectional_span_length",
        "type": "u32",
        "offset": 60
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 64,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 68,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 72,
        "padding": true
       }
      ]
     }
    },
    "prefill_query_tile_f16kv": {
     "wgsl": "attention_prefill_query_tile_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "wgslOverrides": {
      "HEAD_DIM": 256,
      "WORKGROUP_SIZE": 256,
      "QUERY_TILE": 8
     },
     "requires": ["subgroups","shader-f16"],
     "requiredWgslFeatures": ["subgroup_id"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "tiled_small",
      "queryBlockSize": 8,
      "exactHeadDim": 256,
      "maxHeadDim": 256,
      "requiredShared": 16384,
      "subgroupPartitionLanes": 32,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "description": "Opt-in F32 query/output online prefill with F16 KV, shared query/key tiles; full-model precision qualification pending.",
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 76,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "query_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "bidirectional_span_start",
        "type": "u32",
        "offset": 56
       },
       {
        "name": "bidirectional_span_length",
        "type": "u32",
        "offset": 60
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 64,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 68,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 72,
        "padding": true
       }
      ]
     }
    },
    "prefill_query_tile16_f16kv": {
     "wgsl": "attention_prefill_query_tile_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [512,1,1],
     "wgslOverrides": {
      "HEAD_DIM": 256,
      "WORKGROUP_SIZE": 512,
      "QUERY_TILE": 16
     },
     "requires": ["subgroups","shader-f16"],
     "requiredWgslFeatures": ["subgroup_id"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "tiled_small",
      "queryBlockSize": 16,
      "exactHeadDim": 256,
      "maxHeadDim": 256,
      "requiredShared": 16384,
      "subgroupPartitionLanes": 32,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "description": "Opt-in F32 query/output online prefill with F16 KV, shared query/key tiles; full-model precision qualification pending.",
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 76,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "query_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "bidirectional_span_start",
        "type": "u32",
        "offset": 56
       },
       {
        "name": "bidirectional_span_length",
        "type": "u32",
        "offset": 60
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 64,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 68,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 72,
        "padding": true
       }
      ]
     }
    },
    "query_splitk_f32": {
     "wgsl": "attention_prefill_query_splitk_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "wgslOverrides": {
      "HEAD_DIM": 256,
      "WORKGROUP_SIZE": 256,
      "QUERY_TILE": 8,
      "KV_SPLITS": 16
     },
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["subgroup_id"],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "tiled_small",
      "queryBlockSize": 8,
      "exactHeadDim": 256,
      "maxHeadDim": 256,
      "requiredShared": 16384,
      "subgroupPartitionLanes": 32,
      "workgroupConstants": ["WORKGROUP_SIZE",null,null],
      "querySplitK": true,
      "reduceVariant": "query_splitk_reduce_f32"
     },
     "description": "Explicit F32 query tiles with KV-axis partials and ordered reduction; contiguous causal admission.",
     "uniformsOverride": {
      "size": 76,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "query_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "kv_len_source",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "kv_start",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "page_size",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "kv_layout",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "bidirectional_span_start",
        "type": "u32",
        "offset": 56
       },
       {
        "name": "bidirectional_span_length",
        "type": "u32",
        "offset": 60
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 64,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 68,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 72,
        "padding": true
       }
      ]
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "Q",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "K",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "V",
       "type": "read-only-storage"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage"
      },
      {
       "index": 5,
       "name": "kv_len",
       "type": "read-only-storage"
      },
      {
       "index": 6,
       "name": "page_table",
       "type": "read-only-storage"
      },
      {
       "index": 7,
       "name": "partialM",
       "type": "storage",
       "wgslName": "partial_m"
      },
      {
       "index": 8,
       "name": "partialL",
       "type": "storage",
       "wgslName": "partial_l"
      }
     ],
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "query_splitk_reduce_f32": {
     "wgsl": "attention_prefill_query_splitk_reduce_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "tier": "flash_reduce"
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform",
       "wgslName": "u"
      },
      {
       "index": 1,
       "name": "partialAcc",
       "type": "read-only-storage",
       "wgslName": "partial_acc"
      },
      {
       "index": 2,
       "name": "partialM",
       "type": "read-only-storage",
       "wgslName": "partial_m"
      },
      {
       "index": 3,
       "name": "partialL",
       "type": "read-only-storage",
       "wgslName": "partial_l"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage",
       "wgslName": "output"
      }
     ],
     "uniformsOverride": {
      "size": 16,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "query_len",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "num_kv_splits",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 12,
        "padding": true
       }
      ]
     },
     "wgslOverrides": {
      "BLOCK_SIZE": 8,
      "MAX_KV_SPLITS": 16
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "attention_tiered": {
   "description": "Tiered attention kernels (hot ring + cold paged)",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "Q",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "K_hot",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "V_hot",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "K_cold",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "V_cold",
     "type": "read-only-storage"
    },
    {
     "index": 6,
     "name": "output",
     "type": "storage"
    },
    {
     "index": 7,
     "name": "cold_page_table",
     "type": "read-only-storage"
    }
   ],
   "baseUniforms": {
    "size": 68,
    "fields": [
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_kv_heads",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "cold_len",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "hot_len",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "seq_len",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "scale",
      "type": "f32",
      "offset": 24
     },
     {
      "name": "is_causal",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "start_pos",
      "type": "u32",
      "offset": 32
     },
     {
      "name": "attn_softcap",
      "type": "f32",
      "offset": 36
     },
     {
      "name": "sliding_window",
      "type": "u32",
      "offset": 40
     },
     {
      "name": "hot_window",
      "type": "u32",
      "offset": 44
     },
     {
      "name": "hot_start",
      "type": "u32",
      "offset": 48
     },
     {
      "name": "cold_page_size",
      "type": "u32",
      "offset": 52
     },
     {
      "name": "cold_layout",
      "type": "u32",
      "offset": 56
     },
     {
      "name": "hot_layout",
      "type": "u32",
      "offset": 60
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 64,
      "padding": true
     }
    ]
   },
   "variants": {
    "decode_tiered_f16": {
     "wgsl": "attention_decode_tiered_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "variantMetadata": {
      "maxKVLen": 2048
     },
     "description": "Tiered decode kernel - f16 QKV + f16 output",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#tieredVariant"],
      "wgslOnDisk": true
     }
    },
    "decode_tiered_f16kv": {
     "wgsl": "attention_decode_tiered_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "maxKVLen": 2048
     },
     "description": "Tiered decode kernel - f32 Q + f16 KV",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#tieredVariant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "attention_tiered_quant": {
   "description": "Tiered attention kernels with quantized cold cache",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "Q",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "K_hot",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "V_hot",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "K_cold",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "V_cold",
     "type": "read-only-storage"
    },
    {
     "index": 6,
     "name": "scales_k",
     "type": "read-only-storage"
    },
    {
     "index": 7,
     "name": "scales_v",
     "type": "read-only-storage"
    },
    {
     "index": 8,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 60,
    "fields": [
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_kv_heads",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "cold_len",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "hot_len",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "seq_len",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "scale",
      "type": "f32",
      "offset": 24
     },
     {
      "name": "is_causal",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "start_pos",
      "type": "u32",
      "offset": 32
     },
     {
      "name": "attn_softcap",
      "type": "f32",
      "offset": 36
     },
     {
      "name": "sliding_window",
      "type": "u32",
      "offset": 40
     },
     {
      "name": "hot_window",
      "type": "u32",
      "offset": 44
     },
     {
      "name": "hot_start",
      "type": "u32",
      "offset": 48
     },
     {
      "name": "packed_stride",
      "type": "u32",
      "offset": 52
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 56,
      "padding": true
     }
    ]
   },
   "variants": {
    "decode_tiered_int8_f16kv": {
     "wgsl": "attention_decode_tiered_int8_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "maxKVLen": 2048
     },
     "description": "Tiered decode kernel - int8 cold K/V with f16 hot K/V",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#tieredQuantVariant"],
      "wgslOnDisk": true
     }
    },
    "decode_tiered_int4_f16kv": {
     "wgsl": "attention_decode_tiered_int4_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "maxKVLen": 2048
     },
     "description": "Tiered decode kernel - int4 cold K/V with f16 hot K/V",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#tieredQuantVariant"],
      "wgslOnDisk": true
     }
    },
    "decode_tiered_turboquant_f16kv": {
     "wgsl": "attention_decode_tiered_turboquant_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "maxKVLen": 2048
     },
     "description": "Tiered decode kernel - TurboQuant MSE cold K/V with f16 hot K/V",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#tieredQuantVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 64,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "cold_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "hot_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 24
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 32
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 36
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "hot_window",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "hot_start",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "packed_stride",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 56,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 60,
        "padding": true
       }
      ]
     }
    },
    "decode_tiered_turboquant_prod_f16kv": {
     "wgsl": "attention_decode_tiered_turboquant_prod_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "maxKVLen": 2048
     },
     "description": "Tiered decode kernel - TurboQuant prod (MSE+QJL) cold K/V with f16 hot K/V",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#tieredQuantVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 64,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "cold_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "hot_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 24
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 32
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 36
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "hot_window",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "hot_start",
        "type": "u32",
        "offset": 48
       },
       {
        "name": "packed_stride_mse",
        "type": "u32",
        "offset": 52
       },
       {
        "name": "packed_stride_residual",
        "type": "u32",
        "offset": 56
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 60,
        "padding": true
       }
      ]
     }
    }
   }
  },
  "attention_contiguous_quant": {
   "description": "Contiguous quantized attention kernels for full-attention models",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "Q",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "K_packed",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "V_packed",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "scales_k",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "scales_v",
     "type": "read-only-storage"
    },
    {
     "index": 6,
     "name": "output",
     "type": "storage"
    },
    {
     "index": 7,
     "name": "rotation_matrix",
     "type": "read-only-storage"
    },
    {
     "index": 8,
     "name": "codebook_centroids",
     "type": "read-only-storage"
    }
   ],
   "baseUniforms": {
    "size": 48,
    "fields": [
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_kv_heads",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "kv_len",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "seq_len",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "scale",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "is_causal",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "start_pos",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "attn_softcap",
      "type": "f32",
      "offset": 32
     },
     {
      "name": "sliding_window",
      "type": "u32",
      "offset": 36
     },
     {
      "name": "packed_stride",
      "type": "u32",
      "offset": 40
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 44,
      "padding": true
     }
    ]
   },
   "variants": {
    "decode_contiguous_turboquant_f16kv": {
     "wgsl": "attention_decode_contiguous_turboquant_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "maxKVLen": 2048
     },
     "description": "Contiguous decode kernel - TurboQuant MSE quantized K/V",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#contiguousQuantVariant"],
      "wgslOnDisk": true
     }
    },
    "decode_contiguous_turboquant_prod_f16kv": {
     "wgsl": "attention_decode_contiguous_turboquant_prod_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "maxKVLen": 2048
     },
     "description": "Contiguous decode kernel - TurboQuant prod (MSE+QJL) quantized K/V",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#contiguousQuantVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 48,
      "fields": [
       {
        "name": "num_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "kv_len",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "seq_len",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "is_causal",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "attn_softcap",
        "type": "f32",
        "offset": 32
       },
       {
        "name": "sliding_window",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "packed_stride_mse",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "packed_stride_residual",
        "type": "u32",
        "offset": 44
       }
      ]
     }
    }
   }
  },
  "kv_quantize": {
   "description": "Quantize KV cache for cold tier",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input_k",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "input_v",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output_k",
     "type": "storage"
    },
    {
     "index": 4,
     "name": "output_v",
     "type": "storage"
    },
    {
     "index": 5,
     "name": "scales_k",
     "type": "storage"
    },
    {
     "index": 6,
     "name": "scales_v",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 24,
    "fields": [
     {
      "name": "num_kv_heads",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "start_pos",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "packed_stride",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 20,
      "padding": true
     }
    ]
   },
   "variants": {
    "int8": {
     "wgsl": "kv_quantize_int8.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "description": "Quantize KV to int8 (packed u32) with per-head scale",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["kv_quantize.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "int4": {
     "wgsl": "kv_quantize_int4.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "description": "Quantize KV to int4 (packed u32) with per-head scale",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["kv_quantize.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "turboquant": {
     "wgsl": "kv_quantize_turboquant.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "description": "TurboQuant MSE: rotation + codebook quantize with per-head norm",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["kv_quantize.rules.json#variant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "packed_stride",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 20,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     }
    },
    "turboquant_prod": {
     "wgsl": "kv_quantize_turboquant_prod.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "description": "TurboQuant prod: MSE at (b-1) bits + 1-bit QJL residual for unbiased inner products",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["kv_quantize.rules.json#variant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "num_kv_heads",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "head_dim",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "start_pos",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "packed_stride_mse",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "packed_stride_residual",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     }
    }
   }
  },
  "lm_head_argmax": {
   "description": "Fused LM-head GEMV plus greedy argmax",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "hidden",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weights",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    },
    {
     "index": 4,
     "name": "temp_indices",
     "type": "storage"
    },
    {
     "index": 5,
     "name": "temp_logits",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "vocab_size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "transpose_b",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "workgroups_x",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "pad_token_id",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "logit_softcap",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "output_index",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "num_groups",
      "type": "u32",
      "offset": 28
     }
    ]
   },
   "variants": {
    "phase1_f16w_f32a": {
     "wgsl": "lm_head_argmax_f16.wgsl",
     "entryPoint": "phase1",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "weightDtype": "f16",
     "variantMetadata": {
      "colsPerWg": 64,
      "threadsPerCol": 4
     },
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["lm-head-argmax.rules.json#phase1Variant"],
      "wgslOnDisk": true
     }
    },
    "phase1_q4k_f32a": {
     "wgsl": "lm_head_argmax_q4k.wgsl",
     "entryPoint": "phase1",
     "workgroup": [256,1,1],
     "weightDtype": "q4k",
     "variantMetadata": {
      "colsPerWg": 64,
      "threadsPerCol": 4
     },
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["lm-head-argmax.rules.json#phase1Variant"],
      "wgslOnDisk": true
     }
    },
    "phase2": {
     "wgsl": "lm_head_argmax_f16.wgsl",
     "entryPoint": "phase2",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["lm-head-argmax.rules.json#phase2Variant"],
      "wgslOnDisk": true
     }
    },
    "phase2_q4k": {
     "wgsl": "lm_head_argmax_q4k.wgsl",
     "entryPoint": "phase2",
     "workgroup": [256,1,1],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["lm-head-argmax.rules.json#phase2Variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "lm_head_select_logits": {
   "description": "Selected-token LM-head f16-weight GEMV for rerank yes/no logits",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "hidden",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weights",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "token_ids",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "vocab_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "token_count",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "hidden_offset",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "transpose_b",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "logit_softcap",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "f16w_f32a": {
     "wgsl": "lm_head_select_logits.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "weightDtype": "f16",
     "inputDtype": "f32",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "rmsnorm": {
   "description": "RMS normalization kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    },
    {
     "index": 4,
     "name": "residual",
     "type": "read-only-storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "has_residual",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "token_stride",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "output_scale",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "rmsnorm.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "amplify/amplify-120m-f16-af32",
       "diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16",
       "embeddinggemma/google-embeddinggemma-300m-q4k-ehf16-af32",
       "gemma3/gemma-3-1b-it-f16-af32",
       "gemma3/gemma-3-1b-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-f16-af32",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af16",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-w8a8-ehf16-af32",
       "gemma3/translategemma-4b-1b-enes-q4k-ehf16-af32",
       "gemma3/translategemma-4b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16",
       "gemma4/gemma-4-12b-it-text-w4a16-ct-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32-int4ple",
       "gemma4/gemma-4-moe-q4k-ehf16-af32",
       "glmocr/glm-ocr-f16-af32",
       "gpt-oss-20b-f16-xmxfp4",
       "janus/janus-pro-1b-text-q4k-ehaf16",
       "lfm2/lfm2.5-1.2b-instruct-q4k-ehf16-af32",
       "minicpm/minicpm4-0-5b-f16-af32",
       "muse-glimmer/muse-glimmer-30b-text-bf16-af32",
       "muse-glimmer/muse-glimmer-30b-text-f16-af32",
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-5-0-8b-canonical-f32",
       "qwen3/qwen-3-5-0-8b-q4k-ehaf16",
       "qwen3/qwen-3-5-2b-q4k-ehaf16",
       "qwen3/qwen-3-5-9b-f16-af32",
       "qwen3/qwen-3-5-9b-q4k-ehaf16",
       "qwen3/qwen-3-6-27b-q4k-eaf16",
       "qwen3/qwen-3-6-27b-q4k-ehaf16",
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32",
       "qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32",
       "qwen3/qwen-3-embedding-0-6b-f16-af32",
       "qwen3/qwen-3-embedding-0-6b-q4k-ehf16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32",
       "qwen3/qwen3.8-27b-q4_0-passthrough",
       "qwen3/qwen3.8-27b-text-f16-af32",
       "qwen3/qwen3.8-27b-text-q4k-ehaf16",
       "runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"
      ],
      "ruleChains": ["rmsnorm.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "small": {
     "wgsl": "rmsnorm.wgsl",
     "entryPoint": "main_small",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["rmsnorm.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "residual": {
     "wgsl": "rmsnorm.wgsl",
     "entryPoint": "main_cached",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["rmsnorm.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "subgroup": {
     "wgsl": "rmsnorm.wgsl",
     "entryPoint": "main_subgroup",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#tier","rmsnorm.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "small_subgroup": {
     "wgsl": "rmsnorm.wgsl",
     "entryPoint": "main_small_subgroup",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["rmsnorm.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "default_f16": {
     "wgsl": "rmsnorm_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16"],
      "ruleChains": ["rmsnorm.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "small_f16": {
     "wgsl": "rmsnorm_f16.wgsl",
     "entryPoint": "rmsnorm_small_f16",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["rmsnorm.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "paired": {
     "wgsl": "rmsnorm_paired.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "bindings": [
      {
       "name": "uniforms",
       "type": "uniform",
       "index": 0
      },
      {
       "name": "input",
       "type": "read-only-storage",
       "index": 1
      },
      {
       "name": "weight",
       "type": "read-only-storage",
       "index": 2
      },
      {
       "name": "output",
       "type": "storage",
       "index": 3
      },
      {
       "name": "residual",
       "type": "read-only-storage",
       "index": 4
      },
      {
       "name": "prenorm",
       "type": "storage",
       "index": 5
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "size",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "eps_hi",
        "type": "f32",
        "offset": 8
       },
       {
        "name": "eps_lo",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "token_stride",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale_hi",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "scale_lo",
        "type": "f32",
        "offset": 24
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32"
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "paired_sliced": {
     "wgsl": "rmsnorm_paired_sliced.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "requires": [],
     "bindings": [
      {
       "name": "uniforms",
       "type": "uniform",
       "index": 0
      },
      {
       "name": "input",
       "type": "read-only-storage",
       "index": 1
      },
      {
       "name": "weight",
       "type": "read-only-storage",
       "index": 2
      },
      {
       "name": "output",
       "type": "storage",
       "index": 3
      },
      {
       "name": "residual",
       "type": "read-only-storage",
       "index": 4
      },
      {
       "name": "prenorm",
       "type": "storage",
       "index": 5
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "size",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "eps_hi",
        "type": "f32",
        "offset": 8
       },
       {
        "name": "eps_lo",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "token_stride",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "scale_hi",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "scale_lo",
        "type": "f32",
        "offset": 24
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     },
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "dispatchGeometry": "tokenSlices"
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "rmsnorm_pair": {
   "description": "Two-output sandwich RMSNorm decode kernel: post_attn_norm plus pre_ffn_norm",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "residual",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "post_weight",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "pre_weight",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "post_output",
     "type": "storage"
    },
    {
     "index": 6,
     "name": "pre_output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "has_residual",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "token_stride",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "rmsnorm_pair.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "subgroup": {
     "wgsl": "rmsnorm_pair.wgsl",
     "entryPoint": "main_subgroup",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#tier"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "residual_rmsnorm_pair": {
   "description": "Two-output decode kernel: residual add plus next-layer input RMSNorm",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "residual",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "norm_weight",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "residual_output",
     "type": "storage"
    },
    {
     "index": 5,
     "name": "norm_output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "output_scale",
      "type": "f32",
      "offset": 12
     },
     {
      "name": "token_stride",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "subgroup": {
     "wgsl": "residual_rmsnorm_pair.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#tier"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "rmsnorm_qk": {
   "description": "Fused Q/K RMS normalization kernel",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "q_input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "q_weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "q_output",
     "type": "storage"
    },
    {
     "index": 4,
     "name": "k_input",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "k_weight",
     "type": "read-only-storage"
    },
    {
     "index": 6,
     "name": "k_output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "q_rows",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "k_rows",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "row_stride",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 16
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "rmsnorm_qk.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-embedding-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32"
      ],
      "ruleChains": ["rmsnorm-qk.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "default_f16": {
     "wgsl": "rmsnorm_qk_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["rmsnorm-qk.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "layernorm": {
   "description": "Layer normalization kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "bias",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "layernorm.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "esm/esm2-t12-35m-ur50d-f32-af32",
       "esmc/esmc-300m-f32-af32",
       "nucleotide-transformer/nucleotide-transformer-v2-50m-f32-af32"
      ],
      "ruleChains": ["layernorm.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "default_f16": {
     "wgsl": "layernorm_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["layernorm.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "fused_matmul_rmsnorm": {
   "description": "Fused GEMV + RMSNorm for decode (M=1)",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weights",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "norm_weight",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "N",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "K",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "has_residual",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "transpose_b",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "small": {
     "wgsl": "fused_matmul_rmsnorm.wgsl",
     "entryPoint": "gemv_rmsnorm_small",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["fused-matmul-rmsnorm.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "medium": {
     "wgsl": "fused_matmul_rmsnorm.wgsl",
     "entryPoint": "gemv_rmsnorm_medium",
     "workgroup": [256,1,1],
     "requires": [],
     "description": "Medium variant for N up to ~4096 (covers Gemma 3's hiddenSize=1152)",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["fused-matmul-rmsnorm.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "small_f16": {
     "wgsl": "fused_matmul_rmsnorm_f16.wgsl",
     "entryPoint": "gemv_rmsnorm_small",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "description": "F16 small variant for N <= 256",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["fused-matmul-rmsnorm.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "medium_f16": {
     "wgsl": "fused_matmul_rmsnorm_f16.wgsl",
     "entryPoint": "gemv_rmsnorm_medium",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "description": "F16 medium variant for N up to ~4096 (covers Gemma's hiddenSize=2304)",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["fused-matmul-rmsnorm.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "fused_matmul_residual": {
   "description": "Fused GEMV + Residual for decode (M=1)",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weights",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    },
    {
     "index": 4,
     "name": "residual",
     "type": "read-only-storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "M",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "N",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "K",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "alpha",
      "type": "f32",
      "offset": 12
     },
     {
      "name": "transpose_b",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "matmul_gemv_residual.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": [
       "fused-matmul-residual.rules.json#variant",
       "residual.rules.json#biasAddVariant"
      ],
      "wgslOnDisk": true
     }
    },
    "f16": {
     "wgsl": "matmul_gemv_residual_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": [
       "fused-matmul-residual.rules.json#variant",
       "residual.rules.json#biasAddVariant"
      ],
      "wgslOnDisk": true
     }
    }
   }
  },
  "softmax": {
   "description": "Softmax kernels with online normalization",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "inner_size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "outer_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "temperature",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "softmax.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["softmax.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "small": {
     "wgsl": "softmax.wgsl",
     "entryPoint": "softmax_small",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["softmax.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "small_subgroup": {
     "wgsl": "softmax_subgroup.wgsl",
     "entryPoint": "softmax_small_subgroup",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["softmax.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "subgroup": {
     "wgsl": "softmax_subgroup.wgsl",
     "entryPoint": "main_subgroup",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#tier","softmax.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "soft_embedding": {
   "description": "Soft embedding helpers for block-diffusion self-conditioning",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "softmax_rows",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "embedding_section",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "canvas_length",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "vocab_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "row_start",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "row_count",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "temperature",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "split_f16": {
     "wgsl": "soft_embedding_split_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [8,8,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "canvas_length",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "vocab_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "row_start",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "row_count",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "output_mode",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     }
    },
    "logits_norm_stats": {
     "wgsl": "soft_embedding_logits_f16.wgsl",
     "entryPoint": "logits_norm_stats",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "bindingsOverride": [
      {
       "index": 1,
       "name": "logits",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "row_max",
       "type": "storage"
      },
      {
       "index": 3,
       "name": "row_sum",
       "type": "storage"
      }
     ],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "logits_probability_chunk": {
     "wgsl": "soft_embedding_logits_f16.wgsl",
     "entryPoint": "logits_probability_chunk",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "bindingsOverride": [
      {
       "index": 1,
       "name": "logits",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "row_max",
       "type": "storage"
      },
      {
       "index": 3,
       "name": "row_sum",
       "type": "storage"
      },
      {
       "index": 4,
       "name": "probabilities",
       "type": "storage"
      }
     ],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "diffusion_gemma_sampling": {
   "description": "Block-diffusion canvas sampling stats for DiffusionGemma",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "logits",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "argmax_tokens",
     "type": "storage"
    },
    {
     "index": 3,
     "name": "entropies",
     "type": "storage"
    },
    {
     "index": 4,
     "name": "uniform_draws",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "sampled_tokens",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "vocab_size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "canvas_length",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "pad_token_id",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 12,
      "padding": true
     },
     {
      "name": "temperature",
      "type": "f32",
      "offset": 16
     },
     {
      "name": "logit_softcap",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "_pad1",
      "type": "f32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "f32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "entropy_stats": {
     "wgsl": "diffusion_gemma_sampling.wgsl",
     "entryPoint": "entropy_stats",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "rope": {
   "description": "Rotary position embeddings kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "storage"
    },
    {
     "index": 2,
     "name": "freqs_cos",
     "type": "storage"
    },
    {
     "index": 3,
     "name": "freqs_sin",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 48,
    "fields": [
     {
      "name": "seq_len",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "start_pos",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "rope_base",
      "type": "f32",
      "offset": 16
     },
     {
      "name": "rope_scale",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "rotary_dim",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "interleaved",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "pair_span_dim",
      "type": "u32",
      "offset": 32
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 36,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 40,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 44,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "rope.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "amplify/amplify-120m-f16-af32",
       "diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16",
       "embeddinggemma/google-embeddinggemma-300m-q4k-ehf16-af32",
       "esm/esm2-t12-35m-ur50d-f32-af32",
       "esmc/esmc-300m-f32-af32",
       "gemma3/gemma-3-1b-it-f16-af32",
       "gemma3/gemma-3-1b-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-f16-af32",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af16",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-w8a8-ehf16-af32",
       "gemma3/translategemma-4b-1b-enes-q4k-ehf16-af32",
       "gemma3/translategemma-4b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16",
       "gemma4/gemma-4-12b-it-text-w4a16-ct-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32-int4ple",
       "gemma4/gemma-4-moe-q4k-ehf16-af32",
       "glmocr/glm-ocr-f16-af32",
       "gpt-oss-20b-f16-xmxfp4",
       "janus/janus-pro-1b-text-q4k-ehaf16",
       "lfm2/lfm2.5-1.2b-instruct-q4k-ehf16-af32",
       "minicpm/minicpm4-0-5b-f16-af32",
       "muse-glimmer/muse-glimmer-30b-text-bf16-af32",
       "muse-glimmer/muse-glimmer-30b-text-f16-af32",
       "nucleotide-transformer/nucleotide-transformer-v2-50m-f32-af32",
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-5-0-8b-canonical-f32",
       "qwen3/qwen-3-5-0-8b-q4k-ehaf16",
       "qwen3/qwen-3-5-2b-q4k-ehaf16",
       "qwen3/qwen-3-5-9b-f16-af32",
       "qwen3/qwen-3-5-9b-q4k-ehaf16",
       "qwen3/qwen-3-6-27b-q4k-eaf16",
       "qwen3/qwen-3-6-27b-q4k-ehaf16",
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32",
       "qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32",
       "qwen3/qwen-3-embedding-0-6b-f16-af32",
       "qwen3/qwen-3-embedding-0-6b-q4k-ehf16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32",
       "qwen3/qwen3.8-27b-q4_0-passthrough",
       "qwen3/qwen3.8-27b-text-f16-af32",
       "qwen3/qwen3.8-27b-text-q4k-ehaf16",
       "runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"
      ],
      "ruleChains": ["rope.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "default_f16": {
     "wgsl": "rope_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16"],
      "ruleChains": ["rope.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "compute_freqs": {
     "wgsl": "rope.wgsl",
     "entryPoint": "rope_compute_freqs",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "compute_freqs_f16": {
     "wgsl": "rope_f16.wgsl",
     "entryPoint": "rope_compute_freqs",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "qk": {
     "wgsl": "rope.wgsl",
     "entryPoint": "rope_qk",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "qk_f16": {
     "wgsl": "rope_f16.wgsl",
     "entryPoint": "rope_qk",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "ntk": {
     "wgsl": "rope.wgsl",
     "entryPoint": "rope_ntk_scaled",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "ntk_f16": {
     "wgsl": "rope_f16.wgsl",
     "entryPoint": "rope_ntk_scaled",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "yarn": {
     "wgsl": "rope.wgsl",
     "entryPoint": "rope_yarn",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "yarn_f16": {
     "wgsl": "rope_f16.wgsl",
     "entryPoint": "rope_yarn",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "rope_qk": {
   "description": "Rotary position embeddings for separate Q/K buffers",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "q_input",
     "type": "storage"
    },
    {
     "index": 2,
     "name": "k_input",
     "type": "storage"
    },
    {
     "index": 3,
     "name": "freqs_cos",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "freqs_sin",
     "type": "read-only-storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "seq_len",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_q_heads",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "num_kv_heads",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "start_pos",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "rotary_dim",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "interleaved",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "pair_span_dim",
      "type": "u32",
      "offset": 28
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "rope_qk.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "esm/esm2-t12-35m-ur50d-f32-af32",
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-embedding-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32"
      ],
      "ruleChains": ["rope-qk.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "default_f16": {
     "wgsl": "rope_qk_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["rope-qk.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "paired": {
     "wgsl": "rope_qk_paired.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["rope-qk.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "channel_energy": {
   "description": "Experimental first MLP channel-gain operator; qualification pending",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "channels",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "start",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "stop",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "channel_energy.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "channel_gain_swiglu": {
   "description": "Experimental first MLP channel-gain operator; qualification pending",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "up",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "gate",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "gains",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "channels",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "clamp_max",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "channel_gain_swiglu.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "channel_gain_derive": {
   "description": "Experimental clipped and log-centered channel gains",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "instruction",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "reference",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "channels",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "beta",
      "type": "f32",
      "offset": 4
     },
     {
      "name": "clip",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "epsilon",
      "type": "f32",
      "offset": 12
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "channel_gain_derive.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "channel_gain_control": {
   "description": "Native permuted gain and matched-log-RMS random-z controls",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "gains",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "seeds",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "channels",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 4,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "permuted": {
     "wgsl": "channel_gain_control.wgsl",
     "entryPoint": "permuted",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["channel-gain-control.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "random_z": {
     "wgsl": "channel_gain_control.wgsl",
     "entryPoint": "random_z",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["channel-gain-control.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "silu": {
   "description": "SiLU activation kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    },
    {
     "index": 3,
     "name": "gate",
     "type": "read-only-storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "rowsplit_dim",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "clamp_max",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "_pad1",
      "type": "f32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "silu.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "amplify/amplify-120m-f16-af32",
       "esmc/esmc-300m-f32-af32",
       "glmocr/glm-ocr-f16-af32",
       "lfm2/lfm2.5-1.2b-instruct-q4k-ehf16-af32",
       "minicpm/minicpm4-0-5b-f16-af32",
       "muse-glimmer/muse-glimmer-30b-text-bf16-af32",
       "muse-glimmer/muse-glimmer-30b-text-f16-af32",
       "nucleotide-transformer/nucleotide-transformer-v2-50m-f32-af32",
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-5-0-8b-canonical-f32",
       "qwen3/qwen-3-5-0-8b-q4k-ehaf16",
       "qwen3/qwen-3-5-2b-q4k-ehaf16",
       "qwen3/qwen-3-5-9b-f16-af32",
       "qwen3/qwen-3-5-9b-q4k-ehaf16",
       "qwen3/qwen-3-6-27b-q4k-eaf16",
       "qwen3/qwen-3-6-27b-q4k-ehaf16",
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32",
       "qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32",
       "qwen3/qwen-3-embedding-0-6b-f16-af32",
       "qwen3/qwen-3-embedding-0-6b-q4k-ehf16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32",
       "qwen3/qwen3.8-27b-q4_0-passthrough",
       "qwen3/qwen3.8-27b-text-f16-af32",
       "qwen3/qwen3.8-27b-text-q4k-ehaf16",
       "runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"
      ],
      "ruleChains": ["silu.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "default_f16": {
     "wgsl": "silu_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["silu.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "gelu": {
   "description": "GeLU/GeGLU activation kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    },
    {
     "index": 3,
     "name": "gate",
     "type": "read-only-storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "rowsplit_dim",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "gelu": {
     "wgsl": "gelu.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16",
       "embeddinggemma/google-embeddinggemma-300m-q4k-ehf16-af32",
       "esm/esm2-t12-35m-ur50d-f32-af32",
       "gemma3/gemma-3-1b-it-f16-af32",
       "gemma3/gemma-3-1b-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-f16-af32",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af16",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-w8a8-ehf16-af32",
       "gemma3/translategemma-4b-1b-enes-q4k-ehf16-af32",
       "gemma3/translategemma-4b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-w4a16-ct-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32-int4ple",
       "gemma4/gemma-4-moe-q4k-ehf16-af32",
       "gpt-oss-20b-f16-xmxfp4",
       "janus/janus-pro-1b-text-q4k-ehaf16"
      ],
      "ruleChains": ["gelu.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "gelu_f16": {
     "wgsl": "gelu_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16"],
      "ruleChains": ["gelu.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "scale": {
   "description": "Tensor scaling kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "count",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "scale",
      "type": "f32",
      "offset": 4
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "scale.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["esm/esm2-t12-35m-ur50d-f32-af32"],
      "ruleChains": ["scale.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "default_f16": {
     "wgsl": "scale_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["scale.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "inplace": {
     "wgsl": "scale.wgsl",
     "entryPoint": "main_inplace",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["esm/esm2-t12-35m-ur50d-f32-af32"],
      "ruleChains": ["scale.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "inplace_f16": {
     "wgsl": "scale_f16.wgsl",
     "entryPoint": "main_inplace",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["scale.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "clamp": {
   "description": "Tensor clamp kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "data",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 4,
      "padding": true
     },
     {
      "name": "min",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "max",
      "type": "f32",
      "offset": 12
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "clamp.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "activation_static_qdq": {
   "description": "Static activation quantize/dequantize kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 24,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 4,
      "padding": true
     },
     {
      "name": "scale",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "invScale",
      "type": "f32",
      "offset": 12
     },
     {
      "name": "qmin",
      "type": "f32",
      "offset": 16
     },
     {
      "name": "qmax",
      "type": "f32",
      "offset": 20
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "activation_static_qdq.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "energy_eval": {
   "description": "Energy evaluation kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "state",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "target",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "count",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "scale",
      "type": "f32",
      "offset": 4
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "eval": {
     "wgsl": "energy_eval.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["energy.rules.json#evalVariant"],
      "wgslOnDisk": true
     }
    },
    "eval_f16": {
     "wgsl": "energy_eval_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["energy.rules.json#evalVariant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "energy_update": {
   "description": "Energy update kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "state",
     "type": "storage"
    },
    {
     "index": 2,
     "name": "target",
     "type": "read-only-storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "count",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "stepSize",
      "type": "f32",
      "offset": 4
     },
     {
      "name": "gradientScale",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "update": {
     "wgsl": "energy_update.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["energy.rules.json#updateVariant"],
      "wgslOnDisk": true
     }
    },
    "update_f16": {
     "wgsl": "energy_update_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["energy.rules.json#updateVariant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "energy_quintel_update": {
   "description": "Quintel energy update kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "state",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 64,
    "fields": [
     {
      "name": "count",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "flags",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 12,
      "padding": true
     },
     {
      "name": "stepSize",
      "type": "f32",
      "offset": 16
     },
     {
      "name": "gradientScale",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "countDiff",
      "type": "f32",
      "offset": 24
     },
     {
      "name": "centerTarget",
      "type": "f32",
      "offset": 28
     },
     {
      "name": "symmetryWeight",
      "type": "f32",
      "offset": 32
     },
     {
      "name": "countWeight",
      "type": "f32",
      "offset": 36
     },
     {
      "name": "centerWeight",
      "type": "f32",
      "offset": 40
     },
     {
      "name": "binarizeWeight",
      "type": "f32",
      "offset": 44
     },
     {
      "name": "clampMin",
      "type": "f32",
      "offset": 48
     },
     {
      "name": "clampMax",
      "type": "f32",
      "offset": 52
     },
     {
      "name": "_pad1",
      "type": "f32",
      "offset": 56,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "f32",
      "offset": 60,
      "padding": true
     }
    ]
   },
   "variants": {
    "quintel_update": {
     "wgsl": "energy_quintel_update.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["energy.rules.json#quintelUpdateVariant"],
      "wgslOnDisk": true
     }
    },
    "quintel_update_f16": {
     "wgsl": "energy_quintel_update_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["energy.rules.json#quintelUpdateVariant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "energy_quintel_grad": {
   "description": "Quintel energy gradient kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "state",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 64,
    "fields": [
     {
      "name": "count",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "flags",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 12,
      "padding": true
     },
     {
      "name": "stepSize",
      "type": "f32",
      "offset": 16
     },
     {
      "name": "gradientScale",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "countDiff",
      "type": "f32",
      "offset": 24
     },
     {
      "name": "centerTarget",
      "type": "f32",
      "offset": 28
     },
     {
      "name": "symmetryWeight",
      "type": "f32",
      "offset": 32
     },
     {
      "name": "countWeight",
      "type": "f32",
      "offset": 36
     },
     {
      "name": "centerWeight",
      "type": "f32",
      "offset": 40
     },
     {
      "name": "binarizeWeight",
      "type": "f32",
      "offset": 44
     },
     {
      "name": "clampMin",
      "type": "f32",
      "offset": 48
     },
     {
      "name": "clampMax",
      "type": "f32",
      "offset": 52
     },
     {
      "name": "_pad1",
      "type": "f32",
      "offset": 56,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "f32",
      "offset": 60,
      "padding": true
     }
    ]
   },
   "variants": {
    "quintel_grad": {
     "wgsl": "energy_quintel_grad.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["energy.rules.json#quintelGradVariant"],
      "wgslOnDisk": true
     }
    },
    "quintel_grad_f16": {
     "wgsl": "energy_quintel_grad_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["energy.rules.json#quintelGradVariant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "energy_quintel_reduce": {
   "description": "Quintel energy reduction kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "state",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 48,
    "fields": [
     {
      "name": "count",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "flags",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 12,
      "padding": true
     },
     {
      "name": "symmetryWeight",
      "type": "f32",
      "offset": 16
     },
     {
      "name": "centerWeight",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "binarizeWeight",
      "type": "f32",
      "offset": 24
     },
     {
      "name": "centerTarget",
      "type": "f32",
      "offset": 28
     },
     {
      "name": "_pad1",
      "type": "f32",
      "offset": 32,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "f32",
      "offset": 36,
      "padding": true
     },
     {
      "name": "_pad3",
      "type": "f32",
      "offset": 40,
      "padding": true
     },
     {
      "name": "_pad4",
      "type": "f32",
      "offset": 44,
      "padding": true
     }
    ]
   },
   "variants": {
    "quintel_reduce": {
     "wgsl": "energy_quintel_reduce.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["energy.rules.json#quintelReduceVariant"],
      "wgslOnDisk": true
     }
    },
    "quintel_reduce_f16": {
     "wgsl": "energy_quintel_reduce_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["energy.rules.json#quintelReduceVariant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "gather": {
   "description": "Embedding lookup kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "indices",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "embeddings",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "vocab_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "transpose",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "index_offset",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "bf16": {
     "variantMetadata": {
      "pairedMechanismKernels": [
       {
        "operation": "gather",
        "variant": "bf16"
       }
      ]
     },
     "wgsl": "gather_bf16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "weightDtype": "bf16",
     "description": "Packed BF16 embeddings expanded to F32 at gather time.",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["muse-glimmer/muse-glimmer-30b-text-bf16-af32"],
      "ruleChains": ["gather.rules.json#variant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 36,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "vocab_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "transpose",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "index_offset",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "input_hidden_size",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "hidden_offset",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 28,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 32,
        "padding": true
       }
      ]
     }
    },
    "default": {
     "variantMetadata": {
      "pairedMechanismKernels": [
       {
        "operation": "gather",
        "variant": "default"
       },
       {
        "operation": "gather",
        "variant": "vec4"
       }
      ]
     },
     "wgsl": "gather.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16",
       "embeddinggemma/google-embeddinggemma-300m-q4k-ehf16-af32",
       "esm/esm2-t12-35m-ur50d-f32-af32",
       "esmc/esmc-300m-f32-af32",
       "forge/forecast/chronos-bolt-tiny",
       "gemma3/gemma-3-1b-it-f16-af32",
       "gemma3/gemma-3-270m-it-f16-af32",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af16",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-w8a8-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-w4a16-ct-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af32",
       "nucleotide-transformer/nucleotide-transformer-v2-50m-f32-af32",
       "qwen3/qwen-3-5-0-8b-canonical-f32"
      ],
      "ruleChains": ["gather.rules.json#variant","residual.rules.json#biasAddVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 36,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "vocab_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "transpose",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "index_offset",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "input_hidden_size",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "hidden_offset",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 28,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 32,
        "padding": true
       }
      ]
     }
    },
    "vec4": {
     "variantMetadata": {
      "pairedMechanismKernels": [
       {
        "operation": "gather",
        "variant": "default"
       },
       {
        "operation": "gather",
        "variant": "vec4"
       }
      ]
     },
     "wgsl": "gather_vec4.wgsl",
     "entryPoint": "gather_vec4",
     "workgroup": [64,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["esm/esm2-t12-35m-ur50d-f32-af32"],
      "ruleChains": ["gather.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "f16": {
     "variantMetadata": {
      "pairedMechanismKernels": [
       {
        "operation": "gather",
        "variant": "f16"
       },
       {
        "operation": "gather",
        "variant": "f16_vec4"
       },
       {
        "operation": "gather_split8",
        "variant": "f16_vec4_f32_out"
       }
      ]
     },
     "wgsl": "gather_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "description": "F16 embeddings -> F32 output (for weight-tied lm_head optimization)",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "amplify/amplify-120m-f16-af32",
       "gemma3/gemma-3-1b-it-q4k-ehf16-af32",
       "gemma3/translategemma-4b-1b-enes-q4k-ehf16-af32",
       "gemma3/translategemma-4b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-moe-q4k-ehf16-af32",
       "glmocr/glm-ocr-f16-af32",
       "gpt-oss-20b-f16-xmxfp4",
       "janus/janus-pro-1b-text-q4k-ehaf16",
       "lfm2/lfm2.5-1.2b-instruct-q4k-ehf16-af32",
       "minicpm/minicpm4-0-5b-f16-af32",
       "muse-glimmer/muse-glimmer-30b-text-f16-af32",
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-5-0-8b-q4k-ehaf16",
       "qwen3/qwen-3-5-2b-q4k-ehaf16",
       "qwen3/qwen-3-5-9b-f16-af32",
       "qwen3/qwen-3-5-9b-q4k-ehaf16",
       "qwen3/qwen-3-6-27b-q4k-eaf16",
       "qwen3/qwen-3-6-27b-q4k-ehaf16",
       "qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32",
       "qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32",
       "qwen3/qwen-3-embedding-0-6b-f16-af32",
       "qwen3/qwen-3-embedding-0-6b-q4k-ehf16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32",
       "qwen3/qwen3.8-27b-text-f16-af32",
       "qwen3/qwen3.8-27b-text-q4k-ehaf16"
      ],
      "ruleChains": ["gather.rules.json#variant","residual.rules.json#biasAddVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 36,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "vocab_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "transpose",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "index_offset",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "input_hidden_size",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "hidden_offset",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 28,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 32,
        "padding": true
       }
      ]
     }
    },
    "f16_vec4": {
     "variantMetadata": {
      "pairedMechanismKernels": [
       {
        "operation": "gather",
        "variant": "f16"
       },
       {
        "operation": "gather",
        "variant": "f16_vec4"
       },
       {
        "operation": "gather_split8",
        "variant": "f16_vec4_f32_out"
       }
      ]
     },
     "wgsl": "gather_f16_vec4.wgsl",
     "entryPoint": "gather_vec4",
     "workgroup": [64,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-embedding-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32"
      ],
      "ruleChains": ["gather.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "f16_out": {
     "wgsl": "gather_f16_out.wgsl",
     "entryPoint": "gather_f16_out",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "variantMetadata": {
      "outputBinding": 4
     },
     "description": "F32 embeddings -> F16 output",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gather.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "vec4_f16_out": {
     "wgsl": "gather_vec4_f16_out.wgsl",
     "entryPoint": "gather_vec4_f16_out",
     "workgroup": [64,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "variantMetadata": {
      "outputBinding": 4
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gather.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "f16_f16_out": {
     "wgsl": "gather_f16_f16_out.wgsl",
     "entryPoint": "gather_f16_out",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "variantMetadata": {
      "outputBinding": 4
     },
     "description": "F16 embeddings -> F16 output",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gather.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "f16_vec4_f16_out": {
     "wgsl": "gather_f16_vec4_f16_out.wgsl",
     "entryPoint": "gather_vec4_f16_out",
     "workgroup": [64,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "variantMetadata": {
      "outputBinding": 4
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gather.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "litert_int4_vec4_f16_out": {
     "wgsl": "gather_litert_int4_vec4_f16_out.wgsl",
     "entryPoint": "gather_litert_int4_vec4_f16_out",
     "workgroup": [64,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "variantMetadata": {
      "outputBinding": 4
     },
     "description": "LiteRT signed INT4 affine embeddings -> F16 output",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gather.rules.json#variant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 36,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "vocab_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "transpose",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "index_offset",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "input_hidden_size",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "hidden_offset",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 28,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 32,
        "padding": true
       }
      ]
     }
    },
    "litert_int4_vec4_f32_out": {
     "wgsl": "gather_litert_int4_vec4_f32_out.wgsl",
     "entryPoint": "gather_litert_int4_vec4_f32_out",
     "workgroup": [64,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "pairedMechanismKernels": [
       {
        "operation": "gather",
        "variant": "litert_int4_vec4_f32_out"
       }
      ],
      "outputBinding": 4
     },
     "description": "LiteRT signed INT4 affine embeddings -> F32 output",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gather.rules.json#variant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 36,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "vocab_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "transpose",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "index_offset",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "input_hidden_size",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "hidden_offset",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 28,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 32,
        "padding": true
       }
      ]
     }
    },
    "q4_0": {
     "wgsl": "gather_q4_0.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "indices",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 16,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "vocab_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "index_offset",
        "type": "u32",
        "offset": 12
       }
      ]
     },
     "weightDtype": "q4_0",
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 18,
      "QUANT_FORMAT": 0
     },
     "sharedMemory": 0,
     "variantMetadata": {
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen3.8-27b-q4_0-passthrough",
       "runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"
      ],
      "ruleChains": ["gather.rules.json#q40Variant"],
      "wgslOnDisk": true
     }
    },
    "q4_1": {
     "wgsl": "gather_q4_0.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "indices",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 16,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "vocab_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "index_offset",
        "type": "u32",
        "offset": 12
       }
      ]
     },
     "weightDtype": "q4_1",
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 20,
      "QUANT_FORMAT": 1
     },
     "sharedMemory": 0,
     "variantMetadata": {
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen3.8-27b-q4_0-passthrough",
       "runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"
      ],
      "ruleChains": ["gather.rules.json#q40Variant"],
      "wgslOnDisk": true
     }
    },
    "q5_0": {
     "wgsl": "gather_q4_0.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "indices",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 16,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "vocab_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "index_offset",
        "type": "u32",
        "offset": 12
       }
      ]
     },
     "weightDtype": "q5_0",
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 22,
      "QUANT_FORMAT": 4
     },
     "sharedMemory": 0,
     "variantMetadata": {
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen3.8-27b-q4_0-passthrough",
       "runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"
      ],
      "ruleChains": ["gather.rules.json#q40Variant"],
      "wgslOnDisk": true
     }
    },
    "q8_0": {
     "wgsl": "gather_q4_0.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "indices",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 16,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "vocab_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "index_offset",
        "type": "u32",
        "offset": 12
       }
      ]
     },
     "weightDtype": "q8_0",
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 34,
      "QUANT_FORMAT": 2
     },
     "sharedMemory": 0,
     "variantMetadata": {
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen3.8-27b-q4_0-passthrough",
       "runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"
      ],
      "ruleChains": ["gather.rules.json#q40Variant"],
      "wgslOnDisk": true
     }
    },
    "q6k": {
     "wgsl": "gather_q4_0.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "indices",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ],
     "uniformsOverride": {
      "size": 16,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "vocab_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "index_offset",
        "type": "u32",
        "offset": 12
       }
      ]
     },
     "weightDtype": "q6k",
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "BLOCK_VALUES": 256,
      "BLOCK_BYTES": 210,
      "QUANT_FORMAT": 3
     },
     "sharedMemory": 0,
     "variantMetadata": {
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen3.8-27b-q4_0-passthrough",
       "runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"
      ],
      "ruleChains": ["gather.rules.json#q40Variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "gather_split4": {
   "description": "Row-split embedding lookup kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "indices",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "embeddings0",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "embeddings1",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "embeddings2",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "embeddings3",
     "type": "read-only-storage"
    },
    {
     "index": 6,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 48,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "vocab_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "index_offset",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "input_hidden_size",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "hidden_offset",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "section0_rows",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "section1_rows",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "section2_rows",
      "type": "u32",
      "offset": 32
     },
     {
      "name": "section3_rows",
      "type": "u32",
      "offset": 36
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 40,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 44,
      "padding": true
     }
    ]
   },
   "variants": {
    "packed_f16_vec4_f32_out": {
     "wgsl": "gather_split4_packed_f16_vec4_f32_out.wgsl",
     "entryPoint": "gather_vec4_f32_out",
     "workgroup": [64,1,1],
     "requires": [],
     "outputDtype": "f32",
     "description": "Packed F16 bits in u32 split buffers -> F32 output without shader-f16",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "runtime/profiles/qwen3-8-27b-orin-prefill",
       "runtime/profiles/qwen3-8-27b-orin-projections"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "f16_vec4_f32_out": {
     "wgsl": "gather_split4_f16_vec4_f32_out.wgsl",
     "entryPoint": "gather_vec4_f32_out",
     "workgroup": [64,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "description": "F16 split embeddings -> F32 output",
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "f16_vec4_f16_out": {
     "wgsl": "gather_split4_f16_vec4_f16_out.wgsl",
     "entryPoint": "gather_vec4_f16_out",
     "workgroup": [64,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "description": "F16 split embeddings -> F16 output",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "gather_split8": {
   "description": "Row-split embedding lookup kernels with up to eight sections",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "indices",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "embeddings0",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "embeddings1",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "embeddings2",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "embeddings3",
     "type": "read-only-storage"
    },
    {
     "index": 6,
     "name": "embeddings4",
     "type": "read-only-storage"
    },
    {
     "index": 7,
     "name": "embeddings5",
     "type": "read-only-storage"
    },
    {
     "index": 8,
     "name": "embeddings6",
     "type": "read-only-storage"
    },
    {
     "index": 9,
     "name": "embeddings7",
     "type": "read-only-storage"
    },
    {
     "index": 10,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 64,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "vocab_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "index_offset",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "input_hidden_size",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "hidden_offset",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "section0_rows",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "section1_rows",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "section2_rows",
      "type": "u32",
      "offset": 32
     },
     {
      "name": "section3_rows",
      "type": "u32",
      "offset": 36
     },
     {
      "name": "section4_rows",
      "type": "u32",
      "offset": 40
     },
     {
      "name": "section5_rows",
      "type": "u32",
      "offset": 44
     },
     {
      "name": "section6_rows",
      "type": "u32",
      "offset": 48
     },
     {
      "name": "section7_rows",
      "type": "u32",
      "offset": 52
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 56,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 60,
      "padding": true
     }
    ]
   },
   "variants": {
    "f16_vec4_f16_out": {
     "wgsl": "gather_split8_f16_vec4_f16_out.wgsl",
     "entryPoint": "gather_vec4_f16_out",
     "workgroup": [64,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "description": "F16 split8 embeddings -> F16 output",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "f16_vec4_f32_out": {
     "wgsl": "gather_split8_f16_vec4_f32_out.wgsl",
     "entryPoint": "gather_vec4_f32_out",
     "workgroup": [64,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "description": "F16 split8 embeddings -> F32 output",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32-int4ple"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "residual": {
   "description": "Residual addition kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "residual",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "scale",
      "type": "f32",
      "offset": 4
     },
     {
      "name": "dispatch_stride",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "residual.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "amplify/amplify-120m-f16-af32",
       "diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16",
       "embeddinggemma/google-embeddinggemma-300m-q4k-ehf16-af32",
       "esm/esm2-t12-35m-ur50d-f32-af32",
       "esmc/esmc-300m-f32-af32",
       "forge/forecast/chronos-bolt-tiny",
       "gemma3/gemma-3-1b-it-f16-af32",
       "gemma3/gemma-3-1b-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-f16-af32",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af16",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-w8a8-ehf16-af32",
       "gemma3/translategemma-4b-1b-enes-q4k-ehf16-af32",
       "gemma3/translategemma-4b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-w4a16-ct-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32-int4ple",
       "gemma4/gemma-4-moe-q4k-ehf16-af32",
       "glmocr/glm-ocr-f16-af32",
       "gpt-oss-20b-f16-xmxfp4",
       "janus/janus-pro-1b-text-q4k-ehaf16",
       "lfm2/lfm2.5-1.2b-instruct-q4k-ehf16-af32",
       "minicpm/minicpm4-0-5b-f16-af32",
       "muse-glimmer/muse-glimmer-30b-text-bf16-af32",
       "muse-glimmer/muse-glimmer-30b-text-f16-af32",
       "nucleotide-transformer/nucleotide-transformer-v2-50m-f32-af32",
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-5-0-8b-canonical-f32",
       "qwen3/qwen-3-5-0-8b-q4k-ehaf16",
       "qwen3/qwen-3-5-2b-q4k-ehaf16",
       "qwen3/qwen-3-5-9b-f16-af32",
       "qwen3/qwen-3-5-9b-q4k-ehaf16",
       "qwen3/qwen-3-6-27b-q4k-eaf16",
       "qwen3/qwen-3-6-27b-q4k-ehaf16",
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32",
       "qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32",
       "qwen3/qwen-3-embedding-0-6b-f16-af32",
       "qwen3/qwen-3-embedding-0-6b-q4k-ehf16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32",
       "qwen3/qwen3.8-27b-q4_0-passthrough",
       "qwen3/qwen3.8-27b-text-f16-af32",
       "qwen3/qwen3.8-27b-text-q4k-ehaf16",
       "runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"
      ],
      "ruleChains": ["residual.rules.json#biasAddVariant","residual.rules.json#residualVariant"],
      "wgslOnDisk": true
     }
    },
    "vec4": {
     "wgsl": "residual_vec4.wgsl",
     "entryPoint": "add_vec4",
     "workgroup": [64,1,1],
     "requires": [],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "esm/esm2-t12-35m-ur50d-f32-af32",
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-embedding-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32"
      ],
      "ruleChains": ["residual.rules.json#residualVariant"],
      "wgslOnDisk": true
     }
    },
    "default_f16": {
     "wgsl": "residual_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16"],
      "ruleChains": ["residual.rules.json#residualVariant"],
      "wgslOnDisk": true
     }
    },
    "vec4_f16": {
     "wgsl": "residual_f16_vec4.wgsl",
     "entryPoint": "add_vec4",
     "workgroup": [64,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["residual.rules.json#residualVariant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "topk": {
   "description": "Top-K selection kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "values",
     "type": "storage"
    },
    {
     "index": 3,
     "name": "indices",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_experts",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "top_k",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "normalize",
      "type": "u32",
      "offset": 12
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "topk.wgsl",
     "entryPoint": "main",
     "workgroup": [32,1,1],
     "requires": [],
     "variantMetadata": {
      "maxExperts": 256,
      "maxTopK": 256
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "fused": {
     "wgsl": "topk.wgsl",
     "entryPoint": "softmax_topk",
     "workgroup": [32,1,1],
     "requires": [],
     "variantMetadata": {
      "maxExperts": 256,
      "maxTopK": 256
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#q4kMaterializationMode","softmax.rules.json#topkVariant"],
      "wgslOnDisk": true
     }
    },
    "fused_ranked": {
     "wgsl": "softmax_topk_ranked.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "variantMetadata": {
      "maxExperts": 256,
      "maxTopK": 64
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["softmax.rules.json#topkVariant"],
      "wgslOnDisk": true
     }
    },
    "fused_ranked_512": {
     "wgsl": "softmax_topk_strided.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "wgslOverrides": {
      "MAX_EXPERTS": 512
     },
     "variantMetadata": {
      "maxExperts": 512,
      "maxTopK": 64
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "fused_logit_rank": {
     "wgsl": "softmax_topk_logit_rank.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "variantMetadata": {
      "maxExperts": 256,
      "maxTopK": 64
     },
     "requiredWgslFeatures": ["subgroup_id"],
     "description": "Renormalized top-k by logit rank: weights are the softmax over the picked logits (normalize only).",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "fused_f16": {
     "wgsl": "topk_f16.wgsl",
     "entryPoint": "softmax_topk",
     "workgroup": [32,1,1],
     "requires": ["shader-f16"],
     "variantMetadata": {
      "maxExperts": 256,
      "maxTopK": 256
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["softmax.rules.json#topkVariant"],
      "wgslOnDisk": true
     }
    },
    "fused_f16_w16": {
     "wgsl": "topk_f16_weights.wgsl",
     "entryPoint": "softmax_topk",
     "workgroup": [32,1,1],
     "requires": ["shader-f16"],
     "variantMetadata": {
      "maxExperts": 256,
      "maxTopK": 256
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["softmax.rules.json#topkVariant"],
      "wgslOnDisk": true
     }
    },
    "gptoss_router_topk": {
     "wgsl": "gptoss_router_topk.wgsl",
     "entryPoint": "softmax_topk",
     "workgroup": [256,1,1],
     "requires": ["shader-f16","subgroups"],
     "outputDtype": "f16",
     "variantMetadata": {
      "modelType": "gpt-oss",
      "routerDtype": "f16",
      "weightsDtype": "f16",
      "tileShape": "token-major",
      "groupSize": 32,
      "maxExperts": 256,
      "maxTopK": 256
     },
     "description": "GPT-OSS deterministic router top-k kernel (f16 logits/weights).",
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["softmax.rules.json#topkVariant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "scatter_add": {
   "description": "MoE output combination kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "indices",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "weights",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "top_k",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "scatter_add.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 16,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "top_k",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_experts",
        "type": "u32",
        "offset": 12
       }
      ]
     }
    },
    "vec4": {
     "wgsl": "scatter_add_vec4.wgsl",
     "entryPoint": "scatter_add_vec4",
     "workgroup": [64,1,1],
     "requires": [],
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 16,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "hidden_size",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "top_k",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_experts",
        "type": "u32",
        "offset": 12
       }
      ]
     }
    },
    "dynamic": {
     "wgsl": "scatter_add_dynamic.wgsl",
     "entryPoint": "scatter_add_dynamic",
     "workgroup": [256,1,1],
     "requires": [],
     "bindingsOverride": [
      {
       "index": 2,
       "name": "routing_indices",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "routing_weights",
       "type": "read-only-storage"
      },
      {
       "index": 4,
       "name": "token_offsets",
       "type": "read-only-storage"
      },
      {
       "index": 5,
       "name": "output",
       "type": "storage"
      }
     ],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["moe.rules.json#scatterAddVariant"],
      "wgslOnDisk": true
     }
    },
    "dynamic_expert_scale": {
     "wgsl": "scatter_add_dynamic_expert_scale.wgsl",
     "entryPoint": "scatter_add_dynamic",
     "workgroup": [256,1,1],
     "requires": [],
     "bindingsOverride": [
      {
       "index": 2,
       "name": "routing_indices",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "routing_weights",
       "type": "read-only-storage"
      },
      {
       "index": 4,
       "name": "token_offsets",
       "type": "read-only-storage"
      },
      {
       "index": 5,
       "name": "expert_scales",
       "type": "read-only-storage"
      },
      {
       "index": 6,
       "name": "output",
       "type": "storage"
      }
     ],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["moe.rules.json#scatterAddVariant"],
      "wgslOnDisk": true
     }
    },
    "dynamic_f16": {
     "wgsl": "scatter_add_dynamic_f16.wgsl",
     "entryPoint": "scatter_add_dynamic",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "bindingsOverride": [
      {
       "index": 2,
       "name": "routing_indices",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "routing_weights",
       "type": "read-only-storage"
      },
      {
       "index": 4,
       "name": "token_offsets",
       "type": "read-only-storage"
      },
      {
       "index": 5,
       "name": "output",
       "type": "storage"
      }
     ],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["moe.rules.json#scatterAddVariant"],
      "wgslOnDisk": true
     }
    },
    "dynamic_f16_expert_scale": {
     "wgsl": "scatter_add_dynamic_f16_expert_scale.wgsl",
     "entryPoint": "scatter_add_dynamic",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "bindingsOverride": [
      {
       "index": 2,
       "name": "routing_indices",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "routing_weights",
       "type": "read-only-storage"
      },
      {
       "index": 4,
       "name": "token_offsets",
       "type": "read-only-storage"
      },
      {
       "index": 5,
       "name": "expert_scales",
       "type": "read-only-storage"
      },
      {
       "index": 6,
       "name": "output",
       "type": "storage"
      }
     ],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["moe.rules.json#scatterAddVariant"],
      "wgslOnDisk": true
     }
    },
    "dynamic_f16_w16": {
     "wgsl": "scatter_add_dynamic_f16_weights.wgsl",
     "entryPoint": "scatter_add_dynamic",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "bindingsOverride": [
      {
       "index": 2,
       "name": "routing_indices",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "routing_weights",
       "type": "read-only-storage"
      },
      {
       "index": 4,
       "name": "token_offsets",
       "type": "read-only-storage"
      },
      {
       "index": 5,
       "name": "output",
       "type": "storage"
      }
     ],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["moe.rules.json#scatterAddVariant"],
      "wgslOnDisk": true
     }
    },
    "dynamic_f16_w16_expert_scale": {
     "wgsl": "scatter_add_dynamic_f16_weights_expert_scale.wgsl",
     "entryPoint": "scatter_add_dynamic",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "bindingsOverride": [
      {
       "index": 2,
       "name": "routing_indices",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "routing_weights",
       "type": "read-only-storage"
      },
      {
       "index": 4,
       "name": "token_offsets",
       "type": "read-only-storage"
      },
      {
       "index": 5,
       "name": "expert_scales",
       "type": "read-only-storage"
      },
      {
       "index": 6,
       "name": "output",
       "type": "storage"
      }
     ],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["moe.rules.json#scatterAddVariant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "gemma4_route_q4_matmul": {
   "description": "Route-wise Gemma4 packed Q4_K expert matmul kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "route_indices",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "weights",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "num_routes",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "top_k",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "N",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "K",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "num_blocks_per_row",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "input_mode",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "alpha",
      "type": "f32",
      "offset": 24
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "f16a": {
     "wgsl": "gemma4_route_q4_matmul_f16a.wgsl",
     "entryPoint": "route_matmul_f16a",
     "workgroup": [64,4,1],
     "requires": ["shader-f16","subgroups"],
     "wgslOverrides": {
      "TILE_M": 4,
      "THREADS_PER_COL": 64
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "scatter_add_routes": {
   "description": "Route-wise MoE output combination kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "route_outputs",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "routing_indices",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "routing_weights",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "expert_scales",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "top_k",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "f16_w16_expert_scale": {
     "wgsl": "scatter_add_routes_f16_weights_expert_scale.wgsl",
     "entryPoint": "scatter_add_routes",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "f32": {
     "wgsl": "scatter_add_routes_f32.wgsl",
     "entryPoint": "scatter_add_routes",
     "workgroup": [256,1,1],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "requires": [],
     "outputDtype": "f32",
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "route_outputs",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "routing_weights",
       "type": "read-only-storage"
      },
      {
       "index": 5,
       "name": "output",
       "type": "storage"
      }
     ],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "moe_gather": {
   "description": "Token gathering by expert kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "expert_assignments",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "num_experts",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "top_k",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "max_tokens_per_expert",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "threads_per_row",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad3",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "count": {
     "wgsl": "moe_gather.wgsl",
     "entryPoint": "count_and_map",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "count_f16": {
     "wgsl": "moe_gather_f16.wgsl",
     "entryPoint": "count_and_map",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "gather": {
     "wgsl": "moe_gather.wgsl",
     "entryPoint": "gather_tokens",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "gather_f16": {
     "wgsl": "moe_gather_f16.wgsl",
     "entryPoint": "gather_tokens",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "moe_offsets": {
   "description": "Build routing token offsets for dynamic MoE scatter on GPU",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "token_counts",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "token_map",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "token_offsets",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_experts",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "top_k",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "max_tokens_per_expert",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 16,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad3",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "moe_offsets.wgsl",
     "entryPoint": "build_offsets",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "swiglu": {
   "description": "SwiGLU activation (gated) kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "gate",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "up",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "bias",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "dim",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "bias_offset",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "clamp_max",
      "type": "f32",
      "offset": 12
     }
    ]
   },
   "variants": {
    "rowsplit_bias": {
     "wgsl": "fused_swiglu.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["silu.rules.json#swigluRowsplitBiasVariant"],
      "wgslOnDisk": true
     }
    },
    "rowsplit_bias_f16": {
     "wgsl": "fused_swiglu_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["silu.rules.json#swigluRowsplitBiasVariant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "bias_add": {
   "description": "Bias addition kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "data",
     "type": "storage"
    },
    {
     "index": 2,
     "name": "bias",
     "type": "read-only-storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "dim",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "data_offset",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "bias_offset",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "token_stride",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "bias_add.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "esm/esm2-t12-35m-ur50d-f32-af32",
       "esmc/esmc-300m-f32-af32",
       "forge/forecast/chronos-bolt-tiny",
       "nucleotide-transformer/nucleotide-transformer-v2-50m-f32-af32"
      ],
      "ruleChains": ["residual.rules.json#biasAddVariant"],
      "wgslOnDisk": true
     }
    },
    "f16": {
     "wgsl": "bias_add_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["residual.rules.json#biasAddVariant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "cast": {
   "description": "Type casting kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 4,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "f32_to_f16": {
     "wgsl": "cast_f32_to_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "f16_to_f32": {
     "wgsl": "cast_f16_to_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 16,
      "fields": [
       {
        "name": "count",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 4,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 8,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 12,
        "padding": true
       }
      ]
     }
    },
    "f32_to_two_f32": {
     "wgsl": "cast_f32_to_two_f32.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "variantMetadata": {
      "inputPrecision": "f32",
      "outputPrecision": "two-f32"
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "two_f32_to_f16": {
     "wgsl": "cast_two_f32_to_f16.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "f16"
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "kv_cache_write": {
   "description": "Direct KV cache write kernels",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input_k",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "input_v",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output_k",
     "type": "storage"
    },
    {
     "index": 4,
     "name": "output_v",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "src_offset",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "dst_offset",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "count",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "f32_to_f16": {
     "wgsl": "kv_cache_write_f32_to_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-embedding-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "vision_average_pool": {
   "description": "Spatial average pooling and model-declared output scaling for vision features",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "grid_height",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "grid_width",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "pooling_size",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "pooled_height",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "pooled_width",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "output_elements",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "vision_average_pool.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["vision-average-pool.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "vision_rope_2d": {
   "description": "In-place two-dimensional rotary position embedding for vision attention",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "grid_height",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "grid_width",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "rope_theta",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "total_pairs",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "vision_rope_2d.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["vision-rope-2d.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "vision_position_embedding": {
   "description": "Two-axis learned vision position embedding from explicit grid geometry",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "table",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "grid_height",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "grid_width",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "position_embedding_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "output_elements",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "vision_position_embedding.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "weightDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["vision-position-embedding.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "f16": {
     "wgsl": "vision_position_embedding_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "weightDtype": "f16",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["vision-position-embedding.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "vision_patch_embed": {
   "description": "Qwen vision patch projection from explicit spatial geometry",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "image",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weights",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "bias",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "grid_height",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "grid_width",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "channels",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "patch_size",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "temporal_patch_size",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "has_bias",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "output_elements",
      "type": "u32",
      "offset": 28
     }
    ]
   },
   "variants": {
    "f32w": {
     "wgsl": "vision_patch_embed.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "weightDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["vision-patch-embed.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "f16w": {
     "wgsl": "vision_patch_embed_f16w.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "weightDtype": "f16",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["vision-patch-embed.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "vision_spatial_merge": {
   "description": "Spatial patch gather using explicit grid geometry",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "grid_height",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "grid_width",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "merge_size",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "merged_height",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "merged_width",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "output_elements",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "vision_spatial_merge.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["vision-spatial-merge.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "split_qkv": {
   "description": "Split fused QKV output into separate Q, K, V buffers",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "fused_qkv",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "Q",
     "type": "storage"
    },
    {
     "index": 3,
     "name": "K",
     "type": "storage"
    },
    {
     "index": 4,
     "name": "V",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "numTokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "qSize",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "kSize",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "vSize",
      "type": "u32",
      "offset": 12
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "split_qkv.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "esm/esm2-t12-35m-ur50d-f32-af32",
       "qwen3/qwen-3-embedding-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32"
      ],
      "ruleChains": ["residual.rules.json#biasAddVariant","split-qkv.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "f16": {
     "wgsl": "split_qkv_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["residual.rules.json#biasAddVariant","split-qkv.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "paired": {
     "wgsl": "split_qkv_paired.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["split-qkv.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "split_qkv_rmsnorm_qk": {
   "description": "Split fused QKV output and apply weighted RMSNorm to Q and K buffers",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "fused_qkv",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "q_weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "k_weight",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "Q",
     "type": "storage"
    },
    {
     "index": 5,
     "name": "K",
     "type": "storage"
    },
    {
     "index": 6,
     "name": "V",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 48,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "q_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "k_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "v_size",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "num_kv_heads",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "workgroup_stride",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "qk_rows",
      "type": "u32",
      "offset": 32
     },
     {
      "name": "total_v",
      "type": "u32",
      "offset": 36
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 40
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 44,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "split_qkv_rmsnorm_qk.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "split_qkv_rmsnorm_rope_qk": {
   "description": "Split fused QKV output and apply weighted RMSNorm plus partial/full RoPE to Q and K buffers",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "fused_qkv",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "q_weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "k_weight",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "freqs_cos",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "freqs_sin",
     "type": "read-only-storage"
    },
    {
     "index": 6,
     "name": "Q",
     "type": "storage"
    },
    {
     "index": 7,
     "name": "K",
     "type": "storage"
    },
    {
     "index": 8,
     "name": "V",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 64,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "q_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "k_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "v_size",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "num_kv_heads",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "workgroup_stride",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "qk_rows",
      "type": "u32",
      "offset": 32
     },
     {
      "name": "total_v",
      "type": "u32",
      "offset": 36
     },
     {
      "name": "start_pos",
      "type": "u32",
      "offset": 40
     },
     {
      "name": "rotary_dim",
      "type": "u32",
      "offset": 44
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 48
     },
     {
      "name": "interleaved",
      "type": "u32",
      "offset": 52
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 56,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 60,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "split_qkv_rmsnorm_rope_qk.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "split_qkv_rmsnorm_rope_qk_f16kv_cache": {
   "description": "Split fused QKV output, apply weighted RMSNorm plus partial/full RoPE to Q/K, and write K/V directly to contiguous f16 KV cache",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "fused_qkv",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "q_weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "k_weight",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "freqs_cos",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "freqs_sin",
     "type": "read-only-storage"
    },
    {
     "index": 6,
     "name": "Q",
     "type": "storage"
    },
    {
     "index": 7,
     "name": "kv_cache_k",
     "type": "storage"
    },
    {
     "index": 8,
     "name": "kv_cache_v",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 64,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "q_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "k_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "v_size",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "num_kv_heads",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "workgroup_stride",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "qk_rows",
      "type": "u32",
      "offset": 32
     },
     {
      "name": "total_v",
      "type": "u32",
      "offset": 36
     },
     {
      "name": "start_pos",
      "type": "u32",
      "offset": 40
     },
     {
      "name": "rotary_dim",
      "type": "u32",
      "offset": 44
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 48
     },
     {
      "name": "kv_dst_offset",
      "type": "u32",
      "offset": 52
     },
     {
      "name": "interleaved",
      "type": "u32",
      "offset": 56
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 60,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "split_qkv_rmsnorm_rope_qk_f16kv_cache.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "split_qg": {
   "description": "De-interleave Q and Gate projections from q_proj output for attentionOutputGate models",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "qg_interleaved",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "Q",
     "type": "storage"
    },
    {
     "index": 3,
     "name": "G",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "split_qg.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["residual.rules.json#biasAddVariant","split-qg.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "f16": {
     "wgsl": "split_qg_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["residual.rules.json#biasAddVariant","split-qg.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "paired": {
     "wgsl": "split_qg_paired.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["split-qg.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "rep_penalty": {
   "description": "GPU-side repetition penalty (modifies logits in-place before sampling)",
   "baseBindings": [
    {
     "index": 0,
     "type": "uniform"
    },
    {
     "index": 1,
     "type": "storage"
    },
    {
     "index": 2,
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "type": "read-only-storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "vocab_size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "history_count",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "penalty",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "batch_count",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "batch_offset",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "presence_penalty",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "repetition_penalty_window",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "rep_penalty.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["rep-penalty.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "default_f16": {
     "wgsl": "rep_penalty_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["rep-penalty.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "sample": {
   "description": "Exact GPU top-k/top-p sampling; F16 logits use F32 candidate and probability accumulation",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform",
     "wgslName": "u"
    },
    {
     "index": 1,
     "name": "logits",
     "type": "read-only-storage",
     "wgslName": "logits"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage",
     "wgslName": "output"
    },
    {
     "index": 3,
     "name": "topk_indices",
     "type": "storage",
     "wgslName": "topk_indices"
    },
    {
     "index": 4,
     "name": "topk_logits",
     "type": "storage",
     "wgslName": "topk_logits"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "vocab_size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "top_k",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "temperature",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "random_value",
      "type": "f32",
      "offset": 12
     },
     {
      "name": "pad_token_id",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "logit_softcap",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "output_index",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "top_p",
      "type": "f32",
      "offset": 28
     }
    ]
   },
   "variants": {
    "argmax": {
     "wgsl": "sample.wgsl",
     "entryPoint": "argmax",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "argmax_f16": {
     "wgsl": "sample_f16.wgsl",
     "entryPoint": "argmax",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "argmax_reduce": {
     "wgsl": "sample.wgsl",
     "entryPoint": "argmax_reduce",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "argmax_reduce_f16": {
     "wgsl": "sample_f16.wgsl",
     "entryPoint": "argmax_reduce",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "find_topk_phase1": {
     "wgsl": "sample.wgsl",
     "entryPoint": "find_topk_phase1",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "find_topk_phase1_f16": {
     "wgsl": "sample_f16.wgsl",
     "entryPoint": "find_topk_phase1",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "find_topk_phase2": {
     "wgsl": "sample.wgsl",
     "entryPoint": "find_topk_phase2",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "find_topk_phase2_f16": {
     "wgsl": "sample_f16.wgsl",
     "entryPoint": "find_topk_phase2",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "softmax_and_sample": {
     "wgsl": "sample.wgsl",
     "entryPoint": "softmax_and_sample",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "softmax_and_sample_f16": {
     "wgsl": "sample_f16.wgsl",
     "entryPoint": "softmax_and_sample",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "single_pass": {
     "wgsl": "sample.wgsl",
     "entryPoint": "sample_single_pass",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "diffusiongemma/diffusiongemma-26b-a4b-it-q4k-ehf16-af16",
       "gemma3/gemma-3-1b-it-f16-af32",
       "gemma3/gemma-3-1b-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-f16-af32",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af16",
       "gemma3/gemma-3-270m-it-q4k-ehf16-af32",
       "gemma3/gemma-3-270m-it-w8a8-ehf16-af32",
       "gemma3/translategemma-4b-1b-enes-q4k-ehf16-af32",
       "gemma3/translategemma-4b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-12b-it-text-q4k-ehf16-hq4k-af16",
       "gemma4/gemma-4-12b-it-text-w4a16-ct-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af16",
       "gemma4/gemma-4-31b-it-text-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af16-int4ple",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32",
       "gemma4/gemma-4-e2b-it-q4k-ehf16-af32-int4ple",
       "gemma4/gemma-4-moe-q4k-ehf16-af32",
       "glmocr/glm-ocr-f16-af32",
       "gpt-oss-20b-f16-xmxfp4",
       "janus/janus-pro-1b-text-q4k-ehaf16",
       "lfm2/lfm2.5-1.2b-instruct-q4k-ehf16-af32",
       "minicpm/minicpm4-0-5b-f16-af32",
       "muse-glimmer/muse-glimmer-30b-text-bf16-af32",
       "muse-glimmer/muse-glimmer-30b-text-f16-af32",
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-5-0-8b-canonical-f32",
       "qwen3/qwen-3-5-0-8b-q4k-ehaf16",
       "qwen3/qwen-3-5-2b-q4k-ehaf16",
       "qwen3/qwen-3-5-9b-f16-af32",
       "qwen3/qwen-3-5-9b-q4k-ehaf16",
       "qwen3/qwen-3-6-27b-q4k-eaf16",
       "qwen3/qwen-3-6-27b-q4k-ehaf16",
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32",
       "qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32",
       "qwen3/qwen3.8-27b-q4_0-passthrough",
       "qwen3/qwen3.8-27b-text-f16-af32",
       "qwen3/qwen3.8-27b-text-q4k-ehaf16",
       "runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "single_pass_f16": {
     "wgsl": "sample_f16.wgsl",
     "entryPoint": "sample_single_pass",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "ple_q4_0_to_f32": {
   "description": "Packed GGML Q4_0 PLE rows to F32",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_elements",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "input_offset",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "output_offset",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "ple_q4_0_to_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["dequant.rules.json#pleRowDecode"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "bf16_to_f32": {
   "description": "BF16 to F32 conversion",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_elements",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "input_offset",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "output_offset",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "bf16_to_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32"],
      "ruleChains": ["dequant.rules.json#pleRowDecode"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "bf16_to_f16": {
   "description": "BF16 to F16 conversion",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_elements",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "input_offset",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "output_offset",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "bf16_to_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "transpose": {
   "description": "Matrix transpose",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "rows",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "cols",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "dispatch_stride",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "transpose.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "matmul_backward": {
   "description": "Matmul backward dX = dY @ W^T (fused tiled kernel)",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "dY",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "W",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "dX",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "M",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "N",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "K",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "alpha",
      "type": "f32",
      "offset": 12
     },
     {
      "name": "transpose_b",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/matmul_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [16,16,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "f16_weight": {
     "wgsl": "backward/matmul_backward_f16w.wgsl",
     "entryPoint": "main",
     "workgroup": [16,16,1],
     "requires": [],
     "weightDtype": "f16",
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "q4k_weight": {
     "wgsl": "backward/matmul_backward_q4k.wgsl",
     "entryPoint": "main",
     "workgroup": [16,16,1],
     "requires": [],
     "weightDtype": "q4k",
     "description": "Input gradient through a frozen row-wise Q4_K weight stored as [N,K]",
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "transpose_b",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "num_blocks_per_row",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 24,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 28,
        "padding": true
       }
      ]
     }
    }
   }
  },
  "matmul_transpose_a": {
   "description": "Matmul with transposed A (C = A^T * B)",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "A",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "B",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "C",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "M",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "N",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "K",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "alpha",
      "type": "f32",
      "offset": 12
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 16,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad3",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/matmul_transpose_a.wgsl",
     "entryPoint": "main",
     "workgroup": [16,16,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "silu_backward": {
   "description": "SiLU backward",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 4,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/silu_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "embed_backward": {
   "description": "Embedding backward",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "indices",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "grad_embeddings",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "vocab_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "transpose",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "index_offset",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/embed_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "gelu_backward": {
   "description": "GELU backward",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 4,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/gelu_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "scale_backward": {
   "description": "Scale backward",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "scale",
      "type": "f32",
      "offset": 4
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/scale_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "softmax_backward": {
   "description": "Softmax backward",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "softmax",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "rows",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "cols",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/softmax_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "attention_backward": {
   "description": "Attention backward (softmax backward with causal mask)",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "softmax",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "rows",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "cols",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "causal",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/attention_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "rmsnorm_backward": {
   "description": "RMSNorm backward",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/rmsnorm_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "gated_rmsnorm_backward": {
   "description": "Gated RMSNorm backward for frozen norm weights",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "gate",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "weight",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "grad_input",
     "type": "storage"
    },
    {
     "index": 6,
     "name": "grad_gate",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "rows",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "width",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/gated_rmsnorm_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "causal_conv1d_silu_backward": {
   "description": "Causal depthwise Conv1D plus SiLU input backward for frozen weights",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "grad_input",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "channels",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "kernel_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/causal_conv1d_silu_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "gated_delta_recurrent_backward": {
   "description": "Full-history gated-delta recurrent backward oracle",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "query_key",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "value",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "decay_beta",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "state_history",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 6,
     "name": "grad_query_key",
     "type": "storage"
    },
    {
     "index": 7,
     "name": "grad_value",
     "type": "storage"
    },
    {
     "index": 8,
     "name": "grad_decay_beta",
     "type": "storage"
    },
    {
     "index": 9,
     "name": "grad_state",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "total_tokens",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "token_offset",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "key_dim",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "value_dim",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "query_scale",
      "type": "f32",
      "offset": 24
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/gated_delta_recurrent_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "layernorm_backward": {
   "description": "LayerNorm backward",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "grad_input",
     "type": "storage"
    },
    {
     "index": 5,
     "name": "grad_weight",
     "type": "storage"
    },
    {
     "index": 6,
     "name": "grad_bias",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/layernorm_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "rope_backward": {
   "description": "RoPE backward",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "freqs_cos",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "freqs_sin",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "seq_len",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "start_pos",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "rotary_dim",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "pair_span_dim",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "interleaved",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/rope_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "cross_entropy_loss": {
   "description": "Cross-entropy loss (expects softmax input)",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "softmax",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "targets",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "vocab_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "cross_entropy_loss.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "conv2d": {
   "description": "Conv2D (NCHW)",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "bias",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 48,
    "fields": [
     {
      "name": "in_channels",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "out_channels",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "height",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "width",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "out_height",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "out_width",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "kernel_h",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "kernel_w",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "stride",
      "type": "u32",
      "offset": 32
     },
     {
      "name": "pad",
      "type": "u32",
      "offset": 36
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 40,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 44,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "conv2d.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["conv2d.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "default_f16": {
     "wgsl": "conv2d_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["conv2d.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "depthwise_conv2d": {
   "description": "Depthwise Conv2D (NCHW)",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "bias",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 48,
    "fields": [
     {
      "name": "channels",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "height",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "width",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "out_height",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "out_width",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "kernel_h",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "kernel_w",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "stride",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "pad",
      "type": "u32",
      "offset": 32
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 36,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 40,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 44,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "depthwise_conv2d.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["depthwise-conv2d.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "default_f16": {
     "wgsl": "depthwise_conv2d_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["depthwise-conv2d.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "depthwise_conv1d": {
   "description": "Depthwise Conv1D (channels-first, same-padded)",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "channels",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "length",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "kernel_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "depthwise_conv1d": {
     "wgsl": "depthwise_conv1d.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "grouped_pointwise_conv2d": {
   "description": "Grouped Pointwise Conv2D (NCHW)",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "bias",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "in_channels",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "out_channels",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "height",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "width",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "groups",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "grouped_pointwise_conv2d.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["grouped-pointwise-conv2d.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "default_f16": {
     "wgsl": "grouped_pointwise_conv2d_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["grouped-pointwise-conv2d.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "groupnorm_stats": {
   "description": "GroupNorm stats (mean/var) for each group",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "stats",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "channels",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "height",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "width",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "num_groups",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 16
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "stats": {
     "wgsl": "groupnorm_stats.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["groupnorm.rules.json#statsVariant"],
      "wgslOnDisk": true
     }
    },
    "stats_f16": {
     "wgsl": "groupnorm_stats_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["groupnorm.rules.json#statsVariant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "groupnorm_apply": {
   "description": "GroupNorm apply (NCHW)",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "stats",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "weight",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "bias",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "channels",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "height",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "width",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "num_groups",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 16
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "apply": {
     "wgsl": "groupnorm_apply.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["groupnorm.rules.json#applyVariant"],
      "wgslOnDisk": true
     }
    },
    "apply_f16": {
     "wgsl": "groupnorm_apply_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["groupnorm.rules.json#applyVariant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "upsample2d": {
   "description": "Upsample2D (nearest, NCHW)",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "channels",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "in_height",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "in_width",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "out_height",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "out_width",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "scale",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "upsample2d.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["upsample2d.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "default_f16": {
     "wgsl": "upsample2d_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["upsample2d.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "modulate": {
   "description": "Per-channel affine + optional gating",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "mod",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "scale_offset",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "shift_offset",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "gate_offset",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "has_gate",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "add_one",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "modulate.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["modulate.rules.json#variant","residual.rules.json#biasAddVariant"],
      "wgslOnDisk": true
     }
    },
    "f16": {
     "wgsl": "modulate_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["modulate.rules.json#variant","residual.rules.json#biasAddVariant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "pixel_shuffle": {
   "description": "Pixel shuffle (tokens -> NCHW)",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "out_channels",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "out_height",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "out_width",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "grid_width",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "grid_height",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "patch_size",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "patch_channels",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "pixel_shuffle.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["pixel_shuffle.rules.json#variant","residual.rules.json#biasAddVariant"],
      "wgslOnDisk": true
     }
    },
    "f16": {
     "wgsl": "pixel_shuffle_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["pixel_shuffle.rules.json#variant","residual.rules.json#biasAddVariant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "cross_entropy_backward": {
   "description": "Cross-entropy backward (expects softmax input)",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "softmax",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "targets",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "vocab_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "dispatch_stride",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/cross_entropy_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "adam": {
   "description": "Adam optimizer step",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "params",
     "type": "storage"
    },
    {
     "index": 2,
     "name": "grads",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "moment1",
     "type": "storage"
    },
    {
     "index": 4,
     "name": "moment2",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "step",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "lr",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "beta1",
      "type": "f32",
      "offset": 12
     },
     {
      "name": "beta2",
      "type": "f32",
      "offset": 16
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "weight_decay",
      "type": "f32",
      "offset": 24
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/adam.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "bias_add_backward": {
   "description": "Bias add backward (sum reduction)",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "grad_bias",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "dim",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/bias_add_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "upsample2d_backward": {
   "description": "Upsample2D backward",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "grad_input",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "channels",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "in_height",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "in_width",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "out_height",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "out_width",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "scale",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/upsample2d_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "pixel_shuffle_backward": {
   "description": "Pixel shuffle backward",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "grad_input",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "out_channels",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "out_height",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "out_width",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "grid_width",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "grid_height",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "patch_size",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "patch_channels",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/pixel_shuffle_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "groupnorm_backward": {
   "description": "GroupNorm backward",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "grad_input",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "channels",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "height",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "width",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "num_groups",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 16
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/groupnorm_backward.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "gated_delta_conv": {
   "description": "Causal depthwise convolution stage for gated-delta recurrent attention",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "qkv",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "conv_weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "conv_state",
     "type": "storage"
    },
    {
     "index": 4,
     "name": "conv_out",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 64,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "conv_dim",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "conv_kernel_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "num_v_heads",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "num_k_heads",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "head_k_dim",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "head_v_dim",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "q_size",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "k_size",
      "type": "u32",
      "offset": 32
     },
     {
      "name": "value_dim",
      "type": "u32",
      "offset": 36
     },
     {
      "name": "q_rep",
      "type": "u32",
      "offset": 40
     },
     {
      "name": "_pad_u32_0",
      "type": "u32",
      "offset": 44
     },
     {
      "name": "rms_norm_eps",
      "type": "f32",
      "offset": 48
     },
     {
      "name": "qk_l2norm_eps",
      "type": "f32",
      "offset": 52
     },
     {
      "name": "packed_flags",
      "type": "u32",
      "offset": 56
     },
     {
      "name": "b_proj_offset_elements",
      "type": "u32",
      "offset": 60
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "gated_delta_conv.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "forge/lineage/qwen3.8-27b",
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32",
       "qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32",
       "qwen3/qwen3.8-27b-q4_0-passthrough",
       "qwen3/qwen3.8-27b-text-f16-af32",
       "qwen3/qwen3.8-27b-text-q4k-ehaf16"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "default_f16": {
     "wgsl": "gated_delta_conv_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "paired": {
     "wgsl": "gated_delta_conv_paired.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "outputDtype": "f32",
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "wgslName": "u",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "qkv",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weight",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "state",
       "type": "storage"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage"
      }
     ],
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "activationComponents": 2,
      "activationElementStrideBytes": 8
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 80,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "conv_dim",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "conv_kernel_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_v_heads",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "num_k_heads",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "head_k_dim",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "head_v_dim",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "q_size",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "k_size",
        "type": "u32",
        "offset": 32
       },
       {
        "name": "value_dim",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "q_rep",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "norm_mode",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "rms_eps_hi",
        "type": "f32",
        "offset": 48
       },
       {
        "name": "rms_eps_lo",
        "type": "f32",
        "offset": 52
       },
       {
        "name": "qk_eps_hi",
        "type": "f32",
        "offset": 56
       },
       {
        "name": "qk_eps_lo",
        "type": "f32",
        "offset": 60
       },
       {
        "name": "packed_flags",
        "type": "u32",
        "offset": 64
       },
       {
        "name": "b_offset",
        "type": "u32",
        "offset": 68
       },
       {
        "name": "norm_weight_offset",
        "type": "u32",
        "offset": 72
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 76,
        "padding": true
       }
      ]
     }
    },
    "prefill_prefix": {
     "wgsl": "gated_delta_conv_prefill.wgsl",
     "entryPoint": "main_prefix",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "description": "F32 prefill convolution with a sequential historical prefix followed by independent token/channel windows."
    },
    "prefill_parallel": {
     "wgsl": "gated_delta_conv_prefill.wgsl",
     "entryPoint": "main_parallel",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "description": "F32 prefill convolution with a sequential historical prefix followed by independent token/channel windows."
    }
   }
  },
  "gated_delta_recurrent": {
   "description": "Stateful gated-delta recurrent update, output normalization, and gate stage",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "conv_out",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "z_proj",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "a_proj",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "b_proj",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "dt_bias",
     "type": "read-only-storage"
    },
    {
     "index": 6,
     "name": "a_log",
     "type": "read-only-storage"
    },
    {
     "index": 7,
     "name": "norm_weight",
     "type": "read-only-storage"
    },
    {
     "index": 8,
     "name": "recurrent_state",
     "type": "storage"
    },
    {
     "index": 9,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 64,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "conv_dim",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "conv_kernel_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "num_v_heads",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "num_k_heads",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "head_k_dim",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "head_v_dim",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "q_size",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "k_size",
      "type": "u32",
      "offset": 32
     },
     {
      "name": "value_dim",
      "type": "u32",
      "offset": 36
     },
     {
      "name": "q_rep",
      "type": "u32",
      "offset": 40
     },
     {
      "name": "norm_mode",
      "type": "u32",
      "offset": 44
     },
     {
      "name": "rms_norm_eps",
      "type": "f32",
      "offset": 48
     },
     {
      "name": "qk_l2norm_eps",
      "type": "f32",
      "offset": 52
     },
     {
      "name": "packed_flags",
      "type": "u32",
      "offset": 56
     },
     {
      "name": "b_proj_offset_elements",
      "type": "u32",
      "offset": 60
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "gated_delta_recurrent.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "normGateActivation": "silu"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "forge/lineage/qwen3.8-27b",
       "qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32",
       "qwen3/qwen3.8-27b-text-f16-af32",
       "qwen3/qwen3.8-27b-text-q4k-ehaf16"
      ],
      "ruleChains": ["gated-delta-recurrent.rules.json#scalarVariant"],
      "wgslOnDisk": true
     }
    },
    "default_f16": {
     "wgsl": "gated_delta_recurrent_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "normGateActivation": "silu"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gated-delta-recurrent.rules.json#scalarVariant"],
      "wgslOnDisk": true
     }
    },
    "sigmoid_gate": {
     "wgsl": "gated_delta_recurrent_sigmoid_gate.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "normGateActivation": "sigmoid"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32"],
      "ruleChains": ["gated-delta-recurrent.rules.json#scalarVariant"],
      "wgslOnDisk": true
     }
    },
    "sigmoid_gate_f16": {
     "wgsl": "gated_delta_recurrent_sigmoid_gate_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "normGateActivation": "sigmoid"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gated-delta-recurrent.rules.json#scalarVariant"],
      "wgslOnDisk": true
     }
    },
    "paired": {
     "wgsl": "gated_delta_recurrent_paired.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "outputDtype": "f32",
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "wgslName": "u",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "conv",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "z",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "gates",
       "type": "read-only-storage"
      },
      {
       "index": 4,
       "name": "norm_weight",
       "type": "read-only-storage"
      },
      {
       "index": 5,
       "name": "state",
       "type": "storage"
      },
      {
       "index": 6,
       "name": "output",
       "type": "storage"
      }
     ],
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "activationComponents": 2,
      "activationElementStrideBytes": 8,
      "mechanismKernels": [
       {
        "operation": "qwen_linear_attention_prepare",
        "variant": "paired_beta"
       },
       {
        "operation": "qwen_linear_attention_prepare",
        "variant": "paired_decay_scale"
       },
       {
        "operation": "qwen_linear_attention_prepare",
        "variant": "paired_log_decay"
       },
       {
        "operation": "qwen_linear_attention_prepare",
        "variant": "paired_decay"
       },
       {
        "operation": "gated_delta_recurrent",
        "variant": "paired_qk"
       },
       {
        "operation": "gated_delta_recurrent",
        "variant": "paired_state"
       },
       {
        "operation": "gated_delta_recurrent",
        "variant": "paired_norm"
       },
       {
        "operation": "gated_delta_recurrent",
        "variant": "paired_gate"
       }
      ],
      "normGateActivation": "silu"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gated-delta-recurrent.rules.json#pairedClosureAnchorVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 80,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "conv_dim",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "conv_kernel_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_v_heads",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "num_k_heads",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "head_k_dim",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "head_v_dim",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "q_size",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "k_size",
        "type": "u32",
        "offset": 32
       },
       {
        "name": "value_dim",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "q_rep",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "norm_mode",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "rms_eps_hi",
        "type": "f32",
        "offset": 48
       },
       {
        "name": "rms_eps_lo",
        "type": "f32",
        "offset": 52
       },
       {
        "name": "qk_eps_hi",
        "type": "f32",
        "offset": 56
       },
       {
        "name": "qk_eps_lo",
        "type": "f32",
        "offset": 60
       },
       {
        "name": "packed_flags",
        "type": "u32",
        "offset": 64
       },
       {
        "name": "b_offset",
        "type": "u32",
        "offset": 68
       },
       {
        "name": "norm_weight_offset",
        "type": "u32",
        "offset": 72
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 76,
        "padding": true
       }
      ]
     }
    },
    "paired_qk": {
     "wgsl": "gated_delta_qk_paired.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "outputDtype": "f32",
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "wgslName": "u",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "conv",
       "type": "storage"
      }
     ],
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "activationComponents": 2,
      "activationElementStrideBytes": 8
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 80,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "conv_dim",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "conv_kernel_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_v_heads",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "num_k_heads",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "head_k_dim",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "head_v_dim",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "q_size",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "k_size",
        "type": "u32",
        "offset": 32
       },
       {
        "name": "value_dim",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "q_rep",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "norm_mode",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "rms_eps_hi",
        "type": "f32",
        "offset": 48
       },
       {
        "name": "rms_eps_lo",
        "type": "f32",
        "offset": 52
       },
       {
        "name": "qk_eps_hi",
        "type": "f32",
        "offset": 56
       },
       {
        "name": "qk_eps_lo",
        "type": "f32",
        "offset": 60
       },
       {
        "name": "packed_flags",
        "type": "u32",
        "offset": 64
       },
       {
        "name": "b_offset",
        "type": "u32",
        "offset": 68
       },
       {
        "name": "norm_weight_offset",
        "type": "u32",
        "offset": 72
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 76,
        "padding": true
       }
      ]
     }
    },
    "paired_qk_parallel": {
     "wgsl": "gated_delta_qk_paired_parallel.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "requires": [],
     "outputDtype": "f32",
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "wgslName": "u",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "conv",
       "type": "storage"
      }
     ],
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "activationComponents": 2,
      "activationElementStrideBytes": 8,
      "replacesMechanism": {
       "operation": "gated_delta_recurrent",
       "variant": "paired_qk"
      }
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 80,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "conv_dim",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "conv_kernel_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_v_heads",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "num_k_heads",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "head_k_dim",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "head_v_dim",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "q_size",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "k_size",
        "type": "u32",
        "offset": 32
       },
       {
        "name": "value_dim",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "q_rep",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "norm_mode",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "rms_eps_hi",
        "type": "f32",
        "offset": 48
       },
       {
        "name": "rms_eps_lo",
        "type": "f32",
        "offset": 52
       },
       {
        "name": "qk_eps_hi",
        "type": "f32",
        "offset": 56
       },
       {
        "name": "qk_eps_lo",
        "type": "f32",
        "offset": 60
       },
       {
        "name": "packed_flags",
        "type": "u32",
        "offset": 64
       },
       {
        "name": "b_offset",
        "type": "u32",
        "offset": 68
       },
       {
        "name": "norm_weight_offset",
        "type": "u32",
        "offset": 72
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 76,
        "padding": true
       }
      ]
     }
    },
    "paired_state": {
     "wgsl": "gated_delta_state_paired.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "outputDtype": "f32",
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "wgslName": "u",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "conv",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "gates",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "state",
       "type": "storage"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage"
      }
     ],
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "activationComponents": 2,
      "activationElementStrideBytes": 8
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 80,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "conv_dim",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "conv_kernel_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_v_heads",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "num_k_heads",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "head_k_dim",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "head_v_dim",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "q_size",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "k_size",
        "type": "u32",
        "offset": 32
       },
       {
        "name": "value_dim",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "q_rep",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "norm_mode",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "rms_eps_hi",
        "type": "f32",
        "offset": 48
       },
       {
        "name": "rms_eps_lo",
        "type": "f32",
        "offset": 52
       },
       {
        "name": "qk_eps_hi",
        "type": "f32",
        "offset": 56
       },
       {
        "name": "qk_eps_lo",
        "type": "f32",
        "offset": 60
       },
       {
        "name": "packed_flags",
        "type": "u32",
        "offset": 64
       },
       {
        "name": "b_offset",
        "type": "u32",
        "offset": 68
       },
       {
        "name": "norm_weight_offset",
        "type": "u32",
        "offset": 72
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 76,
        "padding": true
       }
      ]
     }
    },
    "paired_state_sliced": {
     "wgsl": "gated_delta_state_paired_sliced.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "K_SLICES": 16
     },
     "requires": [],
     "outputDtype": "f32",
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "wgslName": "u",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "conv",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "gates",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "state",
       "type": "storage"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage"
      }
     ],
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "activationComponents": 2,
      "activationElementStrideBytes": 8,
      "replacesMechanism": {
       "operation": "gated_delta_recurrent",
       "variant": "paired_state"
      },
      "dispatchGeometry": "headColumnBlocks",
      "stateRowsPerLane": 8
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 80,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "conv_dim",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "conv_kernel_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_v_heads",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "num_k_heads",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "head_k_dim",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "head_v_dim",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "q_size",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "k_size",
        "type": "u32",
        "offset": 32
       },
       {
        "name": "value_dim",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "q_rep",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "norm_mode",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "rms_eps_hi",
        "type": "f32",
        "offset": 48
       },
       {
        "name": "rms_eps_lo",
        "type": "f32",
        "offset": 52
       },
       {
        "name": "qk_eps_hi",
        "type": "f32",
        "offset": 56
       },
       {
        "name": "qk_eps_lo",
        "type": "f32",
        "offset": 60
       },
       {
        "name": "packed_flags",
        "type": "u32",
        "offset": 64
       },
       {
        "name": "b_offset",
        "type": "u32",
        "offset": 68
       },
       {
        "name": "norm_weight_offset",
        "type": "u32",
        "offset": 72
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 76,
        "padding": true
       }
      ]
     }
    },
    "paired_state_sliced_rolled": {
     "wgsl": "gated_delta_state_paired_sliced_rolled.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "K_SLICES": 16
     },
     "requires": [],
     "outputDtype": "f32",
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "wgslName": "u",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "conv",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "gates",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "state",
       "type": "storage"
      },
      {
       "index": 4,
       "name": "output",
       "type": "storage"
      }
     ],
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "activationComponents": 2,
      "activationElementStrideBytes": 8,
      "replacesMechanism": {
       "operation": "gated_delta_recurrent",
       "variant": "paired_state"
      },
      "dispatchGeometry": "headColumnBlocks",
      "stateRowsPerLane": 8
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 80,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "conv_dim",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "conv_kernel_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_v_heads",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "num_k_heads",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "head_k_dim",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "head_v_dim",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "q_size",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "k_size",
        "type": "u32",
        "offset": 32
       },
       {
        "name": "value_dim",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "q_rep",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "norm_mode",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "rms_eps_hi",
        "type": "f32",
        "offset": 48
       },
       {
        "name": "rms_eps_lo",
        "type": "f32",
        "offset": 52
       },
       {
        "name": "qk_eps_hi",
        "type": "f32",
        "offset": 56
       },
       {
        "name": "qk_eps_lo",
        "type": "f32",
        "offset": 60
       },
       {
        "name": "packed_flags",
        "type": "u32",
        "offset": 64
       },
       {
        "name": "b_offset",
        "type": "u32",
        "offset": 68
       },
       {
        "name": "norm_weight_offset",
        "type": "u32",
        "offset": 72
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 76,
        "padding": true
       }
      ]
     }
    },
    "paired_norm": {
     "wgsl": "gated_delta_norm_paired.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "outputDtype": "f32",
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "wgslName": "u",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "norm_weight",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "output",
       "type": "storage"
      }
     ],
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "activationComponents": 2,
      "activationElementStrideBytes": 8
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 80,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "conv_dim",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "conv_kernel_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_v_heads",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "num_k_heads",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "head_k_dim",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "head_v_dim",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "q_size",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "k_size",
        "type": "u32",
        "offset": 32
       },
       {
        "name": "value_dim",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "q_rep",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "norm_mode",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "rms_eps_hi",
        "type": "f32",
        "offset": 48
       },
       {
        "name": "rms_eps_lo",
        "type": "f32",
        "offset": 52
       },
       {
        "name": "qk_eps_hi",
        "type": "f32",
        "offset": 56
       },
       {
        "name": "qk_eps_lo",
        "type": "f32",
        "offset": 60
       },
       {
        "name": "packed_flags",
        "type": "u32",
        "offset": 64
       },
       {
        "name": "b_offset",
        "type": "u32",
        "offset": 68
       },
       {
        "name": "norm_weight_offset",
        "type": "u32",
        "offset": 72
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 76,
        "padding": true
       }
      ]
     }
    },
    "paired_gate": {
     "wgsl": "gated_delta_gate_paired.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "outputDtype": "f32",
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "wgslName": "u",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "z",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "output",
       "type": "storage"
      }
     ],
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "activationComponents": 2,
      "activationElementStrideBytes": 8,
      "normGateActivation": "silu"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gated-delta-recurrent.rules.json#pairedGateVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 80,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "conv_dim",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "conv_kernel_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_v_heads",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "num_k_heads",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "head_k_dim",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "head_v_dim",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "q_size",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "k_size",
        "type": "u32",
        "offset": 32
       },
       {
        "name": "value_dim",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "q_rep",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "norm_mode",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "rms_eps_hi",
        "type": "f32",
        "offset": 48
       },
       {
        "name": "rms_eps_lo",
        "type": "f32",
        "offset": 52
       },
       {
        "name": "qk_eps_hi",
        "type": "f32",
        "offset": 56
       },
       {
        "name": "qk_eps_lo",
        "type": "f32",
        "offset": 60
       },
       {
        "name": "packed_flags",
        "type": "u32",
        "offset": 64
       },
       {
        "name": "b_offset",
        "type": "u32",
        "offset": 68
       },
       {
        "name": "norm_weight_offset",
        "type": "u32",
        "offset": 72
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 76,
        "padding": true
       }
      ]
     }
    },
    "paired_gate_sigmoid": {
     "wgsl": "gated_delta_gate_sigmoid_paired.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "outputDtype": "f32",
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "wgslName": "u",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "z",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "output",
       "type": "storage"
      }
     ],
     "variantMetadata": {
      "inputPrecision": "two-f32",
      "outputPrecision": "two-f32",
      "activationComponents": 2,
      "activationElementStrideBytes": 8,
      "normGateActivation": "sigmoid"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gated-delta-recurrent.rules.json#pairedGateVariant"],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 80,
      "fields": [
       {
        "name": "num_tokens",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "conv_dim",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "conv_kernel_size",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "num_v_heads",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "num_k_heads",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "head_k_dim",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "head_v_dim",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "q_size",
        "type": "u32",
        "offset": 28
       },
       {
        "name": "k_size",
        "type": "u32",
        "offset": 32
       },
       {
        "name": "value_dim",
        "type": "u32",
        "offset": 36
       },
       {
        "name": "q_rep",
        "type": "u32",
        "offset": 40
       },
       {
        "name": "norm_mode",
        "type": "u32",
        "offset": 44
       },
       {
        "name": "rms_eps_hi",
        "type": "f32",
        "offset": 48
       },
       {
        "name": "rms_eps_lo",
        "type": "f32",
        "offset": 52
       },
       {
        "name": "qk_eps_hi",
        "type": "f32",
        "offset": 56
       },
       {
        "name": "qk_eps_lo",
        "type": "f32",
        "offset": 60
       },
       {
        "name": "packed_flags",
        "type": "u32",
        "offset": 64
       },
       {
        "name": "b_offset",
        "type": "u32",
        "offset": 68
       },
       {
        "name": "norm_weight_offset",
        "type": "u32",
        "offset": 72
       },
       {
        "name": "_pad",
        "type": "u32",
        "offset": 76,
        "padding": true
       }
      ]
     }
    },
    "register_prefill": {
     "wgsl": "gated_delta_recurrent_register_prefill.wgsl",
     "entryPoint": "main",
     "workgroup": [32,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "normGateActivation": "silu",
      "headKDim": 128,
      "stateComponents": 1,
      "valueSliceWidth": 32,
      "maxHeadVDim": 128,
      "normGateVariant": "register_prefill_norm_gate",
      "convVariant": "prefill_prefix",
      "parallelConvVariant": "prefill_parallel",
      "mechanismKernels": [
       {
        "operation": "gated_delta_recurrent",
        "variant": "register_prefill_norm_gate"
       },
       {
        "operation": "gated_delta_conv",
        "variant": "prefill_prefix"
       },
       {
        "operation": "gated_delta_conv",
        "variant": "prefill_parallel"
       }
      ]
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gated-delta-recurrent.rules.json#scalarVariant"],
      "wgslOnDisk": true
     },
     "description": "F32 head-K-128 prefill retaining recurrent row state locally between tokens."
    },
    "register_prefill_norm_gate": {
     "wgsl": "gated_delta_prefill_norm_gate.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "normGateActivation": "silu"
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "description": "Complete-head gated RMSNorm after sliced F32 recurrent prefill."
    },
    "gguf_register_prefill": {
     "wgsl": "gated_delta_recurrent_gguf_register_prefill.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "normGateActivation": "silu",
      "sourceLayout": "gguf-v1",
      "headKDim": 128,
      "maxHeadVDim": 128,
      "stateComponents": 1,
      "convVariant": "prefill_prefix",
      "parallelConvVariant": "prefill_parallel",
      "mechanismKernels": [
       {
        "operation": "gated_delta_conv",
        "variant": "prefill_prefix"
       },
       {
        "operation": "gated_delta_conv",
        "variant": "prefill_parallel"
       }
      ]
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gated-delta-recurrent.rules.json#scalarVariant"],
      "wgslOnDisk": true
     },
     "description": "Opt-in GGUF F32 K=128 retained-state prefill; preserves ordered two-sweep math. Physical qualification pending."
    },
    "gguf_f32": {
     "wgsl": "gated_delta_recurrent_gguf.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "normGateActivation": "silu",
      "sourceLayout": "gguf-v1"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-6-35b-a3b-q4_0-passthrough","qwen3/qwen3.8-27b-q4_0-passthrough"],
      "ruleChains": ["gated-delta-recurrent.rules.json#scalarVariant"],
      "wgslOnDisk": true
     }
    },
    "gguf_sigmoid_f32": {
     "wgsl": "gated_delta_recurrent_gguf_sigmoid_gate.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "normGateActivation": "sigmoid",
      "sourceLayout": "gguf-v1"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gated-delta-recurrent.rules.json#scalarVariant"],
      "wgslOnDisk": true
     }
    },
    "gguf_register_prefill_sigmoid": {
     "wgsl": "gated_delta_recurrent_gguf_register_prefill_sigmoid_gate.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "normGateActivation": "sigmoid",
      "sourceLayout": "gguf-v1",
      "headKDim": 128,
      "maxHeadVDim": 128,
      "stateComponents": 1,
      "convVariant": "prefill_prefix",
      "parallelConvVariant": "prefill_parallel",
      "mechanismKernels": [
       {
        "operation": "gated_delta_conv",
        "variant": "prefill_prefix"
       },
       {
        "operation": "gated_delta_conv",
        "variant": "prefill_parallel"
       }
      ]
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gated-delta-recurrent.rules.json#scalarVariant"],
      "wgslOnDisk": true
     },
     "description": "Opt-in GGUF F32 K=128 retained-state prefill; preserves ordered two-sweep math. Physical qualification pending."
    }
   }
  },
  "gated_delta_fused_decode": {
   "description": "Single-token fused convolution and gated-delta recurrent decode stage",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "qkv",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "z_proj",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "ab_proj",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "conv_weight",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "conv_state",
     "type": "storage"
    },
    {
     "index": 6,
     "name": "dt_bias",
     "type": "read-only-storage"
    },
    {
     "index": 7,
     "name": "a_log",
     "type": "read-only-storage"
    },
    {
     "index": 8,
     "name": "norm_weight",
     "type": "read-only-storage"
    },
    {
     "index": 9,
     "name": "recurrent_state",
     "type": "storage"
    },
    {
     "index": 10,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 64,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "conv_dim",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "conv_kernel_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "num_v_heads",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "num_k_heads",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "head_k_dim",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "head_v_dim",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "q_size",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "k_size",
      "type": "u32",
      "offset": 32
     },
     {
      "name": "value_dim",
      "type": "u32",
      "offset": 36
     },
     {
      "name": "q_rep",
      "type": "u32",
      "offset": 40
     },
     {
      "name": "norm_mode",
      "type": "u32",
      "offset": 44
     },
     {
      "name": "rms_norm_eps",
      "type": "f32",
      "offset": 48
     },
     {
      "name": "qk_l2norm_eps",
      "type": "f32",
      "offset": 52
     },
     {
      "name": "packed_flags",
      "type": "u32",
      "offset": 56
     },
     {
      "name": "b_proj_offset_elements",
      "type": "u32",
      "offset": 60
     }
    ]
   },
   "variants": {
    "paired_default": {
     "wgsl": "gated_delta_fused_decode_paired.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "normGateActivation": "silu"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gated-delta-fused-decode.rules.json#scalarVariant"],
      "wgslOnDisk": true
     }
    },
    "paired_default_f16": {
     "wgsl": "gated_delta_fused_decode_paired_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "normGateActivation": "silu"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gated-delta-fused-decode.rules.json#scalarVariant"],
      "wgslOnDisk": true
     }
    },
    "paired_sigmoid_gate": {
     "wgsl": "gated_delta_fused_decode_paired_sigmoid_gate.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "normGateActivation": "sigmoid"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gated-delta-fused-decode.rules.json#scalarVariant"],
      "wgslOnDisk": true
     }
    },
    "paired_sigmoid_gate_f16": {
     "wgsl": "gated_delta_fused_decode_paired_sigmoid_gate_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "normGateActivation": "sigmoid"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gated-delta-fused-decode.rules.json#scalarVariant"],
      "wgslOnDisk": true
     }
    },
    "default": {
     "wgsl": "gated_delta_fused_decode.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "normGateActivation": "silu"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "forge/lineage/qwen3.8-27b",
       "qwen3/qwen-3-6-35b-a3b-q4_0-passthrough",
       "qwen3/qwen-3-6-35b-a3b-text-q4k-ehf16-af32",
       "qwen3/qwen3.8-27b-text-f16-af32",
       "qwen3/qwen3.8-27b-text-q4k-ehaf16"
      ],
      "ruleChains": ["gated-delta-fused-decode.rules.json#scalarVariant"],
      "wgslOnDisk": true
     }
    },
    "default_f16": {
     "wgsl": "gated_delta_fused_decode_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "normGateActivation": "silu"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gated-delta-fused-decode.rules.json#scalarVariant"],
      "wgslOnDisk": true
     }
    },
    "sigmoid_gate": {
     "wgsl": "gated_delta_fused_decode_sigmoid_gate.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "normGateActivation": "sigmoid"
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32"],
      "ruleChains": ["gated-delta-fused-decode.rules.json#scalarVariant"],
      "wgslOnDisk": true
     }
    },
    "sigmoid_gate_f16": {
     "wgsl": "gated_delta_fused_decode_sigmoid_gate_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "variantMetadata": {
      "normGateActivation": "sigmoid"
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gated-delta-fused-decode.rules.json#scalarVariant"],
      "wgslOnDisk": true
     }
    },
    "register_decode": {
     "wgsl": "gated_delta_fused_decode_register.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "outputDtype": "f32",
     "variantMetadata": {
      "normGateActivation": "silu",
      "headKDim": 128,
      "maxHeadVDim": 128,
      "stateComponents": 1
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["gated-delta-fused-decode.rules.json#scalarVariant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "linear_attention_summary": {
   "description": "Linear attention summary stage",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "query",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "key",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "value",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "summary",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 24,
    "fields": [
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 16,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 20,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "linear_attention_summary.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["linear-attention.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "default_f16": {
     "wgsl": "linear_attention_summary_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["linear-attention.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "linear_attention_apply": {
   "description": "Linear attention apply stage",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "query",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "summary",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 16
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "linear_attention_apply.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["linear-attention.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "default_f16": {
     "wgsl": "linear_attention_apply_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["linear-attention.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "repeat_channels": {
   "description": "Repeat channels along the NCHW channel axis",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 20,
    "fields": [
     {
      "name": "in_channels",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "height",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "width",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "repeats",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 16,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "repeat_channels.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["repeat-channels.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "default_f16": {
     "wgsl": "repeat_channels_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["repeat-channels.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "relu": {
   "description": "ReLU activation",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "dispatch_stride",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "relu.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["forge/forecast/chronos-bolt-tiny"],
      "ruleChains": ["relu.rules.json#variant"],
      "wgslOnDisk": true
     }
    },
    "default_f16": {
     "wgsl": "relu_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["relu.rules.json#variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "conv2d_backward_input": {
   "description": "Conv2D backward (input gradient)",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "grad_input",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 48,
    "fields": [
     {
      "name": "in_channels",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "out_channels",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "height",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "width",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "out_height",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "out_width",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "kernel_h",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "kernel_w",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "stride",
      "type": "u32",
      "offset": 32
     },
     {
      "name": "pad",
      "type": "u32",
      "offset": 36
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 40,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 44,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/conv2d_backward_input.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "conv2d_backward_weight": {
   "description": "Conv2D backward (weight gradient)",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "grad_output",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "grad_weight",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 48,
    "fields": [
     {
      "name": "in_channels",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "out_channels",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "height",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "width",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "out_height",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "out_width",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "kernel_h",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "kernel_w",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "stride",
      "type": "u32",
      "offset": 32
     },
     {
      "name": "pad",
      "type": "u32",
      "offset": 36
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 40,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 44,
      "padding": true
     }
    ]
   },
   "variants": {
    "default": {
     "wgsl": "backward/conv2d_backward_weight.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "attention_bdpa": {
   "description": "Basis-decomposed paged attention kernels (decode)",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "Q",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "T_basis_k",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "T_basis_v",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "P_delta_k",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "P_delta_v",
     "type": "read-only-storage"
    },
    {
     "index": 6,
     "name": "I_flat",
     "type": "read-only-storage"
    },
    {
     "index": 7,
     "name": "rope_cos",
     "type": "read-only-storage"
    },
    {
     "index": 8,
     "name": "rope_sin",
     "type": "read-only-storage"
    },
    {
     "index": 9,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 64,
    "fields": [
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_kv_heads",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "kv_len",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "seq_len",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "scale",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "is_causal",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "start_pos",
      "type": "u32",
      "offset": 28
     },
     {
      "name": "attn_softcap",
      "type": "f32",
      "offset": 32
     },
     {
      "name": "sliding_window",
      "type": "u32",
      "offset": 36
     },
     {
      "name": "kv_len_source",
      "type": "u32",
      "offset": 40
     },
     {
      "name": "_pad_1",
      "type": "u32",
      "offset": 44
     },
     {
      "name": "_pad_2",
      "type": "u32",
      "offset": 48
     },
     {
      "name": "_pad_3",
      "type": "u32",
      "offset": 52
     },
     {
      "name": "_pad_4",
      "type": "u32",
      "offset": 56
     },
     {
      "name": "_pad_5",
      "type": "u32",
      "offset": 60
     }
    ]
   },
   "variants": {
    "decode_bdpa_f16": {
     "wgsl": "attention_bdpa_decode_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f16",
     "variantMetadata": {
      "maxKVLen": 2048
     },
     "description": "BDPA decode kernel - f16 Q/basis + packed int8 deltas",
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "check_finiteness": {
   "description": "Device-side non-finite tensor detection.",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "status",
     "type": "storage"
    }
   ],
   "variants": {
    "f16": {
     "wgsl": "check_finiteness.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "f32": {
     "wgsl": "check_finiteness_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   },
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "layer",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "step",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "abs_threshold",
      "type": "f32",
      "offset": 12
     }
    ]
   }
  },
  "check_hot_vocab_stop": {
   "description": "Device-side hot-vocabulary stop and next-token state update.",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "sampled_token",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "should_stop",
     "type": "storage"
    },
    {
     "index": 3,
     "name": "hot_token_index_map",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "next_input_token",
     "type": "storage"
    }
   ],
   "variants": {
    "default": {
     "wgsl": "check_hot_vocab_stop.wgsl",
     "entryPoint": "main",
     "workgroup": [1,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   },
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "eosTokenId",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "maxTokens",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "currentPos",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "tokenIndex",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "hotTokenSentinel",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   }
  },
  "check_stop": {
   "description": "Device-side sampled-token stop detection.",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "sampled_token",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "should_stop",
     "type": "storage"
    }
   ],
   "variants": {
    "default": {
     "wgsl": "check_stop.wgsl",
     "entryPoint": "main",
     "workgroup": [1,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   },
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "eosTokenId",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "maxTokens",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "currentPos",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "tokenIndex",
      "type": "u32",
      "offset": 12
     }
    ]
   }
  },
  "gated_short_conv": {
   "description": "Stateful gated short convolution.",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "conv_weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "conv_state",
     "type": "storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "variants": {
    "f32": {
     "wgsl": "gated_short_conv.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   },
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "kernel_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   }
  },
  "logit_merge": {
   "description": "Device-side ensemble logit merge policies.",
   "baseBindings": [
    {
     "index": 0,
     "name": "logits_a",
     "type": "read-only-storage"
    },
    {
     "index": 1,
     "name": "logits_b",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "merged",
     "type": "storage"
    },
    {
     "index": 3,
     "name": "uniforms",
     "type": "uniform"
    }
   ],
   "variants": {
    "weighted": {
     "wgsl": "logit_merge_weighted.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "max": {
     "wgsl": "logit_merge_max.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "geometric": {
     "wgsl": "logit_merge_geometric.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   },
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "vocab_size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "weight_a",
      "type": "f32",
      "offset": 4
     },
     {
      "name": "weight_b",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "temperature",
      "type": "f32",
      "offset": 12
     }
    ]
   }
  },
  "moe_router_bias_add": {
   "description": "Device-side MoE router bias application.",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "logits",
     "type": "storage"
    },
    {
     "index": 2,
     "name": "bias",
     "type": "read-only-storage"
    }
   ],
   "variants": {
    "f16_f16": {
     "wgsl": "moe_router_bias_add_f16_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["inference/moe.rules.json#biasAddCode"],
      "wgslOnDisk": true
     }
    },
    "f16_f32": {
     "wgsl": "moe_router_bias_add_f16_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["inference/moe.rules.json#biasAddCode"],
      "wgslOnDisk": true
     }
    },
    "f32_f16": {
     "wgsl": "moe_router_bias_add_f32_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["inference/moe.rules.json#biasAddCode"],
      "wgslOnDisk": true
     }
    },
    "f32_f32": {
     "wgsl": "moe_router_bias_add_f32_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["inference/moe.rules.json#biasAddCode"],
      "wgslOnDisk": true
     }
    }
   },
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_experts",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   }
  },
  "rmsnorm_stats": {
   "description": "RMSNorm residual sum and inverse-RMS statistics.",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform",
     "wgslName": "params"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage",
     "wgslName": "input"
    },
    {
     "index": 2,
     "name": "residual",
     "type": "read-only-storage",
     "wgslName": "residual"
    },
    {
     "index": 3,
     "name": "prenorm_sum",
     "type": "storage",
     "wgslName": "prenorm_sum"
    },
    {
     "index": 4,
     "name": "inv_rms",
     "type": "storage",
     "wgslName": "inv_rms"
    }
   ],
   "variants": {
    "workgroup": {
     "wgsl": "rmsnorm_stats.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["rmsnorm.rules.json#statsVariant"],
      "wgslOnDisk": true
     }
    },
    "subgroups": {
     "wgsl": "rmsnorm_stats_subgroups.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["subgroups"],
     "requiredWgslFeatures": ["subgroup_id"],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["rmsnorm.rules.json#statsVariant"],
      "wgslOnDisk": true
     }
    }
   },
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "token_stride",
      "type": "u32",
      "offset": 12
     }
    ]
   }
  },
  "embedding_pool": {
   "description": "Device-side mean or last-row embedding pooling.",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "mask",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "row_count",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "mode",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "has_mask",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "included_count",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "last_index",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "embedding_pool_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["esm/esm2-t12-35m-ur50d-f32-af32","qwen3/qwen-3-embedding-0-6b-f16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "f16": {
     "wgsl": "embedding_pool_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "l2_normalize": {
   "description": "Device-side row-wise L2 normalization.",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "row_count",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "hidden_size",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "l2_normalize.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-embedding-0-6b-f16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "logit_finalize": {
   "description": "Device-side LM-head bias, padding, scaling, and softcapping.",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "bias",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "row_count",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "source_columns",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "target_columns",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "has_bias",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "output_scale",
      "type": "f32",
      "offset": 16
     },
     {
      "name": "softcap",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "logit_finalize_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "f16": {
     "wgsl": "logit_finalize_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "logit_scatter": {
   "description": "Device-side assembly of LM-head row chunks into one logits tensor.",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "row_count",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "chunk_columns",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "target_columns",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "column_offset",
      "type": "u32",
      "offset": 12
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "logit_scatter_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "f16": {
     "wgsl": "logit_scatter_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "rope_precompute": {
   "description": "Device-side declared RoPE frequency-table construction.",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "rope_data",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "cos_values",
     "type": "storage"
    },
    {
     "index": 3,
     "name": "sin_values",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 64,
    "fields": [
     {
      "name": "max_seq_len",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "rotary_dim",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "frequency_base_dim",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "scaling_type",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "theta",
      "type": "f32",
      "offset": 16
     },
     {
      "name": "rope_scale",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "yarn_factor",
      "type": "f32",
      "offset": 24
     },
     {
      "name": "yarn_beta_fast",
      "type": "f32",
      "offset": 28
     },
     {
      "name": "yarn_beta_slow",
      "type": "f32",
      "offset": 32
     },
     {
      "name": "original_max_position",
      "type": "f32",
      "offset": 36
     },
     {
      "name": "dispatch_stride",
      "type": "u32",
      "offset": 40
     },
     {
      "name": "mrope_section_t",
      "type": "u32",
      "offset": 44
     },
     {
      "name": "mrope_section_h",
      "type": "u32",
      "offset": 48
     },
     {
      "name": "mrope_section_w",
      "type": "u32",
      "offset": 52
     },
     {
      "name": "frequency_offset",
      "type": "u32",
      "offset": 56
     },
     {
      "name": "position_count",
      "type": "u32",
      "offset": 60
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "rope_precompute.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "pinned",
      "inlineConfigs": [
       "esm/esm2-t12-35m-ur50d-f32-af32",
       "qwen3/qwen-3-4b-instruct-2507-q4k-ehf16-af32",
       "qwen3/qwen-3-embedding-0-6b-f16-af32",
       "qwen3/qwen-3-reranker-0-6b-f16-true-logit-af32",
       "qwen3/qwen-3-reranker-0-6b-q4k-ehf16-af32"
      ],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "paired": {
     "wgsl": "rope_precompute_paired.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "inverse_frequencies",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "cos_table",
       "type": "storage"
      },
      {
       "index": 3,
       "name": "sin_table",
       "type": "storage"
      }
     ],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     },
     "uniformsOverride": {
      "size": 48,
      "fields": [
       {
        "name": "position_count",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "rotary_dim",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "frequency_base_dim",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "dispatch_stride",
        "type": "u32",
        "offset": 12
       },
       {
        "name": "theta_hi",
        "type": "f32",
        "offset": 16
       },
       {
        "name": "theta_lo",
        "type": "f32",
        "offset": 20
       },
       {
        "name": "scale_hi",
        "type": "f32",
        "offset": 24
       },
       {
        "name": "scale_lo",
        "type": "f32",
        "offset": 28
       },
       {
        "name": "inverse_supplied",
        "type": "u32",
        "offset": 32
       },
       {
        "name": "_pad0",
        "type": "u32",
        "offset": 36,
        "padding": true
       },
       {
        "name": "_pad1",
        "type": "u32",
        "offset": 40,
        "padding": true
       },
       {
        "name": "_pad2",
        "type": "u32",
        "offset": 44,
        "padding": true
       }
      ]
     }
    }
   }
  },
  "instance_stats": {
   "description": "Declared numeric forecasting operator: instance_stats",
   "baseBindings": [
    {
     "index": 0,
     "name": "context",
     "type": "read-only-storage"
    },
    {
     "index": 1,
     "name": "mask",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "moments",
     "type": "storage"
    }
   ],
   "variants": {
    "f32": {
     "wgsl": "instance_stats.wgsl",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "outputDtype": "f32",
     "weightDtype": "f32",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["forge/forecast/chronos-bolt-tiny"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   },
   "baseUniforms": null
  },
  "patch_context": {
   "description": "Declared numeric forecasting operator: patch_context",
   "baseBindings": [
    {
     "index": 0,
     "name": "context",
     "type": "read-only-storage"
    },
    {
     "index": 1,
     "name": "mask",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "moments",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "patches",
     "type": "storage"
    },
    {
     "index": 4,
     "name": "attention_mask",
     "type": "storage"
    }
   ],
   "variants": {
    "f32": {
     "wgsl": "patch_context.wgsl",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "outputDtype": "f32",
     "weightDtype": "f32",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["forge/forecast/chronos-bolt-tiny"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   },
   "baseUniforms": null
  },
  "append_embedding": {
   "description": "Declared numeric forecasting operator: append_embedding",
   "baseBindings": [
    {
     "index": 0,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 1,
     "name": "embeddings",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "variants": {
    "f32": {
     "wgsl": "append_embedding.wgsl",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "outputDtype": "f32",
     "weightDtype": "f32",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["forge/forecast/chronos-bolt-tiny"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   },
   "baseUniforms": null
  },
  "rmsnorm_serial": {
   "description": "Declared numeric forecasting operator: rmsnorm_serial",
   "baseBindings": [
    {
     "index": 0,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 1,
     "name": "weight",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "variants": {
    "f32": {
     "wgsl": "rmsnorm_serial.wgsl",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "outputDtype": "f32",
     "weightDtype": "f32",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["forge/forecast/chronos-bolt-tiny"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   },
   "baseUniforms": null
  },
  "attention_relative": {
   "description": "Declared numeric forecasting operator: attention_relative",
   "baseBindings": [
    {
     "index": 0,
     "name": "query",
     "type": "read-only-storage"
    },
    {
     "index": 1,
     "name": "key",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "value",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "bias",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "key_mask",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "output",
     "type": "storage"
    }
   ],
   "variants": {
    "f32": {
     "wgsl": "attention_relative.wgsl",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "outputDtype": "f32",
     "weightDtype": "f32",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["forge/forecast/chronos-bolt-tiny"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   },
   "baseUniforms": null
  },
  "forecast_output": {
   "description": "Declared numeric forecasting operator: forecast_output",
   "baseBindings": [
    {
     "index": 0,
     "name": "request",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "moments",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "quantile_indices",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "variants": {
    "f32": {
     "wgsl": "forecast_output.wgsl",
     "entryPoint": "main",
     "workgroup": [64,1,1],
     "requires": [],
     "outputDtype": "f32",
     "weightDtype": "f32",
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["forge/forecast/chronos-bolt-tiny"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   },
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "horizon",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 4,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   }
  },
  "runtime_probe": {
   "description": "Minimal device feature and submission probes.",
   "baseBindings": [],
   "variants": {
    "shader_f16": {
     "wgsl": "probe_shader_f16.wgsl",
     "entryPoint": "main",
     "workgroup": [1,1,1],
     "requires": ["shader-f16"],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "submit": {
     "wgsl": "submit_probe.wgsl",
     "entryPoint": "main",
     "workgroup": [1,1,1],
     "requires": [],
     "bindingsOverride": [
      {
       "index": 0,
       "name": "output",
       "type": "storage"
      }
     ],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   },
   "baseUniforms": null
  },
  "logit_suppress": {
   "description": "Mask explicitly suppressed token IDs in f32 logits on the device.",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "wgslName": "u",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "token_ids",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "logits",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 8,
    "fields": [
     {
      "name": "vocab_size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "token_count",
      "type": "u32",
      "offset": 4
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "logit_suppress.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "paired_pointwise": {
   "description": "Explicit paired pointwise activation and residual operations",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "a",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "b",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "scale_hi",
      "type": "f32",
      "offset": 4
     },
     {
      "name": "scale_lo",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "add": {
     "wgsl": "paired_add.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["silu.rules.json#pairedVariant"],
      "wgslOnDisk": true
     }
    },
    "scale": {
     "wgsl": "paired_scale.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["silu.rules.json#pairedVariant"],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "a",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ]
    },
    "multiply": {
     "wgsl": "paired_multiply.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["silu.rules.json#pairedVariant"],
      "wgslOnDisk": true
     }
    },
    "silu": {
     "wgsl": "paired_silu.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["silu.rules.json#pairedVariant"],
      "wgslOnDisk": true
     }
    },
    "sigmoid": {
     "wgsl": "paired_sigmoid.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["silu.rules.json#pairedVariant"],
      "wgslOnDisk": true
     }
    },
    "scale_inplace": {
     "wgsl": "paired_scale_inplace.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["silu.rules.json#pairedVariant"],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "output",
       "type": "storage"
      }
     ]
    },
    "silu_unary": {
     "wgsl": "paired_silu_unary.wgsl",
     "immediateCompletion": "settled",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["silu.rules.json#pairedVariant"],
      "wgslOnDisk": true
     },
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "a",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      }
     ]
    }
   }
  },
  "moe_route_matmul": {
   "description": "GPU-selected row-packed expert projections with F32 activations and accumulation",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "wgslName": "A",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weights",
     "wgslName": "B_q4k",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "wgslName": "C",
     "type": "storage"
    },
    {
     "index": 4,
     "name": "route_indices",
     "type": "read-only-storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "M",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "N",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "K",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "alpha",
      "type": "f32",
      "offset": 12
     },
     {
      "name": "num_blocks_per_row",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "num_experts",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "top_k",
      "type": "u32",
      "offset": 24
     },
     {
      "name": "input_mode",
      "type": "u32",
      "offset": 28
     }
    ]
   },
   "variants": {
    "q4k_f32": {
     "wgsl": "moe_route_q4_f32.wgsl",
     "entryPoint": "main_multicol",
     "workgroup": [256,1,1],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "COLS_PER_WG": 32,
      "THREADS_PER_COL_GEMV": 8,
      "USE_FULL_BLOCK_FAST_PATH": false
     },
     "requires": [],
     "weightDtype": "q4k",
     "outputDtype": "f32",
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#routeQ4Variant"],
      "wgslOnDisk": true
     },
     "sharedMemory": 1024,
     "variantMetadata": {
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     }
    },
    "q4_0_f32": {
     "wgsl": "moe_route_q4_0_block_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      },
      {
       "index": 4,
       "name": "route_indices",
       "type": "read-only-storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "num_experts",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "top_k",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "input_mode",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_0",
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "COLS_PER_WG": 8,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 18,
      "QUANT_FORMAT": 0
     },
     "sharedMemory": 1024,
     "variantMetadata": {
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#routeQ4Variant"],
      "wgslOnDisk": true
     }
    },
    "q4_1_f32": {
     "wgsl": "moe_route_q4_1_block_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      },
      {
       "index": 4,
       "name": "route_indices",
       "type": "read-only-storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "num_experts",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "top_k",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "input_mode",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_1",
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 20,
      "QUANT_FORMAT": 1
     },
     "sharedMemory": 512,
     "variantMetadata": {
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#routeQ4Variant"],
      "wgslOnDisk": true
     }
    },
    "q8_0_f32": {
     "wgsl": "moe_route_q4_0_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      },
      {
       "index": 4,
       "name": "route_indices",
       "type": "read-only-storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "num_experts",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "top_k",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "input_mode",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q8_0",
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 34,
      "QUANT_FORMAT": 2
     },
     "sharedMemory": 512,
     "variantMetadata": {
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#routeQ4Variant"],
      "wgslOnDisk": true
     }
    },
    "q6k_f32": {
     "wgsl": "moe_route_q4_0_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      },
      {
       "index": 4,
       "name": "route_indices",
       "type": "read-only-storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "num_experts",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "top_k",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "input_mode",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q6k",
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 256,
      "BLOCK_BYTES": 210,
      "QUANT_FORMAT": 3
     },
     "sharedMemory": 512,
     "variantMetadata": {
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#routeQ4Variant"],
      "wgslOnDisk": true
     }
    },
    "q4_0_split_f32": {
     "wgsl": "moe_route_q4_0_split_block_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      },
      {
       "index": 4,
       "name": "route_indices",
       "type": "read-only-storage"
      },
      {
       "index": 5,
       "name": "up_weights",
       "type": "read-only-storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "num_experts",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "top_k",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "input_mode",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_0",
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "COLS_PER_WG": 8,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 18,
      "QUANT_FORMAT": 0
     },
     "sharedMemory": 1024,
     "variantMetadata": {
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#routeQ4Variant"],
      "wgslOnDisk": true
     }
    },
    "q4_1_split_f32": {
     "wgsl": "moe_route_gguf_split_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      },
      {
       "index": 4,
       "name": "route_indices",
       "type": "read-only-storage"
      },
      {
       "index": 5,
       "name": "up_weights",
       "type": "read-only-storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "num_experts",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "top_k",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "input_mode",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q4_1",
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 20,
      "QUANT_FORMAT": 1
     },
     "sharedMemory": 512,
     "variantMetadata": {
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#routeQ4Variant"],
      "wgslOnDisk": true
     }
    },
    "q8_0_split_f32": {
     "wgsl": "moe_route_gguf_split_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      },
      {
       "index": 4,
       "name": "route_indices",
       "type": "read-only-storage"
      },
      {
       "index": 5,
       "name": "up_weights",
       "type": "read-only-storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "num_experts",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "top_k",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "input_mode",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q8_0",
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 34,
      "QUANT_FORMAT": 2
     },
     "sharedMemory": 512,
     "variantMetadata": {
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#routeQ4Variant"],
      "wgslOnDisk": true
     }
    },
    "q6k_split_f32": {
     "wgsl": "moe_route_gguf_split_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "input",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "weights",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "output",
       "type": "storage"
      },
      {
       "index": 4,
       "name": "route_indices",
       "type": "read-only-storage"
      },
      {
       "index": 5,
       "name": "up_weights",
       "type": "read-only-storage"
      }
     ],
     "uniformsOverride": {
      "size": 32,
      "fields": [
       {
        "name": "M",
        "type": "u32",
        "offset": 0
       },
       {
        "name": "N",
        "type": "u32",
        "offset": 4
       },
       {
        "name": "K",
        "type": "u32",
        "offset": 8
       },
       {
        "name": "alpha",
        "type": "f32",
        "offset": 12
       },
       {
        "name": "blocks",
        "type": "u32",
        "offset": 16
       },
       {
        "name": "num_experts",
        "type": "u32",
        "offset": 20
       },
       {
        "name": "top_k",
        "type": "u32",
        "offset": 24
       },
       {
        "name": "input_mode",
        "type": "u32",
        "offset": 28
       }
      ]
     },
     "weightDtype": "q6k",
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "COLS_PER_WG": 4,
      "THREADS_PER_COL_GEMV": 32,
      "TILE_SIZE": 16,
      "BLOCK_VALUES": 256,
      "BLOCK_BYTES": 210,
      "QUANT_FORMAT": 3
     },
     "sharedMemory": 512,
     "variantMetadata": {
      "workgroupConstants": ["WORKGROUP_SIZE",null,null]
     },
     "reachability": {
      "status": "selectable",
      "inlineConfigs": [],
      "ruleChains": ["matmul.rules.json#routeQ4Variant"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "sigmoid_gated_add": {
   "description": "F32 row-broadcast sigmoid gate and residual add; explicit candidate only",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "gate",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "residual",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "dispatch_stride",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "clamp_max",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "sigmoid_gated_add_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "moe_grouped_sort": {
   "description": "Opt-in stable GPU routed-expert grouping; original router IDs are retained",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "indices",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "groups",
     "type": "storage"
    },
    {
     "index": 3,
     "name": "indirect",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "num_routes",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_experts",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "top_k",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "pair_offset",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "gu_groups",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "down_groups",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "native_f32": {
     "wgsl": "moe_grouped_sort.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "GROUP_SIZE": 8,
      "MAX_EXPERTS": 256
     },
     "outputDtype": "f32",
     "variantMetadata": {
      "maxTopK": 16,
      "phase": "prefill",
      "requiresDistinctTopK": true
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "moe_grouped_gu": {
   "description": "Opt-in grouped native GGUF F32 routed projection; no residual",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weights",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "up_weights",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "groups",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "num_routes",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_experts",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "top_k",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "pair_offset",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "N",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "K",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "native_f32": {
     "wgsl": "moe_grouped_matmul_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "GROUP_SIZE": 8,
      "ROWS_PER_THREAD": 2,
      "INPUT_IS_TOKEN": true,
      "SPLIT_GATE_UP": true
     },
     "outputDtype": "f32",
     "variantMetadata": {
      "phase": "prefill",
      "weightDtypes": ["q4_0","q4_1","q8_0"],
      "weightLayout": "row",
      "activationDtype": "f32",
      "outerResidual": false,
      "reductionLanes": 8
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "native_f32_ordered": {
     "wgsl": "moe_grouped_matmul_ordered_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "GROUP_SIZE": 8,
      "ROWS_PER_THREAD": 2,
      "INPUT_IS_TOKEN": true,
      "SPLIT_GATE_UP": true,
      "REDUCTION_LANES": 32
     },
     "outputDtype": "f32",
     "variantMetadata": {
      "phase": "prefill",
      "weightDtypes": ["q4_0","q4_1","q8_0"],
      "weightLayout": "row",
      "activationDtype": "f32",
      "outerResidual": false,
      "reductionLanes": 32,
      "arithmetic": "scalar-fma-tree32"
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "moe_grouped_down": {
   "description": "Opt-in grouped native GGUF F32 routed projection; no residual",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weights",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "up_weights",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "groups",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "num_routes",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_experts",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "top_k",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "pair_offset",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "N",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "K",
      "type": "u32",
      "offset": 20
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "native_f32": {
     "wgsl": "moe_grouped_matmul_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "GROUP_SIZE": 8,
      "ROWS_PER_THREAD": 4,
      "INPUT_IS_TOKEN": false,
      "SPLIT_GATE_UP": false
     },
     "outputDtype": "f32",
     "variantMetadata": {
      "phase": "prefill",
      "weightDtypes": ["q4_0","q4_1","q8_0"],
      "weightLayout": "row",
      "activationDtype": "f32",
      "outerResidual": false,
      "reductionLanes": 8
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["runtime/profiles/qwen3-6-35b-a3b-q4_0-candidate"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "native_f32_ordered": {
     "wgsl": "moe_grouped_matmul_ordered_f32.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256,
      "GROUP_SIZE": 8,
      "ROWS_PER_THREAD": 4,
      "INPUT_IS_TOKEN": false,
      "SPLIT_GATE_UP": false,
      "REDUCTION_LANES": 32
     },
     "outputDtype": "f32",
     "variantMetadata": {
      "phase": "prefill",
      "weightDtypes": ["q4_0","q4_1","q8_0"],
      "weightLayout": "row",
      "activationDtype": "f32",
      "outerResidual": false,
      "reductionLanes": 32,
      "arithmetic": "scalar-fma-tree32"
     },
     "reachability": {
      "status": "repository-evidence",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "speculative_accept": {
   "description": "GPU greedy draft-prefix acceptance and bounded recurrent recovery count",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "drafts",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "targets",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "result",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "draft_count",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "output_limit",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "vocab_size",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad",
      "type": "u32",
      "offset": 12
     }
    ]
   },
   "variants": {
    "greedy": {
     "wgsl": "speculative_accept.wgsl",
     "entryPoint": "main",
     "workgroup": [1,1,1],
     "requires": [],
     "outputDtype": "u32",
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "greedy_gpu_limit": {
     "wgsl": "speculative_accept_gpu_limit.wgsl",
     "entryPoint": "main",
     "workgroup": [1,1,1],
     "requires": [],
     "outputDtype": "u32",
     "bindings": [
      {
       "index": 0,
       "name": "uniforms",
       "type": "uniform"
      },
      {
       "index": 1,
       "name": "drafts",
       "type": "read-only-storage"
      },
      {
       "index": 2,
       "name": "targets",
       "type": "read-only-storage"
      },
      {
       "index": 3,
       "name": "result",
       "type": "storage"
      },
      {
       "index": 4,
       "name": "output_cap",
       "type": "read-only-storage"
      }
     ],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "hyper_connection_norm": {
   "description": "qwen4_exp hyper-connection grouped RMSNorm: per-stream RMS with (1 + weight) per-stream slices",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "group_count",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "group_stride",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "weight_offset",
      "type": "f32",
      "offset": 12
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "hyper_connection_norm.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "hyper_connection_activation": {
   "description": "qwen4_exp hyper-connection activations and entry: silu(x / streams), sigmoid(x), 2 * sigmoid(x / streams), stream replication",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "dispatch_stride",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "low_rank_silu": {
     "wgsl": "hyper_connection_activation.wgsl",
     "entryPoint": "low_rank_silu",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "mix_sigmoid": {
     "wgsl": "hyper_connection_activation.wgsl",
     "entryPoint": "mix_sigmoid",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "inject_gate": {
     "wgsl": "hyper_connection_activation.wgsl",
     "entryPoint": "inject_gate",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    },
    "replicate": {
     "wgsl": "hyper_connection_activation.wgsl",
     "entryPoint": "replicate",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "hyper_connection_branch": {
   "description": "qwen4_exp hyper-connection branch input: mean over streams of mix weights times normalized streams",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "mix",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "normed",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "dispatch_stride",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "hyper_connection_branch.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "hyper_connection_mix_branch": {
   "description": "qwen4_exp hyper-connection branch input: fused refined sigmoid and stream-ordered branch reduction",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "logits",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "normed",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "dispatch_stride",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "hyper_connection_mix_branch.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "hyper_connection_up_mix_branch": {
   "description": "Four-stream Q4_0 HC up projection with scalar gemv32 reduction, refined sigmoid and stream-ordered branch",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "weights",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "normed",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "stream_width",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "rank",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "blocks",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "q4_0_gemv32_f32": {
     "wgsl": "hyper_connection_up_mix_branch_q4_0.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "weightDtype": "q4_0",
     "outputDtype": "f32",
     "sharedMemory": 560,
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128,
      "STREAM_COUNT": 4,
      "THREADS_PER_COL_GEMV": 32,
      "BLOCK_VALUES": 32,
      "BLOCK_BYTES": 18,
      "QUANT_FORMAT": 0
     },
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "hyper_connection_inject": {
   "description": "qwen4_exp hyper-connection injection: streams plus branch output times per-stream gate",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "streams",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "branch",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "gate",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "size",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "dispatch_stride",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "hyper_connection_inject.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "qsa_prepare": {
   "description": "qwen4_exp QSA indexer preparation: normalized, rotated query heads and raw key append to the owned key cache",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "projection",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "q_norm_weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "freqs_cos",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "freqs_sin",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "query",
     "type": "storage"
    },
    {
     "index": 6,
     "name": "raw_keys",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "start_pos",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "group_stride",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 12
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "qsa_prepare.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "qsa_block_keys": {
   "description": "qwen4_exp QSA block keys: normalized mean of raw keys rotated at the block start position",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "raw_keys",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "k_norm_weight",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "freqs_cos",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "freqs_sin",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "block_keys",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "first_block",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "block_count",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "group_stride",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "eps",
      "type": "f32",
      "offset": 12
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "qsa_block_keys.wgsl",
     "entryPoint": "main",
     "workgroup": [128,1,1],
     "requires": [],
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 128
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "qsa_block_scores": {
   "description": "qwen4_exp QSA block scores: sum over heads of relu(q . block key) / sqrt(head dim) for sparse queries",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "query",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "block_keys",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "scores",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "start_pos",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "block_stride",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "dense_visible_limit",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "score_divisor",
      "type": "f32",
      "offset": 16
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "qsa_block_scores.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "qsa_select": {
   "description": "qwen4_exp QSA selection: dense shortcut or top-k complete blocks (lower index wins ties) plus the trailing block",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "scores",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "selection",
     "type": "storage"
    },
    {
     "index": 3,
     "name": "selection_meta",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "start_pos",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "block_stride",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "dense_visible_limit",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "max_selected",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "u32": {
     "wgsl": "qsa_select.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "u32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "attention_indexed": {
   "description": "Attention over QSA-selected cache rows (dense prefix or listed rows) with explicit f16/f32 KV and f32 queries/output",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "Q",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "K",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "V",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "selection",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "selection_meta",
     "type": "read-only-storage"
    },
    {
     "index": 6,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "num_heads",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "num_kv_heads",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "head_dim",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "max_selected",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "scale",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "f32kv": {
     "wgsl": "attention_indexed.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "reachability": {
      "status": "model-selectable",
      "inlineConfigs": [],
      "ruleChains": ["attention.rules.json#indexedStorage"],
      "wgslOnDisk": true
     }
    },
    "f16kv": {
     "wgsl": "attention_indexed_f16kv.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": ["shader-f16"],
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32"],
      "ruleChains": ["attention.rules.json#indexedStorage"],
      "wgslOnDisk": true
     }
    }
   }
  },
  "ple_gate": {
   "description": "qwen4_exp PLE gate: signed-square-root sigmoid of per-stream key/query agreement times the shared value",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "key_normed",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "query_normed",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "value",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "gated",
     "type": "storage"
    },
    {
     "index": 5,
     "name": "gate_input",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "group_stride",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "divisor",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "clamp_min",
      "type": "f32",
      "offset": 12
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "ple_gate.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "ple_conv": {
   "description": "qwen4_exp PLE dilated depthwise short convolution with owned state, SiLU, and residual into the streams",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "normed",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "gated",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "streams",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "conv_weight",
     "type": "read-only-storage"
    },
    {
     "index": 5,
     "name": "state",
     "type": "storage"
    },
    {
     "index": 6,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "num_tokens",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "channels",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 8,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "ple_conv.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "outputDtype": "f32",
     "wgslOverrides": {
      "WORKGROUP_SIZE": 256
     },
     "reachability": {
      "status": "pinned",
      "inlineConfigs": ["qwen3/qwen-3-8-flash-next-text-q4k-ehf16-af32"],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "channel_energy_pair": {
   "description": "Experimental same-pass instruction/complement channel energies; model qualification pending",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "instruction",
     "type": "storage"
    },
    {
     "index": 3,
     "name": "reference",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "channels",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "start",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "stop",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "content_start",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "content_stop",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 20,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad2",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "channel_energy_pair.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "channel_rotation_derive": {
   "description": "Experimental signed-mean rank-two channel plane",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "basis",
     "type": "storage"
    },
    {
     "index": 3,
     "name": "status",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 32,
    "fields": [
     {
      "name": "channels",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "start",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "stop",
      "type": "u32",
      "offset": 8
     },
     {
      "name": "content_start",
      "type": "u32",
      "offset": 12
     },
     {
      "name": "content_stop",
      "type": "u32",
      "offset": 16
     },
     {
      "name": "epsilon",
      "type": "f32",
      "offset": 20
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 24,
      "padding": true
     },
     {
      "name": "_pad1",
      "type": "u32",
      "offset": 28,
      "padding": true
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "channel_rotation_derive.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  },
  "channel_rotation_apply": {
   "description": "Experimental norm-preserving channel rotation",
   "baseBindings": [
    {
     "index": 0,
     "name": "uniforms",
     "type": "uniform"
    },
    {
     "index": 1,
     "name": "input",
     "type": "read-only-storage"
    },
    {
     "index": 2,
     "name": "basis",
     "type": "read-only-storage"
    },
    {
     "index": 3,
     "name": "status",
     "type": "read-only-storage"
    },
    {
     "index": 4,
     "name": "output",
     "type": "storage"
    }
   ],
   "baseUniforms": {
    "size": 16,
    "fields": [
     {
      "name": "channels",
      "type": "u32",
      "offset": 0
     },
     {
      "name": "tokens",
      "type": "u32",
      "offset": 4
     },
     {
      "name": "theta",
      "type": "f32",
      "offset": 8
     },
     {
      "name": "_pad0",
      "type": "u32",
      "offset": 12,
      "padding": true
     }
    ]
   },
   "variants": {
    "f32": {
     "wgsl": "channel_rotation_apply.wgsl",
     "entryPoint": "main",
     "workgroup": [256,1,1],
     "requires": [],
     "reachability": {
      "status": "code-dispatched",
      "inlineConfigs": [],
      "ruleChains": [],
      "wgslOnDisk": true
     }
    }
   }
  }
 }
}
