English
These codes are the experiments to simulate the attack on Ring AllReduce algorithm in Single GPU by Pytorch.
Therefore, what you need is a single GPU with Pytorch available.
BTW, the annotations in the codes will be rewritten in English later, if I have spare time LOL.
Introduction of Ring AllReduce
I really recommend the article posted latter(written in English one). After reading the article carefully, I believe that little problems would be occured for you to comprehend these codes.
Briefly, the aim of attack is to make the whole training process divergence (at least my attack is lol).
In Attack.py file, 2 kinds of treatments of data are provided.
Welcome any questions about the codes~~~.