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
f9170209
Unverified
Commit
f9170209
authored
Mar 05, 2026
by
Xin Yang
Committed by
GitHub
Mar 05, 2026
Browse files
[Perf] Optimize FusedMoEModularKernel output tensor using torch.empty (#35794)
Signed-off-by:
Xin Yang
<
xyangx@amazon.com
>
parent
86483ca7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/model_executor/layers/fused_moe/modular_kernel.py
vllm/model_executor/layers/fused_moe/modular_kernel.py
+1
-1
No files found.
vllm/model_executor/layers/fused_moe/modular_kernel.py
View file @
f9170209
...
@@ -1519,7 +1519,7 @@ class FusedMoEKernelModularImpl:
...
@@ -1519,7 +1519,7 @@ class FusedMoEKernelModularImpl:
assert
not
disable_inplace
()
assert
not
disable_inplace
()
output
=
hidden_states
output
=
hidden_states
else
:
else
:
output
=
torch
.
zeros
_like
(
hidden_states
)
output
=
torch
.
empty
_like
(
hidden_states
)
local_num_experts
=
w1
.
size
(
0
)
local_num_experts
=
w1
.
size
(
0
)
if
global_num_experts
==
-
1
:
if
global_num_experts
==
-
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