-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
tool-call: fix type promotion typo causing crashes w/ --jinja w/o tools #11880
Conversation
Now the fear unlocked for me as well. Couldn't assume my compiler would catch all the type error. |
@ochafik eafd957 helped for Gemma 2 (
In case of Gemma I also noticed "srv params_from_: Chat format: Content-only" message in the server log, which wasn't printed when I didn't use jinja template. |
I'll do a pass separately / see whether we can run checks in ci. In some of the cases above, |
@henryclw Thanks for checking! I can't repro on Mac, will spin up a Windows VM & track this on #11866
This is expected 👍 |
Fixes (at least part of) #11866
Somehow a bool can be assigned to an std::string 🤯: new fear unlocked 😅
This introduced different levels of soft or hard crashes as the grammar string got a true / (byte 1) then... something random / platform specific.
Seems different compilers have different levels of letting this through:
bug.cc