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
5aa6efb9
Unverified
Commit
5aa6efb9
authored
Apr 24, 2025
by
Lifu Huang
Committed by
GitHub
Apr 24, 2025
Browse files
[Misc] Clean up redundant code in uniproc_executor.py (#16762)
Signed-off-by:
Lifu Huang
<
lifu.hlf@gmail.com
>
parent
6ca02344
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/executor/uniproc_executor.py
vllm/executor/uniproc_executor.py
+2
-2
No files found.
vllm/executor/uniproc_executor.py
View file @
5aa6efb9
...
...
@@ -34,13 +34,13 @@ class UniProcExecutor(ExecutorBase):
if
len
(
device_info
)
>
1
:
local_rank
=
int
(
device_info
[
1
])
rank
=
0
is_driver_worker
=
True
kwargs
=
dict
(
vllm_config
=
self
.
vllm_config
,
local_rank
=
local_rank
,
rank
=
rank
,
distributed_init_method
=
distributed_init_method
,
is_driver_worker
=
(
not
self
.
parallel_config
)
or
(
rank
%
self
.
parallel_config
.
tensor_parallel_size
==
0
),
is_driver_worker
=
is_driver_worker
,
)
self
.
collective_rpc
(
"init_worker"
,
args
=
([
kwargs
],
))
self
.
collective_rpc
(
"init_device"
)
...
...
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