GithubHelp home page GithubHelp logo

txsing / feddst Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bibikar/feddst

0.0 0.0 0.0 338 KB

Federated Dynamic Sparse Training

Home Page: https://arxiv.org/abs/2112.09824

License: MIT License

Python 97.09% Shell 2.91%

feddst's Introduction

Federated Dynamic Sparse Training (FedDST)

This experiment code accompanies the paper

Sameer Bibikar, Haris Vikalo, Zhangyang Wang, and Xiaohan Chen, "Federated Dynamic Sparse Training: Computing Less, Communicating Less, Yet Learning Better," 2021.

Dependencies

  • Python 3.6 or greater
  • PyTorch, torchvision
  • tqdm

Run git submodule init followed by git submodule update to download the dataset code we use.

Examples

Experiment Command line
FedAvg on CIFAR-10 python3 dst.py --dataset cifar10 --sparsity 0.0
FedProx on CIFAR-10 (mu = 1) python3 dst.py --dataset cifar10 --sparsity 0.0 --prox 1
FedDST on CIFAR-10 (S=0.8, alpha=0.01, R_adj=15) python3 dst.py --dataset cifar10 --sparsity 0.8 --readjustment-ratio 0.01 --rounds-between-readjustments 15
FedDST on CIFAR-100 (S=0.5, alpha=0.01, R_adj=10) python3 dst.py --dataset cifar100 --sparsity 0.5 --readjustment-ratio 0.01 --distribution dirichlet --beta 0.1
FedDST+FedProx on CIFAR-10 (S=0.8, alpha=0.01, R_adj=15, mu=1) python3 dst.py --dataset cifar10 --sparsity 0.8 --readjustment-ratio 0.01 --rounds-between-readjustments 15 --prox 1
RandomMask on MNIST (S=0.8) python3 dst.py --dataset mnist --sparsity 0.8 --readjustment-ratio 0.0
PruneFL on MNIST python3 prunefl.py --dataset mnist --rounds-between-readjustments 50 --initial-rounds 1000

feddst's People

Contributors

bibikar avatar txsing avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.