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

Paralel processing of /explain/ #108

Open
xsuchy opened this issue Jan 14, 2025 · 1 comment
Open

Paralel processing of /explain/ #108

xsuchy opened this issue Jan 14, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@xsuchy
Copy link
Member

xsuchy commented Jan 14, 2025

Today, we are able to process only one request to /explain in a time. This does not scale.

We should investigate how to parallelize this.

In https://github.com/fedora-copr/logdetective/pull/106/files I discovered that:

I found that llama_cpp.server should have --parallel 2.See https://www.reddit.com/r/LocalLLaMA/comments/1be845y/multiple_concurrent_generations_with_llamacpp/
Is this what we need for parallel access?

But later @tt discovered that:

unfortunately, we are using llama-cpp-python's server and not the one in llama.cpp :// we are using this one and it doesn't know the parallel flag - I saw only threading being configurable https://github.com/abetlen/llama-cpp-python?tab=readme-ov-file#openai-compatible-web-server

We should either replace our server or find another way how to parallelize this.

@jpodivin
Copy link
Collaborator

Replacement with the server from llama.cpp would be the most straightforward.

@jpodivin jpodivin added the enhancement New feature or request label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants