Bug: Some "code" models invoke undefined behavior at load time after #6745 #7592
Labels
bug-unconfirmed
high severity
Used to report high severity bugs in llama.cpp (Malfunctioning hinder important workflow)
What happened?
Steps to reproduce:
-DCMAKE_BUILD_TYPE=Debug
on Linux to enable libstdc++ assertions (makes the UB more obvious)When printing the PRE token it crashes, because the token ID is 32007 (the default for "code" models) but n_vocab is only 32000. Before #6745, the models loads successfully.
Name and Version
What operating system are you seeing the problem on?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: