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
3eccb64e
Commit
3eccb64e
authored
Jan 30, 2026
by
zhuwenwen
Browse files
set MOE_NN=0, VLLM_USE_FUSED_RMS_ROPE=0, VLLM_USE_FUSE_SILU_AND_MUL=0 and VLLM_W8A8_BACKEND=1
parent
39562a7f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
vllm/envs.py
vllm/envs.py
+2
-2
vllm/model_executor/layers/fused_moe/layer.py
vllm/model_executor/layers/fused_moe/layer.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 @
3eccb64e
...
@@ -1806,14 +1806,14 @@ environment_variables: dict[str, Callable[[], Any]] = {
...
@@ -1806,14 +1806,14 @@ environment_variables: dict[str, Callable[[], Any]] = {
(
"true"
,
"1"
)),
(
"true"
,
"1"
)),
# vLLM will use fused RMS + RoPE kernel
# vLLM will use fused RMS + RoPE kernel
"VLLM_USE_FUSED_RMS_ROPE"
:
"VLLM_USE_FUSED_RMS_ROPE"
:
lambda
:
(
os
.
environ
.
get
(
"VLLM_USE_FUSED_RMS_ROPE"
,
"
Tru
e"
).
lower
()
in
lambda
:
(
os
.
environ
.
get
(
"VLLM_USE_FUSED_RMS_ROPE"
,
"
Fals
e"
).
lower
()
in
(
"true"
,
"1"
)),
(
"true"
,
"1"
)),
# W8A8 GEMM backend selection for vLLM quantized models.
# W8A8 GEMM backend selection for vLLM quantized models.
# lightop/triton: 1
# lightop/triton: 1
# cutlass: 2 (will remove in the future)
# cutlass: 2 (will remove in the future)
# blaslt: 3 (default)
# blaslt: 3 (default)
# rocblas: others
# rocblas: others
"VLLM_W8A8_BACKEND"
:
lambda
:
int
(
os
.
getenv
(
"VLLM_W8A8_BACKEND"
,
"
3
"
)),
"VLLM_W8A8_BACKEND"
:
lambda
:
int
(
os
.
getenv
(
"VLLM_W8A8_BACKEND"
,
"
1
"
)),
}
}
# --8<-- [end:env-vars-definition]
# --8<-- [end:env-vars-definition]
...
...
vllm/model_executor/layers/fused_moe/layer.py
View file @
3eccb64e
...
@@ -664,7 +664,7 @@ class FusedMoE(CustomOp):
...
@@ -664,7 +664,7 @@ class FusedMoE(CustomOp):
if
quant_config
is
None
:
if
quant_config
is
None
:
# Not considering quant for now, temporarily
# Not considering quant for now, temporarily
self
.
use_nn_moe
=
int
(
os
.
environ
.
get
(
'MOE_NN'
,
1
))
==
1
self
.
use_nn_moe
=
int
(
os
.
environ
.
get
(
'MOE_NN'
,
0
))
==
1
else
:
else
:
self
.
use_nn_moe
=
False
self
.
use_nn_moe
=
False
...
...
vllm/model_executor/model_loader/utils.py
View file @
3eccb64e
...
@@ -209,8 +209,8 @@ def _get_model_architecture(model_config: ModelConfig) -> tuple[type[nn.Module],
...
@@ -209,8 +209,8 @@ def _get_model_architecture(model_config: ModelConfig) -> tuple[type[nn.Module],
os
.
environ
[
'VLLM_USE_LIGHTOP_MOE_ALIGN'
]
=
'1'
os
.
environ
[
'VLLM_USE_LIGHTOP_MOE_ALIGN'
]
=
'1'
if
not
envs
.
is_set
(
"VLLM_USE_LIGHTOP_MOE_SUM"
):
if
not
envs
.
is_set
(
"VLLM_USE_LIGHTOP_MOE_SUM"
):
os
.
environ
[
'VLLM_USE_LIGHTOP_MOE_SUM'
]
=
'1'
os
.
environ
[
'VLLM_USE_LIGHTOP_MOE_SUM'
]
=
'1'
if
not
envs
.
is_set
(
"VLLM_USE_FUSE_SILU_AND_MUL"
):
#
if not envs.is_set("VLLM_USE_FUSE_SILU_AND_MUL"):
os
.
environ
[
'VLLM_USE_FUSE_SILU_AND_MUL'
]
=
'1'
#
os.environ['VLLM_USE_FUSE_SILU_AND_MUL'] = '1'
if
not
envs
.
is_set
(
"VLLM_USE_OPT_RESHAPE_AND_CACHE"
):
if
not
envs
.
is_set
(
"VLLM_USE_OPT_RESHAPE_AND_CACHE"
):
os
.
environ
[
'VLLM_USE_OPT_RESHAPE_AND_CACHE'
]
=
'1'
os
.
environ
[
'VLLM_USE_OPT_RESHAPE_AND_CACHE'
]
=
'1'
...
@@ -241,8 +241,8 @@ def _get_model_architecture(model_config: ModelConfig) -> tuple[type[nn.Module],
...
@@ -241,8 +241,8 @@ def _get_model_architecture(model_config: ModelConfig) -> tuple[type[nn.Module],
os
.
environ
[
'VLLM_USE_LIGHTOP_MOE_ALIGN'
]
=
'1'
os
.
environ
[
'VLLM_USE_LIGHTOP_MOE_ALIGN'
]
=
'1'
if
not
envs
.
is_set
(
"VLLM_USE_LIGHTOP_MOE_SUM"
):
if
not
envs
.
is_set
(
"VLLM_USE_LIGHTOP_MOE_SUM"
):
os
.
environ
[
'VLLM_USE_LIGHTOP_MOE_SUM'
]
=
'1'
os
.
environ
[
'VLLM_USE_LIGHTOP_MOE_SUM'
]
=
'1'
if
not
envs
.
is_set
(
"VLLM_USE_FUSE_SILU_AND_MUL"
):
#
if not envs.is_set("VLLM_USE_FUSE_SILU_AND_MUL"):
os
.
environ
[
'VLLM_USE_FUSE_SILU_AND_MUL'
]
=
'1'
#
os.environ['VLLM_USE_FUSE_SILU_AND_MUL'] = '1'
if
not
envs
.
is_set
(
"VLLM_USE_OPT_RESHAPE_AND_CACHE"
):
if
not
envs
.
is_set
(
"VLLM_USE_OPT_RESHAPE_AND_CACHE"
):
os
.
environ
[
'VLLM_USE_OPT_RESHAPE_AND_CACHE'
]
=
'1'
os
.
environ
[
'VLLM_USE_OPT_RESHAPE_AND_CACHE'
]
=
'1'
...
...
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