[MM] Pass prefix parameter to MMEncoderAttention (#33674)
Signed-off-by: shen-shanshan <467638484@qq.com>
This commit is contained in:
@@ -163,7 +163,10 @@ class Idefics2VisionAttention(nn.Module):
|
||||
)
|
||||
# Use unified MMEncoderAttention with Flash Attention support
|
||||
self.attn = MMEncoderAttention(
|
||||
self.num_heads_per_partition, self.head_dim, self.scale
|
||||
self.num_heads_per_partition,
|
||||
self.head_dim,
|
||||
self.scale,
|
||||
prefix=prefix,
|
||||
)
|
||||
|
||||
def forward(
|
||||
|
||||
Reference in New Issue
Block a user