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 function

check_dcp_mesh

check_dcp_mesh()​

max.nn.common_layers.context_parallel.check_dcp_mesh(mesh, dcp)

source

Raises unless DCP groups of dcp ranks tile the attention TP axis.

The axis is the innermost tp axis, the whole of a one-axis mesh, or the dcp axis of a DCP view (dcp_view()).

Raises:

NotImplementedError – If dcp does not divide the size of the tp axis (or is not the size of a view’s dcp axis), or another axis of more than one device is inside it.

Parameters:

Return type:

None