For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Python function
batch_padded_tokens_and_mask
batch_padded_tokens_and_mask()
max.pipelines.modeling.dataprocessing.batch_padded_tokens_and_mask(start_pos, tokens)
Batches input tokens and computes a batched attention mask.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!