pub fn gdn_decode_wy2(
gpu: &dyn GpuBackend,
kernel: KernelHandle,
h_state: DevicePtr,
query: DevicePtr,
key: DevicePtr,
value: DevicePtr,
gate: DevicePtr,
beta: DevicePtr,
output: DevicePtr,
h_state_intermediate: DevicePtr,
batch_size: u32,
num_k_heads: u32,
num_v_heads: u32,
k_dim: u32,
v_dim: u32,
qk_stride: u32,
v_stride: u32,
gb_stride: u32,
state_is_table: bool,
stream: u64,
) -> Result<()>Expand description
2026-09-25: WY-chunkwise 2-token verify decode (gated_delta_rule_wy2).
One pass over H computes both tokens’ H^T k products, the WY correction
is applied, and a second pass updates H and writes the intermediate state.