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 class

GraphApiDecoderModelInputs

GraphApiDecoderModelInputs​

class max.pipelines.lib.registration_graph_api.GraphApiDecoderModelInputs(*, kv_cache_inputs=None, lora_buffers=(), vision_embeddings=<factory>, vision_scatter_indices=<factory>, hidden_states=None, tokens, input_row_offsets, return_n_logits, token_positions=None, host_input_row_offsets=None, data_parallel_splits=None, batch_context_lengths=None, ep_inputs=(), signal_buffers=(), constants=None, state=(), scratch=(), stage_boundary=None, request_ids=(), input_tree_def=None, batch_fields=('tokens', 'input_row_offsets', 'return_n_logits'))

source

Bases: DecoderModelInputs

The prepared inputs of a registered graph-API DECODER.

Parameters:

batch_fields​

batch_fields: tuple[str, ...] = ('tokens', 'input_row_offsets', 'return_n_logits')

source

The batch fields the graph takes, in its order.

buffers​

property buffers: tuple[Buffer, ...]

source

The step’s buffers, in the graph’s input order.