Closed seeyourcell closed 1 month ago
expanded_attn_mask = causal_4d_mask.masked_fill(expanded_attn_mask.bool(), torch.finfo(dtype).min) RuntimeError: The size of tensor a (3509) must match the size of tensor b (7017) at non-singleton dimension 3
Hello, I met the same problem, how do you solve it?
I meet the same question when I set use_flasg_attention_2=False
I use transformers==4.27.0 ,why has this error?
RuntimeError: The size of tensor a (3509) must match the size of tensor b (7017) at non-singleton dimension 3