forked from vllm-project/vllm
-
Couldn't load subscription status.
- Fork 0
add rpyc #1
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
Merged
Merged
add rpyc #1
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…re out where the bottleneck is that's causing 0.1 seconds of iteration lag on this small model, don't think threadpoolexecutor helped
…to seanshi-scale/rpyc
…now at 42.2" This reverts commit 1a62dd0.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Testing methodology:
Ran on a machine with 4xA10 GPUs. Ran the llama-2-7b chat model with tensor-parallel-size 4. Send a single request with a pretty short prompt and a pretty long response (e.g. ~5-10ish tokens prompt, asking for ~500-1000 tokens response).
Raw notes:
curl http://localhost:8000/generate -d '{"prompt": "What is your name?", "n": 4, "temperature": 0.1}'curl http://localhost:8000/generate -d '{"prompt": "How do you make cookies?", "n": 1, "temperature": 0.2, "max_tokens": 1024, "stream": false}'python -m vllm.entrypoints.api_server --tensor-parallel-size 4 --model ~/llama-weights/hf-llama-2-7b-chat/--worker-use-rpycEOD 9/29:
llama-2-7b-chat, n=1:
17 tok/s with 4 workers, rpyc
53ish tok/s with 4 workers, ray
22 tok/s with 2 workers, rpyc
46 tok/s with 2 workers, ray
Midday 10/4
llama-2-7b-chat n=1:
49.5 tok/s with 4 workers, rpyc
54.7 tok/s with 4 workers, ray
maybe something is set wrong for torch to make things super slow? profile execute_model and see what's upsomething with rpyc/some weird bottleneck in the python/processes/idk actually
(mostly) fixed via
use asyncio vs threadpoolexec -> 49.5 tok/sec for rpyc vs 54.7 tok/sec for ray
to investigate: something with model execute taking 0.025ish seconds vs 0.015 seconds on occasionmaybe not a problem anymore? idk man my testing env might be not good?
TODO: