Skip to main content
https://github.com/lishenghui/blades/raw/master/docs/source/images/arch.png

Installation

git clone https://github.com/lishenghui/blades
cd blades
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 blades/blades
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.

Experiment Results

https://github.com/lishenghui/blades/raw/master/docs/source/images/fashion_mnist.png https://github.com/lishenghui/blades/raw/master/docs/source/images/cifar10.png

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/lishenghui/blades/raw/master/docs/source/images/dirichlet_partition.png

Sharding Partitioner

https://github.com/lishenghui/blades/raw/master/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}
}

Metadata

Release files for fedlib 0.0.12345

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fedlib 0.0.12345
File Size Uploaded
fedlib-0.0.12345.tar.gz 14.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fedlib 0.0.12345
File Interpreter ABI Platform
fedlib-0.0.12345-py3-none-any.whl Python 3 none any Details

Total release size: 31.1 kB

Release files / fedlib-0.0.12345.tar.gz

Download URL fedlib-0.0.12345.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
daa850ec3a03c3c9cedffb20b55dccfeea65e9806b68453cf754d2867a213639
BLAKE2b-256 checksum
How to use checksums
583a25008ac1f8006cf07025b14067304c87e41cf54af581e53c1d34e2c0ffe2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / fedlib-0.0.12345-py3-none-any.whl

Download URL fedlib-0.0.12345-py3-none-any.whl
Size 16.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
594b67a466614d9da509659797d952e406a65b1b5898b46653274e6a5f4d78ee
BLAKE2b-256 checksum
How to use checksums
2e647d78d651b8967e504968132e715b99cc4b021374646fe1b78cca3a41762a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.0.12345 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page