FLamby

(โ˜… 241)

Cross-silo Federated Learning playground in Python. Discover 7 real-world federated datasets to test your new FL strategies and try to beat the leaderboard.

  • .gitignore
  • .isort.cfg
  • .pre-commit-config.yaml
  • conda-requirements.txt
  • environment.yml
  • LICENSE
  • Makefile
  • MANIFEST.in
  • Quickstart.md
  • README.md
  • setup.cfg
  • setup.py

# Installation Guide

1. Get the code
git clone https://github.com/owkin/FLamby

Downloads the entire project code from GitHub to your computer.

cd FLamby

Moves into the project folder you just downloaded.

2. Official Install Script

Easy Recommended
Prerequisites
  • Python 3 Python is required to use pip.
pip3 install --upgrade pip

Installs the package published on PyPI directly โ€” no need to clone the source.

โœ… After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.

Pulled directly from this repo's README.

3. Docker

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker build -t flamby-heart -f Dockerfile.base --build-arg DATASET_PREFIX="heart" --build-arg GIT_USER="myusername" --build-arg GIT_PWD="mypassword" .

Builds a runnable image based on the Dockerfile.

docker build -t flamby-heart-benchmark -f Dockerfile.heart .

Builds a runnable image based on the Dockerfile.

docker run -it flamby-heart-benchmark

Runs the built image as an actual container.

docker build -t flamby-all -f Dockerfile.base --build-arg DATASET_PREFIX="all_extra" --build-arg GIT_USER="myusername" --build-arg GIT_PWD="mypassword" .

Builds a runnable image based on the Dockerfile.

โœ… Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.

Pulled directly from this repo's README.

4. Python

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
pip install -e .[all_extra]

Installs the Python libraries listed in requirements.txt (or similar).

pip install -e .[option_name]

Installs the Python libraries listed in requirements.txt (or similar).

pip install -e .[cam16,ixi]

Installs the Python libraries listed in requirements.txt (or similar).

pip3 install --upgrade pip

Installs the package published on PyPI directly โ€” no need to clone the source.

โœ… If it runs without errors and prints output in the terminal, it worked.

Pulled directly from this repo's README.

5. Make

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make install

Compiles the code based on the generated build configuration to produce an executable.

make enable=option_name install

Compiles the code based on the generated build configuration to produce an executable.

make enable=cam16,kits19,tests install

Compiles the code based on the generated build configuration to produce an executable.

make update

Compiles the code based on the generated build configuration to produce an executable.

make enable=cam16 update

Compiles the code based on the generated build configuration to produce an executable.

โœ… If it finishes without errors, it worked. Try running the generated executable directly.

Pulled directly from this repo's README.

// repository documentation