vllm.models.kimi_k3.nvidia.specialized_decode.cutedsl.common.mailbox
¶
Lamport mailboxes: BF16 rows published in 16-byte fragments; a reader polls until no fragment holds the -0.0 sentinel, then re-arms.
Functions:
-
fetch–Load fragment
iintovalues[i]; returns its dirty flag at biti. -
poll–Lamport-poll
count16-byte fragments at base + i*stride (elements); all
fetch(values, i, pointer)
¶
Load fragment i into values[i]; returns its dirty flag at bit i.
Source code in vllm/models/kimi_k3/nvidia/specialized_decode/cutedsl/common/mailbox.py
poll(base, stride, count)
¶
Lamport-poll count 16-byte fragments at base + i*stride (elements); all
loads issue before any check and only dirty fragments re-poll.