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
66283dbc
"docs/source/en/using-diffusers/loading.mdx" did not exist on "0dd8c6b4dbab4069de9ed1cafb53cbd495873879"
Unverified
Commit
66283dbc
authored
Jan 26, 2025
by
yigex
Committed by
GitHub
Jan 25, 2025
Browse files
[Fix] Not skip NVML Check on AMD Platform (#3135)
parent
822bae8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
python/sglang/srt/distributed/device_communicators/custom_all_reduce.py
...srt/distributed/device_communicators/custom_all_reduce.py
+5
-2
python/sglang/srt/utils.py
python/sglang/srt/utils.py
+1
-1
No files found.
python/sglang/srt/distributed/device_communicators/custom_all_reduce.py
View file @
66283dbc
...
...
@@ -185,9 +185,12 @@ class CustomAllreduce:
# test nvlink first, this will filter out most of the cases
# where custom allreduce is not supported
# this checks hardware and driver support for NVLink
assert
is_cuda
()
if
is_cuda
():
assert
is_cuda
()
full_nvlink
=
is_full_nvlink
(
physical_device_ids
)
full_nvlink
=
is_full_nvlink
(
physical_device_ids
)
else
:
full_nvlink
=
False
if
world_size
>
2
and
not
full_nvlink
:
logger
.
warning
(
"Custom allreduce is disabled because it's not supported on"
...
...
python/sglang/srt/utils.py
View file @
66283dbc
...
...
@@ -73,7 +73,7 @@ def is_hip() -> bool:
def
is_cuda
():
return
hasattr
(
torch
,
"cuda"
)
and
torch
.
cuda
.
is
_available
()
return
hasattr
(
torch
,
"cuda"
)
and
torch
.
version
.
cuda
is
not
None
def
is_cuda_alike
():
...
...
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