mirror of
https://git.adityakumar.xyz/llama.cpp.git
synced 2024-11-09 23:29:44 +00:00
examples : improve vertical alignment of a few variables (#1286)
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
cc0bb7235c
commit
8c9be35ff9
1 changed files with 5 additions and 5 deletions
|
@ -298,7 +298,7 @@ int main(int argc, char ** argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_antiprompt = false;
|
bool is_antiprompt = false;
|
||||||
bool input_echo = true;
|
bool input_echo = true;
|
||||||
|
|
||||||
// HACK - because session saving incurs a non-negligible delay, for now skip re-saving session
|
// HACK - because session saving incurs a non-negligible delay, for now skip re-saving session
|
||||||
// if we loaded a session with at least 75% similarity. It's currently just used to speed up the
|
// if we loaded a session with at least 75% similarity. It's currently just used to speed up the
|
||||||
|
@ -306,9 +306,9 @@ int main(int argc, char ** argv) {
|
||||||
bool need_to_save_session = !path_session.empty() && n_matching_session_tokens < (embd_inp.size() * 3 / 4);
|
bool need_to_save_session = !path_session.empty() && n_matching_session_tokens < (embd_inp.size() * 3 / 4);
|
||||||
|
|
||||||
|
|
||||||
int n_past = 0;
|
int n_past = 0;
|
||||||
int n_remain = params.n_predict;
|
int n_remain = params.n_predict;
|
||||||
int n_consumed = 0;
|
int n_consumed = 0;
|
||||||
int n_session_consumed = 0;
|
int n_session_consumed = 0;
|
||||||
|
|
||||||
// the first thing we will do is to output the prompt, so set color accordingly
|
// the first thing we will do is to output the prompt, so set color accordingly
|
||||||
|
@ -413,7 +413,7 @@ int main(int argc, char ** argv) {
|
||||||
llama_token id = 0;
|
llama_token id = 0;
|
||||||
|
|
||||||
{
|
{
|
||||||
auto logits = llama_get_logits(ctx);
|
auto logits = llama_get_logits(ctx);
|
||||||
auto n_vocab = llama_n_vocab(ctx);
|
auto n_vocab = llama_n_vocab(ctx);
|
||||||
|
|
||||||
// Apply params.logit_bias map
|
// Apply params.logit_bias map
|
||||||
|
|
Loading…
Reference in a new issue