Giter VIP home page Giter VIP logo

fedlore's Introduction

FedLoRE

This is the demo implementation of "FedLoRE: Communication-Efficient and Personalized Edge Intelligence Framework via Federated Low-Rank Estimation" (under review), the final version of this code with other comparison frameworks will be available soon.

Requirements

Please run the following commands below to install dependencies.

conda create --name fl_torch python=3.10
conda activate fl_torch
conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.6 -c pytorch -c nvidia
conda install -c pytorch torchtext
conda install numpy
conda install scikit-learn

Run Experiments

There is a main file main.py which allows running next experiments.

Run experiments on the CIFAR10 dataset, there are 100 Non-IID clients to train the CNN model collaboratively:

   python main.py --algorithm FedLoRE --dataset Cifar10 --num_classes 10 --num_clients 100

Run experiments on the CIFAR100 dataset, there are 100 Non-IID clients to train the CNN model collaboratively:

   python main.py --algorithm FedLoRE --dataset Cifar100 --num_classes 100 --num_clients 100

Citation

TODO

Acknowledgements

The skeleton codebase in this repository was adapted from PFLib [1].

[1] https://github.com/TsingZ0/PFLlib.

Contact

Zerui Shao, Email: [email protected]

fedlore's People

Contributors

zeruishao avatar

Stargazers

Yongqiang Huang avatar

Watchers

 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.