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

How model parallelize across GPUs? #10

Open
Gumpest opened this issue Dec 3, 2021 · 5 comments
Open

How model parallelize across GPUs? #10

Gumpest opened this issue Dec 3, 2021 · 5 comments

Comments

@Gumpest
Copy link

Gumpest commented Dec 3, 2021

Could you introduce more details in parallelizing across GPUs, like how to implement through PyTorch.

@RahulBhalley
Copy link

You can use PyTorch Lightning instead. It automatically parallelizes the model training across GPUs and also supports TPU with just a single argument.

@imankgoyal
Copy link
Owner

We use the nccl backend with PyTorch to parallelize the stream while inference (testing). For training, we use usual distributed setup.

@Gumpest
Copy link
Author

Gumpest commented Dec 6, 2021

So we need at least three GPUs to inference three streams in ParNet?

@imankgoyal
Copy link
Owner

Yes if you want to do the multi-GPU inference. Otherwise, you can also do single gpu inference but it will be slower.

@twmht
Copy link

twmht commented May 12, 2023

@imankgoyal

foe the edge devcie, using mulit-gpu for inference is expensive, what is your opinion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants