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
beb65c74
Unverified
Commit
beb65c74
authored
Apr 27, 2025
by
Liangsheng Yin
Committed by
GitHub
Apr 27, 2025
Browse files
[PD]Reduce kv transfer threads (#5791)
parent
621e96bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/disaggregation/mooncake/conn.py
python/sglang/srt/disaggregation/mooncake/conn.py
+1
-1
No files found.
python/sglang/srt/disaggregation/mooncake/conn.py
View file @
beb65c74
...
...
@@ -149,7 +149,7 @@ class MooncakeKVManager(BaseKVManager):
# Determine the number of threads to use for kv sender
cpu_count
=
os
.
cpu_count
()
self
.
executor
=
concurrent
.
futures
.
ThreadPoolExecutor
(
m
ax_workers
=
cpu_count
if
cpu_count
is
not
None
else
64
m
in
(
cpu_count
//
4
,
16
)
)
elif
self
.
disaggregation_mode
==
DisaggregationMode
.
DECODE
:
self
.
start_decode_thread
()
...
...
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