AbstractIntegratedModule 0.2.0__tar.gz → 0.2.1__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.
- {abstractintegratedmodule-0.2.0 → abstractintegratedmodule-0.2.1}/AbstractIntegratedModule.egg-info/PKG-INFO +1 -1
- {abstractintegratedmodule-0.2.0 → abstractintegratedmodule-0.2.1}/AbstractIntegratedModule.py +1 -1
- {abstractintegratedmodule-0.2.0 → abstractintegratedmodule-0.2.1}/PKG-INFO +1 -1
- {abstractintegratedmodule-0.2.0 → abstractintegratedmodule-0.2.1}/setup.py +1 -1
- {abstractintegratedmodule-0.2.0 → abstractintegratedmodule-0.2.1}/AbstractIntegratedModule.egg-info/SOURCES.txt +0 -0
- {abstractintegratedmodule-0.2.0 → abstractintegratedmodule-0.2.1}/AbstractIntegratedModule.egg-info/dependency_links.txt +0 -0
- {abstractintegratedmodule-0.2.0 → abstractintegratedmodule-0.2.1}/AbstractIntegratedModule.egg-info/requires.txt +0 -0
- {abstractintegratedmodule-0.2.0 → abstractintegratedmodule-0.2.1}/AbstractIntegratedModule.egg-info/top_level.txt +0 -0
- {abstractintegratedmodule-0.2.0 → abstractintegratedmodule-0.2.1}/README.md +0 -0
- {abstractintegratedmodule-0.2.0 → abstractintegratedmodule-0.2.1}/pyproject.toml +0 -0
- {abstractintegratedmodule-0.2.0 → abstractintegratedmodule-0.2.1}/setup.cfg +0 -0
{abstractintegratedmodule-0.2.0 → abstractintegratedmodule-0.2.1}/AbstractIntegratedModule.py
RENAMED
|
@@ -941,7 +941,7 @@ class Transformer:
|
|
|
941
941
|
mask = (input_ids != pad_token_id).astype(np.float32)
|
|
942
942
|
return mask[:, np.newaxis, np.newaxis, :] # (B, 1, 1, T)
|
|
943
943
|
|
|
944
|
-
def clip_gradients(self, grads: dict, max_norm: float = 1.0) ->
|
|
944
|
+
def clip_gradients(self, grads: dict, max_norm: float = 1.0) -> Any:
|
|
945
945
|
# Compute global norm across all gradient tensors
|
|
946
946
|
total_norm = np.sqrt(sum(
|
|
947
947
|
np.sum(g ** 2) for g in grads.values()
|
|
@@ -3,7 +3,7 @@ from setuptools import setup
|
|
|
3
3
|
|
|
4
4
|
setup(
|
|
5
5
|
name="AbstractIntegratedModule",
|
|
6
|
-
version="0.2.
|
|
6
|
+
version="0.2.1",
|
|
7
7
|
description="Advanced Integrated Non-LLM AI Module - Backend Framework for Non-LLM AI Agent Framework",
|
|
8
8
|
long_description=open("README.md", encoding="utf-8").read(),
|
|
9
9
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|