-
Notifications
You must be signed in to change notification settings - Fork 256
Fix revision arg for vLLM tokenizer #721
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
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
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.
Haa good catch thanks!
Could it be an arg which changed name in vllm history?
No idea, but could well be... |
Hm, I guess since we pin vllm's lower bound we don't need to care ^^ |
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.
Thanks
* Fix revision arg for vLLM tokenizer * Add unit test * Update test * Move test repo
This PR fixes a nasty bug where the tokenizer revision is set to the default value of
main
, irrespective of the revision provided in the model config. The reason is becausetokenizer_revision
is not a proper kwarg forget_tokenizer()
, so we always default tomain
when loading the tokenizer invllm
.Tested on this dummy model which has different chat templates on the
main
andnew_chat_template
branches: https://huggingface.co/lighteval/different-chat-templates-per-revisionThe unit test fails on main with (as expected):
It passes on this branch :)