Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
87127155
Commit
87127155
authored
Apr 29, 2025
by
zhuwenwen
Browse files
[fix]修复多卡eager模式精度问题
parent
2d465ec7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vllm/utils.py
vllm/utils.py
+3
-2
No files found.
vllm/utils.py
View file @
87127155
...
...
@@ -1089,8 +1089,9 @@ def current_stream() -> torch.cuda.Stream:
# On ROCm using the default 0 stream in combination with RCCL
# is hurting performance. Therefore creating a dedicated stream
# per process
_current_stream
=
torch
.
cuda
.
Stream
()
if
current_platform
.
is_rocm
(
)
else
torch
.
cuda
.
current_stream
()
# _current_stream = torch.cuda.Stream() if current_platform.is_rocm(
# ) else torch.cuda.current_stream()
_current_stream
=
torch
.
cuda
.
current_stream
()
return
_current_stream
...
...
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