Added EOS stop sequence according to https://github.com/ggerganov/llama.cpp/pull/6751#issuecomment-2065602862
This commit is contained in:
parent
bf63ff5f29
commit
7370d663a3
1 changed files with 1 additions and 0 deletions
|
@ -385,6 +385,7 @@ static json oaicompat_completion_params_parse(
|
||||||
// We must add their end sequences to list of stop words
|
// We must add their end sequences to list of stop words
|
||||||
llama_params["stop"].push_back("<|im_end|>"); // chatml
|
llama_params["stop"].push_back("<|im_end|>"); // chatml
|
||||||
llama_params["stop"].push_back("<end_of_turn>"); // gemma
|
llama_params["stop"].push_back("<end_of_turn>"); // gemma
|
||||||
|
llama_params["stop"].push_back("<|eot_id|>"); // llama-3
|
||||||
|
|
||||||
// Handle "response_format" field
|
// Handle "response_format" field
|
||||||
if (body.contains("response_format")) {
|
if (body.contains("response_format")) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue