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
98afde19
Unverified
Commit
98afde19
authored
Apr 13, 2024
by
youkaichao
Committed by
GitHub
Apr 13, 2024
Browse files
[Core][Distributed] improve logging for init dist (#4042)
parent
5c2e66e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
vllm/distributed/parallel_state.py
vllm/distributed/parallel_state.py
+6
-0
No files found.
vllm/distributed/parallel_state.py
View file @
98afde19
...
@@ -8,6 +8,10 @@ from typing import Optional
...
@@ -8,6 +8,10 @@ from typing import Optional
import
torch
import
torch
from
vllm.logger
import
init_logger
logger
=
init_logger
(
__name__
)
# Tensor model parallel group that the current rank belongs to.
# Tensor model parallel group that the current rank belongs to.
_TENSOR_MODEL_PARALLEL_GROUP
=
None
_TENSOR_MODEL_PARALLEL_GROUP
=
None
# Pipeline model parallel group that the current rank belongs to.
# Pipeline model parallel group that the current rank belongs to.
...
@@ -45,6 +49,8 @@ def init_distributed_environment(
...
@@ -45,6 +49,8 @@ def init_distributed_environment(
local_rank
:
int
=
-
1
,
local_rank
:
int
=
-
1
,
backend
:
str
=
"nccl"
,
backend
:
str
=
"nccl"
,
):
):
logger
.
debug
(
f
"
{
world_size
=
}
{
rank
=
}
{
local_rank
=
}
"
f
"
{
distributed_init_method
=
}
{
backend
=
}
"
)
if
not
torch
.
distributed
.
is_initialized
():
if
not
torch
.
distributed
.
is_initialized
():
assert
distributed_init_method
is
not
None
,
(
assert
distributed_init_method
is
not
None
,
(
"distributed_init_method must be provided when initializing "
"distributed_init_method must be provided when initializing "
...
...
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