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
RaggedBatch
RaggedBatch
class max.nn.graph_groups.RaggedBatch(*args, **kwargs)
Bases: GraphGroup[str, TensorType | tuple[TensorType, …]]
The step’s ragged token stream: tokens, row offsets, and friends.
A model whose devices each take their own row offsets holds them as a tuple, one per device.
kind
Identifies the feature wherever the group sits in a tree.