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
6317c5c6
Unverified
Commit
6317c5c6
authored
May 19, 2025
by
HAI
Committed by
GitHub
May 19, 2025
Browse files
Address performance regression: disable multiple streams on ROCm (#6412)
parent
cba1cdbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
python/sglang/srt/models/deepseek_v2.py
python/sglang/srt/models/deepseek_v2.py
+2
-1
No files found.
python/sglang/srt/models/deepseek_v2.py
View file @
6317c5c6
...
...
@@ -1315,7 +1315,8 @@ class DeepseekV2Model(nn.Module):
config
.
hidden_size
,
enable_tp
=
not
global_server_args_dict
[
"enable_dp_attention"
],
)
self
.
alt_stream
=
torch
.
cuda
.
Stream
()
# TODO(haishaw): multi-stream performance on ROCm
self
.
alt_stream
=
None
if
_is_hip
else
torch
.
cuda
.
Stream
()
self
.
layers
=
nn
.
ModuleList
(
[
DeepseekV2DecoderLayer
(
...
...
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