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
9f29bc2d
Commit
9f29bc2d
authored
Apr 24, 2025
by
王敏
Browse files
[fix]修复多卡eager模式精度问题
parent
f9a784a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
vllm/utils.py
vllm/utils.py
+5
-2
No files found.
vllm/utils.py
View file @
9f29bc2d
...
@@ -1028,8 +1028,11 @@ def current_stream() -> torch.cuda.Stream:
...
@@ -1028,8 +1028,11 @@ def current_stream() -> torch.cuda.Stream:
# On ROCm using the default 0 stream in combination with RCCL
# On ROCm using the default 0 stream in combination with RCCL
# is hurting performance. Therefore creating a dedicated stream
# is hurting performance. Therefore creating a dedicated stream
# per process
# per process
_current_stream
=
torch
.
cuda
.
Stream
()
if
current_platform
.
is_rocm
(
)
else
torch
.
cuda
.
current_stream
()
# fix computational precision issue in eager mode
# _current_stream = torch.cuda.Stream() if current_platform.is_rocm(
# ) else torch.cuda.current_stream()
_current_stream
=
torch
.
cuda
.
current_stream
()
return
_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