@@ -385,9 +385,9 @@ int main(int argc, char ** argv) {
385385        if  (params.n_keep  > add_bos) {
386386            LOG_INF (" %s: static prompt based on n_keep: '"  , __func__);
387387            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 ());
389389            }
390-             LOG (" '\n "  );
390+             LOG_CNT (" '\n "  );
391391        }
392392        LOG_INF (" \n "  );
393393    }
@@ -409,40 +409,40 @@ int main(int argc, char ** argv) {
409409    }
410410
411411    if  (params.interactive ) {
412-         LOG (" %s: interactive mode on.\n "  , __func__);
412+         LOG_INF (" %s: interactive mode on.\n "  , __func__);
413413
414414        if  (!params.antiprompt .empty ()) {
415415            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 ());
417417                if  (params.verbose_prompt ) {
418418                    auto  tmp = ::llama_tokenize (ctx, antiprompt, false , true );
419419                    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 ());
421421                    }
422422                }
423423            }
424424        }
425425
426426        if  (params.input_prefix_bos ) {
427-             LOG (" Input prefix with BOS\n "  );
427+             LOG_INF (" Input prefix with BOS\n "  );
428428        }
429429
430430        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 ());
432432            if  (params.verbose_prompt ) {
433433                auto  tmp = ::llama_tokenize (ctx, params.input_prefix , true , true );
434434                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 ());
436436                }
437437            }
438438        }
439439
440440        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 ());
442442            if  (params.verbose_prompt ) {
443443                auto  tmp = ::llama_tokenize (ctx, params.input_suffix , false , true );
444444                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 ());
446446                }
447447            }
448448        }
@@ -474,7 +474,7 @@ int main(int argc, char ** argv) {
474474      // GGML_ASSERT(n_ctx >= n_ctx_train * ga_n && "n_ctx must be at least n_ctx_train * grp_attn_n"); // NOLINT
475475        LOG_INF (" self-extend: n_ctx_train = %d, grp_attn_n = %d, grp_attn_w = %d\n "  , n_ctx_train, ga_n, ga_w);
476476    }
477-     LOG (" \n "  );
477+     LOG_INF (" \n "  );
478478
479479    if  (params.interactive ) {
480480        const  char  * control_message;
@@ -486,11 +486,11 @@ int main(int argc, char ** argv) {
486486                              "  - To return control without starting a new line, end your input with '/'.\n " 
487487                              "  - If you want to submit another line, end your input with '\\ '.\n "  ;
488488        }
489-         LOG (" == Running in interactive mode. ==\n "  );
489+         LOG_INF (" == Running in interactive mode. ==\n "  );
490490#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 "  );
492492#endif 
493-         LOG (       " %s\n "  , control_message);
493+         LOG_INF (       " %s\n "  , control_message);
494494
495495        is_interacting = params.interactive_first ;
496496    }
0 commit comments