sands-lab / grace

GRACE - GRAdient ComprEssion for distributed deep learning
https://sands.kaust.edu.sa/project/grace/
BSD 2-Clause "Simplified" License
133 stars 45 forks source link

Update for latest Horovod and add new GRACE Horovod example #25

Open Quentin-Anthony opened 2 years ago

Quentin-Anthony commented 2 years ago

This PR updates the current patch files to conform to Horovod's new horovod/torch/optimizer.py structure. Tested and verified with Horovod 0.23.0 and PyTorch 1.7.1 on the new imagenet example (examples/torch/pytorch_imagenet_resnet50-grace.py).

I'm aware that the GRACE team is working on a cleaner way to integrate with Horovod (https://github.com/sands-lab/grace/issues/21), this is just to maintain support in the meantime.

Let me know if you have any questions or edits :)