@@ -67,7 +67,7 @@ def summarize_results(logs_dir, args, start, finish):
6767 ttfts = []
6868 tg_lats = []
6969 for n in range (args .num_processes ):
70- results = open (f"{ logs_dir } /log_{ n } " , "r" ).readlines ()[- 9 ].split ("|" )
70+ results = open (f"{ logs_dir } /log_{ n } " , "r" ).readlines ()[5 ].split ("|" )
7171 prompt_size = int (results [1 ])
7272 assert prompt_size == args .prompt_size
7373 tokens_generated = int (results [2 ])
@@ -142,11 +142,11 @@ def main():
142142 if mem_place == "none" :
143143 cmd = ["numactl" , f"--physcpubind={ gen_threads_config (args .num_threads , n )} " ,
144144 "/llm/llama-batched-bench" , "-m" , args .model , "-c" , str (args .kv_cache ), "-b" , "2048" , "-ub" , "512" , "-npp" , str (args .prompt_size ), "-ntg" , str (TOKENS ),
145- "-npl" , str (args .batch_size ), "-t" , str (args .num_threads ), "-tb" , str (args .num_threads ), "-td" , str ( args . num_threads ) ]
145+ "-npl" , str (args .batch_size ), "-t" , str (args .num_threads ), "-tb" , str (args .num_threads )]
146146 else :
147147 cmd = ["numactl" , f"--physcpubind={ gen_threads_config (args .num_threads , n )} " ,str (mem_place ),
148148 "/llm/llama-batched-bench" , "-m" , args .model , "-c" , str (args .kv_cache ), "-b" , "2048" , "-ub" , "512" , "-npp" , str (args .prompt_size ), "-ntg" , str (TOKENS ),
149- "-npl" , str (args .batch_size ), "-t" , str (args .num_threads ), "-tb" , str (args .num_threads ), "-td" , str ( args . num_threads ) ]
149+ "-npl" , str (args .batch_size ), "-t" , str (args .num_threads ), "-tb" , str (args .num_threads )]
150150
151151 else :
152152 print ("FAIL: batched-bench not found!" )
0 commit comments