Skip to main content

APPFL logo

APPFL - Advanced Privacy-Preserving Federated Learning Framework.

discord DOI Doc Build pre-commit APPFL APPFL-Advance

APPFL, Advanced Privacy-Preserving Federated Learning, is an open-source and highly extensible software framework that allows research communities to implement, test, and validate various ideas related to privacy-preserving federated learning (FL), and deploy real FL experiments easily and safely among distributed clients to train more robust ML models.With this framework, developers and users can easily

  • Train any user-defined machine learning model on decentralized data with optional differential privacy and client authentication.
  • Simulate various synchronous and asynchronous PPFL algorithms on high-performance computing (HPC) architecture with MPI.
  • Implement customizations in a plug-and-play manner for all aspects of FL, including aggregation algorithms, server scheduling strategies, and client local trainers.

Documentation: please check out our documentation for tutorials, users guide, and developers guide.

Table of Contents

🛠️ Installation

We highly recommend creating a new Conda virtual environment and install the required packages for APPFL.

conda create -n appfl python=3.10
conda activate appfl

User installation

For most users such as data scientists, this simple installation must be sufficient for running the package.

pip install pip --upgrade
pip install "appfl[examples,mpi]"

💡 Note: If you do not need to use MPI for simulations, then you can install the package without the mpi option: pip install "appfl[examples]".

If we want to even minimize the installation of package dependencies, we can skip the installation of a few packages (e.g., matplotlib and jupyter):

pip install "appfl"

Developer installation

Code developers and contributors may want to work on the local repositofy. To set up the development environment,

git clone --single-branch --branch main https://github.com/APPFL/APPFL.git
cd APPFL
pip install -e ".[mpi,dev,examples]"

💡 Note: If you do not need to use MPI for simulations, then you can install the package without the mpi option: pip install -e ".[dev,examples]".

On Ubuntu: If the install process failed, you can try:

sudo apt install libopenmpi-dev,libopenmpi-bin,libopenmpi-doc

🧱 Technical Components

APPFL is primarily composed of the following six technical components

  • Aggregator: APPFL supports several popular algorithms to aggregate one or several client local models.
  • Scheduler: APPFL supports several synchronous and asynchronous scheduling algorithms at the server-side to deal with different arrival times of client local models.
  • Trianer: APPFL supports several client local trainers for various training tasks.
  • Privacy: APPFL supports several global/local differential privacy schemes.
  • Communicator: APPFL supports MPI for single-machine/cluster simulation, and gRPC and Globus Compute with authenticator for secure distributed training.
  • Compressor: APPFL supports several lossy compressors for model parameters, including SZ2, SZ3, ZFP, and SZx.

💡 Framework Overview

In the design of the APPFL framework, we essentially create the server agent and client agent, using the six technical components above as building blocks, to act on behalf of the FL server and clients to conduct FL experiments. For more details, please refer to our documentation.

📄 Citation

If you find APPFL useful for your research or development, please consider citing the following papers:

@inproceedings{li2025advances,
  title={Advances in APPFL: A comprehensive and extensible federated learning framework},
  author={Li, Zilinghan and He, Shilan and Yang, Ze and Ryu, Minseok and Kim, Kibaek and Madduri, Ravi},
  booktitle={2025 IEEE 25th International Symposium on Cluster, Cloud and Internet Computing (CCGrid)},
  pages={01--11},
  year={2025},
  organization={IEEE}
}

@inproceedings{ryu2022appfl,
  title={APPFL: open-source software framework for privacy-preserving federated learning},
  author={Ryu, Minseok and Kim, Youngdae and Kim, Kibaek and Madduri, Ravi K},
  booktitle={2022 IEEE International Parallel and Distributed Processing Symposium Workshops (IPDPSW)},
  pages={1074--1083},
  year={2022},
  organization={IEEE}
}

🏆 Acknowledgements

This material is based upon work supported by the U.S. Department of Energy, Office of Science, under contract number DE-AC02-06CH11357.

Metadata

Release files for appfl 1.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for appfl 1.12.0
File Size Uploaded Provenance
appfl-1.12.0.tar.gz 319.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for appfl 1.12.0
File Interpreter ABI Platform
appfl-1.12.0-py3-none-any.whl Python 3 none any Details

Total release size: 737.7 kB

Release files / appfl-1.12.0.tar.gz

Download URL appfl-1.12.0.tar.gz
Size 319.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d7f85ea29217ac48a2a371bedc8d85464aadd18688869b5e1eb80b38b743acda
BLAKE2b-256 checksum
How to use checksums
b93b884ad2aaf79b3f64dfcb4bac2120456506ef11826437e25bea0b6166bf7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / appfl-1.12.0-py3-none-any.whl

Download URL appfl-1.12.0-py3-none-any.whl
Size 418.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4bd903bb7bf1807e3707aa31057cf44d5e60c722ad273928224798f2cf9fb12f
BLAKE2b-256 checksum
How to use checksums
27817757c59c76d2a08dc853e647f99ccea63a902184d7360f1af50dd1ae1599
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for appfl 1.12.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.12.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page