Commit
•
5cd74f1
1
Parent(s):
3d256d0
Upload HyenaDNAForCausalLM
Browse files- modeling_hyena.py +1 -1
modeling_hyena.py
CHANGED
@@ -147,7 +147,7 @@ class HyenaFilter(nn.Module):
|
|
147 |
|
148 |
def filter(self, L, *args, **kwargs):
|
149 |
z, t = self.pos_emb(L)
|
150 |
-
h = self.implicit_filter(z)
|
151 |
h = self.modulation(t, h)
|
152 |
return h
|
153 |
|
|
|
147 |
|
148 |
def filter(self, L, *args, **kwargs):
|
149 |
z, t = self.pos_emb(L)
|
150 |
+
h = self.implicit_filter(z.to(dtype=self.implicit_filter[0].weight.dtype))
|
151 |
h = self.modulation(t, h)
|
152 |
return h
|
153 |
|