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
ModuleV3Outputs
ModuleV3Outputs
class max.pipelines.lib.ModuleV3Outputs(next_token_logits, logits=None, logit_offsets=None, hidden_states=None)
Bases: object
The outputs a ModuleV3 text model’s forward returns.
ModuleV3PipelineModelWithKVCache maps each field to the
ModelOutputs field of the same name. A field left None is not
a graph output.
-
Parameters:
hidden_states
Hidden states, when the model returns them.
logit_offsets
Row offsets into logits, shape [B + 1]; set with it.
logits
All or variable logits, shape [T, V], when the model returns them.
When None, next_token_logits also serves as
ModelOutputs.logits.
next_token_logits
next_token_logits: Tensor
Last-token logits, shape [B, V].