etha.tensor_bus.pair_state#
State.
Classes#
Module Contents#
- class etha.tensor_bus.pair_state.M2MMap#
Bases:
msgspec.StructMesh to mesh topology using M2MMap (shape-independent).
M2MMap structure: dict[src_rank, dict[src_idx, list[tuple[dst_rank, dst_idx]]]]
- class etha.tensor_bus.pair_state.PairState#
Bases:
msgspec.StructState of a registered Pair.
PairState is created once per pair via register_pair() and represents the communication topology. It contains NO tensor data or execution state. All tensor data and execution plans are now stored in BatchState.
- local_group: torch.distributed.ProcessGroup#
- pair_group: torch.distributed.ProcessGroup#