vllm.utils.mistral ¶
Provides lazy import of the vllm.tokenizers.mistral module.
Functions:
-
is_mistral_tokenizer–Return true if the tokenizer is a MistralTokenizer instance.
-
is_mistral_tool_parser–Return true if cls carries the
IS_MISTRAL_TOOL_PARSERmarker.
is_mistral_tokenizer(obj) ¶
Return true if the tokenizer is a MistralTokenizer instance.
Source code in vllm/utils/mistral.py
is_mistral_tool_parser(cls) ¶
Return true if cls carries the IS_MISTRAL_TOOL_PARSER marker.
The marker is set on the engine-adapter subclass registered under the "mistral" tool-parser key. No import of the parser module is required.