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
813f81fb
Commit
813f81fb
authored
Nov 17, 2025
by
zhuwenwen
Browse files
update VLLM_USE_LIGHTOP_FILL_MOE_ALIGN
parent
70f1c878
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
vllm/envs.py
vllm/envs.py
+3
-3
vllm/model_executor/layers/fused_moe/moe_align_block_size.py
vllm/model_executor/layers/fused_moe/moe_align_block_size.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 @
813f81fb
...
...
@@ -179,7 +179,7 @@ if TYPE_CHECKING:
VLLM_SCHED_ENABLE_MINIMAL_INJECTION
:
bool
=
False
VLLM_USE_PD_SPLIT
:
bool
=
False
VLLM_USE_PP_SYNC
:
bool
=
False
VLLM_USE_LIGHTOP_FILL_MOE_ALIN
:
bool
=
False
VLLM_USE_LIGHTOP_FILL_MOE_ALI
G
N
:
bool
=
False
def
get_default_cache_root
():
return
os
.
getenv
(
...
...
@@ -1163,8 +1163,8 @@ environment_variables: dict[str, Callable[[], Any]] = {
lambda
:
(
os
.
environ
.
get
(
"VLLM_USE_PP_SYNC"
,
"False"
).
lower
()
in
(
"true"
,
"1"
)),
# vLLM will use lightop to fuse fill and moe align
"VLLM_USE_LIGHTOP_FILL_MOE_ALIN"
:
lambda
:
(
os
.
environ
.
get
(
"VLLM_USE_LIGHTOP_FILL_MOE_ALIN"
,
"False"
).
lower
()
in
"VLLM_USE_LIGHTOP_FILL_MOE_ALI
G
N"
:
lambda
:
(
os
.
environ
.
get
(
"VLLM_USE_LIGHTOP_FILL_MOE_ALI
G
N"
,
"False"
).
lower
()
in
(
"true"
,
"1"
)),
}
...
...
vllm/model_executor/layers/fused_moe/moe_align_block_size.py
View file @
813f81fb
...
...
@@ -216,7 +216,7 @@ def moe_align_block_size(
sorted_ids
=
torch
.
empty
((
max_num_tokens_padded
,
),
dtype
=
torch
.
int32
,
device
=
topk_ids
.
device
)
if
not
envs
.
VLLM_USE_LIGHTOP_FILL_MOE_ALIN
:
if
not
envs
.
VLLM_USE_LIGHTOP_FILL_MOE_ALI
G
N
:
sorted_ids
.
fill_
(
topk_ids
.
numel
())
max_num_m_blocks
=
triton
.
cdiv
(
max_num_tokens_padded
,
block_size
)
...
...
vllm/model_executor/model_loader/utils.py
View file @
813f81fb
...
...
@@ -251,8 +251,8 @@ def get_model_architecture(
os
.
environ
[
'VLLM_USE_LIGHTOP_MOE_SUM_MUL_ADD'
]
=
'1'
if
not
envs
.
is_set
(
"VLLM_USE_OPT_CAT"
):
os
.
environ
[
'VLLM_USE_OPT_CAT'
]
=
'1'
#
if not envs.is_set("VLLM_USE_LIGHTOP_FILL_MOE_ALIN"):
#
os.environ['VLLM_USE_LIGHTOP_FILL_MOE_ALIN'] = '1'
if
not
envs
.
is_set
(
"VLLM_USE_LIGHTOP_FILL_MOE_ALI
G
N"
):
os
.
environ
[
'VLLM_USE_LIGHTOP_FILL_MOE_ALI
G
N'
]
=
'1'
if
os
.
getenv
(
'GEMM_PAD'
)
!=
'1'
:
os
.
environ
[
'GEMM_PAD'
]
=
'0'
...
...
@@ -266,8 +266,8 @@ def get_model_architecture(
os
.
environ
[
'VLLM_USE_LIGHTOP_MOE_SUM_MUL_ADD'
]
=
'1'
if
not
envs
.
is_set
(
"VLLM_USE_OPT_CAT"
):
os
.
environ
[
'VLLM_USE_OPT_CAT'
]
=
'1'
#
if not envs.is_set("VLLM_USE_LIGHTOP_FILL_MOE_ALIN"):
#
os.environ['VLLM_USE_LIGHTOP_FILL_MOE_ALIN'] = '1'
if
not
envs
.
is_set
(
"VLLM_USE_LIGHTOP_FILL_MOE_ALI
G
N"
):
os
.
environ
[
'VLLM_USE_LIGHTOP_FILL_MOE_ALI
G
N'
]
=
'1'
# awq相关配置
try
:
...
...
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