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
4a7d8ab8
Commit
4a7d8ab8
authored
Apr 24, 2025
by
zhuwenwen
Browse files
Merge branch 'v0.8.4-dev-wm' into 'v0.8.4-dev'
[fix]修复多卡eager模式精度问题 See merge request dcutoolkit/deeplearing/vllm!102
parents
f9a784a7
9f29bc2d
Changes
1
Show 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 @
4a7d8ab8
...
...
@@ -1028,8 +1028,11 @@ 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
()
# 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
...
...
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