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
ExpertParallelInputs
ExpertParallelInputs
class max.pipelines.lib.registration_runtime.ExpertParallelInputs
Bases: object
How a decoder’s graph takes the expert-parallel exchange.
The default takes EPBatchManager’s
inputs: both buffer groups’ atomic counters on every device, then their
send, receive and count pointer tables. A config whose decoder takes
them in another layout sets
ExpertParallelDeploymentConfig.expert_parallel_inputs to a
subclass.
exchange()
exchange(initializer)
Returns the buffers of initializer the graph takes.
-
Parameters:
-
initializer (EPCommInitializer)
-
Return type:
input_tree()
input_tree(ep)
Returns the decoder’s ep input types for ep.