[MM] Pass prefix parameter to MMEncoderAttention (#33674)
Signed-off-by: shen-shanshan <467638484@qq.com>
This commit is contained in:
@@ -220,7 +220,12 @@ class PerceptionEncoderVisionAttention(nn.Module):
|
||||
prefix=f"{prefix}.out_proj",
|
||||
disable_tp=use_data_parallel,
|
||||
)
|
||||
self.attn = MMEncoderAttention(self.num_heads, self.head_dim, self.scale)
|
||||
self.attn = MMEncoderAttention(
|
||||
self.num_heads,
|
||||
self.head_dim,
|
||||
self.scale,
|
||||
prefix=prefix,
|
||||
)
|
||||
self.rope = PerceptionEncoderRope2D(
|
||||
dim=self.head_dim,
|
||||
max_grid_height=max_grid_height,
|
||||
|
||||
Reference in New Issue
Block a user