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

split_selection

split_selection()​

max.nn.common_layers.context_parallel.split_selection(selection, width)

source

Splits a packed selection into its rows and [T] counts.

width is the rows’ width: the top-k, or twice it over an NVFP4 MLA cache, whose rows are the value rows then the scale-pool rows.

Parameters:

Return type:

tuple[Tensor, Tensor]