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
9cf47594
Unverified
Commit
9cf47594
authored
Feb 11, 2025
by
Mengqing Cao
Committed by
GitHub
Feb 11, 2025
Browse files
[executor] init `local_rank` as device index (#13027)
Signed-off-by:
Mengqing Cao
<
cmq0113@163.com
>
parent
41c5dd45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
vllm/executor/uniproc_executor.py
vllm/executor/uniproc_executor.py
+5
-0
No files found.
vllm/executor/uniproc_executor.py
View file @
9cf47594
...
...
@@ -28,6 +28,11 @@ class UniProcExecutor(ExecutorBase):
distributed_init_method
=
get_distributed_init_method
(
get_ip
(),
get_open_port
())
local_rank
=
0
# set local rank as the device index if specified
device_info
=
self
.
vllm_config
.
device_config
.
device
.
__str__
().
split
(
":"
)
if
len
(
device_info
)
>
1
:
local_rank
=
int
(
device_info
[
1
])
rank
=
0
kwargs
=
dict
(
vllm_config
=
self
.
vllm_config
,
...
...
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