Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1.01 KB

README.md

File metadata and controls

26 lines (21 loc) · 1.01 KB

Straggler-Aware Layer-Wise Low-Latency Federated Learning

image

Introduction

In this work we propose Straggler-Aware Layer-Wise Low-Latency Federated Learning (SALF), that leverages the optimization procedure of neural networks via backpropagation to update the global model in a layer-wise fashion. This repository contains a basic PyTorch implementation of SALF. Please refer to our paper for more details.

Usage

This code has been tested on Python 3.7.3, PyTorch 1.8.0 and CUDA 11.1.

Prerequisite

  1. PyTorch=1.8.0: https://pytorch.org
  2. scipy
  3. tqdm
  4. matplotlib
  5. torchinfo
  6. TensorboardX: https://github.com/lanpa/tensorboardX

Training

python main.py --exp_name=salf --stragglers salf --stragglers_percent 0.9 --up_to_layer 1 --data mnist --model mlp

Testing

python main.py --exp_name=salf --eval