Official Pytorch implementation of "HLSGD: Hierarchical Local SGD With Stale Gradients Featuring".
git clone https://github.com/soptq/Hierarchical_Local_SGD
cd Hierarchical_Local_SGD
pip install -r requirements.txt
python prepare_data.py
Here we run HLSGD with DenseNet-121 in 4 workers' distributed environment.
Additionally, the total batchsize of the entire cluster is set to 128, other arguments remain default.
python hlsgd.py -d false -ws 4 -b 128 -m densenet
Details of other arguments can be referred in parser.py
@inproceedings{Zhou2020HLSGD,
title={HLSGD: Hierarchical Local SGD With Stale Gradients Featuring},
author={Yuhao Zhou and Qing Ye and Hailun Zhang and Jiancheng Lv},
year={2020}
}