From f6fd1a97d12967eeb427ed1a0156327e42b8ed8e Mon Sep 17 00:00:00 2001 From: Alexey Parfenov Date: Fri, 9 Feb 2024 16:28:18 +0000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Georgi Gerganov --- examples/server/server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/server/server.cpp b/examples/server/server.cpp index 624592838..8ae796703 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -641,7 +641,7 @@ struct llama_server_context continue; } - if(el[0].is_number_integer()) + if (el[0].is_number_integer()) { llama_token tok = el[0].get(); if (tok >= 0 && tok < n_vocab) @@ -652,7 +652,7 @@ struct llama_server_context else if (el[0].is_string()) { auto toks = llama_tokenize(model, el[0].get(), false); - for(auto tok : toks) + for (auto tok : toks) { slot->sparams.logit_bias[tok] = bias; }