Marmik commited on
Commit
45cc74e
·
verified ·
1 Parent(s): c44a1f5

Update modeling_tiny_mixtral.py

Browse files
Files changed (1) hide show
  1. 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