Update rms_layernorm.py
This commit is contained in:
parent
bf97546a16
commit
eddf0c46f4
1 changed files with 2 additions and 2 deletions
|
|
@ -146,8 +146,8 @@ class Fast_RMS_Layernorm(torch.autograd.Function):
|
|||
num_warps : int
|
||||
BLOCK_SIZE, num_warps = calculate_settings(n_cols)
|
||||
|
||||
Y = torch.empty((n_rows, n_cols), dtype = X.dtype, device = "cuda:0")
|
||||
r = torch.empty(n_rows, dtype = torch.float32, device = "cuda:0")
|
||||
Y : torch.Tensor = torch.empty(X.shape, dtype = X.dtype, device = "cuda:0")
|
||||
r : torch.Tensor = torch.empty(n_rows, dtype = torch.float32, device = "cuda:0")
|
||||
|
||||
if not gemma:
|
||||
_rms_layernorm_forward[(n_rows,)](
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue