Installation#

Install pfl from PyPi#

By default, pfl does not install any deep learning framework. To install the latest compatible version of the deep learning framework you plan to use with pfl, you can specify install extras in brackets:

# Install pfl with TensorFlow and Keras.
pip install 'pfl[tf]'

# Install pfl with PyTorch.
pip install 'pfl[pytorch]'

# Install pfl for GBDTs
pip install 'pfl[trees]'

If you want to access the official benchmarks, clone the pfl-research repository from Github and go to ./benchmarks. This is also a good starting point when doing your own research.

git clone https://github.com/apple/pfl-research.git
cd pfl-research/benchmarks

Follow instructions in each README.md of pfl-research/benchmarks to get started running the default setups.

Install pfl from source#

Local development environment for pfl is managed with Poetry. See Contributing on how to setup pfl for development and testing.