AbstractIntegratedModule 0.4.4__tar.gz → 0.4.6__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.4.6/AbstractIntegratedModule.cp313-win_amd64.pyd +0 -0
- {abstractintegratedmodule-0.4.4 → abstractintegratedmodule-0.4.6}/AbstractIntegratedModule.cpython-310-aarch64-linux-gnu.so +0 -0
- {abstractintegratedmodule-0.4.4 → abstractintegratedmodule-0.4.6}/AbstractIntegratedModule.cpython-312-x86_64-linux-gnu.so +0 -0
- {abstractintegratedmodule-0.4.4 → abstractintegratedmodule-0.4.6/AbstractIntegratedModule.egg-info}/PKG-INFO +16 -5
- {abstractintegratedmodule-0.4.4 → abstractintegratedmodule-0.4.6}/AbstractIntegratedModule.py +316 -170
- {abstractintegratedmodule-0.4.4/AbstractIntegratedModule.egg-info → abstractintegratedmodule-0.4.6}/PKG-INFO +16 -5
- {abstractintegratedmodule-0.4.4 → abstractintegratedmodule-0.4.6}/README.md +15 -4
- {abstractintegratedmodule-0.4.4 → abstractintegratedmodule-0.4.6}/setup.py +1 -1
- abstractintegratedmodule-0.4.4/AbstractIntegratedModule.cp313-win_amd64.pyd +0 -0
- {abstractintegratedmodule-0.4.4 → abstractintegratedmodule-0.4.6}/AbstractIntegratedModule.egg-info/SOURCES.txt +0 -0
- {abstractintegratedmodule-0.4.4 → abstractintegratedmodule-0.4.6}/AbstractIntegratedModule.egg-info/dependency_links.txt +0 -0
- {abstractintegratedmodule-0.4.4 → abstractintegratedmodule-0.4.6}/AbstractIntegratedModule.egg-info/requires.txt +0 -0
- {abstractintegratedmodule-0.4.4 → abstractintegratedmodule-0.4.6}/AbstractIntegratedModule.egg-info/top_level.txt +0 -0
- {abstractintegratedmodule-0.4.4 → abstractintegratedmodule-0.4.6}/MANIFEST.in +0 -0
- {abstractintegratedmodule-0.4.4 → abstractintegratedmodule-0.4.6}/pyproject.toml +0 -0
- {abstractintegratedmodule-0.4.4 → abstractintegratedmodule-0.4.6}/setup.cfg +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: AbstractIntegratedModule
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.6
|
|
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
|
|
@@ -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.4.
|
|
45
|
+
- Development Stage: Beta, 0.4.6.
|
|
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.
|
|
@@ -379,6 +379,10 @@ B. [=] Advanced Prediction without Transformer, Only Specialized MLP + LSTM usin
|
|
|
379
379
|
|
|
380
380
|
### Both performance Overview
|
|
381
381
|
<img width="1536" height="1024" alt="WhatsApp Image 2026-05-24 at 10 27 00" src="https://github.com/user-attachments/assets/9404277f-281f-4893-8367-e494833230ea" />
|
|
382
|
+
_______________________________________
|
|
383
|
+
- Note:
|
|
384
|
+
- This performance metric was calculated in older versions, With newer Transformers that has more, newer modules, The resulting cpu consumed may Increase 1.5 - 2x much more in Docker ARM64 Environment + QEMU,
|
|
385
|
+
MLP And LSTM stays the same and still fully optimized.
|
|
382
386
|
|
|
383
387
|
## Source code of AbstractIntegratedModule
|
|
384
388
|
- Note: The source code is provided in the repository.
|
|
@@ -582,9 +586,13 @@ B. [=] Advanced Prediction without Transformer, Only Specialized MLP + LSTM usin
|
|
|
582
586
|
|
|
583
587
|
# small training with simple titles first
|
|
584
588
|
main_model.train(titles, y)
|
|
589
|
+
|
|
590
|
+
# main_model.froze_learning = True
|
|
591
|
+
# prevent the model from training and make weights unchanged for static prediction.
|
|
585
592
|
|
|
586
593
|
results, chosen_label, confidence = main_prediction.advanced_prediction_method(
|
|
587
594
|
test_titles, label_map, example_rules,
|
|
595
|
+
X=None, y=None # you could create your own X and y samples and put it here (Optional)
|
|
588
596
|
show_proba=False, top_k=3,
|
|
589
597
|
use_transformer=True,
|
|
590
598
|
return_attention=False,
|
|
@@ -646,7 +654,8 @@ async_manager = PipelineAsyncManager(main_model,
|
|
|
646
654
|
|
|
647
655
|
async_manager.start(method='Transformer_included', bootstrap_token=None) # boothstrap token is optional for better security
|
|
648
656
|
|
|
649
|
-
texts = {'test_titles': test_titles, 'label_map': label_map, 'rules': example_rules, 'use_transformer': True}
|
|
657
|
+
texts = {'test_titles': test_titles, 'label_map': label_map, 'rules': example_rules, 'X': None, 'y':None, 'use_transformer': True} # all samples needed for advanced prediction method. (X and y are optional samples)
|
|
658
|
+
|
|
650
659
|
regular_predict = async_manager.predict(
|
|
651
660
|
texts=texts,
|
|
652
661
|
timeout=60,
|
|
@@ -656,7 +665,9 @@ regular_predict = async_manager.predict(
|
|
|
656
665
|
# with retries: async_manager.predict(texts, timeout=60, retries=5, api_key=secret_key) # 5 times retry if failed
|
|
657
666
|
|
|
658
667
|
print('[==] Initiating advanced batch prediction')
|
|
659
|
-
predicted_output = async_manager.advanced_batch_prediction(test_titles, label_map, example_rules,
|
|
668
|
+
predicted_output = async_manager.advanced_batch_prediction(test_titles, label_map, example_rules,
|
|
669
|
+
X=None, y=None, # provide your initialized X and y samples (Also Optional, can be set to None)
|
|
670
|
+
secret_key=secret_key, client_ip=None) # you can add client_ip to provide a robust authentication paired with secret_key
|
|
660
671
|
# for better and faster advanced prediction, consider using advanced batch prediction like in the above example
|
|
661
672
|
|
|
662
673
|
```
|
|
@@ -762,7 +773,7 @@ try:
|
|
|
762
773
|
api_key = agent1.get_api_key()
|
|
763
774
|
print(f"\n🔑 Using API Key: {api_key[:20]}...")
|
|
764
775
|
|
|
765
|
-
texts = {"test_titles": test_titles, "label_map": label_map, "rules": rules, "use_transformer": True, "agent_id": agent_id}
|
|
776
|
+
texts = {"test_titles": test_titles, "label_map": label_map, "rules": rules, 'X': None, "y":None, "use_transformer": True, "agent_id": agent_id} # (X and y are optional samples here too)
|
|
766
777
|
|
|
767
778
|
# texts dictionary must contain test_titles, label_map, and rules that you can assign,
|
|
768
779
|
# agent ID can be strings, int, or floats, recommendded to make it long for better security.
|