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
e3d1dfdd
Commit
e3d1dfdd
authored
Nov 21, 2025
by
zhuwenwen
Browse files
update fill + moe align interface of lightop
parent
971a47d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
vllm/model_executor/layers/fused_moe/moe_align_block_size.py
vllm/model_executor/layers/fused_moe/moe_align_block_size.py
+4
-2
No files found.
vllm/model_executor/layers/fused_moe/moe_align_block_size.py
View file @
e3d1dfdd
...
@@ -240,7 +240,8 @@ def moe_align_block_size(
...
@@ -240,7 +240,8 @@ def moe_align_block_size(
expert_ids
,
num_tokens_post_pad
,
expert_ids
,
num_tokens_post_pad
,
expert_map
=
expert_map
,
expert_map
=
expert_map
,
expert_mask
=
expert_mask
,
expert_mask
=
expert_mask
,
num_local_tokens
=
None
)
num_local_tokens
=
None
,
is_fuse_fill
=
False
if
not
envs
.
VLLM_USE_LIGHTOP_FILL_MOE_ALIGN
else
True
)
else
:
else
:
if
envs
.
VLLM_USE_LIGHTOP_MOE_ALIGN
:
if
envs
.
VLLM_USE_LIGHTOP_MOE_ALIGN
:
from
lightop
import
op
as
op
from
lightop
import
op
as
op
...
@@ -248,7 +249,8 @@ def moe_align_block_size(
...
@@ -248,7 +249,8 @@ def moe_align_block_size(
expert_ids
,
num_tokens_post_pad
,
expert_ids
,
num_tokens_post_pad
,
expert_map
=
None
,
expert_map
=
None
,
expert_mask
=
None
,
expert_mask
=
None
,
num_local_tokens
=
None
)
num_local_tokens
=
None
,
is_fuse_fill
=
False
if
not
envs
.
VLLM_USE_LIGHTOP_FILL_MOE_ALIGN
else
True
)
else
:
else
:
ops
.
moe_align_block_size
(
topk_ids
,
num_experts
,
block_size
,
sorted_ids
,
ops
.
moe_align_block_size
(
topk_ids
,
num_experts
,
block_size
,
sorted_ids
,
expert_ids
,
num_tokens_post_pad
)
expert_ids
,
num_tokens_post_pad
)
...
...
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