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
e4a84fdc
Commit
e4a84fdc
authored
Jul 25, 2025
by
zhuwenwen
Browse files
set VLLM_USE_V1=1
parent
7151fd54
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
vllm/engine/arg_utils.py
vllm/engine/arg_utils.py
+4
-2
vllm/envs.py
vllm/envs.py
+1
-1
No files found.
vllm/engine/arg_utils.py
View file @
e4a84fdc
...
...
@@ -1745,7 +1745,8 @@ class AsyncEngineArgs(EngineArgs):
def
_raise_or_fallback
(
feature_name
:
str
,
recommend_to_remove
:
bool
):
if
envs
.
is_set
(
"VLLM_USE_V1"
)
and
envs
.
VLLM_USE_V1
:
# if envs.is_set("VLLM_USE_V1") and envs.VLLM_USE_V1:
if
envs
.
VLLM_USE_V1
:
raise
NotImplementedError
(
f
"VLLM_USE_V1=1 is not supported with
{
feature_name
}
."
)
msg
=
f
"
{
feature_name
}
is not supported by the V1 Engine. "
...
...
@@ -1757,7 +1758,8 @@ def _raise_or_fallback(feature_name: str, recommend_to_remove: bool):
def
_warn_or_fallback
(
feature_name
:
str
)
->
bool
:
if
envs
.
is_set
(
"VLLM_USE_V1"
)
and
envs
.
VLLM_USE_V1
:
# if envs.is_set("VLLM_USE_V1") and envs.VLLM_USE_V1:
if
envs
.
VLLM_USE_V1
:
logger
.
warning
(
"Detected VLLM_USE_V1=1 with %s. Usage should "
"be considered experimental. Please report any "
...
...
vllm/envs.py
View file @
e4a84fdc
...
...
@@ -665,7 +665,7 @@ environment_variables: dict[str, Callable[[], Any]] = {
# If set, use the V1 code path.
"VLLM_USE_V1"
:
lambda
:
bool
(
int
(
os
.
getenv
(
"VLLM_USE_V1"
,
"
0
"
))),
lambda
:
bool
(
int
(
os
.
getenv
(
"VLLM_USE_V1"
,
"
1
"
))),
# Disable aiter ops unless specifically enabled.
# Acts as a parent switch to enable the rest of the other operations.
...
...
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