Fix formatting
This commit is contained in:
parent
1841ca0ae0
commit
5becac802f
1 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ static void server_log(const char *level, const char *function, int line,
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string str = log.dump(-1, ' ', false, json::error_handler_t::replace);
|
const std::string str = log.dump(-1, ' ', false, json::error_handler_t::replace);
|
||||||
printf("%.*s\n\n", (int)str.size(), str.data());
|
printf("%.*s\n", (int)str.size(), str.data());
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -460,7 +460,7 @@ struct llama_server_context
|
||||||
num_prompt_tokens = prompt_tokens.size();
|
num_prompt_tokens = prompt_tokens.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize last_n_tokens
|
// Initialize last_n_tokens
|
||||||
const size_t ps = num_prompt_tokens;
|
const size_t ps = num_prompt_tokens;
|
||||||
std::fill(last_n_tokens.begin(), last_n_tokens.end() - ps, 0);
|
std::fill(last_n_tokens.begin(), last_n_tokens.end() - ps, 0);
|
||||||
std::copy(prompt_tokens.begin(), prompt_tokens.end(), last_n_tokens.end() - ps);
|
std::copy(prompt_tokens.begin(), prompt_tokens.end(), last_n_tokens.end() - ps);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue