Sin2pi commited on
Commit
401ff59
·
verified ·
1 Parent(s): 1e519f6

Update model_hf.py

Browse files
Files changed (1) hide show
  1. model_hf.py +1 -1
model_hf.py CHANGED
@@ -394,7 +394,7 @@ class rotary(nn.Module):
394
  radius = radius[idx]
395
 
396
  radius = radius.unsqueeze(-1).expand(-1, freqs.shape[-1])
397
- radius = torch.sigmoid(radius)
398
  else:
399
  radius = torch.ones_like(freqs)
400
  freqs = torch.polar(radius, freqs)
 
394
  radius = radius[idx]
395
 
396
  radius = radius.unsqueeze(-1).expand(-1, freqs.shape[-1])
397
+ # radius = torch.sigmoid(radius)
398
  else:
399
  radius = torch.ones_like(freqs)
400
  freqs = torch.polar(radius, freqs)