-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Adding multi gpu speech generation #3149
Adding multi gpu speech generation #3149
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this example! Very well done.
Just a few nits to be consistent with the rest of the examples, and some suggestions on using more of what's available in accelerate 🤗 🚀
examples/inference/distributed/distributed_speech_generation.py
Outdated
Show resolved
Hide resolved
examples/inference/distributed/distributed_speech_generation.py
Outdated
Show resolved
Hide resolved
examples/inference/distributed/distributed_speech_generation.py
Outdated
Show resolved
Hide resolved
examples/inference/distributed/distributed_speech_generation.py
Outdated
Show resolved
Hide resolved
examples/inference/distributed/distributed_speech_generation.py
Outdated
Show resolved
Hide resolved
@muellerzr i did what you said |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much! This looks great :)
cc @SunMarc for a second glance and then we can merge ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice ! Thanks for contributing !
What does this PR do?
This PR adds a distributed speech data generation example using facebook/mms-tts-eng
#3078
Note
Tested it on two t4 GPUs
For two gpu
Generating Pokemon descriptions: 100%|██████████| 52/52 [00:26<00:00, 1.99it/s]
For one gpu
Generating Pokemon descriptions: 100%|██████████| 105/105 [00:50<00:00, 2.07it/s]
The example was tested using a very small dataset. If you'd like me to experiment with a different dataset, please let me know!
Who can review?
@sayakpaul