Flower Examples Documentation¶

Welcome to Flower Examples’ documentation. Flower is a friendly federated learning framework.

Join the Flower Community¶

The Flower Community is growing quickly - we’re a friendly group of researchers, engineers, students, professionals, academics, and other enthusiasts.

Join us on Slack

Quickstart Examples¶

Flower Quickstart Examples are a collection of demo projects that show how you can use Flower in combination with other existing frameworks or technologies.

Advanced Examples¶

Advanced Examples are mostly for users that are both familiar with Federated Learning but also somewhat familiar with Flower’s main features.

Other Examples¶

Flower Examples are a collection of example projects written with Flower that explore different domains and features. You can check which examples already exist and/or contribute your own example.

Title

Framework

Dataset

Tags

Flower Android Example (TensorFlowLite)

Android, Java, TensorFlowLite

CIFAR-10

mobile, vision, sdk

Flower Android Client Example with Kotlin and TensorFlow Lite 2022

Android, Kotlin, TensorFlowLite

CIFAR-10

mobile, vision, sdk

Flower App (PyTorch) 🧪

torch, torchvision

CIFAR-10

basic, vision, fds

Custom Metrics for Federated Learning with TensorFlow and Flower

tensorflow, scikit-learn

CIFAR-10

basic, vision, fds

Using custom mods 🧪

wandb, tensorboard

CIFAR-10

mods, monitoring, app

Federated Learning on Embedded Devices with Flower

torch, tensorflow

CIFAR-10, MNIST

basic, vision, fds

Federated Survival Analysis with Flower and KaplanMeierFitter

lifelines

Waltons

estimator, medical

Flower Example on MNIST with Differential Privacy and Secure Aggregation

torch, torchvision

MNIST

DP, SecAgg, vision, fds

Flower Example on Adult Census Income Tabular Dataset

scikit-learn, torch

Adult Census Income

basic, tabular, fds

30-minute tutorial running Flower simulation with PyTorch

torch

CIFAR-10

colab, vision, simulation

Flower Simulation Step-by-Step

torch

MNIST

basic, vision, simulation

Leveraging Flower and Docker for Device Heterogeneity Management in Federated Learning

Docker, tensorflow

CIFAR-10

deployment, vision, tutorial

FlowerTune LLM: Federated LLM Fine-tuning with Flower

PEFT, torch

Alpaca-GPT4

llm, nlp, LLama

Federated Finetuning of a Vision Transformer with Flower

torch, torchvision

Oxford Flower-102

finetuning, vision, fds

FLiOS - A Flower SDK for iOS Devices with Example

Swift

MNIST

mobile, vision, sdk

Training with Sample-Level Differential Privacy using Opacus Privacy Engine

opacus, torch

CIFAR-10

DP, DP-SGD, basic, vision, fds, privacy

Federated Variational Autoencoder with PyTorch and Flower

torch, torchvision

CIFAR-10

basic, vision, fds

PyTorch: From Centralized To Federated

torch

CIFAR-10

basic, vision, fds

Flower Logistic Regression Example using scikit-learn and Flower (Quickstart Example)

scikit-learn

MNIST

basic, vision, logistic regression, fds

Training with Sample-Level Differential Privacy using TensorFlow-Privacy Engine

tensorflow

MNIST

DP, DP-SGD, basic, vision, fds, privacy

On-device Federated Finetuning for Speech Classification

transformers, whisper

SpeechCommands

finetuning, speech, transformers