TensorFlow Federated Tutorials

February 25, 2026 ยท View on GitHub

These colab-based tutorials walk you through the main TFF concepts and APIs using practical examples. Reference documentation can be found in the TFF guides.

Note: TFF currently requires Python 3.9 or later, but Google Colaboratory's hosted runtimes currently use Python 3.7, and so in order to run these notebooks you will need to use a custom local runtime.

Getting started with federated learning

Getting started with federated analytics

  • Private Heavy Hitters shows how to use tff.analytics.heavy_hitters to build a federated analytics computation to discover private heavy hitters.

Writing custom federated computations

Simulation best practices

Intermediate and advanced tutorials