@@ -84,7 +84,7 @@ def cli() -> None:
8484@click .option ("--json-logs" , default = False , is_flag = True , help = "Print only machine-readable progress reports" )
8585@click .option ("sut_uids" , "--sut" , "-s" , multiple = True , help = "SUT uid(s) to run" , required = True , callback = validate_uid )
8686@click .option ("--anonymize" , type = int , help = "Random number seed for consistent anonymization of SUTs" )
87- @click .option ("--parallel " , default = False , help = "Obsolete flag, soon to be removed " )
87+ @click .option ("--threads " , default = 32 , help = "How many threads to use per stage " )
8888@click .option (
8989 "--version" ,
9090 "-v" ,
@@ -125,12 +125,10 @@ def benchmark(
125125 json_logs : bool ,
126126 sut_uids : List [str ],
127127 anonymize = None ,
128- parallel = False ,
128+ threads = 32 ,
129129 prompt_set = "demo" ,
130130 evaluator = "default" ,
131131) -> None :
132- if parallel :
133- click .echo ("--parallel option unnecessary; benchmarks are now always run in parallel" )
134132 start_time = datetime .now (timezone .utc )
135133 if locale == "all" :
136134 locales = LOCALES
@@ -143,7 +141,9 @@ def benchmark(
143141 suts = get_suts (sut_uids )
144142 benchmarks = [get_benchmark (version , l , prompt_set , evaluator ) for l in locales ]
145143
146- run = run_benchmarks_for_suts (benchmarks , suts , max_instances , debug = debug , json_logs = json_logs )
144+ run = run_benchmarks_for_suts (
145+ benchmarks , suts , max_instances , debug = debug , json_logs = json_logs , thread_count = threads
146+ )
147147 benchmark_scores = score_benchmarks (run )
148148 output_dir .mkdir (exist_ok = True , parents = True )
149149 for b in benchmarks :
0 commit comments