vllm.models.kimi_k3.nvidia.specialized_decode.cutedsl.kda.prepared
¶
Prepared KDA core. One packed projection supplies Q/K/V, the output gate, F_A and beta; per-batch policies select the gate schedule and the projection row pitch.
Classes:
Functions:
-
decode_conv_weight–The [3, width, D] (Q, K, V) decode layout of the [3 * D, 1, width] conv
PreparedKda
¶
Methods:
-
prepare_caches–Policy keys: a batch, or (requests, tokens) for verify steps.
-
run–accepted[>= B] (verify steps):slotsis [>= B, q] contiguous.
Source code in vllm/models/kimi_k3/nvidia/specialized_decode/cutedsl/kda/prepared.py
_operands(caches, projected, slots, out, accepted=None)
¶
Kernel tensors in launch order: 13 before the scalars, then F_B (and the verify step's accepted counts).
Source code in vllm/models/kimi_k3/nvidia/specialized_decode/cutedsl/kda/prepared.py
prepare_caches(caches)
¶
Policy keys: a batch, or (requests, tokens) for verify steps.
Source code in vllm/models/kimi_k3/nvidia/specialized_decode/cutedsl/kda/prepared.py
run(projected, out, *, caches, slots, accepted=None)
¶
accepted [>= B] (verify steps): slots is [>= B, q] contiguous.
Source code in vllm/models/kimi_k3/nvidia/specialized_decode/cutedsl/kda/prepared.py
decode_conv_weight(weight)
¶
The [3, width, D] (Q, K, V) decode layout of the [3 * D, 1, width] conv weight.