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
c588349c
"docs/vscode:/vscode.git/clone" did not exist on "9909726d2a30d834d97efd7bf1c4fc0e52fa48b5"
Commit
c588349c
authored
Apr 09, 2025
by
zhuwenwen
Browse files
update fused_moe.py
parent
277271f8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/model_executor/layers/fused_moe/fused_moe.py
vllm/model_executor/layers/fused_moe/fused_moe.py
+1
-1
No files found.
vllm/model_executor/layers/fused_moe/fused_moe.py
View file @
c588349c
...
...
@@ -1539,7 +1539,7 @@ def fused_experts_impl(hidden_states: torch.Tensor,
device
=
hidden_states
.
device
,
dtype
=
hidden_states
.
dtype
)
intermediate_cache1
=
cache13
[:
M
*
top_k_num
*
N
].
view
(
M
,
top_k_num
,
N
)
intermediate_cache3
=
cache13
[:
M
*
top_k_num
*
(
K
if
not
use_nn_moe
else
w2
.
shape
[
2
])].
view
(
M
,
top_k_num
,
K
)
intermediate_cache3
=
cache13
[:
M
*
top_k_num
*
(
K
if
not
use_nn_moe
else
w2
.
shape
[
2
])].
view
(
M
,
top_k_num
,
K
if
not
use_nn_moe
else
w2
.
shape
[
2
]
)
# This needs separate memory since it's used concurrently with cache1
intermediate_cache2
=
torch
.
empty
((
M
*
top_k_num
,
N
//
2
),
...
...
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