Closed minaremeli closed 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):
git clone --depth=1 https://github.com/adap/flower.git && mv flower/examples/simulation_pytorch . && rm -rf flower && cd simulation_pytorch
poetry install
(Poetry is a Python package dependency manager. Can be installed with pip.)poetry shell
python main.py
Yeah, works fine on my computer!
Some minor remarks:
sudo
for some reason with poetry install
(think this is Mac specific though, don't think it will be a problem on a Linux-based Docker image). 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:
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.)