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
b4ac4fa0
Unverified
Commit
b4ac4fa0
authored
Apr 28, 2025
by
Lucia Fang
Committed by
GitHub
Apr 29, 2025
Browse files
[model] make llama4 compatible with pure dense layers (#17315)
Signed-off-by:
Lucia Fang
<
fanglu@fb.com
>
parent
e1360005
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/model_executor/models/llama4.py
vllm/model_executor/models/llama4.py
+2
-2
No files found.
vllm/model_executor/models/llama4.py
View file @
b4ac4fa0
...
...
@@ -273,8 +273,8 @@ class Llama4DecoderLayer(nn.Module):
cache_config
=
cache_config
,
prefix
=
f
"
{
prefix
}
.self_attn"
,
)
is_moe_layer
=
(
self
.
layer_idx
+
1
)
%
config
.
interleave_moe_layer_step
==
0
is_moe_layer
=
config
.
interleave_moe_layer_step
>
0
and
(
self
.
layer_idx
+
1
)
%
config
.
interleave_moe_layer_step
==
0
if
is_moe_layer
:
self
.
feed_forward
=
Llama4MoE
(
config
=
config
,
...
...
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