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.3.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.3-py3-none-any.whl (50.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: syft_flwr-0.5.3.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.3.tar.gz
Algorithm Hash digest
SHA256 a8a375e49bc3cba57630d21ce7eeadd02f72addb4054da30ddfa60499fe80f65
MD5 70bad8cee778cd389057ab298860f90f
BLAKE2b-256 ae9e0871cbc6d655b36d1866571a3e33a92ac54a9c2b918cf0f3bd97f3ea4951

See more details on using hashes here.

File details

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

File metadata

  • Download URL: syft_flwr-0.5.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3d918306b17b4a27cedc8e8b12f4e9c25f27193ecaf24f210a79cfd3d4e073f7
MD5 b3c8a009883f9be465e23305903818e9
BLAKE2b-256 d7061bfb3ea50634bdaa472332cfd43213c33fbbdd3c832e83255304efd5b769

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