core.inference.disaggregation.utils#
Shared helpers for the disaggregation modules.
Module Contents#
Functions#
Overlap of two half-open |
|
Transfers in |
|
Transfers in |
API#
- core.inference.disaggregation.utils.intersect(
- a: Tuple[int, int],
- b: Tuple[int, int],
Overlap of two half-open
[lo, hi)ranges, orNoneif disjoint.
- core.inference.disaggregation.utils.transfers_for_src(plan, src_rank)#
Transfers in
planoriginating fromsrc_rank(any KV/Mamba reshard transfer – both expose asrc_rankfield).
- core.inference.disaggregation.utils.transfers_for_dst(plan, dst_rank)#
Transfers in
plandestined fordst_rank.