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
68bb122e
Unverified
Commit
68bb122e
authored
Apr 12, 2025
by
Huazhong Ji
Committed by
GitHub
Apr 12, 2025
Browse files
[MISC] Make GroupCoordinator compatible with out-of-tree devices (#16464)
Signed-off-by:
hzji210@gmail.com
<
hzji210@gmail.com
>
parent
d9fc8cd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
vllm/distributed/parallel_state.py
vllm/distributed/parallel_state.py
+3
-1
No files found.
vllm/distributed/parallel_state.py
View file @
68bb122e
...
...
@@ -194,9 +194,11 @@ class GroupCoordinator:
from
vllm.platforms
import
current_platform
# TODO: fix it for other platforms
if
current_platform
.
is_cuda_alike
():
self
.
device
=
torch
.
device
(
f
"cuda:
{
local_rank
}
"
)
elif
current_platform
.
is_out_of_tree
():
self
.
device
=
torch
.
device
(
f
"
{
current_platform
.
device_name
}
:
{
local_rank
}
"
)
else
:
self
.
device
=
torch
.
device
(
"cpu"
)
...
...
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