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
a1e9e36f
Commit
a1e9e36f
authored
Nov 14, 2025
by
zhuwenwen
Browse files
add VLLM_USE_PP_SYNC to use pp sync
parent
8375370f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
vllm/distributed/parallel_state.py
vllm/distributed/parallel_state.py
+2
-0
vllm/envs.py
vllm/envs.py
+5
-0
No files found.
vllm/distributed/parallel_state.py
View file @
a1e9e36f
...
...
@@ -735,6 +735,8 @@ class GroupCoordinator:
torch
.
distributed
.
recv
(
tensor
,
src
=
self
.
ranks
[
src
],
group
=
group
)
if
envs
.
VLLM_USE_PP_SYNC
:
torch
.
cuda
.
sychronize
()
if
use_all_gather
:
# do the allgather
tensor
=
all_gather_group
.
all_gather
(
# type: ignore
...
...
vllm/envs.py
View file @
a1e9e36f
...
...
@@ -178,6 +178,7 @@ if TYPE_CHECKING:
VLLM_P2P_BUF_TOKENS
:
int
=
30000
VLLM_SCHED_ENABLE_MINIMAL_INJECTION
:
bool
=
False
VLLM_USE_PD_SPLIT
:
bool
=
False
VLLM_USE_PP_SYNC
:
bool
=
False
def
get_default_cache_root
():
return
os
.
getenv
(
...
...
@@ -1156,6 +1157,10 @@ environment_variables: dict[str, Callable[[], Any]] = {
"VLLM_USE_PD_SPLIT"
:
lambda
:
(
os
.
environ
.
get
(
"VLLM_USE_PD_SPLIT"
,
"True"
).
lower
()
in
(
"true"
,
"1"
)),
# vLLM will sync to avoid pp vmfault
"VLLM_USE_PP_SYNC"
:
lambda
:
(
os
.
environ
.
get
(
"VLLM_USE_PP_SYNC"
,
"False"
).
lower
()
in
(
"true"
,
"1"
)),
}
# --8<-- [end:env-vars-definition]
...
...
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