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
afdabfbe
Commit
afdabfbe
authored
Dec 18, 2025
by
zhuwenwen
Browse files
set VLLM_REJECT_SAMPLE_OPT=1
parent
1acf2d7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
vllm/envs.py
vllm/envs.py
+1
-1
vllm/model_executor/model_loader/utils.py
vllm/model_executor/model_loader/utils.py
+4
-4
No files found.
vllm/envs.py
View file @
afdabfbe
...
...
@@ -1228,7 +1228,7 @@ environment_variables: dict[str, Callable[[], Any]] = {
# vllm will use fused cat and mla
"VLLM_REJECT_SAMPLE_OPT"
:
lambda
:
(
os
.
getenv
(
'VLLM_REJECT_SAMPLE_OPT'
,
'
Fals
e'
).
lower
()
in
lambda
:
(
os
.
getenv
(
'VLLM_REJECT_SAMPLE_OPT'
,
'
Tru
e'
).
lower
()
in
(
"true"
,
"1"
)),
# vLLM will use fused silu+mul kernel (fp16 + qwen3-30b)
...
...
vllm/model_executor/model_loader/utils.py
View file @
afdabfbe
...
...
@@ -253,8 +253,8 @@ def get_model_architecture(
os
.
environ
[
'VLLM_USE_OPT_CAT'
]
=
'1'
if
not
envs
.
is_set
(
"VLLM_USE_CAT_MLA"
):
os
.
environ
[
'VLLM_USE_CAT_MLA'
]
=
'1'
if
not
envs
.
is_set
(
"VLLM_REJECT_SAMPLE_OPT"
):
os
.
environ
[
'VLLM_REJECT_SAMPLE_OPT'
]
=
'1'
#
if not envs.is_set("VLLM_REJECT_SAMPLE_OPT"):
#
os.environ['VLLM_REJECT_SAMPLE_OPT'] = '1'
if
not
envs
.
is_set
(
"VLLM_USE_LIGHTOP_RMS_ROPE_CONCAT"
):
os
.
environ
[
'VLLM_USE_LIGHTOP_RMS_ROPE_CONCAT'
]
=
'1'
if
not
envs
.
is_set
(
"VLLM_SCHED_ENABLE_MINIMAL_INJECTION"
):
...
...
@@ -298,8 +298,8 @@ def get_model_architecture(
os
.
environ
[
'VLLM_USE_OPT_CAT'
]
=
'1'
if
not
envs
.
is_set
(
"VLLM_USE_CAT_MLA"
):
os
.
environ
[
'VLLM_USE_CAT_MLA'
]
=
'1'
if
not
envs
.
is_set
(
"VLLM_REJECT_SAMPLE_OPT"
):
os
.
environ
[
'VLLM_REJECT_SAMPLE_OPT'
]
=
'1'
#
if not envs.is_set("VLLM_REJECT_SAMPLE_OPT"):
#
os.environ['VLLM_REJECT_SAMPLE_OPT'] = '1'
if
not
envs
.
is_set
(
"VLLM_USE_LIGHTOP_RMS_ROPE_CONCAT"
):
os
.
environ
[
'VLLM_USE_LIGHTOP_RMS_ROPE_CONCAT'
]
=
'1'
if
not
envs
.
is_set
(
"VLLM_SCHED_ENABLE_MINIMAL_INJECTION"
):
...
...
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