titans-pytorch 0.3.8__py3-none-any.whl → 0.3.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- titans_pytorch/memory_models.py +2 -1
- {titans_pytorch-0.3.8.dist-info → titans_pytorch-0.3.9.dist-info}/METADATA +1 -1
- {titans_pytorch-0.3.8.dist-info → titans_pytorch-0.3.9.dist-info}/RECORD +5 -5
- {titans_pytorch-0.3.8.dist-info → titans_pytorch-0.3.9.dist-info}/WHEEL +0 -0
- {titans_pytorch-0.3.8.dist-info → titans_pytorch-0.3.9.dist-info}/licenses/LICENSE +0 -0
titans_pytorch/memory_models.py
CHANGED
@@ -184,6 +184,7 @@ class MemorySwiGluMLP(Module):
|
|
184
184
|
]))
|
185
185
|
|
186
186
|
self.weights = ParameterList(weights)
|
187
|
+
self.norm = LayerNorm(dim)
|
187
188
|
|
188
189
|
def forward(self, x):
|
189
190
|
|
@@ -198,7 +199,7 @@ class MemorySwiGluMLP(Module):
|
|
198
199
|
|
199
200
|
x = x + residual
|
200
201
|
|
201
|
-
return x
|
202
|
+
return self.norm(x)
|
202
203
|
|
203
204
|
# improvised attention as memory module
|
204
205
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
titans_pytorch/__init__.py,sha256=AyEUlcXWpnqrvyeihRAXWIfQlzLA4NhBjOqQU4edL-4,297
|
2
2
|
titans_pytorch/associative_scan.py,sha256=esaLbukFlgvy2aqopsqBy6KEcZ64B3rsNhG8moKdPSc,5159
|
3
3
|
titans_pytorch/mac_transformer.py,sha256=5rO4GQxSyFWWEc3pc3xNyG0sK5EXE7MmxKI-_kEMl2M,24941
|
4
|
-
titans_pytorch/memory_models.py,sha256=
|
4
|
+
titans_pytorch/memory_models.py,sha256=wnH9i9kUSoVZhEWUlj8LpBSbB400L9kLt1zP8CO45QQ,5835
|
5
5
|
titans_pytorch/neural_memory.py,sha256=2Ffq5fob6_vJVUs1jIai3BJhfsfypKffJEb0QwRRdMk,27325
|
6
|
-
titans_pytorch-0.3.
|
7
|
-
titans_pytorch-0.3.
|
8
|
-
titans_pytorch-0.3.
|
9
|
-
titans_pytorch-0.3.
|
6
|
+
titans_pytorch-0.3.9.dist-info/METADATA,sha256=EUuuqHl8jPUPIG8m7xV5esN_2yDNaPdD-H8qFeDxWGo,6815
|
7
|
+
titans_pytorch-0.3.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
8
|
+
titans_pytorch-0.3.9.dist-info/licenses/LICENSE,sha256=1yCiA9b5nhslTavxPjsQAO-wpOnwJR9-l8LTVi7GJuk,1066
|
9
|
+
titans_pytorch-0.3.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|