Skip to content

langnatalie/SALF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 

About

PyTorch implementation of Straggler-Aware Layer-Wise Low-Latency Federated Learning

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages