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
d1fd831b
Commit
d1fd831b
authored
Apr 01, 2026
by
王敏
Browse files
创建pcp分支
parent
2a79e7d5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
vllm/config/vllm.py
vllm/config/vllm.py
+2
-1
vllm/envs.py
vllm/envs.py
+13
-1
No files found.
vllm/config/vllm.py
View file @
d1fd831b
...
@@ -1186,7 +1186,8 @@ class VllmConfig:
...
@@ -1186,7 +1186,8 @@ class VllmConfig:
if
(
if
(
self
.
parallel_config
.
tensor_parallel_size
>
1
self
.
parallel_config
.
tensor_parallel_size
>
1
and
self
.
compilation_config
.
pass_config
.
enable_sp
and
(
self
.
compilation_config
.
pass_config
.
enable_sp
or
envs
.
VLLM_MLA_CP
)
):
):
cudagraph_capture_sizes
=
self
.
update_sizes_for_sequence_parallelism
(
cudagraph_capture_sizes
=
self
.
update_sizes_for_sequence_parallelism
(
cudagraph_capture_sizes
cudagraph_capture_sizes
...
...
vllm/envs.py
View file @
d1fd831b
...
@@ -323,6 +323,10 @@ if TYPE_CHECKING:
...
@@ -323,6 +323,10 @@ if TYPE_CHECKING:
USE_LIGHTOP_PER_TOKEN_GROUP_QUANT_FP8
:
bool
=
False
USE_LIGHTOP_PER_TOKEN_GROUP_QUANT_FP8
:
bool
=
False
USE_LIGHTOP_TOPK
:
bool
=
False
USE_LIGHTOP_TOPK
:
bool
=
False
USE_LIGHTOP_CONVERT_REQ_INDEX_TO_GLOBAL_INDEX
:
bool
=
False
USE_LIGHTOP_CONVERT_REQ_INDEX_TO_GLOBAL_INDEX
:
bool
=
False
VLLM_MLA_CP
:
bool
=
False
VLLM_MLA_CPLB
:
bool
=
False
def
get_default_cache_root
():
def
get_default_cache_root
():
return
os
.
getenv
(
return
os
.
getenv
(
"XDG_CACHE_HOME"
,
"XDG_CACHE_HOME"
,
...
@@ -2003,6 +2007,14 @@ environment_variables: dict[str, Callable[[], Any]] = {
...
@@ -2003,6 +2007,14 @@ environment_variables: dict[str, Callable[[], Any]] = {
lambda
:
(
os
.
environ
.
get
(
"USE_LIGHTOP_CONVERT_REQ_INDEX_TO_GLOBAL_INDEX"
,
"False"
).
lower
()
in
lambda
:
(
os
.
environ
.
get
(
"USE_LIGHTOP_CONVERT_REQ_INDEX_TO_GLOBAL_INDEX"
,
"False"
).
lower
()
in
(
"true"
,
"1"
)),
(
"true"
,
"1"
)),
# If set to 1/True, enable mla context parallel
"VLLM_MLA_CP"
:
lambda
:
(
os
.
environ
.
get
(
"VLLM_MLA_CP"
,
"False"
).
lower
()
in
(
"true"
,
"1"
)),
"VLLM_MLA_CPLB"
:
lambda
:
(
os
.
environ
.
get
(
"VLLM_MLA_CPLB"
,
"False"
).
lower
()
in
(
"true"
,
"1"
)),
}
}
# --8<-- [end:env-vars-definition]
# --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