Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
2b079f89
Unverified
Commit
2b079f89
authored
Jan 18, 2024
by
Lianmin Zheng
Committed by
GitHub
Jan 18, 2024
Browse files
Increase interpreter parallelism (#46)
parent
05b4c398
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/lang/interpreter.py
python/sglang/lang/interpreter.py
+1
-1
No files found.
python/sglang/lang/interpreter.py
View file @
2b079f89
...
@@ -80,7 +80,7 @@ def run_program_batch(
...
@@ -80,7 +80,7 @@ def run_program_batch(
# Run all programs
# Run all programs
if
num_threads
==
"auto"
:
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
))
num_threads
=
min
(
num_threads
,
len
(
batch_arguments
))
if
num_threads
==
1
:
if
num_threads
==
1
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment