Skip to content

Commit

Permalink
server : respect --special cli arg (ggerganov#8553)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunningLeon authored Jul 18, 2024
1 parent e02b597 commit 3807c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ struct server_context {

bool process_token(completion_token_output & result, server_slot & slot) {
// remember which tokens were sampled - used for repetition penalties during sampling
const std::string token_str = llama_token_to_piece(ctx, result.tok, false);
const std::string token_str = llama_token_to_piece(ctx, result.tok, params.special);
slot.sampled = result.tok;

// search stop word and delete it
Expand Down

0 comments on commit 3807c3d

Please sign in to comment.