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
SIYIXNI
vllm
Commits
a1125ad4
"docs/get_started/install.md" did not exist on "16267d4fa721b3e8c11e9b3d41f5d53fa8bedaf1"
Unverified
Commit
a1125ad4
authored
Nov 28, 2023
by
explainerauthors
Committed by
GitHub
Nov 28, 2023
Browse files
Correct comments in parallel_state.py (#1818)
parent
a8b150c5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/model_executor/parallel_utils/parallel_state.py
vllm/model_executor/parallel_utils/parallel_state.py
+2
-2
No files found.
vllm/model_executor/parallel_utils/parallel_state.py
View file @
a1125ad4
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# Adapted from
# Adapted from
# https://github.com/NVIDIA/Megatron-LM/blob/main/megatron/core/parallel_state.py
# https://github.com/NVIDIA/Megatron-LM/blob/main/megatron/core/parallel_state.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
"""
Model and data
parallel groups."""
"""
Tensor and pipeline
parallel groups."""
import
torch
import
torch
...
@@ -84,7 +84,7 @@ def initialize_model_parallel(
...
@@ -84,7 +84,7 @@ def initialize_model_parallel(
def
model_parallel_is_initialized
():
def
model_parallel_is_initialized
():
"""Check if
model and data
parallel groups are initialized."""
"""Check if
tensor and pipeline
parallel groups are initialized."""
return
(
_TENSOR_MODEL_PARALLEL_GROUP
is
not
None
return
(
_TENSOR_MODEL_PARALLEL_GROUP
is
not
None
and
_PIPELINE_MODEL_PARALLEL_GROUP
is
not
None
)
and
_PIPELINE_MODEL_PARALLEL_GROUP
is
not
None
)
...
...
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