You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lcp[server] has been excellent. And I can host two models by running a second instance.
I'd like to be able to serve multiple models with a single instance of the OpenAI-compatible server and switch between them based on alias-able model in the query payload. My use case is to serve a code model and bakllava at the same time.
I am going to see about attempting to PR an Nginx configuration example that would reverse proxy to two instances based on the model in the POST body, but first order support would be great. If no one picks this up, I might attempt a PR of first order support early '24.
I've been working on a system that could potentially solve some of the limitations in the current server implementation. Specifically, I'm developing a solution that allows for:
Loading and maintaining multiple models simultaneously in memory
Parallel processing of requests across different models
Dynamic model loading and unloading based on demand
This approach could significantly enhance performance and flexibility, especially for applications requiring rapid switching between different models or concurrent use of multiple models.
I'd be happy to share more details or contribute to implementing this feature if there's interest. The system uses ZeroMQ for efficient inter-process communication and asyncio for non-blocking operations, allowing for high concurrency and scalability.
Let me know if you'd like to discuss this further or if you have any questions about the proposed implementation."
Activity
bioshazard commentedon Nov 13, 2023
Might also help to serve another model specifically for embeddings than to rely on whatever my latest 7B obsession does.
NewtonTrendy commentedon Nov 20, 2023
I would like this too!
abetlen commentedon Dec 22, 2023
Implemented in #931 next up is #736
bioshazard commentedon Dec 22, 2023
Thank you!! And wow #736 is a huge idea.
milkymap commentedon Aug 19, 2024
I've been working on a system that could potentially solve some of the limitations in the current server implementation. Specifically, I'm developing a solution that allows for:
This approach could significantly enhance performance and flexibility, especially for applications requiring rapid switching between different models or concurrent use of multiple models.
I'd be happy to share more details or contribute to implementing this feature if there's interest. The system uses ZeroMQ for efficient inter-process communication and asyncio for non-blocking operations, allowing for high concurrency and scalability.
Let me know if you'd like to discuss this further or if you have any questions about the proposed implementation."