Accelerating Federated Learning Simulations Using MPI
See the blog for more details.
# install requirements
pip install -r requirements.txt
# dataset prepare
python utils.py # check and download the dataset you need
# run the simulation
# for linux
mpirun -np 4 python main_sync.py # 4 is the number of processes
# for windows
mpiexec -n 4 python main_sync.py # 4 is the number of processes
# launch the tensorboard
tensorboard --logdir=logs