This repository contains the S/W framework used for all the experiments in the below paper. 'Sunwoo Lee, Tuo Zhang, and Salman Avestimehr, Layer-wise Adaptive Model Aggregation for Scalable Federated Learning, AAAI, 2023'
- tensorflow2 (<= 2.15.1)
- tensorflow_datasets
- python3
- mpi4py
- tqdm
- Set hyper-parameters properly in
config.py
. - Put the dataset files in the top directory of this program. The directory name should be the same as
dataset
in config.py. - Run training.
mpiexec -n 8 python main.py
This program evaluates the trained model after every epoch and then outputs the results as follows.
loss.txt
: An output file that contains the training loss for every epoch.acc.txt
: An output file that contains the validation accuracy for every epoch../checkpoint
: The checkpoint files generated after every epoch. This directory is created only whencheckpoint
is set to 1 inconfig.py
.
We will provide a few key experimental results here once the papers are published.
- FedAvg
- FedLAMA
- CIFAR-10
- CIFAR-100
- Sunwoo Lee ([email protected])