vllm.models.kimi_k3.amd.ops.kda_decode
¶
ROCm entry points for the fused Kimi-K3 KDA decode kernel.
The kernel in csrc/kimi_k3/fused_kda_decode_kernel_rocm.cu
replaces, for a pure non-speculative decode batch, the three Triton launches
and two copies the AMD KDA layer otherwise runs per layer: the packed causal
conv1d update, the recurrent delta-rule step, and the gated output RMSNorm.
The kernel wants a width-major conv weight and an fp32 norm weight, so the
layer stages both once in process_weights_after_loading.
Functions:
-
is_fused_kda_decode_supported–Whether the fused decode kernel can serve this layer on this device.
is_fused_kda_decode_supported(num_heads, head_dim, conv_width, num_spec, input_dtype, conv_state_dtype)
¶
Whether the fused decode kernel can serve this layer on this device.