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

device_mesh

device_mesh()​

max.pipelines.lib.module_registration.device_mesh(devices, data_parallel_degree)

source

Returns the mesh registered modules are constructed on.

It is a dp axis under data parallelism, else a tp axis.

Parameters:

Return type:

DeviceMesh