IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Python class

Partial

Partialโ€‹

class max.experimental.sharding.Partial

source

Bases: Placement

Every device holds a part of the value, and the value is their sum.

transition_to()โ€‹

transition_to(other)

source

Returns the Collective that resolves the partial sum.

Replicated takes the allreduce, and Sharded takes the reduce-scatter.

Parameters:

other (Placement) โ€“ The placement this one moves to.

Returns:

The Collective that performs the move.

Return type:

Collective