pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/fedlib/fedlib

code-bedb41adf21fe337.css" /> GitHub - fedlib/fedlib
Skip to content

fedlib/fedlib

Repository files navigation

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 ./config_examples/fedavg_cifar10_resnet10.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://images.weserv.nl/?url=https%3A%2F%2Fgithub.com%2Ffedlib%2Ffedlib%2Fraw%2Fmain%2Fdocs%2Fsource%2Fimages%2Fdirichlet_partition.png&q=5&output=webp&a=top&Cache-Control=max-age=Sat%2C+28+Feb+2026+17%3A09%3A23+%2B0000+17%3A09

Sharding Partitioner

https://images.weserv.nl/?url=https%3A%2F%2Fgithub.com%2Ffedlib%2Ffedlib%2Fraw%2Fmain%2Fdocs%2Fsource%2Fimages%2Fshard_partition.png&q=5&output=webp&a=top&Cache-Control=max-age=Sat%2C+28+Feb+2026+17%3A09%3A23+%2B0000+17%3A09

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}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy