Skip to content

[Frontend] Gracefully handle missing chat template and fix CI failure - #7238

Merged
DarkLight1337 merged 9 commits into
vllm-project:mainfrom
DarkLight1337:fix-missing-chat-template
Aug 7, 2024
Merged

DarkLight1337 merged 9 commits into
vllm-project:mainfrom
DarkLight1337:fix-missing-chat-template

Conversation

@DarkLight1337

@DarkLight1337 DarkLight1337 commented Aug 7, 2024 •

Copy link
Copy Markdown
Member

This PR fixes the failing async engine test which contains invalid examples as of transformers v4.44 (see huggingface/transformers#31733).

This PR also improves the error handling when the tokenizer does not contain a chat template before calling tokenizer.apply_chat_template, since the error raised inside HuggingFace isn't as relevant to the user.

@github-actions

github-actions Bot commented Aug 7, 2024

Copy link
Copy Markdown

👋 Hi! Thank you for contributing to the vLLM project.
Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run fastcheck CI which consists a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of default ones by unblocking the steps in your fast-check build on Buildkite UI.

Once the PR is approved and ready to go, please make sure to run full CI as it is required to merge (or just use auto-merge).

To run full CI, you can do one of these:

  • Comment /ready on the PR
  • Add ready label to the PR
  • Enable auto-merge.

🚀

@DarkLight1337 DarkLight1337 changed the title [Frontend] Gracefully handle missing chat template [Frontend] Gracefully handle missing chat template and fix CI failure Aug 7, 2024
@DarkLight1337 DarkLight1337 added the ready ONLY add when PR is ready to merge/full CI is needed label Aug 7, 2024
@DarkLight1337
DarkLight1337 enabled auto-merge (squash) August 7, 2024 06:22
@DarkLight1337
DarkLight1337 merged commit 66d617e into vllm-project:main Aug 7, 2024
@DarkLight1337
DarkLight1337 deleted the fix-missing-chat-template branch August 7, 2024 09:51
Alvant pushed a commit to compressa-ai/vllm that referenced this pull request Oct 26, 2024
…vllm-project#7238)

Co-authored-by: Roger Wang <ywang@roblox.com>
Signed-off-by: Alvant <alvasian@yandex.ru>
LeiWang1999 pushed a commit to LeiWang1999/vllm-bitblas that referenced this pull request Mar 26, 2025
…vllm-project#7238)

Co-authored-by: Roger Wang <ywang@roblox.com>
Signed-off-by: LeiWang1999 <leiwang1999@outlook.com>
plasticchris pushed a commit to plasticchris/vllm that referenced this pull request Jul 20, 2026
michael-gpu pushed a commit to practical-inference/vllm-ampere-extended that referenced this pull request Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants