Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/compile/passes/test_fusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ def __init__(self, num_v_heads: int, head_v_dim: int, tp_size: int = 1):
self.head_v_dim = head_v_dim
self.tp_size = tp_size

from vllm.model_executor.layers.mamba.gdn_linear_attn import (
from vllm.model_executor.layers.mamba.gdn.base import (
GatedDeltaNetAttention,
)

Expand Down
7 changes: 5 additions & 2 deletions vllm/compilation/passes/fusion/rocm_aiter_fusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,11 +560,14 @@ def __init__(self, config: VllmConfig) -> None:

# Discover (num_heads, head_dim) pairs for gated RMSNorm patterns
# from GatedDeltaNetAttention layers in static_forward_context.
from vllm.model_executor.layers.mamba.gdn_linear_attn import (
from vllm.model_executor.layers.mamba.gdn.base import (
GatedDeltaNetAttention,
)

gdn_layers = get_layers_from_vllm_config(config, GatedDeltaNetAttention)
gdn_layers = get_layers_from_vllm_config(
config,
GatedDeltaNetAttention, # type: ignore[type-abstract]
)
gated_norm_shapes: set[tuple[int, int]] = set()
for layer in gdn_layers.values():
gated_norm_shapes.add(
Expand Down
Loading