minaremeli / MOON

MOON reproducibility study
0 stars 0 forks source link

Research Running Multiple Clients w/ Flower #2

Closed minaremeli closed 2 years ago

minaremeli commented 2 years ago

We use Flower to simulate Federated Learning between clients. However, we don't want to start clients by hand. We will look into solutions for simulating these clients automatically. (For example, Ray.)

VasundharaAgarwal commented 2 years ago

Let’s use flwr.simulation (Ray) for this.

Example usage : https://github.com/adap/flower/tree/715d029422773031a14a6044e31590f6d6f75640/examples/simulation_pytorch

Instructions to run (tried and tested):

  1. run git clone --depth=1 https://github.com/adap/flower.git && mv flower/examples/simulation_pytorch . && rm -rf flower && cd simulation_pytorch
  2. run poetry install (Poetry is a Python package dependency manager. Can be installed with pip.)
  3. run poetry shell
  4. run python main.py
minaremeli commented 2 years ago

Yeah, works fine on my computer!

Some minor remarks:

minaremeli commented 2 years ago

Also, poetry seems like a nice thing for package management, never used it before!

There might be some issues with making it work with Docker, just leaving some links here for my future self if I encounter any problems: