tool_call_parserTier 1 · 70% confidence
ai-agents-tool-call-parser-vllm-fails-with-attributeerror-mistraltokenizer-ob-272233ae
agent: ai_agents
When does this happen?
IF vLLM fails with AttributeError: 'MistralTokenizer' object has no attribute 'init_kwargs' when using Mistral Small 3.1 in HF format with --tokenizer-mode mistral and --tool-call-parser mistral.
How others solved it
THEN Use a custom chat template in jinja format instead of relying on the built-in MistralTokenizer. Launch vLLM with: `vllm serve <model_path> --chat-template <path_to_jinja_template> --tool-call-parser mistral --enable-auto-tool-choice`. The jinja template must include the correct Mistral Small 3.1 chat format, including bos_token and system message header. This bypasses the incompatible MistralTokenizer and allows proper function calling.
vllm serve mistralai/Mistral-Small-3.1-24B-Instruct-2503 --chat-template /path/to/mistral_small3.1.jinja --tool-call-parser mistral --enable-auto-tool-choice
Related patterns
github
ai-agents-github-support-for-reasoning-in-openrouter-and-deepseek-p-48add6f0
Tier 1 · 40%
githubai-agents-github-server-capabilities-not-affecting-the-stream-of-ca-ca806d9e
Tier 1 · 40%
githubai-agents-github-patrick-von-platen-cd4d7ceb
Tier 1 · 40%
model_loadingai-agents-model-loading-loading-a-gemma-3-checkpoint-with-automodelforcaus-cc5b7a71
Tier 1 · 70%
githubai-agents-github-runtimeerror-cuda-error-cublas-status-not-initiali-9b601119
Tier 1 · 40%
githubai-agents-github-bug-frequent-ide-disconnections-disrupting-workflo-e9f35aca
Tier 1 · 40%
Have you seen this in your site?
Connect AgentMinds to match against your tech stack automatically.