Skip to content

Commit

Permalink
Increase interpreter parallelism (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy committed Jan 18, 2024
1 parent 05b4c39 commit 2b079f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/sglang/lang/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def run_program_batch(

# Run all programs
if num_threads == "auto":
num_threads = multiprocessing.cpu_count()
num_threads = min(64, multiprocessing.cpu_count() * 8)
num_threads = min(num_threads, len(batch_arguments))

if num_threads == 1:
Expand Down

0 comments on commit 2b079f8

Please sign in to comment.