Update modeling_tiny_mixtral.py
Browse files- modeling_tiny_mixtral.py +1 -1
modeling_tiny_mixtral.py
CHANGED
|
@@ -188,7 +188,7 @@ def apply_rotary_embeddings(x:torch.Tensor,freq_complex:torch.Tensor,device:str)
|
|
| 188 |
x_out=torch.view_as_real(x_rotated) #(N,seq_len,h,head_dim/2,2)
|
| 189 |
x_out=x_out.reshape(*x.shape)
|
| 190 |
|
| 191 |
-
return x_out.type_as(x).to(device)
|
| 192 |
|
| 193 |
|
| 194 |
|
|
|
|
| 188 |
x_out=torch.view_as_real(x_rotated) #(N,seq_len,h,head_dim/2,2)
|
| 189 |
x_out=x_out.reshape(*x.shape)
|
| 190 |
|
| 191 |
+
return x_out.type_as(x).to(x.device)
|
| 192 |
|
| 193 |
|
| 194 |
|