Update cross_entropy_loss.py
This commit is contained in:
parent
f5f3d6794e
commit
6184f770e7
1 changed files with 2 additions and 2 deletions
|
|
@ -188,8 +188,8 @@ class Fast_CrossEntropyLoss(torch.autograd.Function):
|
|||
)
|
||||
else:
|
||||
# For small vocabs > 65336 like Gemma
|
||||
losses = torch.empty((n_rows, n_splits), dtype = torch.float32, device = "cuda")
|
||||
logsumexp = torch.empty((n_rows, n_splits), dtype = torch.float32, device = "cuda")
|
||||
losses = torch.empty((n_splits, n_rows), dtype = torch.float32, device = "cuda")
|
||||
logsumexp = torch.empty((n_splits, n_rows), dtype = torch.float32, device = "cuda")
|
||||
|
||||
_large_cross_entropy_forward[(n_rows, n_splits,)](
|
||||
logits, logits.stride(0),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue