Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for pipeline/model parallelism #1729

Open
vfdev-5 opened this issue Mar 2, 2021 · 3 comments
Open

Support for pipeline/model parallelism #1729

vfdev-5 opened this issue Mar 2, 2021 · 3 comments
Assignees
Projects

Comments

@vfdev-5
Copy link
Collaborator

vfdev-5 commented Mar 2, 2021

🚀 Feature

Following #1709, Ignite is not supporting other modern types of parallelism.

The idea is to introduce the following API to make ignite.distributed aware of data parallel group:

ranks = [0, 2]
# or
# dp_group = get_data_parallel_group()
idist.set_dp_group(ranks=ranks)

We think to provide basic examples of pipeline parallelism using DeepSpeed and FairScale with Ignite.

Additionally, helper methods (e.g. idist.all_reduce, etc) could have group as optional parameter.

cc @g-karthik

@vfdev-5 vfdev-5 self-assigned this Mar 2, 2021
@vfdev-5 vfdev-5 added this to To do in 0.5.1 via automation Mar 3, 2021
@Moh-Yakoub
Copy link
Contributor

Hey @vfdev-5. Is this still WIP. are there any areas related to this task that I can participate in?

Thanks a lot

@vfdev-5
Copy link
Collaborator Author

vfdev-5 commented Mar 8, 2021

@Moh-Yakoub thanks for asking. This is still WIP.

are there any areas related to this task that I can participate in?

This is a bit tricky and depends on your understanding how parallelism works.
Recently, I shared this very basic example to play around.
I think what would be of real help is, for example, fixing this issue: #1757
such that you can have an experience with ignite.distributed module. What do you think?

Meanwhile, you can also take a look at deepspeed and fairscale examples and try to code how to use ignite there... We can discuss about that later...

@Moh-Yakoub
Copy link
Contributor

Great, I will take a look. I can start also trying to work with #1757

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
0.5.1
  
To do
Development

No branches or pull requests

2 participants