vllm.models.minimax_m3.amd.ops.index_cp.host
¶
Buffers of the context-parallel decode indexer (TP4, gfx950).
Rank me holds index head me; kernel_cp_push scores a quarter of every
request's blocks for all four heads and stores head h's scores into rank h's
receive buffer. Buffers and flags are uncached memory mapped by the peers; the
call counts stay on the device, so the handshake replays in CUDA graphs.
Classes:
-
IndexCP–
Functions:
-
init–Create this rank's
IndexCP; a collective, called once outside capture.
IndexCP
¶
Methods:
-
score_push–Score this rank's blocks of every head from its index-q rows
iq.
Source code in vllm/models/minimax_m3/amd/ops/index_cp/host.py
score_push(iq, index_cache, block_table, seq_lens, init_blocks, local_blocks, width, grid=0)
¶
Score this rank's blocks of every head from its index-q rows iq.
Returns this rank's head over every block, [1, rows, width]: a view of the receive buffer, valid until the next call.
Source code in vllm/models/minimax_m3/amd/ops/index_cp/host.py
_DevicePointer
¶
A raw device allocation as a tensor (__cuda_array_interface__).
Source code in vllm/models/minimax_m3/amd/ops/index_cp/host.py
init(device, max_width)
¶
Create this rank's IndexCP; a collective, called once outside capture.