@@ -385,9 +385,9 @@ int main(int argc, char ** argv) {
385
385
if (params.n_keep > add_bos) {
386
386
LOG_INF (" %s: static prompt based on n_keep: '" , __func__);
387
387
for (int i = 0 ; i < params.n_keep ; i++) {
388
- LOG (" %s" , llama_token_to_piece (ctx, embd_inp[i]).c_str ());
388
+ LOG_CNT (" %s" , llama_token_to_piece (ctx, embd_inp[i]).c_str ());
389
389
}
390
- LOG (" '\n " );
390
+ LOG_CNT (" '\n " );
391
391
}
392
392
LOG_INF (" \n " );
393
393
}
@@ -409,40 +409,40 @@ int main(int argc, char ** argv) {
409
409
}
410
410
411
411
if (params.interactive ) {
412
- LOG (" %s: interactive mode on.\n " , __func__);
412
+ LOG_INF (" %s: interactive mode on.\n " , __func__);
413
413
414
414
if (!params.antiprompt .empty ()) {
415
415
for (const auto & antiprompt : params.antiprompt ) {
416
- LOG (" Reverse prompt: '%s'\n " , antiprompt.c_str ());
416
+ LOG_INF (" Reverse prompt: '%s'\n " , antiprompt.c_str ());
417
417
if (params.verbose_prompt ) {
418
418
auto tmp = ::llama_tokenize (ctx, antiprompt, false , true );
419
419
for (int i = 0 ; i < (int ) tmp.size (); i++) {
420
- LOG (" %6d -> '%s'\n " , tmp[i], llama_token_to_piece (ctx, tmp[i]).c_str ());
420
+ LOG_INF (" %6d -> '%s'\n " , tmp[i], llama_token_to_piece (ctx, tmp[i]).c_str ());
421
421
}
422
422
}
423
423
}
424
424
}
425
425
426
426
if (params.input_prefix_bos ) {
427
- LOG (" Input prefix with BOS\n " );
427
+ LOG_INF (" Input prefix with BOS\n " );
428
428
}
429
429
430
430
if (!params.input_prefix .empty ()) {
431
- LOG (" Input prefix: '%s'\n " , params.input_prefix .c_str ());
431
+ LOG_INF (" Input prefix: '%s'\n " , params.input_prefix .c_str ());
432
432
if (params.verbose_prompt ) {
433
433
auto tmp = ::llama_tokenize (ctx, params.input_prefix , true , true );
434
434
for (int i = 0 ; i < (int ) tmp.size (); i++) {
435
- LOG (" %6d -> '%s'\n " , tmp[i], llama_token_to_piece (ctx, tmp[i]).c_str ());
435
+ LOG_INF (" %6d -> '%s'\n " , tmp[i], llama_token_to_piece (ctx, tmp[i]).c_str ());
436
436
}
437
437
}
438
438
}
439
439
440
440
if (!params.input_suffix .empty ()) {
441
- LOG (" Input suffix: '%s'\n " , params.input_suffix .c_str ());
441
+ LOG_INF (" Input suffix: '%s'\n " , params.input_suffix .c_str ());
442
442
if (params.verbose_prompt ) {
443
443
auto tmp = ::llama_tokenize (ctx, params.input_suffix , false , true );
444
444
for (int i = 0 ; i < (int ) tmp.size (); i++) {
445
- LOG (" %6d -> '%s'\n " , tmp[i], llama_token_to_piece (ctx, tmp[i]).c_str ());
445
+ LOG_INF (" %6d -> '%s'\n " , tmp[i], llama_token_to_piece (ctx, tmp[i]).c_str ());
446
446
}
447
447
}
448
448
}
@@ -474,7 +474,7 @@ int main(int argc, char ** argv) {
474
474
// GGML_ASSERT(n_ctx >= n_ctx_train * ga_n && "n_ctx must be at least n_ctx_train * grp_attn_n"); // NOLINT
475
475
LOG_INF (" self-extend: n_ctx_train = %d, grp_attn_n = %d, grp_attn_w = %d\n " , n_ctx_train, ga_n, ga_w);
476
476
}
477
- LOG (" \n " );
477
+ LOG_INF (" \n " );
478
478
479
479
if (params.interactive ) {
480
480
const char * control_message;
@@ -486,11 +486,11 @@ int main(int argc, char ** argv) {
486
486
" - To return control without starting a new line, end your input with '/'.\n "
487
487
" - If you want to submit another line, end your input with '\\ '.\n " ;
488
488
}
489
- LOG (" == Running in interactive mode. ==\n " );
489
+ LOG_INF (" == Running in interactive mode. ==\n " );
490
490
#if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__)) || defined (_WIN32)
491
- LOG ( " - Press Ctrl+C to interject at any time.\n " );
491
+ LOG_INF ( " - Press Ctrl+C to interject at any time.\n " );
492
492
#endif
493
- LOG ( " %s\n " , control_message);
493
+ LOG_INF ( " %s\n " , control_message);
494
494
495
495
is_interacting = params.interactive_first ;
496
496
}
0 commit comments