Open poo0054 opened 6 months ago
my gpu is AMD 6600xt system : windows10
This text is translated into English using DeepL translation. I don't know if this will solve the problem because the version of torch is different from my environment, but on my environment, rewriting the second line from the end of the error code, the following part, worked on my environment.
Before rewriting.
scores = scores.masked_fill(
mask, torch.tensor(torch.finfo(scores.dtype).min)
) # (bs, n_heads, q_length, k_length)
After rewriting.
scores[mask]=torch.tensor(torch.finfo(scores.dtype).min)
I'm sorry if my explanation is not clear.
error:
version
I'm a newbie and I don't know what to do now. I checked all the documentation online and couldn't find what to do. Is this a bug or a problem with my device?
But my code below does not report any errors.:
print: