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
4adc66f6
Unverified
Commit
4adc66f6
authored
Jul 18, 2025
by
ElizaWszola
Committed by
GitHub
Jul 18, 2025
Browse files
[Bugfix] Allocate less memory in non-batched CUTLASS MoE (#21121)
Signed-off-by:
ElizaWszola
<
ewszola@redhat.com
>
parent
55ad6487
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/model_executor/layers/fused_moe/cutlass_moe.py
vllm/model_executor/layers/fused_moe/cutlass_moe.py
+2
-2
No files found.
vllm/model_executor/layers/fused_moe/cutlass_moe.py
View file @
4adc66f6
...
...
@@ -283,8 +283,8 @@ class CutlassExpertsFp8(mk.FusedMoEPermuteExpertsUnpermute):
(
N
//
2
))
output
=
(
self
.
max_experts_per_worker
,
padded_M
,
K
)
else
:
workspace1
=
(
M
*
topk
,
max
(
2
*
N
,
K
))
workspace2
=
(
M
*
topk
,
N
)
workspace1
=
(
M
*
topk
,
max
(
N
,
K
))
workspace2
=
(
M
*
topk
,
N
//
2
)
output
=
(
M
*
topk
,
K
)
return
(
workspace1
,
workspace2
,
output
,
self
.
out_dtype
if
self
.
out_dtype
is
not
None
else
a
.
dtype
)
...
...
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