Skip to main content

syft_flwr is an open source framework that facilitate federated learning projects using Flower over the SyftBox protocol

Project description

syft-flwr

Easy, file-based, offline capable federated learning

syft-flwr is an open-source framework that combines Flower's federated learning capabilities with file-based communication. Train machine learning models collaboratively across distributed datasets without centralizing data—with easy setup, offline capability, and no servers required.

FL Training Process

Key Features

  • File-Based Communication: Train models without direct network connections—communication happens via file sync (Google Drive or SyftBox)
  • Zero Infrastructure: No servers to maintain, no complex networking setup—just notebooks and file sync
  • Offline Capable: Asynchronous message passing enables training even with intermittent connectivity
  • Privacy by Design: Data never leaves its source—only model updates are shared
  • Flower Integration: Built on Flower's robust FL framework—supports FedAvg, custom strategies, and all standard Flower features

Quick Start

The easiest way to get started is with our Google Colab tutorial—no local setup required:

📓 Zero-Setup FL with Google Colab

Example Notebooks

Example Description Communication
FL Diabetes (Google Drive) Train a diabetes prediction model across distributed Colab notebooks Google Drive
FL Diabetes (SyftBox) Train a diabetes prediction model across distributed machines SyftBox
FL Diabetes (Local) Local simulation for development and testing Local
Federated Analytics Query statistics from private datasets and aggregate them SyftBox
FedRAG Privacy-preserving question answering with RAG SyftBox

Installation

Install from PyPI:

pip install syft-flwr

Or install from source:

pip install "git+https://github.com/OpenMined/syft-flwr.git@main"

Development

See DEVELOPMENT.md for development setup and guidelines.

Releasing

See the Releasing section in DEVELOPMENT.md for the complete release process.

Community

  • 💬 Slack - Join #support-syftbox for questions
  • 🐛 Issues - Report bugs or request features
  • 🌟 Star this repo to support the project!

License

Apache 2.0

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

syft_flwr-0.5.1.tar.gz (38.1 kB view details)

Uploaded Source

Built Distribution

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

syft_flwr-0.5.1-py3-none-any.whl (50.3 kB view details)

Uploaded Python 3

File details

Details for the file syft_flwr-0.5.1.tar.gz.

File metadata

  • Download URL: syft_flwr-0.5.1.tar.gz
  • Upload date:
  • Size: 38.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for syft_flwr-0.5.1.tar.gz
Algorithm Hash digest
SHA256 84cf0f9c5b2ec7cf5325e21c2ca3b0bf851450d97c5477adec6f62f4df6db30f
MD5 062fdd9c6c97b00e0e28ed53846883b2
BLAKE2b-256 c44350806a3f0384cf7892a535dcc19dda39e65befc21fafc372a3007acb0a14

See more details on using hashes here.

File details

Details for the file syft_flwr-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: syft_flwr-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 50.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for syft_flwr-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b7e81e5d1cdbde90fa54817479f3bd8d31962207b36842bf79eabc341cc45bfb
MD5 dbb9780b2591d117490ab2e978d72486
BLAKE2b-256 061b905e98c845bbd70172bf2fba96b2b428313ed8bab1cf80c75c469866279e

See more details on using hashes here.

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