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
combine_finish
combine_finish()
max.nn.ep.combine_finish(config, buffers, tokens, weights, *, total_tokens=None)
Waits for each device’s combine that combine_start() launched.
-
Parameters:
-
- config (EPConfig) – The expert-parallel configuration.
- buffers (EPBuffers) – The exchange’s buffers.
- tokens (Tensor) – The tokens that were dispatched, as for
combine(). - weights (Tensor) – Each device’s router weights, as for
combine(). - total_tokens (Tensor | None) – The scalar that
combine_start()got.
-
Returns:
-
As
combine(). -
Raises:
-
ValueError – If
check_supported()rejectsconfig, or ifconfigsetscombine_mx_min_tokenswithouttotal_tokens. -
Return type: