TheSwarm
A powerful distributed AI framework for collaborative intelligence and swarm learning.
Description
TheSwarm is a Python library that enables distributed AI systems to operate collaboratively. It provides mechanisms for collective intelligence, coordinated learning, and emergent behavior across multiple AI agents.
Note: This project is currently under active development.
Installation
pip install theswarm
Quick Start
from theswarm import Swarm, Agent
# Initialize a swarm with custom configuration
swarm = Swarm(capacity=10, communication_protocol="mesh")
# Add agents to the swarm
for i in range(5):
agent = Agent(
agent_id=f"agent-{i}",
model_type="transformer",
specialization="general"
)
swarm.add_agent(agent)
# Run collaborative learning
swarm.initialize()
results = swarm.solve(problem="classification", data=your_dataset)
print(results.summary())
Features
- Distributed Intelligence: Coordinate AI agents across multiple processes or systems
- Collective Learning: Share and synchronize knowledge across the swarm
- Adaptive Behavior: Dynamic resource allocation and task prioritization
- Fault Tolerance: Resilient operation when individual agents fail
- Scalable Architecture: From small local swarms to large distributed systems
- Flexible Integration: Compatible with popular ML frameworks
Requirements
- Python 3.8+
- NumPy
- PyTorch (optional)
- TensorFlow (optional)
Documentation
Comprehensive documentation is available at docs.theswarm.ai.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Contact
Metadata
Release files for theswarm 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| theswarm-0.1.1.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| theswarm-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / theswarm-0.1.1.tar.gz
| Download URL | theswarm-0.1.1.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9fa9e9737dcb1136dd104e3f9b6fe550962dc3dee4603343c7301ffd71c63177
|
|
BLAKE2b-256 checksum How to use checksums |
5a8c32b71eb98cb406da860a56e432d77cac76d7d68849424d4aef4f0e8ffead
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.7 Darwin/24.3.0
|
Release files / theswarm-0.1.1-py3-none-any.whl
| Download URL | theswarm-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3c8b14c598a0b613728036e0f39297ef3922ce12ef97ee0b57699d9174f26587
|
|
BLAKE2b-256 checksum How to use checksums |
d3147689462bff3fc0db83d675e8bc2b0860896f0ab53d5c34b65dec4c7cdb17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.7 Darwin/24.3.0
|