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
Partial
Partialβ
class max.experimental.sharding.Partial(reduce_op=ReduceOp.SUM)
Bases: Placement
Every device holds a partial result that must be reduced.
-
Parameters:
-
reduce_op (ReduceOp) β The reduction operation to apply. Defaults to
ReduceOp.SUM.
reduce_opβ
reduce_op: ReduceOp = 'sum'
transition_to()β
transition_to(other)
Partial-to-Replicated is allreduce; Partial-to-Sharded is reduce-scatter.
-
Parameters:
-
other (Placement)
-
Return type:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!