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

Multi-GPU inference #769

Closed
shivangsharma1 opened this issue Oct 18, 2022 · 4 comments
Closed

Multi-GPU inference #769

shivangsharma1 opened this issue Oct 18, 2022 · 4 comments

Comments

@shivangsharma1
Copy link

Hi Team,

I have trained a t5/mt5 hugging face model, I am looking for a way to to inference 1Million examples on multiple GPU. I was able to inference using single GPU but I want a way to load the pretrained saved huggingface model and do multi-GPU inference and save it at last.

Can someone please share a script to do the process?

@pacman100
Copy link
Contributor

Hello @shivangsharma1, please go through this resolution of same issue: #754 (comment)

@shivangsharma1
Copy link
Author

Hi @pacman100 ,
I have reviewed that code, I didn't find much help from the script. Would it be possible for you share a small script, as I am new to this Accelerator Api.

@ZhiyuanChen
Copy link
Contributor

Basically you just need to call accelerator.prepare on your model and dataloader, and everything else is set up for you

@github-actions
Copy link

github-actions bot commented Dec 9, 2022

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

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

3 participants