Skip to main content

TheSwarm

PyPI version Python versions License

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.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Contact

GitHub: https://github.com/lpalbou/theswarm

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

theswarm-0.1.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

theswarm-0.1.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file theswarm-0.1.1.tar.gz.

File metadata

  • Download URL: theswarm-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.7 Darwin/24.3.0

File hashes

Hashes for theswarm-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9fa9e9737dcb1136dd104e3f9b6fe550962dc3dee4603343c7301ffd71c63177
MD5 3c954919c80da3b5ee8b6ac9b5a58b7a
BLAKE2b-256 5a8c32b71eb98cb406da860a56e432d77cac76d7d68849424d4aef4f0e8ffead

See more details on using hashes here.

File details

Details for the file theswarm-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: theswarm-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.7 Darwin/24.3.0

File hashes

Hashes for theswarm-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3c8b14c598a0b613728036e0f39297ef3922ce12ef97ee0b57699d9174f26587
MD5 bc34ebeaff87e78d6efcccb88b504e4e
BLAKE2b-256 d3147689462bff3fc0db83d675e8bc2b0860896f0ab53d5c34b65dec4c7cdb17

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page