-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add missing bos_token to example templates #11432
base: main
Are you sure you want to change the base?
Conversation
👋 Hi! Thank you for contributing to the vLLM project. Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can do one of these:
🚀 |
Signed-off-by: Toshiki Kataoka <[email protected]>
43f2c32
to
1a7f9e3
Compare
Thanks for fixing, can you add some unit tests to ensure that the BOS token isn't added twice in this case? |
Added a test. Is it OK to place it to a new directory ( |
Signed-off-by: Toshiki Kataoka <[email protected]>
13f56c1
to
263ab89
Compare
I would just name the directory |
Signed-off-by: Toshiki Kataoka <[email protected]>
Signed-off-by: Toshiki Kataoka <[email protected]>
- label: Examples Unit Test | ||
working_dir: "/vllm-workspace/tests" | ||
source_file_dependencies: | ||
- tests/examples/ | ||
- examples/ | ||
commands: | ||
- pytest -v -s examples |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge this with the existing Examples Test to avoid starting a new instance just for this.
This PR updates chat template examples to align with the latest (>=0.4.3)
/v1/chat/completions
spec on BOS.Some chat templates don't contain
bos_token
, especially when it's written before v0.4.3. According to the excellent investigation #9519, the chat serving does not add BOS again, while awkwardness remains in the offline chat interface (to be fixed).