vllm - 💡(How to fix) Fix [Bug]: vllm.entrypoints.chat_utils.ChatTemplateResolutionError: As of transformers v4.44, default chat template is no longer allowed, so you must provide a chat template if the tokenizer does not define one. [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vllm-project/vllm#39279Fetched 2026-04-09 07:52:10
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
closed ×1labeled ×1

Error Message

request error:

RAW_BUFFERClick to expand / collapse

Your current environment

vllm:v0.19.0

🐛 Describe the bug

using vllm 0.19.0,upgrade transformers to 5.5.0
- - command: - /bin/sh - -c - | pip install transformers>=5.5.0
exec python3 -m vllm.entrypoints.openai.api_server
--host "0.0.0.0"
--port "8000"
--model /models/gemma-4-31B/
--served-model-name local-gemma4-31b
--enable-chunked-prefill
--gpu-memory-utilization "0.87"
--tensor-parallel-size "4"
--trust-remote-code
--max-model-len "131072"
--uvicorn-log-level warning
--enable-auto-tool-choice
--tool-call-parser gemma4
--reasoning-parser gemma4
--limit-mm-per-prompt '{"image": 15, "audio": 1}'
--async-scheduling
--default-chat-template-kwargs '{"enable_thinking": true}'

request error: vllm.entrypoints.chat_utils.ChatTemplateResolutionError: As of transformers v4.44, default chat template is no longer allowed, so you must provide a chat template if the tokenizer does not define one.

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

extent analysis

TL;DR

Provide a chat template when running the vllm.entrypoints.openai.api_server command to resolve the ChatTemplateResolutionError.

Guidance

  • The error message indicates that the default chat template is no longer allowed as of transformers v4.44, so a chat template must be provided.
  • Check the documentation for available chat template options and choose one that suits your needs.
  • Update the command to include the --chat-template option with the chosen template.
  • Verify that the error is resolved by running the updated command and checking for any further errors.

Example

No code snippet is provided as the issue does not require a code change, but rather an update to the command options.

Notes

The solution assumes that the user has already searched for relevant issues and consulted the documentation. If the issue persists, further investigation may be required.

Recommendation

Apply workaround: Provide a chat template when running the command, as the error message suggests that this is the required solution.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING