Skip to content

Commit

Permalink
fix: change parallel logic
Browse files Browse the repository at this point in the history
  • Loading branch information
terryyz committed Oct 6, 2024
1 parent dac3a00 commit 58b3f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bigcodebench/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def evaluate(

pass_k = [int(k) for k in pass_k.split(",")]

if not parallel:
if parallel < 1:
n_workers = max(1, multiprocessing.cpu_count() // 2)
else:
n_workers = parallel
Expand Down

0 comments on commit 58b3f2d

Please sign in to comment.