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 to run sample.py using multiple GPUs ? #12

Open
skittoo opened this issue Aug 17, 2022 · 2 comments
Open

How to run sample.py using multiple GPUs ? #12

skittoo opened this issue Aug 17, 2022 · 2 comments

Comments

@skittoo
Copy link

skittoo commented Aug 17, 2022

I am using 8 GPUs instance but the script uses only GPU:0 not all the GPUs . I get CUDA memory error when i try to make clip_guidance ofViT-L/14 model. How can i utilize all GPUs so i don't have any limitation ?

@limiteinductive
Copy link
Contributor

You can modify the script to load the clip model on the GPU you want (and push back and forth all the tensors you need for inference)

@skittoo
Copy link
Author

skittoo commented Aug 22, 2022

Thanks a lot for your response .
But it's also rises the same error when putting --cpu argument and changing the tensor inside the script is not - as i tried - only in sample.py , i should change things in other files . This is a little bit exhausting :)

Kind Regards ,

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

2 participants