We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 468433a commit e3d82aaCopy full SHA for e3d82aa
examples/models/llama2/rope.py
@@ -48,8 +48,8 @@ def precompute_freqs_cis(
48
)
49
t = torch.arange(end, device=freqs.device) # pyre-ignore
50
if use_scaled:
51
- freqs = apply_scaling(freqs)
52
- freqs = torch.outer(t, freqs).float() # pyre-ignorex x
+ freqs = apply_scaling(freqs) # pyre-ignore
+ freqs = torch.outer(t, freqs).float()
53
freqs_cos = torch.cos(freqs)
54
freqs_sin = torch.sin(freqs)
55
return freqs_cos, freqs_sin
0 commit comments