-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
nvidia-trt: no stop request, stop response for decoupled model #17764
nvidia-trt: no stop request, stop response for decoupled model #17764
Conversation
- detect decoupled model and request explicit stop response
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
@@ -218,7 +218,7 @@ def _invoke_triton(self, model_name, inputs, outputs, stop_words): | |||
result_queue = StreamingResponseGenerator( | |||
self, | |||
request_id, | |||
force_batch=False, | |||
signal_stop=False, |
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.
renaming to meaningful. Inverting it at line 405.
TLDR triton doesn't let one cancel a request triton-inference-server/server#4818
@@ -238,6 +238,7 @@ def _invoke_triton(self, model_name, inputs, outputs, stop_words): | |||
inputs=inputs, | |||
outputs=outputs, | |||
request_id=request_id, | |||
enable_empty_final_response=self.client.get_model_config(model_name).config.model_transaction_policy.decoupled |
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.
I want to improve it here. Maybe cache it or use it as model_ready call above. I also don't know how much this grpc code is null proof.
Should be against the https://github.com/langchain-ai/langchain-nvidia repo instead! |
Description:
Issue: now it sends
stop:True
as an input, and triton rejects it; then withouttriton_enable_empty_final_response=True
stream hangs foreverAdd tests and docs: If you're adding a new integration, please include
docs/docs/integrations
directory.Lint and test: Run
make format
,make lint
andmake test
from the root of the package(s) you've modified. See contribution guidelines for more: https://python.langchain.com/docs/contributing/If no one reviews your PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, hwchase17.