vllm.distributed.weight_transfer.m2n_layout
¶
Translate shared load-plan destinations into M2N receive operations.
Classes:
-
M2NDestination–One worker's receive operation on the session's destination mesh.
Functions:
-
accepted_placements–Bitmask over
candidateswhose box on this worker covers every box it -
plan_destination–Direct receive when one contiguous wire-dtype target matches the box;
M2NDestination
dataclass
¶
accepted_placements(boxes, meta, mesh, candidates, worker)
¶
Bitmask over candidates whose box on this worker covers every box it
needs.
plan_destination(placements, dest, meta, mesh, worker)
¶
Direct receive when one contiguous wire-dtype target matches the box; staged copies otherwise; fallback when the plan has no destination.