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

Use isolated workers for heavy operations (e.g. inference) #11

Open
zielo-hue opened this issue Nov 24, 2021 · 1 comment
Open

Use isolated workers for heavy operations (e.g. inference) #11

zielo-hue opened this issue Nov 24, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@zielo-hue
Copy link
Member

The app becomes completely unresponsive when processing requests that involve transformers. Using a queueing system like Celery that offloads such heavy tasks onto separate workers will greatly improve the end-user experience and also make the webapp much more scalable. I recommend using RabbitMQ as the broker and Redis as the backend for Celery, since those seem to be the most widely used.

@zielo-hue zielo-hue added enhancement New feature or request help wanted Extra attention is needed labels Nov 24, 2021
@zielo-hue zielo-hue self-assigned this Nov 26, 2021
@koukuno
Copy link

koukuno commented Dec 1, 2021

it looks like the GPTHF module is also regenerating logits for every request, and the behavior of the app suggests that it is multi-threaded... those may contribute to the issue of the app becoming completely unresponsive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants