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)
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
dcpdoes not divide the size of thetpaxis (or is not the size of a view’sdcpaxis), or another axis of more than one device is inside it. -
Parameters:
-
- mesh (DeviceMesh)
- dcp (int)
-
Return type:
-
None