AbstractIntegratedModule 0.4.6__tar.gz → 0.5.0__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.5.0/AbstractIntegratedModule.cp313-win_amd64.pyd +0 -0
- {abstractintegratedmodule-0.4.6 → abstractintegratedmodule-0.5.0}/AbstractIntegratedModule.cpython-310-aarch64-linux-gnu.so +0 -0
- {abstractintegratedmodule-0.4.6 → abstractintegratedmodule-0.5.0}/AbstractIntegratedModule.cpython-312-x86_64-linux-gnu.so +0 -0
- {abstractintegratedmodule-0.4.6 → abstractintegratedmodule-0.5.0/AbstractIntegratedModule.egg-info}/PKG-INFO +3 -3
- {abstractintegratedmodule-0.4.6 → abstractintegratedmodule-0.5.0}/AbstractIntegratedModule.py +19 -12
- {abstractintegratedmodule-0.4.6/AbstractIntegratedModule.egg-info → abstractintegratedmodule-0.5.0}/PKG-INFO +3 -3
- {abstractintegratedmodule-0.4.6 → abstractintegratedmodule-0.5.0}/README.md +1 -1
- {abstractintegratedmodule-0.4.6 → abstractintegratedmodule-0.5.0}/setup.py +6 -3
- abstractintegratedmodule-0.4.6/AbstractIntegratedModule.cp313-win_amd64.pyd +0 -0
- {abstractintegratedmodule-0.4.6 → abstractintegratedmodule-0.5.0}/AbstractIntegratedModule.egg-info/SOURCES.txt +0 -0
- {abstractintegratedmodule-0.4.6 → abstractintegratedmodule-0.5.0}/AbstractIntegratedModule.egg-info/dependency_links.txt +0 -0
- {abstractintegratedmodule-0.4.6 → abstractintegratedmodule-0.5.0}/AbstractIntegratedModule.egg-info/requires.txt +0 -0
- {abstractintegratedmodule-0.4.6 → abstractintegratedmodule-0.5.0}/AbstractIntegratedModule.egg-info/top_level.txt +0 -0
- {abstractintegratedmodule-0.4.6 → abstractintegratedmodule-0.5.0}/MANIFEST.in +0 -0
- {abstractintegratedmodule-0.4.6 → abstractintegratedmodule-0.5.0}/pyproject.toml +0 -0
- {abstractintegratedmodule-0.4.6 → abstractintegratedmodule-0.5.0}/setup.cfg +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: AbstractIntegratedModule
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary: Framework for Advanced Integrated Non-LLM AI Module library - Backend Framework
|
|
3
|
+
Version: 0.5.0
|
|
4
|
+
Summary: Framework for Advanced Integrated Non-LLM AI Module library - Backend Framework For Non-LLM AI Agent
|
|
5
5
|
Author: Micro-Novelty
|
|
6
6
|
Author-email: hernikpuspita5@gmail.com
|
|
7
7
|
License: MIT
|
|
@@ -42,7 +42,7 @@ https://github.com/Micro-Novelty/IntegratedPipeline-Specialized-Non-LLM-AI-Agent
|
|
|
42
42
|
#### Note: The README here you are reading is a direct copy from my README Repository, to download the necessary files, you can visit my Repository with the provided link above.
|
|
43
43
|
|
|
44
44
|
### Library Short Description:
|
|
45
|
-
- Development Stage: Beta, 0.
|
|
45
|
+
- Development Stage: Beta, 0.5.0.
|
|
46
46
|
- Maintainer: Micro-Novelty.
|
|
47
47
|
- library Source-Code is Open-sourced on github.
|
|
48
48
|
- Purpose: Specifically Designed for providing Non-LLM AI Agent Framework for edge Devices, Optimized for ARM64 architecture.
|
{abstractintegratedmodule-0.4.6 → abstractintegratedmodule-0.5.0}/AbstractIntegratedModule.py
RENAMED
|
@@ -6624,7 +6624,8 @@ class AgentDistributedInference:
|
|
|
6624
6624
|
return response_probs
|
|
6625
6625
|
except Exception as e:
|
|
6626
6626
|
print(f"[-] Error in peer request_processing: {e}")
|
|
6627
|
-
|
|
6627
|
+
traceback.print_exc()
|
|
6628
|
+
return probs
|
|
6628
6629
|
|
|
6629
6630
|
|
|
6630
6631
|
# ============ REQUEST HANDLERS ============
|
|
@@ -9033,23 +9034,31 @@ class IntegratedPipeline:
|
|
|
9033
9034
|
|
|
9034
9035
|
for i in range(batch_size):
|
|
9035
9036
|
mlp_target = target_preds[i]
|
|
9037
|
+
|
|
9038
|
+
if attn_weights is None:
|
|
9039
|
+
anisotropy = self.anisotropy_measurement(mlp_target)
|
|
9040
|
+
else:
|
|
9041
|
+
anisotropy = self.anisotropy_measurement(attn_weights[i])
|
|
9036
9042
|
if attn_weights is not None and i < len(attn_weights):
|
|
9037
9043
|
attn = attn_weights[i]
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
boost = 0.5 + attn_quality
|
|
9044
|
+
|
|
9045
|
+
score_quality = np.std(attn) if attn.size > 0 else self.confidence_threshold
|
|
9046
|
+
abstract_score = self.confidence_threshold + score_quality * anisotropy
|
|
9042
9047
|
|
|
9043
9048
|
else:
|
|
9044
|
-
|
|
9045
|
-
|
|
9049
|
+
if attn_weights is not None:
|
|
9050
|
+
score_quality = 1.0 / (1.0 + np.exp(-attn_weights[i]))
|
|
9051
|
+
else:
|
|
9052
|
+
score_quality = 1.0 / (1.0 + np.exp(-mlp_target))
|
|
9046
9053
|
|
|
9047
|
-
|
|
9054
|
+
abstract_score = (1.0 - score_quality) + eps
|
|
9055
|
+
|
|
9056
|
+
self.temperature = (1.0 - abstract_score) + score_quality * anisotropy
|
|
9048
9057
|
if isinstance(self.temperature, np.ndarray):
|
|
9049
9058
|
self.temperature = np.clip(np.mean(self.temperature), 1e-5, 5.0)
|
|
9050
9059
|
|
|
9051
9060
|
try:
|
|
9052
|
-
calibrated[i, mlp_target] = min(calibrated[i, mlp_target] * (1.5 *
|
|
9061
|
+
calibrated[i, mlp_target] = min(calibrated[i, mlp_target] * (1.5 * (1.0 - abstract_score)), 0.95)
|
|
9053
9062
|
except:
|
|
9054
9063
|
return calibrated
|
|
9055
9064
|
|
|
@@ -11875,7 +11884,6 @@ class PipelinePredictionManager:
|
|
|
11875
11884
|
|
|
11876
11885
|
except Exception as e:
|
|
11877
11886
|
print(f"[=] Error during prediction: {e}")
|
|
11878
|
-
traceback.print_exc()
|
|
11879
11887
|
results = []
|
|
11880
11888
|
|
|
11881
11889
|
return results
|
|
@@ -12583,7 +12591,7 @@ class PipelinePredictionManager:
|
|
|
12583
12591
|
results[0]['confidence'] = confidence
|
|
12584
12592
|
results[0]['index'] = final_idx
|
|
12585
12593
|
except Exception as e:
|
|
12586
|
-
print(f'[!] Error initiating second prediction in
|
|
12594
|
+
print(f'[!] Error initiating second prediction in Advanced prediction method: {e} ')
|
|
12587
12595
|
|
|
12588
12596
|
results[0]['sec_predicted'] = chosen_label
|
|
12589
12597
|
results[0]['sec_confidence'] = confidence
|
|
@@ -12593,7 +12601,6 @@ class PipelinePredictionManager:
|
|
|
12593
12601
|
|
|
12594
12602
|
except Exception as e:
|
|
12595
12603
|
print(f"[!] Error in advanced prediction method: {e}, Initiating regular prediction method...")
|
|
12596
|
-
traceback.print_exc()
|
|
12597
12604
|
try:
|
|
12598
12605
|
results = self.regular_prediction_method(titles, label_map, rules, X=X, y=y, show_proba=False, top_k=3, batch_size=2,use_transformer=True)
|
|
12599
12606
|
chosen_label = results[0]['predicted']
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: AbstractIntegratedModule
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary: Framework for Advanced Integrated Non-LLM AI Module library - Backend Framework
|
|
3
|
+
Version: 0.5.0
|
|
4
|
+
Summary: Framework for Advanced Integrated Non-LLM AI Module library - Backend Framework For Non-LLM AI Agent
|
|
5
5
|
Author: Micro-Novelty
|
|
6
6
|
Author-email: hernikpuspita5@gmail.com
|
|
7
7
|
License: MIT
|
|
@@ -42,7 +42,7 @@ https://github.com/Micro-Novelty/IntegratedPipeline-Specialized-Non-LLM-AI-Agent
|
|
|
42
42
|
#### Note: The README here you are reading is a direct copy from my README Repository, to download the necessary files, you can visit my Repository with the provided link above.
|
|
43
43
|
|
|
44
44
|
### Library Short Description:
|
|
45
|
-
- Development Stage: Beta, 0.
|
|
45
|
+
- Development Stage: Beta, 0.5.0.
|
|
46
46
|
- Maintainer: Micro-Novelty.
|
|
47
47
|
- library Source-Code is Open-sourced on github.
|
|
48
48
|
- Purpose: Specifically Designed for providing Non-LLM AI Agent Framework for edge Devices, Optimized for ARM64 architecture.
|
|
@@ -10,7 +10,7 @@ https://github.com/Micro-Novelty/IntegratedPipeline-Specialized-Non-LLM-AI-Agent
|
|
|
10
10
|
#### Note: The README here you are reading is a direct copy from my README Repository, to download the necessary files, you can visit my Repository with the provided link above.
|
|
11
11
|
|
|
12
12
|
### Library Short Description:
|
|
13
|
-
- Development Stage: Beta, 0.
|
|
13
|
+
- Development Stage: Beta, 0.5.0.
|
|
14
14
|
- Maintainer: Micro-Novelty.
|
|
15
15
|
- library Source-Code is Open-sourced on github.
|
|
16
16
|
- Purpose: Specifically Designed for providing Non-LLM AI Agent Framework for edge Devices, Optimized for ARM64 architecture.
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
# setup.py
|
|
2
2
|
from setuptools import setup
|
|
3
3
|
from setuptools.dist import Distribution
|
|
4
|
+
import os
|
|
4
5
|
|
|
5
6
|
class BinaryDistribution(Distribution):
|
|
6
7
|
def has_ext_modules(self):
|
|
7
8
|
return True
|
|
9
|
+
with open("README.md", encoding="utf-8") as f:
|
|
10
|
+
long_description = f.read() # This reads the actual text inside the file
|
|
8
11
|
|
|
9
12
|
setup(
|
|
10
13
|
name="AbstractIntegratedModule",
|
|
11
|
-
version="0.
|
|
12
|
-
description="Framework for Advanced Integrated Non-LLM AI Module library - Backend Framework
|
|
13
|
-
long_description=
|
|
14
|
+
version="0.5.0",
|
|
15
|
+
description="Framework for Advanced Integrated Non-LLM AI Module library - Backend Framework For Non-LLM AI Agent",
|
|
16
|
+
long_description=long_description,
|
|
14
17
|
long_description_content_type="text/markdown",
|
|
15
18
|
author="Micro-Novelty",
|
|
16
19
|
author_email="hernikpuspita5@gmail.com",
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|