Unified SDK experience for AILOOS federated AI nodes
Project description
AILOOS SDK
AILOOS is a robust Python library for participating in decentralized federated learning networks. This SDK enables nodes to join training sessions, contribute processing power, and interact with the Ailoos ecosystem securely.
Features
- Federated Learning: Participate in distributed model training sessions using FedAvg and other advanced algorithms.
- Privacy First: Secure key management and encrypted P2P communication (ECDSA + ECDH).
- Decentralized Marketplace: Interact with the data marketplace to list or purchase datasets.
- Hardware Integration: Smart capabilities detection for optimal workload assignment.
Node Roles
AILOOS supports 7 specialized node roles:
- Scout: Lightweight discovery and inference.
- Forge: heavy-duty model training.
- Validator: ZKP verification and auditing.
- Aggregator: Secure model aggregation.
- Oracle: Trusted external data provider.
- Archival: Long-term storage history.
- Relay: Cross-chain bridging.
See Full Node Roles Documentation for details.
Network Scales
AILOOS organizes nodes into 5 intelligence scales:
- Sovereign (El Átomo): 1 Node.
- Binary (Binario): 2 Nodes. (Small personal networks)
- Phalanx (La Escuadra): 3-20 Nodes.
- Foundry (La Fundición): 100-5k Nodes.
- Nexus (El Coloso): 100k+ Nodes.
Installation
AILOOS features a modular installation system to ensure high performance even on lightweight nodes:
# 1. Base Terminal & P2P Networking (For Scouts, Relays, Validators)
pip install ailoos
# 2. Heavy Computational Node (For Forge, requires PyTorch & Deep Learning engines)
pip install "ailoos[forge]"
Note: If you intend to train or run local inference via the
ailoos-terminal, you MUST install the[forge]extension.
Initialize a Node
import asyncio
from ailoos.sdk.node_sdk import NodeSDK
async def main():
# Initialize the node
node = NodeSDK(node_id="my-ai-node-01")
# Connect and start participating
await node.initialize()
await node.start()
# Keep running
while True:
await asyncio.sleep(1)
if __name__ == "__main__":
asyncio.run(main())
Advanced Usage
For granular control over components:
from ailoos.sdk.advanced_client import create_ailoos_node
async def run_advanced():
# Create node with specific capabilities
node = await create_ailoos_node(
node_id="advanced-node-01",
enable_marketplace=True,
enable_federated=True
)
# Search for datasets
datasets = await node.search_datasets(query="satellite imagery")
print(f"Found {len(datasets)} datasets")
# Join a training session
await node.join_training_session("session_v1_xyz")
Requirements
- Python 3.8+
- Network connectivity for P2P and Federation
License
Proprietary and Confidential. Copyright © 2026 Empoorio INC. All Rights Reserved. See LICENSE for full terms.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ailoos-4.5.3.tar.gz.
File metadata
- Download URL: ailoos-4.5.3.tar.gz
- Upload date:
- Size: 5.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a43b63e7e670c080d0caa7108dc6d878f3c8ebc23663d65d338e8f2658c1cc57
|
|
| MD5 |
395921c7d86dbb905eb8918789b66751
|
|
| BLAKE2b-256 |
f4077fce8d466e9e8482436ec6fc38268b0e2d52537485b38ac1e193efedf2c7
|
File details
Details for the file ailoos-4.5.3-py3-none-any.whl.
File metadata
- Download URL: ailoos-4.5.3-py3-none-any.whl
- Upload date:
- Size: 6.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec28c32e4b411b8d80cb01ac2ab8f65dabad865d067555af72206698ba12899f
|
|
| MD5 |
c36ddd1a55570b42ecbf78455f4ee0f4
|
|
| BLAKE2b-256 |
c60b07850e4b8b31e72f4194ae2b2e6105d68395aac2176a5f87113537338822
|