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 parallel inference? #216

Open
mmiumiu opened this issue Nov 25, 2024 · 1 comment
Open

Support parallel inference? #216

mmiumiu opened this issue Nov 25, 2024 · 1 comment

Comments

@mmiumiu
Copy link

mmiumiu commented Nov 25, 2024

How can the model support parallel inference?

For a single model instance, even a small number of concurrent requests significantly increases response time. From what I've observed, the model only accepts one text input at a time and returns the corresponding audio response. Is it possible to make some simple changes to allow it to process multiple texts simultaneously without slowing down?

@prad-human-007
Copy link

You can run multiple instances of the model using Python's ProcessPoolExecutor.

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