# flower **Repository Path**: frontxiang/flower ## Basic Information - **Project Name**: flower - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-04 - **Last Updated**: 2026-07-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Flower: A Friendly Federated AI Framework
[](https://github.com/flwrlabs/flower/blob/main/LICENSE) [](https://github.com/flwrlabs/flower/blob/main/CONTRIBUTING.md)  [](https://pepy.tech/project/flwr) [](https://hub.docker.com/u/flwr) [](https://flower.ai/join-slack) Flower (`flwr`) is a framework for building federated AI systems. The design of Flower is based on a few guiding principles: - **Customizable**: Federated learning systems vary wildly from one use case to another. Flower allows for a wide range of different configurations depending on the needs of each individual use case. - **Extendable**: Flower originated from a research project at the University of Oxford, so it was built with AI research in mind. Many components can be extended and overridden to build new state-of-the-art systems. - **Framework-agnostic**: Different machine learning frameworks have different strengths. Flower can be used with any machine learning framework, for example, [PyTorch](https://pytorch.org), [TensorFlow](https://tensorflow.org), [Hugging Face Transformers](https://huggingface.co/), [PyTorch Lightning](https://pytorchlightning.ai/), [scikit-learn](https://scikit-learn.org/), [JAX](https://jax.readthedocs.io/), [TFLite](https://tensorflow.org/lite/), [MONAI](https://docs.monai.io/en/latest/index.html), [fastai](https://www.fast.ai/), [MLX](https://ml-explore.github.io/mlx/build/html/index.html), [XGBoost](https://xgboost.readthedocs.io/en/stable/), [CatBoost](https://catboost.ai/), [LeRobot](https://github.com/huggingface/lerobot) for federated robots, [Pandas](https://pandas.pydata.org/) for federated analytics, or even raw [NumPy](https://numpy.org/) for users who enjoy computing gradients by hand. - **Understandable**: Flower is written with maintainability in mind. The community is encouraged to both read and contribute to the codebase. Meet the Flower community on [flower.ai](https://flower.ai)! ## Federated Learning Tutorial Flower's goal is to make federated learning accessible to everyone. This series of tutorials introduces the fundamentals of federated learning and how to implement them in Flower. 0. **[What is Federated Learning?](https://flower.ai/docs/framework/main/en/tutorial-series-what-is-federated-learning.html)** 1. **[Get started with Flower](https://flower.ai/docs/framework/main/en/tutorial-series-get-started-with-flower.html)** 2. **[Write your first Flower App](https://flower.ai/docs/framework/main/en/tutorial-series-write-your-first-flower-app.html)** 3. **[Write your first Flower App with PyTorch](https://flower.ai/docs/framework/main/en/tutorial-series-write-your-first-flower-app-pytorch.html)** 4. **[Use a federated learning strategy](https://flower.ai/docs/framework/main/en/tutorial-series-use-a-federated-learning-strategy-pytorch.html)** 5. **[Customize a Flower Strategy](https://flower.ai/docs/framework/main/en/tutorial-series-build-a-strategy-from-scratch-pytorch.html)** 6. **[Communicate Custom Messages](https://flower.ai/docs/framework/main/en/tutorial-series-customize-the-client-pytorch.html)** Stay tuned, more tutorials are coming soon. Topics include **Privacy and Security in Federated Learning**, and **Scaling Federated Learning**. ## Documentation [Flower Docs](https://flower.ai/docs): - [Installation](https://flower.ai/docs/framework/how-to-install-flower.html) - [Quickstart (TensorFlow)](https://flower.ai/docs/framework/tutorial-quickstart-tensorflow.html) - [Quickstart (PyTorch)](https://flower.ai/docs/framework/tutorial-quickstart-pytorch.html) - [Quickstart (Hugging Face)](https://flower.ai/docs/framework/tutorial-quickstart-huggingface.html) - [Quickstart (PyTorch Lightning)](https://flower.ai/docs/framework/tutorial-quickstart-pytorch-lightning.html) - [Quickstart (Pandas)](https://flower.ai/docs/framework/tutorial-quickstart-pandas.html) - [Quickstart (fastai)](https://flower.ai/docs/framework/tutorial-quickstart-fastai.html) - [Quickstart (JAX)](https://flower.ai/docs/framework/tutorial-quickstart-jax.html) - [Quickstart (scikit-learn)](https://flower.ai/docs/framework/tutorial-quickstart-scikitlearn.html) - [Quickstart (Android [TFLite])](https://flower.ai/docs/framework/tutorial-quickstart-android.html) - [Quickstart (iOS [CoreML])](https://flower.ai/docs/framework/tutorial-quickstart-ios.html) ## Flower Baselines Flower Baselines is a collection of community-contributed projects that reproduce the experiments performed in popular federated learning publications. Researchers can build on Flower Baselines to quickly evaluate new ideas. The Flower community loves contributions! Make your work more visible and enable others to build on it by contributing it as a baseline! - [DASHA](https://github.com/flwrlabs/flower/tree/main/baselines/dasha) - [DepthFL](https://github.com/flwrlabs/flower/tree/main/baselines/depthfl) - [FedBN](https://github.com/flwrlabs/flower/tree/main/baselines/fedbn) - [FedMeta](https://github.com/flwrlabs/flower/tree/main/baselines/fedmeta) - [FedMLB](https://github.com/flwrlabs/flower/tree/main/baselines/fedmlb) - [FedPer](https://github.com/flwrlabs/flower/tree/main/baselines/fedper) - [FedProx](https://github.com/flwrlabs/flower/tree/main/baselines/fedprox) - [FedNova](https://github.com/flwrlabs/flower/tree/main/baselines/fednova) - [HeteroFL](https://github.com/flwrlabs/flower/tree/main/baselines/heterofl) - [FedAvgM](https://github.com/flwrlabs/flower/tree/main/baselines/fedavgm) - [FedRep](https://github.com/flwrlabs/flower/tree/main/baselines/fedrep) - [FedStar](https://github.com/flwrlabs/flower/tree/main/baselines/fedstar) - [FedWav2vec2](https://github.com/flwrlabs/flower/tree/main/baselines/fedwav2vec2) - [FjORD](https://github.com/flwrlabs/flower/tree/main/baselines/fjord) - [MOON](https://github.com/flwrlabs/flower/tree/main/baselines/moon) - [niid-Bench](https://github.com/flwrlabs/flower/tree/main/baselines/niid_bench) - [TAMUNA](https://github.com/flwrlabs/flower/tree/main/baselines/tamuna) - [FedVSSL](https://github.com/flwrlabs/flower/tree/main/baselines/fedvssl) - [FedXGBoost](https://github.com/flwrlabs/flower/tree/main/baselines/hfedxgboost) - [FedPara](https://github.com/flwrlabs/flower/tree/main/baselines/fedpara) - [FedAvg](https://github.com/flwrlabs/flower/tree/main/baselines/flwr_baselines/flwr_baselines/publications/fedavg_mnist) - [FedOpt](https://github.com/flwrlabs/flower/tree/main/baselines/flwr_baselines/flwr_baselines/publications/adaptive_federated_optimization) Please refer to the [Flower Baselines Documentation](https://flower.ai/docs/baselines/) for a detailed categorization of baselines and for additional info including: * [How to use Flower Baselines](https://flower.ai/docs/baselines/how-to-use-baselines.html) * [How to contribute a new Flower Baseline](https://flower.ai/docs/baselines/how-to-contribute-baselines.html) ## Flower Usage Examples Several code examples show different usage scenarios of Flower (in combination with popular machine learning frameworks such as PyTorch or TensorFlow). Quickstart examples: - [Quickstart (TensorFlow)](https://github.com/flwrlabs/flower/tree/main/examples/quickstart-tensorflow) - [Quickstart (PyTorch)](https://github.com/flwrlabs/flower/tree/main/examples/quickstart-pytorch) - [Quickstart (Hugging Face)](https://github.com/flwrlabs/flower/tree/main/examples/quickstart-huggingface) - [Quickstart (PyTorch Lightning)](https://github.com/flwrlabs/flower/tree/main/examples/quickstart-pytorch-lightning) - [Quickstart (fastai)](https://github.com/flwrlabs/flower/tree/main/examples/quickstart-fastai) - [Quickstart (Pandas)](https://github.com/flwrlabs/flower/tree/main/examples/quickstart-pandas) - [Quickstart (JAX)](https://github.com/flwrlabs/flower/tree/main/examples/quickstart-jax) - [Quickstart (MONAI)](https://github.com/flwrlabs/flower/tree/main/examples/quickstart-monai) - [Quickstart (scikit-learn)](https://github.com/flwrlabs/flower/tree/main/examples/quickstart-sklearn) - [Quickstart (Android [TFLite])](https://github.com/flwrlabs/flower/tree/main/examples/android) - [Quickstart (iOS [CoreML])](https://github.com/flwrlabs/flower/tree/main/examples/ios) - [Quickstart (MLX)](https://github.com/flwrlabs/flower/tree/main/examples/quickstart-mlx) - [Quickstart (XGBoost)](https://github.com/flwrlabs/flower/tree/main/examples/xgboost-quickstart) - [Quickstart (CatBoost)](https://github.com/flwrlabs/flower/tree/main/examples/quickstart-catboost) Other [examples](https://github.com/flwrlabs/flower/tree/main/examples): - [Raspberry Pi & Nvidia Jetson Tutorial](https://github.com/flwrlabs/flower/tree/main/examples/embedded-devices) - [PyTorch: From Centralized to Federated](https://github.com/flwrlabs/flower/tree/main/examples/pytorch-from-centralized-to-federated) - [Vertical FL](https://github.com/flwrlabs/flower/tree/main/examples/vertical-fl) - [Federated Finetuning of OpenAI's Whisper](https://github.com/flwrlabs/flower/tree/main/examples/whisper-federated-finetuning) - [Federated Finetuning of Large Language Model](https://github.com/flwrlabs/flower/tree/main/examples/flowertune-llm) - [Federated Finetuning of a Vision Transformer](https://github.com/flwrlabs/flower/tree/main/examples/flowertune-vit) - [Advanced Flower with PyTorch](https://github.com/flwrlabs/flower/tree/main/examples/advanced-pytorch) - [Comprehensive Flower+XGBoost](https://github.com/flwrlabs/flower/tree/main/examples/xgboost-comprehensive) - [Flower with KaplanMeierFitter from the lifelines library](https://github.com/flwrlabs/flower/tree/main/examples/federated-kaplan-meier-fitter) - [Sample Level Privacy with Opacus](https://github.com/flwrlabs/flower/tree/main/examples/opacus) - [Flower with a Tabular Dataset](https://github.com/flwrlabs/flower/tree/main/examples/fl-tabular) ## Community Flower is built by a wonderful community of researchers and engineers. [Join Slack](https://flower.ai/join-slack) to meet them, [contributions](#contributing-to-flower) are welcome.