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
9be76efd
Commit
9be76efd
authored
Nov 26, 2025
by
zhuwenwen
Browse files
add VLLM_USE_PIECEWISE to use piecewise
parent
77599fa7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
vllm/config/compilation.py
vllm/config/compilation.py
+2
-1
vllm/envs.py
vllm/envs.py
+6
-0
No files found.
vllm/config/compilation.py
View file @
9be76efd
...
...
@@ -14,6 +14,7 @@ from vllm.compilation.inductor_pass import CallableInductorPass, InductorPass
from
vllm.config.utils
import
config
from
vllm.logger
import
init_logger
from
vllm.utils
import
is_torch_equal_or_newer
,
resolve_obj_by_qualname
from
vllm
import
envs
if
TYPE_CHECKING
:
from
vllm.config
import
VllmConfig
...
...
@@ -56,7 +57,7 @@ class CUDAGraphMode(enum.Enum):
def
max_cudagraph_mode
(
self
)
->
'CUDAGraphMode'
:
return
CUDAGraphMode
(
max
(
self
.
value
))
if
self
.
separate_routine
()
else
self
self
.
value
)
if
not
envs
.
VLLM_USE_PIECEWISE
else
min
(
self
.
value
)
)
if
self
.
separate_routine
()
else
self
def
has_full_cudagraphs
(
self
)
->
bool
:
return
self
.
max_cudagraph_mode
()
==
CUDAGraphMode
.
FULL
...
...
vllm/envs.py
View file @
9be76efd
...
...
@@ -237,6 +237,7 @@ if TYPE_CHECKING:
USE_FUSED_SILU_MUL_QUANT
:
bool
=
False
VLLM_USE_PD_SPLIT
:
bool
=
False
VLLM_USE_PP_SYNC
:
bool
=
False
VLLM_USE_PIECEWISE
:
bool
=
False
def
get_default_cache_root
():
...
...
@@ -1648,6 +1649,11 @@ environment_variables: dict[str, Callable[[], Any]] = {
"VLLM_USE_PP_SYNC"
:
lambda
:
(
os
.
environ
.
get
(
"VLLM_USE_PP_SYNC"
,
"False"
).
lower
()
in
(
"true"
,
"1"
)),
# vLLM will use piecewise
"VLLM_USE_PIECEWISE"
:
lambda
:
(
os
.
environ
.
get
(
"VLLM_USE_PIECEWISE"
,
"True"
).
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