You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which llama.cpp modules do you know to be affected?
llama-server
Problem description & steps to reproduce
It was mentioned in the discussion of the codestral model that changes in #10023 made /infill endpoint add <bos> token incorrectly. I'm not really sure it's the case since before this change prompt was a required field, but anyway it doesn't seem to be correct.
In the response you will see 2 <bos> tokens: "prompt": "<bos><|fim_prefix|> 1, <bos><|fim_suffix|> , 5<|fim_middle|>".
According to the codegemma readme there shouldn't be any <bos> tokens (see the prompt in the first code snippet there).
I don't see any discussion in the mentioned PR regarding special tokens, so I guess this wasn't intentional? Feel free to close this issue if I'm wrong.
The fix is to simply change the flag in this line:
Name and Version
Server built from c31fc8b
Operating systems
Linux
Which llama.cpp modules do you know to be affected?
llama-server
Problem description & steps to reproduce
It was mentioned in the discussion of the codestral model that changes in #10023 made
/infill
endpoint add<bos>
token incorrectly. I'm not really sure it's the case since before this changeprompt
was a required field, but anyway it doesn't seem to be correct.To reproduce you can use this model: https://huggingface.co/bartowski/codegemma-2b-GGUF with the following request:
In the response you will see 2
<bos>
tokens:"prompt": "<bos><|fim_prefix|> 1, <bos><|fim_suffix|> , 5<|fim_middle|>"
.According to the codegemma readme there shouldn't be any
<bos>
tokens (see the prompt in the first code snippet there).I don't see any discussion in the mentioned PR regarding special tokens, so I guess this wasn't intentional? Feel free to close this issue if I'm wrong.
The fix is to simply change the flag in this line:
llama.cpp/examples/server/server.cpp
Line 3800 in b56f079
First Bad Commit
958367b
Relevant log output
No response
The text was updated successfully, but these errors were encountered: