8000 fedlib · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
View fedlib's full-sized avatar

Block or report fedlib

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
fedlib/README.rst
Static Badge GitHub last commit (branch) GitHub Workflow Status (with event) Static Badge Static Badge Documentation Status GitHub

Installation

git clone https://github.com/fedlib/fedlib
cd fedlib
pip install -v -e .
# "-v" means verbose, or more output
# "-e" means installing a project in editable mode,
# thus any local modifications made to the code will take effect without reinstallation.
cd fedlib/fedlib
python train.py file ./tuned_examples/fedsgd_cnn_fashion_mnist.yaml

Blades internally calls ray.tune; therefore, the experimental results are output to its default directory: ~/ray_results.

Cluster Deployment

To run blades on a cluster, you only need to deploy Ray cluster according to the official guide.

Built-in Implementations

In detail, the following strategies are currently implemented:

Data Partitioners:

Dirichlet Partitioner

https://github.com/fedlib/fedlib/raw/main/docs/source/images/dirichlet_partition.png

Sharding Partitioner

https://github.com/fedlib/fedlib/raw/main/docs/source/images/shard_partition.png

Citation

Please cite our paper (and the respective papers of the methods used) if you use this code in your own work:

@article{li2023blades,
    title={Blades: A Unified Benchmark Suite for Byzantine Attacks and Defenses in Federated Learning},
    author= {Li, Shenghui and Ju, Li and Zhang, Tianru and Ngai, Edith and Voigt, Thiemo},
    journal={arXiv preprint arXiv:2206.05359},
    year={2023}
}

Popular repositories Loading

  1. fedlib fedlib Public

    Python 3

  2. fedlib.github.io fedlib.github.io Public

    HTML

  3. blades_sphinx_theme blades_sphinx_theme Public

    CSS

  4. awesome-fm-fl awesome-fm-fl Public

    Forked from lishenghui/awesome-fm-fl

    ✨✨A curated list of latest advances on Foundation Models with Federated Learning

    Python

0