We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fe447d commit ba1713aCopy full SHA for ba1713a
vllm/model_executor/models/llama4.py
@@ -273,8 +273,8 @@ def __init__(
273
cache_config=cache_config,
274
prefix=f"{prefix}.self_attn",
275
)
276
- is_moe_layer = (self.layer_idx +
277
- 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
278
if is_moe_layer:
279
self.feed_forward = Llama4MoE(
280
config=config,
0 commit comments