For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Python class
Collective
Collectiveβ
class max.experimental.sharding.Collective(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases: Enum
The collectives the cost model understands.
A Placement.transition_to() return value must be one of these.
Custom Placement subclasses that return anything else are
reported as infeasible by the cost model.
ALLGATHERβ
ALLGATHER = 'allgather'
ALLREDUCEβ
ALLREDUCE = 'allreduce'
ALL_TO_ALLβ
ALL_TO_ALL = 'all_to_all'
INFEASIBLEβ
INFEASIBLE = 'infeasible'
LOCAL_SLICEβ
LOCAL_SLICE = 'local_slice'
NOOPβ
NOOP = 'noop'
REDUCE_SCATTERβ
REDUCE_SCATTER = 'reduce_scatter'
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!