cogforge-engine 1.0.3__tar.gz → 1.0.5__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.
- {cogforge_engine-1.0.3 → cogforge_engine-1.0.5}/PKG-INFO +1 -1
- {cogforge_engine-1.0.3 → cogforge_engine-1.0.5}/cogforge/app.py +2 -1
- {cogforge_engine-1.0.3 → cogforge_engine-1.0.5}/pyproject.toml +1 -1
- {cogforge_engine-1.0.3 → cogforge_engine-1.0.5}/.github/workflows/release.yml +0 -0
- {cogforge_engine-1.0.3 → cogforge_engine-1.0.5}/.gitignore +0 -0
- {cogforge_engine-1.0.3 → cogforge_engine-1.0.5}/LICENSE +0 -0
- {cogforge_engine-1.0.3 → cogforge_engine-1.0.5}/README.md +0 -0
- {cogforge_engine-1.0.3 → cogforge_engine-1.0.5}/cogforge/__init__.py +0 -0
- {cogforge_engine-1.0.3 → cogforge_engine-1.0.5}/cogforge/backend.py +0 -0
- {cogforge_engine-1.0.3 → cogforge_engine-1.0.5}/cogforge/models.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cogforge-engine
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.5
|
|
4
4
|
Summary: A custom autograd engine and Transformer block built from scratch.
|
|
5
5
|
Project-URL: Homepage, https://github.com/avikmjd2/cogforge
|
|
6
6
|
Author-email: Avik Majumder <avikmjd2@gmail.com>
|
|
@@ -403,7 +403,8 @@ class Tensor:
|
|
|
403
403
|
def _backward():
|
|
404
404
|
g = p.reshape(N, -1)
|
|
405
405
|
g[rows, idx] -= 1.0
|
|
406
|
-
|
|
406
|
+
coef = numpy.float32(float(loss.grad) / N)
|
|
407
|
+
_iadd_scaled(scores.grad, g.reshape(scores.shape), coef)
|
|
407
408
|
loss._backwards = _backward
|
|
408
409
|
return loss
|
|
409
410
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|