AbstractIntegratedModule 0.3.1__tar.gz → 0.3.3__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.
Files changed (16) hide show
  1. abstractintegratedmodule-0.3.3/AbstractIntegratedModule.cp313-win_amd64.pyd +0 -0
  2. {abstractintegratedmodule-0.3.1 → abstractintegratedmodule-0.3.3}/AbstractIntegratedModule.cpython-310-aarch64-linux-gnu.so +0 -0
  3. {abstractintegratedmodule-0.3.1 → abstractintegratedmodule-0.3.3}/AbstractIntegratedModule.cpython-312-x86_64-linux-gnu.so +0 -0
  4. {abstractintegratedmodule-0.3.1 → abstractintegratedmodule-0.3.3}/AbstractIntegratedModule.egg-info/PKG-INFO +52 -17
  5. {abstractintegratedmodule-0.3.1 → abstractintegratedmodule-0.3.3}/AbstractIntegratedModule.py +1179 -124
  6. abstractintegratedmodule-0.3.1/README.md → abstractintegratedmodule-0.3.3/PKG-INFO +1148 -1081
  7. abstractintegratedmodule-0.3.1/PKG-INFO → abstractintegratedmodule-0.3.3/README.md +1116 -1113
  8. {abstractintegratedmodule-0.3.1 → abstractintegratedmodule-0.3.3}/setup.py +1 -1
  9. abstractintegratedmodule-0.3.1/AbstractIntegratedModule.cp313-win_amd64.pyd +0 -0
  10. {abstractintegratedmodule-0.3.1 → abstractintegratedmodule-0.3.3}/AbstractIntegratedModule.egg-info/SOURCES.txt +0 -0
  11. {abstractintegratedmodule-0.3.1 → abstractintegratedmodule-0.3.3}/AbstractIntegratedModule.egg-info/dependency_links.txt +0 -0
  12. {abstractintegratedmodule-0.3.1 → abstractintegratedmodule-0.3.3}/AbstractIntegratedModule.egg-info/requires.txt +0 -0
  13. {abstractintegratedmodule-0.3.1 → abstractintegratedmodule-0.3.3}/AbstractIntegratedModule.egg-info/top_level.txt +0 -0
  14. {abstractintegratedmodule-0.3.1 → abstractintegratedmodule-0.3.3}/MANIFEST.in +0 -0
  15. {abstractintegratedmodule-0.3.1 → abstractintegratedmodule-0.3.3}/pyproject.toml +0 -0
  16. {abstractintegratedmodule-0.3.1 → abstractintegratedmodule-0.3.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: AbstractIntegratedModule
3
- Version: 0.3.1
3
+ Version: 0.3.3
4
4
  Summary: Framework for Advanced Integrated Non-LLM AI Module library - Backend Framework for Non-LLM AI Agent Framework
5
5
  Author: Micro-Novelty
6
6
  Author-email: hernikpuspita5@gmail.com
@@ -32,7 +32,9 @@ Dynamic: summary
32
32
 
33
33
  # [=] IntegratedPipeline-Specialized-AI-Agent-library
34
34
 
35
- [~] IntegratedPipeline is a standalone Specialized AI Agent Library for Non-LLL memory Augmented Agentic Framework orchestrator, Specifically designed to provide Agentic capability for any Autonomous Agentic Framework locally and Coordinatively that runs efficiently from consumer based machine to High-end embedded systems, where the AI Can directly and continously learn, with minimal and efficient compute, built-in augmented memory, Secure Peer-To-Peer (Multi-Agent) Coordination with security layers as an option, And Explainability capability based on proof from in it's internal metrics, reducing Black-Box condition necessary for reliability. Containing specialized MLP using Its Own specialized geometric Weight shaping (AWE) and Specialized efficient Transformer for Scarce Data with Alpha-based computation, specifically designed for low-amount samples environment, or Messy environments.
35
+ [~] Introduction:
36
+ - IntegratedPipeline is a standalone Specialized AI Agent Library for Non-LLL memory - Augmented Agentic Framework orchestrator, Specifically designed to provide Agentic capability for any Autonomous Agentic Framework locally and Coordinatively that runs efficiently from consumer based machine to High-end embedded systems, where the AI Can directly and continously learn, with minimal and efficient compute, built-in augmented memory, Secure Peer-To-Peer (Multi-Agent) Coordination with security layers as an option, And Explainability capability based on proof from in it's internal metrics, reducing Black-Box condition necessary for reliability.
37
+ - AbstractIntegratedModule Contains specialized MLP using Its Own specialized geometric Weight shaping (AWE), Specialized efficient Transformer and LSTM (Long-short term memory) architecture for Scarce Data with Alpha-based computation, specifically designed for low-amount samples environment, or Messy environments.
36
38
 
37
39
  #### Github Repo (if you want to know or contribute)
38
40
  https://github.com/Micro-Novelty/IntegratedPipeline-Specialized-Non-LLM-AI-Agent-Framework
@@ -40,7 +42,7 @@ https://github.com/Micro-Novelty/IntegratedPipeline-Specialized-Non-LLM-AI-Agent
40
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.
41
43
 
42
44
  ### Library Short Description:
43
- - Development Stage: Beta, 0.3.1.
45
+ - Development Stage: Beta, 0.3.3.
44
46
  - Maintainer: Micro-Novelty.
45
47
  - library Source-Code is Open-sourced on github.
46
48
  - Purpose: Specifically Designed for providing Non-LLM AI Agent Framework for edge Devices, Optimized for ARM64 architecture.
@@ -59,6 +61,7 @@ https://github.com/Micro-Novelty/IntegratedPipeline-Specialized-Non-LLM-AI-Agent
59
61
  - Proven Capabilities:
60
62
  - Proven Works on ARM64 Environment, Training and Prediction works efficient on Docker ARM64 environment with QEMU, good parallelizing behavior is guaranteed.
61
63
  - P2P Works efficiently in ARM64 Docker + QEMU, No conflicting socket and all prediction works efficiently.
64
+ - AWE setup Proven Efficient on Hard-uncontrolled dataset such as Activity Recognition from the given Database.
62
65
 
63
66
  -----
64
67
 
@@ -66,11 +69,26 @@ https://github.com/Micro-Novelty/IntegratedPipeline-Specialized-Non-LLM-AI-Agent
66
69
 
67
70
 
68
71
  ## [+] MANN Intro
69
- [=] Memory augmented Neural network (MANN) is a neural network architecture coupled with an external, dynamic memory module, allowing it to store, retrieve, and update information similarly to a computer's RAM. Unlike traditional networks that store knowledge only in weight parameters, MANNs excel at fast learning, long-term dependency handling, and episodic recall, In IntegratedPipeline, Its memory is stored in a custom database inside your local machine, then later used for memory retrieval, transfered to the AI Dictionary where it can finnaly recall its memory when input condition matched with memory.
72
+ [=] Memory augmented Neural network (MANN) is a neural network architecture coupled with an external, dynamic memory module, allowing it to store, retrieve, and update information similarly to a computer's RAM. Unlike traditional networks that store knowledge only in weight parameters, MANNs excel at fast learning, long-term dependency handling, and episodic recall, In IntegratedPipeline, Its memory is stored in a custom database inside your local machine, then later used for memory retrieval, transfered to the AI Dictionary where it can finnaly recall its memory when input condition matched with memory.
70
73
 
71
74
  ## [+] Abstract Weight Encoder (AWE) Intro
72
75
  [=] AWE is a specialized custom weight shaping or encoding method Specifically designed for MLP Architecture, using eigenvalue and spectral methods as base equations to calculate covariance inside a given input data, and shape the correct Weight from the given eigenvalue, AWE Works by processing input and then captures the necessary eigenvalue to shape a properly initialized Weight that aligns with input data complexity, With this approach, MLP training will be much more consistent and robust against noise.
73
76
 
77
+ ## [+] LSTM And Transformer Intro:
78
+ A. LSTMs (Long Short-Term Memory) and Transformers are foundational deep learning architectures built to process sequential data (like text or time series). While both handle the flow of time and context, they do so using completely different mechanisms.
79
+ - LSTM (Long Short-Term Memory):
80
+ - LSTMs are an advanced class of Recurrent Neural Networks (RNNs) introduced to solve the problem of traditional RNNs forgetting earlier data.
81
+ - How it works: LSTMs process data sequentially—one word or time-step at a time. They regulate information using "gates" (forget, input, and output) that determine what information from the sequence to keep or discard.
82
+ - Use Cases: Ideal for tasks with strictly continuous chronological data like time-series forecasting (e.g., stock market or weather prediction) or speech recognition.
83
+ - Limitations: Because they process data in a strict chain, it is difficult to parallelize training, making them slow and prone to forgetting long contexts.
84
+
85
+ B. Transformer:
86
+ Transformers are the modern standard for AI, introduced in 2017 with the famous "Attention Is All You Need" paper.
87
+ - How it works: Instead of reading sequences linearly, Transformers read the entire sequence all at once. They utilize a self-attention mechanism, which calculates how much "attention" or weight every part of the sequence should give to every other part, understanding the global context instantly.
88
+ - Use Cases: The backbone of Large Language Models (LLMs) like ChatGPT or BERT, making them perfect for machine translation, text generation, and summarization.
89
+ - Limitations: Transformers require massive amounts of training data and computing power to work effectively.
90
+
91
+
74
92
  [~] For a much In-Depth Explanation You can visit This repository to learn more about AWE and its performance results:
75
93
  - Link: https://github.com/Micro-Novelty/Specialized-MLP-for-noise-robustness
76
94
 
@@ -84,12 +102,14 @@ https://github.com/Micro-Novelty/IntegratedPipeline-Specialized-Non-LLM-AI-Agent
84
102
  2. Continously Learning behavior for an Agent:
85
103
  - different from LLM that is static and cannot improve beyond its given training condition, AI Agent using IntegratedPipeline has a dynamic, flexible continously learning behavior with conditional training algorithms included in the library that has both supervised and unsupervised learning present, The learned input and predicted Output will be stored in the database, allowing it to recall its memory during processing and find matching known prediction given if input matched with the stored input inside the database. this Continous learning behavior is efficient because its not relying on weights for memory, allowing flexible and predictable behavior inside a given environment.
86
104
 
87
- 3. Robust Specialized MLP and Transformer Architecture with ensemble weighting:
88
- - IntegratedPipeline has 2 Different type's of AI Architecture stacked together, and one architecture to weight their confidence and probability fairly to get the final prediction, Specialized MLP for Noise robustness And Specialized Transformer that used Alpha-based Computing algorithm for contextual reasoning, The reason why those Models complement and used together :
105
+ 3. Robust Specialized MLP, Transformer and LSTM Architecture with ensemble weighting architecture:
106
+ - IntegratedPipeline has 2 Different type's of AI Architecture stacked together, and one architecture to weight their confidence and probability fairly to get the final prediction, Specialized MLP for Noise robustness And Specialized Transformer that used Alpha-based Computing algorithm for contextual reasoning, LSTM architecture to provides proof-of-credibility over a certain output, acting as a support mechanism rather than Main orchestrator like MLP and Transformer. The reason why those Models complement and used together:
89
107
  - Specialized MLP Provides synchronous robust classification Against noise with its specialized Weight Encoder (AWE) to handle noise using eigenvalue based computing that is lightweight and efficient. This Method can't be replicated Inside Transformer FFN (Feed-forward-network) because of Transformer dynamic brute force computing where AWE-Based generated weight's get diluted over time by Transformer dynamic projection embedding, making AWE Generated weight causes inefficient inside Transformer dynamic FFN/QKV projection.
90
108
  - Specialized Transformer provides robust synchronous advanced contextual relationships, efficient data processing using Alpha based computing, The Transformer is tuned towards to be as flexible as possible to provide dynamic projection or fixed FFN projection training with minimal head's and dimension's to reduce computational power.
109
+ - LSTM doesn't act as a Main orchestrator, instead it Provides coherent Short-term memory for the Ensemble architecture, acting as a support mechanism to provides proof-of-credibility of a given answer from past previous context input, this allows flexible and achievable Aggreement between Transformer and MLP over a short period of time.
91
110
  - Ensemble weighting provides the model a much more robust classification best from both worlds perspective, weighting both MLP and Transformer confidence and probability, combined with Attention quality from the transformer to get the final prediction of an input if transformer is allowed and permitted to be in use.
92
111
 
112
+
93
113
  4. flexible and secure Peer-to-Peer Coordination (Multi-Agent):
94
114
  - IntegratedPipeline offers Peer to Peer communication capabilities asynchronously, Where IntegratedPipeline directly checks for other Peer presence directly to the local database present in the local computer or system (Synchronous prediction from peer previous data in the database), or externally, by using asynchronous request for initiating prediction, P2P is secured Using:
95
115
  - secure socket using user provided SSL CERT. on both client and server,
@@ -118,7 +138,8 @@ https://github.com/Micro-Novelty/IntegratedPipeline-Specialized-Non-LLM-AI-Agent
118
138
  [3.] Non-Representative data (Undersampled) : IntegratedPipeline Support's ambiguous data that come's from file with format such as CSV Format to extract title's and label's necessary to create automatic Dataset for Later use in Training, making it optimized for specific task's and easier dataset creation with lower overfitting rate for reliability.
119
139
 
120
140
  [=] Architectural-Overview
121
- <img width="1600" height="860" alt="WhatsApp Image 2026-05-09 at 16 13 41" src="https://github.com/user-attachments/assets/580722aa-bbd8-4148-a425-4bff01c06c47" />
141
+ <img width="1600" height="859" alt="New Arch" src="https://github.com/user-attachments/assets/a5db1ed2-9149-4635-8d95-d022ad6e8608" />
142
+ ---
122
143
  [=] Contextual meaning:
123
144
  1. - Sequence encoding is a machine learning technique that transforms a sequential input (like text, time-series data, or audio) into a compact, fixed-length numerical vector, often called a context vector
124
145
  2. - TF-IDF (Term Frequency-Inverse Document Frequency) is a numerical statistic used in machine learning and NLP to evaluate how important a word is to a document within a collection (corpus). It boosts rare words and penalizes common words (like "the", "and") by multiplying two metrics: how often a word appears in a document (TF) and the inverse frequency of the word across all documents (IDF).
@@ -316,7 +337,7 @@ A. [=] Computational performance results with Transformer included during Advanc
316
337
  - Repeated 269 MiB suggests allocator settled, ndarray pools stabilized, workload reached steady state
317
338
  - gradual, safe and steady batch accumulation, reduced possibility of leak explosion.
318
339
 
319
- B. [=] Advanced Prediction without Transformer, Only Specialized MLP using AWE.
340
+ B. [=] Advanced Prediction without Transformer, Only Specialized MLP + LSTM using AWE.
320
341
  ```txt
321
342
  == TIME == | CPU % | RAM \ RAM LIMIT |
322
343
  10:01:37.456 100.44% 269.8MiB / 3.71GiB # initial round 1 training started
@@ -498,11 +519,13 @@ B. [=] Advanced Prediction without Transformer, Only Specialized MLP using AWE.
498
519
  import numpy as np
499
520
 
500
521
  memory_name = 'agent_memory'
522
+ cert_file = <your_cert_file_dir> # your .crt file
523
+ key_file = <your_key_file_dir> # your .key file
524
+
501
525
  main_model = IntegratedPipeline(
502
526
  memory_name=memory_name, # memory name for the AI you already initialized
503
527
  use_async=True, # local asynchronous prediction is permitted, if not PipelineAsyncManager wont start asynchronous prediction.
504
528
  agent_port=5001, # this port is used to set AgentDistributedInference server (optional)
505
- singleton_permitted=False, # set IntegratedPipeline to singleton if you don't use it for P2P, False if you use P2P.
506
529
  ssl_cert_file=cert_file, ssl_key_file=key_file) # provide your cert_file path or key_file path (optional)
507
530
 
508
531
  main_prediction = PipelinePredictionManager(
@@ -656,7 +679,9 @@ import traceback
656
679
 
657
680
  prediction_manager = PipelinePredictionManager(main_model, label_csv=<your_training_labels.txt>, target_title=<target_title>, label=<target_label>)
658
681
 
659
- secondary_model = IntegratedPipeline(memory_name=memory_name, use_async=True, agent_port=8080, singleton_permitted=True, ssl_cert_file=cert_file, ssl_key_file=key_file) # provide cert_file path or key_file path (optional)
682
+ secondary_model = IntegratedPipeline(memory_name=memory_name,
683
+ use_async=True, agent_port=8080,
684
+ ssl_cert_file=cert_file, ssl_key_file=key_file) # provide cert_file path or key_file path (optional)
660
685
  # secondary model of integrated pipeline is critical for ARM64 environment to prevent socket conflict during P2P with the first Integrated pipeline instance.
661
686
  # make sure that the agent_port in secondary_model must be different from agent_port in first IntegratedPipeline instance you initialized.
662
687
 
@@ -713,13 +738,12 @@ agent2 = CohesiveAgentDeployment(
713
738
  # you must put "known_peers" in the config so python can identify the list of IPs and Ports
714
739
  # "known_peers": [
715
740
  # ["127.0.0.1", 5555], can be modified using real IP or local IP.
716
- # ["127.0.0.1", 5556]
741
+ # ["127.0.0.1", 5556],
742
+ # more ip and port lists...
717
743
  # ]
718
744
  # }
719
745
 
720
- agent1.pipeline.use_transformer = False # set agent1 pipeline to not use transformer for efficient processing in ARM64 env.
721
- agent2.pipeline.use_transformer = False
722
-
746
+
723
747
  try:
724
748
  # Start both agents
725
749
  print("\n🚀 Starting Agent 1...")
@@ -741,7 +765,9 @@ try:
741
765
 
742
766
  # texts dictionary must contain test_titles, label_map, and rules that you can assign,
743
767
  # agent ID can be strings, int, or floats, recommendded to make it long for better security.
744
-
768
+ agent1.pipeline.use_transformer = False # set agent1 pipeline to not use transformer for efficient processing in ARM64 env.
769
+ agent2.pipeline.use_transformer = False
770
+
745
771
  # Make prediction with peer ensemble
746
772
  # Connection will be guaranteed successfull during discovery.
747
773
  result = await agent1.multi_modal_peer_ensemble_prediction(
@@ -1017,7 +1043,7 @@ When gradients flow backward:
1017
1043
  [=] 1. - Consider checking and run: [IntegratedPipeline_Flow.html](IntegratedPipeline_Flow.html) regarding each function of the whole components and deep-dive mechanism.
1018
1044
  2. - consider checking [ARCHITECTURE.md](ARCHITECTURE.md) for more explanation about the main components.
1019
1045
 
1020
- [=] With 20 total architectures working together as a standalone library that is efficient and robust, Main components include:
1046
+ [=] With 23 total architectures working together as a standalone library that is efficient and robust, Main components include:
1021
1047
 
1022
1048
  1. GeometricWeightShaping
1023
1049
  Purpose: Analyzes the geometric structure of data (anisotropy, spectral properties, complexity) and generates optimal weight matrices based on that geometry. Essentially teaches the model how to "understand" the shape of data before processing it, Highly robust to noise, making it an excellent fit for messy environment.
@@ -1078,12 +1104,21 @@ purpose: Handles both synchronous prediction, and P2P Asynchronous prediction re
1078
1104
  ---
1079
1105
  20. ConsecutivePeerAgent
1080
1106
  purpose: handles ensemble weighting from received output from peer, managed server and acts as a listener simultaneously.
1081
-
1107
+ ---
1108
+ 21. LSTMCell
1109
+ purpose: handles LSTM Core equations In Numpy.
1110
+ ---
1111
+ 22. LSTMNetwork
1112
+ purpose: handling LSTM Feed-forward layer, Training and Samples handling.
1113
+ ---
1114
+ 23. LSTMEngine
1115
+ purpose: handles Proper LSTM Confidence and calibration layer.
1082
1116
 
1083
1117
  ## Full Documentation Features
1084
1118
  - [Go to IntegratedPipeline-Specialized-AI-Agent-library](#IntegratedPipeline-Specialized-AI-Agent-library)
1085
1119
  - [Go to MANN Intro](#MANN-Intro)
1086
1120
  - [Go to Abstract Weight Encoder (AWE) Intro](#Abstract-Weight-Encoder-(AWE)-Intro)
1121
+ - [Go to LSTM And Transformer Into](#-lstm-and-transformer-intro)
1087
1122
  - [Go to Why IntegratedPipeline?](#Why-IntegratedPipeline?)
1088
1123
  - [Go to Requirements](#Requirements)
1089
1124
  - [Go to System-Specific-Notes](#System-Specific-Notes)