Skip to content

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 candidates whose box on this worker covers every box it

  • plan_destination –

    Direct receive when one contiguous wire-dtype target matches the box;

M2NDestination dataclass

One worker's receive operation on the session's destination mesh.

Attributes:

  • loaded (tuple[str, ...]) –

    Runtime targets this receive completes, for mark_loaded.

loaded = () class-attribute instance-attribute

Runtime targets this receive completes, for mark_loaded.

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.