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
d81ac443
Unverified
Commit
d81ac443
authored
Feb 11, 2025
by
HAI
Committed by
GitHub
Feb 12, 2025
Browse files
MI30x: More graph captures for larger batch sizes and concurrencies (#3420)
parent
2491cc92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
python/sglang/srt/model_executor/cuda_graph_runner.py
python/sglang/srt/model_executor/cuda_graph_runner.py
+5
-0
No files found.
python/sglang/srt/model_executor/cuda_graph_runner.py
View file @
d81ac443
...
...
@@ -33,6 +33,9 @@ from sglang.srt.model_executor.forward_batch_info import (
ForwardBatch
,
ForwardMode
,
)
from
sglang.srt.utils
import
is_hip
is_hip_
=
is_hip
()
if
TYPE_CHECKING
:
from
sglang.srt.model_executor.model_runner
import
ModelRunner
...
...
@@ -129,6 +132,8 @@ def get_batch_sizes_to_capture(model_runner: ModelRunner):
if
bs
<=
model_runner
.
req_to_token_pool
.
size
and
bs
<=
server_args
.
cuda_graph_max_bs
]
if
is_hip_
:
capture_bs
+=
[
i
*
8
for
i
in
range
(
21
,
33
)]
compile_bs
=
(
[
bs
for
bs
in
capture_bs
if
bs
<=
server_args
.
torch_compile_max_bs
]
if
server_args
.
enable_torch_compile
...
...
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