[Mypy] Fix typing for R/S models (#54157)
Signed-off-by: Taneem Ibrahim <taneem.ibrahim@gmail.com>
This commit is contained in:
@@ -248,6 +248,7 @@ class Siglip2Attention(nn.Module):
|
||||
values = values.view(seq_length, self.num_heads_per_partition, self.head_dim)
|
||||
|
||||
if self.use_rope:
|
||||
assert position_embeddings is not None
|
||||
cos, sin = position_embeddings
|
||||
queries, keys = apply_rotary_pos_emb(
|
||||
queries.unsqueeze(0),
|
||||
|
||||
Reference in New Issue
Block a user