apply custom stop tokens
This commit is contained in:
parent
fe6630c23e
commit
9c3e7e0c77
1 changed files with 3 additions and 1 deletions
|
@ -2521,7 +2521,9 @@ json oaicompat_completion_params_parse(
|
|||
}
|
||||
|
||||
// Ensure there is ChatML-specific end sequence among stop words
|
||||
llama_params["stop"].push_back("<|im_end|>");
|
||||
for(auto& stop : formatter.stop_keys){
|
||||
llama_params["stop"].push_back(stop);
|
||||
}
|
||||
|
||||
return llama_params;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue