Add control panel allow manage multi vllm instances #4861
+716
−5
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.
This PR import controller feature from fastchat, which make vllm could be running with its full openai compatible server of latest features.
it inherits original fastchat controller core feature, such like model registry, auto scale, model roll update
it keeps controller logic layer at minimal shape, which it would forward whatever user request pass to vllm openai compatible server worker
it would also track each worker's unfinished queue length, and adjust the request sending speed accordingly. Thus keep the whole cluster balanced, and at its full serving capability.
Currently, only v1/completions and v1/chat/completions are implemented. Along with other three interface to help check controller status.
FILL IN THE PR DESCRIPTION HERE
FIX #4226
Since vllm openai compatible server is evolving rapidly, I think we may need to move the control panel feature we
see from fastchat into vllm itself, to enjoy those feature fastchat brought to us along with latest vllm functions.