https://github.com/appfl/appfl-scifm
APPFL Demo for Federated Learning Tutorial at SciFM
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: arxiv.org, zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (17.7%) to scientific vocabulary
Repository
APPFL Demo for Federated Learning Tutorial at SciFM
Basic Info
- Host: GitHub
- Owner: APPFL
- License: mit
- Language: Python
- Default Branch: main
- Size: 6.22 MB
Statistics
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
APPFL - Advanced Privacy-Preserving Federated Learning Framework.
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 algorihtms 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.
SciFM Tutorial Demo
bash
git clone https://github.com/APPFL/appfl-scifm.git
cd appfl-scifm
pip install -e ".[examples]"
cd demo
chmod +x run.sh
./run.sh
Table of Contents
:hammerandwrench: Installation
We highly recommend creating a new Conda virtual environment and install the required packages for APPFL.
bash
conda create -n appfl python=3.8
conda activate appfl
User installation
For most users such as data scientists, this simple installation must be sufficient for running the package.
bash
pip install pip --upgrade
pip install "appfl[examples]"
If we want to even minimize the installation of package dependencies, we can skip the installation of a few pacakges (e.g., matplotlib and jupyter):
bash
pip install "appfl"
Developer installation
Code developers and contributors may want to work on the local repositofy. To set up the development environment,
bash
git clone https://github.com/APPFL/appfl-scifm.git
cd appfl-scifm
pip install -e ".[dev,examples]"
On Ubuntu:
If the install process failed, you can try:
bash
sudo apt install libopenmpi-dev,libopenmpi-bin,libopenmpi-doc
:bricks: 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 supprots 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.
:bulb: 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.
:pagefacingup: Citation
If you find APPFL useful for your research or development, please consider citing the following papers: ``` @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} }
@inproceedings{li2023appflx, title={APPFLx: Providing Privacy-Preserving Cross-Silo Federated Learning as a Service}, author={Li, Zilinghan and He, Shilan and Chaturvedi, Pranshu and Hoang, Trung-Hieu and Ryu, Minseok and Huerta, EA and Kindratenko, Volodymyr and Fuhrman, Jordan and Giger, Maryellen and Chard, Ryan and others}, booktitle={2023 IEEE 19th International Conference on e-Science (e-Science)}, pages={1--4}, year={2023}, organization={IEEE} } ```
:trophy: Acknowledgements
This material is based upon work supported by the U.S. Department of Energy, Office of Science, under contract number DE-AC02-06CH11357.
Owner
- Name: APPFL
- Login: APPFL
- Kind: organization
- Location: United States of America
- Repositories: 2
- Profile: https://github.com/APPFL
Argonne Privacy Preserving Federated Learning
Citation (CITATION.cff)
# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!
cff-version: 1.2.0
title: >-
APPFL: Advanced Privacy-Preserving Federated
Learning
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- given-names: Minseok
family-names: Ryu
email: minseok.ryu@asu.edu
affiliation: Argonne National Laboratory
- given-names: Kibaek
family-names: Kim
email: kimk@anl.gov
affiliation: Argonne National Laboratory
orcid: 'https://orcid.org/0000-0002-5820-6533'
- given-names: Youngdae
family-names: Kim
email: youngdaekim26@gmail.com
affiliation: ExxonMobil Technology and Engineering Company
- given-names: Zilinghan
family-names: Li
email: zilinghan.li@anl.gov
affiliation: Argonne National Laboratory
- given-names: Sang-il
family-names: Yim
email: yim@anl.gov
affiliation: Argonne National Laboratory
- given-names: Trung-Hieu
faimly-names: Hoang
email: hthieu@illinois.edu
affiliation: University of Illinois at Urbana-Champaign
- given-names: Shourya
family-names: Bose
email: shbose@ucsc.edu
affiliation: University of California, Santa Cruz
- given-names: Shilan
family-names: He
email: shilanh2@illinois.edu
affiliation: University of Illinois at Urbana-Champaign
- given-names: Grant
family-names: Wilkins
email: gfw27@cam.ac.uk
affiliation: University of Cambridge
- given-names: Ravi
family-names: Madduri
email: madduri@anl.gov
affiliation: Argonne National Laboratory
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Dependencies
- actions/checkout v3 composite
- actions/setup-python v3 composite
- mpi4py/setup-mpi v1 composite
- actions/checkout v2 composite
- actions/setup-python v2 composite
- pypa/gh-action-pypi-publish 27b31702a0e7fc50959f5ad993c78deac1bdfc29 composite
- python latest build
- google *
- myst-parser *
- nbsphinx *
- protobuf *
- pydata-sphinx-theme *
- sphinx-contributors *
- sphinx-copybutton *
- sphinx-design *
- blosc *
- boto3 *
- botocore *
- globus-compute-endpoint *
- globus-compute-sdk *
- globus-sdk *
- grpcio *
- grpcio-tools *
- lz4 *
- matplotlib *
- mpi4py *
- numpy *
- omegaconf *
- python-xz *
- torch *
- torchvision *
- zfpy *
- zstd *
