Update model_hf.py
Browse files- 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)
|