vllm.tokenizers.mistral ¶
Functions:
-
mistral_common_tekkenizer–Return the underlying
Tekkenizerfor aMistralCommonBackend. -
tekken_convert_ids_to_tokens–Convert ids to pieces, using raw
bytesfor byte-fallback tokens. -
tekken_convert_tokens_to_string–Reassemble pieces from
tekken_convert_ids_to_tokensinto text. -
truncate_tool_call_ids–Truncates tool call IDs for Mistral's ID requirements.
mistral_common_tekkenizer(tokenizer) ¶
Return the underlying Tekkenizer for a MistralCommonBackend.
Source code in vllm/tokenizers/mistral.py
tekken_convert_ids_to_tokens(tokenizer, ids) ¶
Convert ids to pieces, using raw bytes for byte-fallback tokens.
Source code in vllm/tokenizers/mistral.py
tekken_convert_tokens_to_string(tokenizer, tokens) ¶
Reassemble pieces from tekken_convert_ids_to_tokens into text.
Source code in vllm/tokenizers/mistral.py
truncate_tool_call_ids(request) ¶
Truncates tool call IDs for Mistral's ID requirements.