@@ -518,7 +518,7 @@ def run_text_generation_benchmark(model_path, framework, device, tokens_len, str
518
518
for idx , input_text in enumerate (text_list ):
519
519
p_idx = prompt_idx_list [idx ]
520
520
if num == 0 :
521
- log . info (f'[warm-up][P{ p_idx } ] Input text: { input_text } ' )
521
+ metrics_print . print_unicode (f'[warm-up][P{ p_idx } ] Input text: { input_text } ' , f'[warm-up][P { p_idx } ] Unable print input text ' )
522
522
iter_timestamp [num ][p_idx ]['start' ] = datetime .datetime .now ().isoformat ()
523
523
text_gen_fn (input_text , num , model , tokenizer , args , iter_data_list , md5_list ,
524
524
p_idx , bench_hook , tokens_len , streaming , model_precision , proc_id , mem_consumption )
@@ -530,7 +530,7 @@ def run_text_generation_benchmark(model_path, framework, device, tokens_len, str
530
530
p_idx = prompt_idx_list [idx ]
531
531
for num in range (num_iters + 1 ):
532
532
if num == 0 :
533
- log . info (f'[warm-up][P{ p_idx } ] Input text: { input_text } ' )
533
+ metrics_print . print_unicode (f'[warm-up][P{ p_idx } ] Input text: { input_text } ' , f'[warm-up][P { p_idx } ] Unable print input text ' )
534
534
iter_timestamp [num ][p_idx ]['start' ] = datetime .datetime .now ().isoformat ()
535
535
text_gen_fn (input_text , num , model , tokenizer , args , iter_data_list , md5_list ,
536
536
prompt_idx_list [idx ], bench_hook , model_precision , proc_id , mem_consumption )
0 commit comments