Lightning-AI / pytorch-lightning

Pretrain, finetune and deploy AI models on multiple GPUs, TPUs with zero code changes.
https://lightning.ai
Apache License 2.0
28.03k stars 3.36k forks source link

Support BaguaStrategy in LightningLite #12500

Closed awaelchli closed 2 years ago

awaelchli commented 2 years ago

🚀 Feature

Add Bagua to the supported strategy types in Lite.

Motivation

Users who want to try Bagua but are hesitant to convert fully to Lightning can take a shortcut and just use Lite to benchark their code against SOTA strategies with only a few code changes.

Pitch

In theory Lite is strategy agnostic and can support Bagua out of the box. However, we should verify that first with a simple test and then add it to the supported types.

Alternatives

No.

Additional context

12069


If you enjoy Lightning, check out our other projects! âš¡

cc @borda @carmocca @justusschock @awaelchli @wangraying

carmocca commented 2 years ago

Considering that we are re-thinking Lite and that Bagua hasn't had a release since January, I suggest freezing this work

awaelchli commented 2 years ago

I agree. Some more work on the API side would be needed to cleanly support Bagua with Lite anyway.