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
0ba2c589
Unverified
Commit
0ba2c589
authored
Dec 14, 2024
by
Ke Bao
Committed by
GitHub
Dec 14, 2024
Browse files
Remove cuda graph batch size adjustment for dp attention (#2484)
parent
fccbfa37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
python/sglang/srt/server_args.py
python/sglang/srt/server_args.py
+0
-2
No files found.
python/sglang/srt/server_args.py
View file @
0ba2c589
...
@@ -221,12 +221,10 @@ class ServerArgs:
...
@@ -221,12 +221,10 @@ class ServerArgs:
if
self
.
enable_dp_attention
:
if
self
.
enable_dp_attention
:
self
.
dp_size
=
self
.
tp_size
self
.
dp_size
=
self
.
tp_size
self
.
chunked_prefill_size
=
self
.
chunked_prefill_size
//
2
self
.
chunked_prefill_size
=
self
.
chunked_prefill_size
//
2
self
.
cuda_graph_max_bs
=
min
(
self
.
cuda_graph_max_bs
,
96
)
self
.
schedule_conservativeness
=
self
.
schedule_conservativeness
*
0.3
self
.
schedule_conservativeness
=
self
.
schedule_conservativeness
*
0.3
self
.
disable_overlap_schedule
=
True
self
.
disable_overlap_schedule
=
True
logger
.
warning
(
logger
.
warning
(
f
"DP attention is enabled. The chunked prefill size is adjusted to
{
self
.
chunked_prefill_size
}
to avoid MoE kernel issues. "
f
"DP attention is enabled. The chunked prefill size is adjusted to
{
self
.
chunked_prefill_size
}
to avoid MoE kernel issues. "
f
"The CUDA graph max batch size is adjusted to
{
self
.
cuda_graph_max_bs
}
. "
f
"The schedule conservativeness is adjusted to
{
self
.
schedule_conservativeness
}
. "
f
"The schedule conservativeness is adjusted to
{
self
.
schedule_conservativeness
}
. "
"Data parallel size is adjusted to be the same as tensor parallel size. "
"Data parallel size is adjusted to be the same as tensor parallel size. "
"Overlap scheduler is disabled."
"Overlap scheduler is disabled."
...
...
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