pseudotensor
commited on
Commit
•
1ad19a2
1
Parent(s):
4694579
Update modelling_RW.py
Browse files- modelling_RW.py +1 -0
modelling_RW.py
CHANGED
@@ -103,6 +103,7 @@ class RotaryEmbedding(torch.nn.Module):
|
|
103 |
self.sin_cached = self.sin_cached.type(dtype)
|
104 |
|
105 |
return self.cos_cached, self.sin_cached
|
|
|
106 |
|
107 |
def forward(self, q, k):
|
108 |
batch, seq_len, head_dim = q.shape
|
|
|
103 |
self.sin_cached = self.sin_cached.type(dtype)
|
104 |
|
105 |
return self.cos_cached, self.sin_cached
|
106 |
+
return self.cos_cached, self.sin_cached
|
107 |
|
108 |
def forward(self, q, k):
|
109 |
batch, seq_len, head_dim = q.shape
|