Skip to content

Commit

Permalink
llama3: server add eot EOG
Browse files Browse the repository at this point in the history
  • Loading branch information
phymbert committed Apr 20, 2024
1 parent 66a4b6a commit 9df6394
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/server/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ static json oaicompat_completion_params_parse(
// We must add their end sequences to list of stop words
llama_params["stop"].push_back("<|im_end|>"); // chatml
llama_params["stop"].push_back("<end_of_turn>"); // gemma
llama_params["stop"].push_back("<|eot_id|>"); // llama3

// Handle "response_format" field
if (body.contains("response_format")) {
Expand Down

0 comments on commit 9df6394

Please sign in to comment.