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
norm
vllm
Commits
105a40f5
Unverified
Commit
105a40f5
authored
Jan 30, 2024
by
Woosuk Kwon
Committed by
GitHub
Jan 30, 2024
Browse files
[Minor] Fix false warning when TP=1 (#2674)
parent
bbe9bd96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
vllm/model_executor/parallel_utils/custom_all_reduce.py
vllm/model_executor/parallel_utils/custom_all_reduce.py
+4
-0
No files found.
vllm/model_executor/parallel_utils/custom_all_reduce.py
View file @
105a40f5
...
@@ -29,6 +29,10 @@ def init_custom_ar() -> None:
...
@@ -29,6 +29,10 @@ def init_custom_ar() -> None:
return
return
rank
=
get_tensor_model_parallel_rank
()
rank
=
get_tensor_model_parallel_rank
()
world_size
=
get_tensor_model_parallel_world_size
()
world_size
=
get_tensor_model_parallel_world_size
()
if
world_size
==
1
:
# No need to initialize custom allreduce for single GPU case.
return
if
world_size
not
in
_SUPPORTED_WORLD_SIZES
:
if
world_size
not
in
_SUPPORTED_WORLD_SIZES
:
logger
.
warn
(
logger
.
warn
(
"Custom allreduce is disabled due to an unsupported world size: "
"Custom allreduce is disabled due to an unsupported world size: "
...
...
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