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
TokenIds
TokenIds
max.pipelines.modeling.types.TokenIds
Token ids decoded or encoded by a tokenizer: an array, a sequence, or a single id, matching the shape of the request that produced them.
alias of ndarray[tuple[Any, …], dtype[integer[Any]]] | Sequence[int] | int