Comments (4)
Hi @mrwyattii, I think the problem with the grpc client is this
DeepSpeed-MII/mii/server_client.py
Line 70 in 79b56af
from deepspeed-mii.
If I understand, you are trying to stand up a DeepSpeed-MII GRPC server and then send queries to that server remotely. Is that correct?
As for the second question, we do not currently support loading/unloading models at query time. You might be able to achieve this by using mii.terminate(old_deployment_name)
and then mii.deploy(new_deployment_name, ...)
when you detect that the query you are running does not match the current deployment.
from deepspeed-mii.
If I understand, you are trying to stand up a DeepSpeed-MII GRPC server and then send queries to that server remotely. Is that correct?
In my understanding DeepSpeed is both an optimisation solution and an inference engine (cf).
Is there a way, using DeepSpeed-MII, to have the DeepSpeed engine in a remote server and specify to the client the target host/post?
As for the second question, we do not currently support loading/unloading models at query time. You might be able to achieve this by using mii.terminate(old_deployment_name) and then mii.deploy(new_deployment_name, ...) when you detect that the query you are running does not match the current deployment.
Do you plan to handle this feature? I would be happy to help to implement this feature if needed π
(Using mii.terminate(old_deployment_name)
and then mii.deploy(new_deployment_name, ...)
would be really slow)
from deepspeed-mii.
Sorry the late reply on this. There is a way to use MII on a remote server and have a client send queries and receive a response. This functionality right now is currently limited to AML deployments. You could probably adapt what we are doing in the AML deployment docker image to achieve this functionality yourself:
DeepSpeed-MII/mii/aml_related/templates.py
Line 105 in 747072b
I realize you have asked about providing a Docker image for MII previously (#83). I've been working on automatically generating up-to-date images that we can share on DockerHub and on Azure Marketplace to make deploying MII easier. I think we could also bundle some things from our AML docker builds to enable this remote server capability on non-AML deployments.
Do you plan to handle this feature? I would be happy to help to implement this feature if needed π
We currently do not have plans to add this feature, but we are always open to outside contributions. Is the main goal here to have a persistent GRPC server that can swap which model it's running on the fly?
from deepspeed-mii.
Related Issues (20)
- how can I use deepspeed to split the model to submit GPU?
- Is openai compatible server still working? HOT 1
- How do I launch the api on a graphics card other than cuda: 0 HOT 1
- How is the prompt segmentation specifically implemented for Dynamic SplitFuse? Is there any code implement or code snippet οΌ
- [FEATURE] Access to logits and final hidden layer HOT 1
- RuntimeError: The server socket has failed to listen on any local network address HOT 1
- Only running one replica even though setting many replicas
- [Problem]errno: 98 - Address already in use
- Performance with vllm
- error when using Qwen1.5-32B
- ValueError: Unsupported model type phi3
- BUG in run_batch_processing
- Cannot run Yi-34B-Chat => ValueError: Unsupported q_ratio: 7 HOT 2
- [REQUEST] Mixtral-8x22B support
- [REQUEST] LLAMA-3 support
- Does deepspeed-mii support prefix_allowed_tokens_fn?
- DeepSpeed-MII θ½ε θ½½ιεηint4ζθ int8η樑εεοΌ
- Tf32 support
- How can I use the same prompt to produce the same text output as vllm
- Support LLava next stronger
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepspeed-mii.