vllm.models.kimi_k3.nvidia.specialized_decode.cutedsl.attn_res.prepared
¶
Prepared seven-CTA AttnRes consumers for ordinary or Lamport mailbox input.
Classes:
-
PreparedAttnRes–Ordinary-input code plus the Lamport variant of its bound mailbox ring.
Functions:
-
compile_consumer–stats: the precomputed variant over [stats, 7168] / [stats, 2] FP32 rows. -
statistics_blocks–The saved-block counts (ATTN_STATS_BLOCKS) that may take them at (tp, dcp).
-
statistics_rows–The rows (ATTN_STATS) that take the precomputed statistics at (tp, dcp).
PreparedAttnRes
¶
Ordinary-input code plus the Lamport variant of its bound mailbox ring.
Methods:
-
bind_aux–Variants that also store the updated prefix rows (a stock aux stream).
-
bind_ring–Lamport input: sum the [slots, capacity, 7168] mailbox rows, then re-arm.
-
bind_statistics–rowsrun the precomputed variants of the bound codes (ordinary, ring,
Source code in vllm/models/kimi_k3/nvidia/specialized_decode/cutedsl/attn_res/prepared.py
_variant(code, index, rows)
¶
code, or its precomputed variant (codes[index]) and statistics.
Source code in vllm/models/kimi_k3/nvidia/specialized_decode/cutedsl/attn_res/prepared.py
bind_aux()
¶
Variants that also store the updated prefix rows (a stock aux stream).
Source code in vllm/models/kimi_k3/nvidia/specialized_decode/cutedsl/attn_res/prepared.py
bind_ring(mailbox)
¶
Lamport input: sum the [slots, capacity, 7168] mailbox rows, then re-arm.
Source code in vllm/models/kimi_k3/nvidia/specialized_decode/cutedsl/attn_res/prepared.py
bind_statistics(mixture, scal, rows)
¶
rows run the precomputed variants of the bound codes (ordinary, ring,
aux), reading the statistics from mixture [cap, 7168] and scal
[cap, 2] FP32, which the previous kernel that computes them fills.
Source code in vllm/models/kimi_k3/nvidia/specialized_decode/cutedsl/attn_res/prepared.py
compile_consumer(nb, delta, write, final, slots, cap, arch, aux=False, stats=0)
cached
¶
stats: the precomputed variant over [stats, 7168] / [stats, 2] FP32 rows.
Source code in vllm/models/kimi_k3/nvidia/specialized_decode/cutedsl/attn_res/prepared.py
statistics_blocks(tp, dcp)
¶
The saved-block counts (ATTN_STATS_BLOCKS) that may take them at (tp, dcp).
Source code in vllm/models/kimi_k3/nvidia/specialized_decode/cutedsl/attn_res/prepared.py
statistics_rows(tp, dcp)
¶
The rows (ATTN_STATS) that take the precomputed statistics at (tp, dcp).