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

Handle Multiple parallel request #1956

Closed
lauvindra opened this issue Jan 12, 2024 · 3 comments
Closed

Handle Multiple parallel request #1956

lauvindra opened this issue Jan 12, 2024 · 3 comments

Comments

@lauvindra
Copy link

Does Ollama uses some kind of scheduling algorithm to manage high concurrent request? can you explain this

@easp
Copy link
Contributor

easp commented Jan 13, 2024

It queues the requests and processes them serially.

@pdevine
Copy link
Contributor

pdevine commented Jan 15, 2024

We'll add in better support for scheduling in the future, but as @easp mentioned, it just blocks all the other clients on a request and then those clients race to get fulfilled next. Definitely not ideal.

@pdevine
Copy link
Contributor

pdevine commented Jan 26, 2024

Going to close this as a dupe of #358

@pdevine pdevine closed this as completed Jan 26, 2024
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