Skip to main content

A blazing-fast and lightweight simulation framework for Federated Learning.

Project description

A blazing-fast and lightweight simulation framework for Federated Learning

uv PyPI Version License Python Versions

Why Choose BlazeFL?

  • 🚀 High Performance: Optimized for single-node simulations, BlazeFL allows you to adjust the degree of parallelism. For example, if you want to simulate 100 clients on a single node but lack the resources to run them all concurrently, you can configure 10 parallel processes to manage the simulation efficiently. Additionally, BlazeFL enhances performance by storing shared parameters on disk instead of using shared memory, simplifying memory management and reducing overhead.

  • 🔧 Extensibility: BlazeFL provides interfaces solely for communication and parallelization, avoiding excessive abstraction. This design ensures that the framework remains flexible and adaptable to various use cases.

  • 📦 Minimal Dependencies: Minimal Dependencies: The core components of BlazeFL rely only on PyTorch, ensuring a lightweight and straightforward setup.

  • 🔄 Robust Reproducibility: Even in multi-process environments, BlazeFL offers utilities to save and restore seed states, ensuring consistent and reproducible results across simulations.

  • 🏷️ Type Hint Support: The framework fully supports type hints, enhancing code readability and maintainability.

  • 🔗 Loose Compatibility with FedLab: Inspired by FedLab, BlazeFL maintains a degree of compatibility, facilitating an easy transition to production-level implementations when necessary.

[!IMPORTANT] BlazeFL is currently in beta.

Quick Start

Installation

BlazeFL is available on PyPI and can be installed using your preferred package manager.

For example:

uv add blazefl
# or
poetry add blazefl
# or
pip install blazefl

Running Examples

Example code is available in the examples/quickstart-fedavg directory.

FL Simulation Benchmarks

To be written.

Contributing

We welcome contributions from the community! If you'd like to contribute to this project, please follow these guidelines:

Issues

If you encounter a bug, have a feature request, or would like to suggest an improvement, please open an issue on the GitHub repository. Make sure to provide detailed information about the problem or suggestion.

Pull Requests

We gladly accept pull requests! Before submitting a pull request, please ensure the following:

  1. Fork the repository and create your branch from main.
  2. Ensure your code adheres to the project's coding standards.
  3. Test your changes thoroughly.
  4. Make sure your commits are descriptive and well-documented.
  5. Update the README and any relevant documentation if necessary.

Code of Conduct

Please note that this project is governed by our Code of Conduct. By participating, you are expected to uphold this code. Please report any unacceptable behavior.

Thank you for contributing to our project!

Project details


Download files

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

Source Distribution

blazefl-0.1.0b5.tar.gz (57.4 kB view details)

Uploaded Source

Built Distribution

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

blazefl-0.1.0b5-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file blazefl-0.1.0b5.tar.gz.

File metadata

  • Download URL: blazefl-0.1.0b5.tar.gz
  • Upload date:
  • Size: 57.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for blazefl-0.1.0b5.tar.gz
Algorithm Hash digest
SHA256 c3eb72699df5ac51d107deab0fbd6381495dbbd1a4539c62c0b00772c3ef1835
MD5 f089d92dcbe7051fbf3ab8683dc87fd1
BLAKE2b-256 1d30356ab21cc6782871e3db19d7462b1754d6fe3d389efa205582840731feb4

See more details on using hashes here.

Provenance

The following attestation bundles were made for blazefl-0.1.0b5.tar.gz:

Publisher: publish.yaml on kitsuya0828/BlazeFL

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file blazefl-0.1.0b5-py3-none-any.whl.

File metadata

  • Download URL: blazefl-0.1.0b5-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for blazefl-0.1.0b5-py3-none-any.whl
Algorithm Hash digest
SHA256 7e242eaca151eb8afba64dcb65f7cefb4a092654fe9f2f934de61f0b2cf82da4
MD5 1c25b6568270d090ccaa0a437c92e746
BLAKE2b-256 0a7f6d35c18f5ea8f9b87e60ab650f9f257ac51a645628222744696740ba027f

See more details on using hashes here.

Provenance

The following attestation bundles were made for blazefl-0.1.0b5-py3-none-any.whl:

Publisher: publish.yaml on kitsuya0828/BlazeFL

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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