nmn 0.1.2__tar.gz → 0.1.4__tar.gz
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.
- {nmn-0.1.2 → nmn-0.1.4}/PKG-INFO +2 -2
- {nmn-0.1.2 → nmn-0.1.4}/README.md +1 -1
- {nmn-0.1.2 → nmn-0.1.4}/pyproject.toml +1 -1
- nmn-0.1.4/src/nmn/nnx/examples/language/mingpt.py +1650 -0
- nmn-0.1.4/src/nmn/nnx/examples/vision/cnn_cifar.py +1769 -0
- {nmn-0.1.2 → nmn-0.1.4}/src/nmn/nnx/nmn.py +1 -1
- nmn-0.1.4/src/nmn/nnx/yatattention.py +764 -0
- {nmn-0.1.2 → nmn-0.1.4}/src/nmn/nnx/yatconv.py +22 -2
- {nmn-0.1.2 → nmn-0.1.4}/src/nmn/torch/nmn.py +2 -1
- {nmn-0.1.2 → nmn-0.1.4}/.github/workflows/publish.yml +0 -0
- {nmn-0.1.2 → nmn-0.1.4}/.gitignore +0 -0
- {nmn-0.1.2 → nmn-0.1.4}/LICENSE +0 -0
- {nmn-0.1.2 → nmn-0.1.4}/MANIFEST.in +0 -0
- {nmn-0.1.2 → nmn-0.1.4}/PUBLISH.md +0 -0
- {nmn-0.1.2 → nmn-0.1.4}/hatch.toml +0 -0
- {nmn-0.1.2 → nmn-0.1.4}/src/nmn/__init__.py +0 -0
- {nmn-0.1.2 → nmn-0.1.4}/src/nmn/keras/nmn.py +0 -0
- {nmn-0.1.2 → nmn-0.1.4}/src/nmn/linen/nmn.py +0 -0
- {nmn-0.1.2 → nmn-0.1.4}/src/nmn/tf/nmn.py +0 -0
{nmn-0.1.2 → nmn-0.1.4}/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: nmn
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.4
|
4
4
|
Summary: a neuron that matter
|
5
5
|
Project-URL: Homepage, https://github.com/mlnomadpy/nmn
|
6
6
|
Project-URL: Bug Tracker, https://github.com/mlnomadpy/my_package/issues
|
@@ -34,7 +34,7 @@ Not the neurons we want, but the neurons we need
|
|
34
34
|
|
35
35
|
Yat-Product:
|
36
36
|
$$
|
37
|
-
ⵟ(\mathbf{w},\mathbf{x}) := \frac{\langle \mathbf{w}, \mathbf{x} \rangle^2}{\|\mathbf{w} - \mathbf{x}\|^2 + \epsilon} = \frac{ \|\mathbf{x}\|^2 \|\mathbf{w}\|^2 \cos^2 \theta}{\|\mathbf{w}\|^2 - 2\mathbf{w}^\top\mathbf{x} + \|\mathbf{x}\|^2 + \epsilon} = \frac{ \|\mathbf{x}\|^2 \|\mathbf{w}\|^2 \cos^2 \theta}{((\mathbf{x}-\mathbf{w})\cdot(\mathbf{x}-\mathbf{w})) + \epsilon}.
|
37
|
+
ⵟ(\mathbf{w},\mathbf{x}) := \frac{\langle \mathbf{w}, \mathbf{x} \rangle^2}{\|\mathbf{w} - \mathbf{x}\|^2 + \epsilon} = \frac{ \|\mathbf{x}\|^2 \|\mathbf{w}\|^2 \cos^2 \theta}{\|\mathbf{w}\|^2 - 2\mathbf{w}^\top\mathbf{x} + \|\mathbf{x}\|^2 + \epsilon} = \frac{ \|\mathbf{x}\|^2 \|\mathbf{w}\|^2 \cos^2 \theta}{((\mathbf{x}-\mathbf{w})\cdot(\mathbf{x}-\mathbf{w}))^2 + \epsilon}.
|
38
38
|
$$
|
39
39
|
|
40
40
|
**Explanation:**
|
@@ -20,7 +20,7 @@ Not the neurons we want, but the neurons we need
|
|
20
20
|
|
21
21
|
Yat-Product:
|
22
22
|
$$
|
23
|
-
ⵟ(\mathbf{w},\mathbf{x}) := \frac{\langle \mathbf{w}, \mathbf{x} \rangle^2}{\|\mathbf{w} - \mathbf{x}\|^2 + \epsilon} = \frac{ \|\mathbf{x}\|^2 \|\mathbf{w}\|^2 \cos^2 \theta}{\|\mathbf{w}\|^2 - 2\mathbf{w}^\top\mathbf{x} + \|\mathbf{x}\|^2 + \epsilon} = \frac{ \|\mathbf{x}\|^2 \|\mathbf{w}\|^2 \cos^2 \theta}{((\mathbf{x}-\mathbf{w})\cdot(\mathbf{x}-\mathbf{w})) + \epsilon}.
|
23
|
+
ⵟ(\mathbf{w},\mathbf{x}) := \frac{\langle \mathbf{w}, \mathbf{x} \rangle^2}{\|\mathbf{w} - \mathbf{x}\|^2 + \epsilon} = \frac{ \|\mathbf{x}\|^2 \|\mathbf{w}\|^2 \cos^2 \theta}{\|\mathbf{w}\|^2 - 2\mathbf{w}^\top\mathbf{x} + \|\mathbf{x}\|^2 + \epsilon} = \frac{ \|\mathbf{x}\|^2 \|\mathbf{w}\|^2 \cos^2 \theta}{((\mathbf{x}-\mathbf{w})\cdot(\mathbf{x}-\mathbf{w}))^2 + \epsilon}.
|
24
24
|
$$
|
25
25
|
|
26
26
|
**Explanation:**
|