# flwrlabs/flower

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/flwrlabs-flower).**

_How this analysis was created: the description and tags below were written by an AI model that read this project's README and public documentation pages; stars, license and language come straight from the GitHub API. The model does not read the source code._

7,195 stars · 1,248 forks · Python · Apache-2.0

## Links

- GitHub: https://github.com/flwrlabs/flower
- Homepage: https://flower.ai
- awesome-repositories: https://awesome-repositories.com/repository/flwrlabs-flower.md

## Topics

`ai` `android` `artificial-intelligence` `cpp` `deep-learning` `federated-analytics` `federated-learning` `federated-learning-framework` `fleet-intelligence` `fleet-learning` `flower` `framework` `ios` `machine-learning` `python` `pytorch` `raspberry-pi` `scikit-learn` `tensorflow`

## Description

Flower is a federated learning framework for training machine learning models across many decentralized clients, so raw data stays on each device and only model updates are shared. A central server samples clients each round, sends them the current model, and aggregates their locally trained updates. It is framework-agnostic: PyTorch, TensorFlow, JAX, scikit-learn, XGBoost, Hugging Face Transformers, or even raw NumPy can take part without rewriting existing model code.

What distinguishes it is that the same client and server application runs unchanged in a local simulation engine or on real, separate machines. Simulation runs many virtual clients on one machine, with configurable CPU and GPU shares per client. Deployment connects real server and client nodes, with optional TLS-encrypted communication, node authentication, and Docker packaging. Aggregation strategies are pluggable, so averaging, adaptive server-side optimizers, or custom weighting can be swapped without touching client code. Clients can also keep persistent per-client state between rounds, which supports personalized layers.

The project also covers dataset handling and research use. A partitioning toolkit downloads public datasets and splits them into per-client shards using IID, Dirichlet, class-count, natural-group, and other schemes, with plots for inspecting the splits and support for custom partitioners. A large collection of baselines reproduces published federated learning papers on image, speech, and tabular data, each packaged with its own environment. Other areas include federated fine-tuning of large language, speech, and vision models, federated analytics, sample-level differential privacy, and training on Android, iOS, Raspberry Pi, and Jetson devices.

Runnable quickstart and advanced examples are provided for each supported framework and platform. Experiment settings can be defined in a project configuration file and overridden from the command line at launch.

## Tags

### Artificial Intelligence & ML

- [Federated Learning Platforms](https://awesome-repositories.com/f/artificial-intelligence-ml/federated-learning-platforms.md) — Provides a framework for training models across many decentralized clients so raw data stays local and is never gathered centrally. ([source](https://github.com/flwrlabs/flower#readme))
- [Federated Dataset Partitions](https://awesome-repositories.com/f/artificial-intelligence-ml/federated-dataset-partitions.md) — Splits any dataset into per-client shards with built-in partitioners such as Dirichlet or Pathological, simulating decentralized data. ([source](https://github.com/flwrlabs/flower/tree/main/examples/android))
- [Federated Round Orchestration](https://awesome-repositories.com/f/artificial-intelligence-ml/federated-round-orchestration.md) — A central server samples clients each round, sends them the current model, and aggregates their locally trained updates.
- [Framework-Agnostic Training Integrations](https://awesome-repositories.com/f/artificial-intelligence-ml/framework-agnostic-training-integrations.md) — Plugs PyTorch, TensorFlow, JAX, scikit-learn, XGBoost and Hugging Face Transformers into federated training without rewriting existing model code.
- [Simulated Federated Clients](https://awesome-repositories.com/f/artificial-intelligence-ml/simulated-federated-clients.md) — Runs a full federated training experiment on one machine by simulating many virtual clients, optionally accelerated on a GPU. ([source](https://github.com/flwrlabs/flower/tree/main/examples/quickstart-pytorch))
- [Client State Persistence Records](https://awesome-repositories.com/f/artificial-intelligence-ml/client-state-persistence-records.md) — Stores per-client state in a persistent record between rounds so each client can keep personalized layers and local data. ([source](https://github.com/flwrlabs/flower/tree/main/examples/advanced-pytorch))
- [Deep Learning Frameworks](https://awesome-repositories.com/f/artificial-intelligence-ml/deep-learning-frameworks.md) — Keep your current model code by plugging in a wide range of machine learning libraries, from deep learning and gradient boosting to plain NumPy, without switching tools. ([source](https://github.com/flwrlabs/flower#readme))
- [Federated Dataset Partitioners](https://awesome-repositories.com/f/artificial-intelligence-ml/federated-dataset-partitioners.md) — Provides an abstract partitioner interface with interchangeable Dirichlet, class-count, and natural-group schemes for splitting datasets into per-client shards.
- [Mobile and Edge Device Clients](https://awesome-repositories.com/f/artificial-intelligence-ml/federated-learning-platforms/mobile-and-edge-device-clients.md) — Demonstrates federated training on Android, iOS, Raspberry Pi, and Jetson devices so models learn where the data lives. ([source](https://github.com/flwrlabs/flower/blob/main/README.md))
- [Federated Aggregation Strategies](https://awesome-repositories.com/f/artificial-intelligence-ml/hierarchical-topic-aggregation/model-aggregation/federated-aggregation-strategies.md) — Offers server-side strategy objects that combine client updates, so averaging, adaptive optimizers, or custom weighting can be swapped without changing client code.
- [Federated Fine-Tuning](https://awesome-repositories.com/f/artificial-intelligence-ml/language-model-fine-tuning/federated-fine-tuning.md) — Instruction-tunes pre-trained language models across decentralized clients in general language, finance, medical, and code domains without pooling data. ([source](https://github.com/flwrlabs/flower/tree/main/benchmarks/flowertune-llm))
- [Custom Federated Strategies](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/model-training-and-tuning/distributed-and-scaling-strategies/distributed-learning/federated-learnings/custom-federated-strategies.md) — Lets developers extend a built-in federated averaging strategy with custom logic such as a learning rate that decays across rounds. ([source](https://github.com/flwrlabs/flower/tree/main/examples/advanced-pytorch))
- [ML Framework Integrations](https://awesome-repositories.com/f/artificial-intelligence-ml/ml-framework-integrations.md) — Connects PyTorch, TensorFlow, scikit-learn, JAX, Hugging Face Transformers or raw NumPy to federated training without rewriting existing models. ([source](https://github.com/flwrlabs/flower/tree/main/framework))
- [Finetuning Workflows](https://awesome-repositories.com/f/artificial-intelligence-ml/model-pretraining-frameworks/finetuning-workflows.md) — Shows how to adapt pretrained language, speech, and vision transformer models to downstream tasks across decentralized clients without pooling their data. ([source](https://github.com/flwrlabs/flower/blob/main/README.md))
- [Published Baseline Reproductions](https://awesome-repositories.com/f/artificial-intelligence-ml/published-baseline-reproductions.md) — Provides ready-to-run implementations of published federated learning methods with their models, datasets, partitioning and step-size settings for comparison with the original papers. ([source](https://github.com/flwrlabs/flower/tree/main/baselines/dasha))
- [Published Result Reproductions](https://awesome-repositories.com/f/artificial-intelligence-ml/published-result-reproductions.md) — Replicates the experiments of a published federated learning paper on CIFAR-10 and CIFAR-100 to verify reported accuracy. ([source](https://github.com/flwrlabs/flower/tree/main/baselines/fedrep))

### DevOps & Infrastructure

- [Federated Cluster Deployers](https://awesome-repositories.com/f/devops-infrastructure/distributed-database-clusters/multi-region-deployment-strategies/multi-region-cluster-deployers/federated-cluster-deployers.md) — Runs the same federated app unchanged across separate machines through a deployment engine, with optional TLS, node authentication and Docker setup. ([source](https://github.com/flwrlabs/flower/tree/main/examples/flowertune-vit))
- [Simulation-to-Deployment Run Modes](https://awesome-repositories.com/f/devops-infrastructure/simulation-to-deployment-run-modes.md) — Runs the same project code unchanged either as a single-machine simulation or as a real deployment, with simulation as the simple default. ([source](https://github.com/flwrlabs/flower/tree/main/examples/quickstart-sklearn))
- [Docker-Packaged Nodes](https://awesome-repositories.com/f/devops-infrastructure/cloud-deployment/federated-application-deployments/docker-packaged-nodes.md) — Runs the same federated app on separate machines with TLS encryption, node authentication and Docker-packaged server and client nodes. ([source](https://github.com/flwrlabs/flower/tree/main/examples/quickstart-tensorflow))
- [Simulation-to-Deployment Portability](https://awesome-repositories.com/f/devops-infrastructure/simulation-to-deployment-portability.md) — Runs the same federated app unchanged in a local simulation engine or on real separate machines with a single run command. ([source](https://github.com/flwrlabs/flower/tree/main/examples/xgboost-comprehensive))

### Software Engineering & Architecture

- [Simulation-to-Deployment Code Sharing](https://awesome-repositories.com/f/software-engineering-architecture/simulation-to-deployment-code-sharing.md) — The same client and server application runs unchanged in a local simulation engine or on real, separate machines.

### Data & Databases

- [Non-IID Client Shards](https://awesome-repositories.com/f/data-databases/distributed-sharding-architectures/process-sharding/data-partitioning/non-iid-client-shards.md) — Splitting datasets into uneven, realistic per-client shards using Dirichlet, pathological, or natural-group schemes to simulate heterogeneous decentralized data.

### Networking & Communication

- [Client Node Connections](https://awesome-repositories.com/f/networking-communication/client-node-connections.md) — Launches a client node on each device pointed at the coordinating server address, with per-device settings so the right client logic runs on local data. ([source](https://github.com/flwrlabs/flower/tree/main/examples/embedded-devices))

### Scientific & Mathematical Computing

- [Reproducible Research Documents](https://awesome-repositories.com/f/scientific-mathematical-computing/reproducible-research-documents.md) — Ships self-contained federated learning baselines replicating research-paper experiments, with documented setup steps and expected results to compare against. ([source](https://github.com/flwrlabs/flower/tree/main/baselines))
