-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
[V1] [6/N] API Server: Better Shutdown #11586
Conversation
👋 Hi! Thank you for contributing to the vLLM project. Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can do one of these:
🚀 |
vllm/engine/protocol.py
Outdated
@@ -29,11 +29,6 @@ class EngineClient(ABC): | |||
def is_running(self) -> bool: | |||
... | |||
|
|||
@property |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: this property is not sure anywhere
vllm/v1/engine/async_llm.py
Outdated
@@ -273,10 +292,12 @@ async def _run_output_handler(self): | |||
|
|||
# 4) Abort any requests that finished due to stop strings. | |||
await self.engine_core.abort_requests_async(reqs_to_abort) | |||
raise ValueError("my error!") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my b
vllm/v1/engine/async_llm.py
Outdated
raise e | ||
except Exception: | ||
traceback = get_exception_traceback() | ||
logger.error("EngineCore hit an exception: %s", traceback) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logger.error should automatically print traceback?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like there's some debug cruft that snuck in during acbe6e3
vllm/engine/llm_engine.py
Outdated
@@ -616,6 +616,7 @@ def _add_processed_request( | |||
decoder_inputs = processed_inputs | |||
encoder_inputs = None | |||
|
|||
print(f"{decoder_inputs=}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this?
@@ -105,13 +105,16 @@ async def create_completion( | |||
|
|||
tokenizer = await self.engine_client.get_tokenizer(lora_request) | |||
|
|||
print(f"{request.prompt=}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
print(f"{request_prompts=}") | ||
print(f"{engine_prompts=}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
print(f"{prompt=}") | ||
ret = tokenizer.encode(prompt) | ||
print(f"{ret=}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
Whoops, will fix |
Signed-off-by: xcnick <[email protected]>
This reverts commit 5886aa4.
SUMMARY:
AsyncLLM
Pros/Cons of current design
Follow Up