minor : add braces
This commit is contained in:
parent
8f665eaddc
commit
b2e8a2e22f
1 changed files with 4 additions and 2 deletions
|
@ -203,8 +203,9 @@ int main(int argc, char ** argv) {
|
||||||
|
|
||||||
const std::string token_str = llama_token_to_piece(ctx_tgt, id);
|
const std::string token_str = llama_token_to_piece(ctx_tgt, id);
|
||||||
|
|
||||||
if (!params.use_color)
|
if (!params.use_color) {
|
||||||
printf("%s", token_str.c_str());
|
printf("%s", token_str.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
if (id == llama_token_eos(model_tgt)) {
|
if (id == llama_token_eos(model_tgt)) {
|
||||||
has_eos = true;
|
has_eos = true;
|
||||||
|
@ -244,8 +245,9 @@ int main(int argc, char ** argv) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (params.use_color)
|
if (params.use_color) {
|
||||||
printf("%s", token_str.c_str());
|
printf("%s", token_str.c_str());
|
||||||
|
}
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
LOG("the sampled target token (%d, '%s') did not match, or we ran out of drafted tokens\n", id, token_str.c_str());
|
LOG("the sampled target token (%d, '%s') did not match, or we ran out of drafted tokens\n", id, token_str.c_str());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue