vllm.models.kimi_k3.amd.specialized_decode.mono.common.ranks
¶
A TP group seen from inside a kernel: every rank's peer buffer, and an
all-reduce's sum of the ranks' partials. tp is a build-time constant.
Functions:
-
peer_bases–Every rank's peer buffer base from the
peerstable (an i64 a rank), -
sum_partials–The
tpranks' bf16 pair partials atpair_of(src)of the mailbox
peer_bases(peers, tp)
¶
Every rank's peer buffer base from the peers table (an i64 a rank),
loaded once: a put's address must not wait on a load of its own.
Source code in vllm/models/kimi_k3/amd/specialized_decode/mono/common/ranks.py
sum_partials(poll, own, pair_of, tp)
¶
The tp ranks' bf16 pair partials at pair_of(src) of the mailbox
region own, summed in fp32 in rank order 0 .. tp - 1: one poll batch ->
(lo sum, hi sum). Every rank sums in the same order, so they agree.