-
Notifications
You must be signed in to change notification settings - Fork 1.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
Add testing for decoupled model use case #7246
Conversation
6c85d28
to
d5111c1
Compare
|
||
|
||
class TritonPythonModel: | ||
"""This model launches a separate thread to handle the request from a queue. The thread is launched from |
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.
Please keep the number of characters in each line below 80.
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.
@dyastremsky do you know why CodeQL didn't catch this?
wait_input = pb_utils.get_input_tensor_by_name(requests[0], "WAIT").as_numpy() | ||
time.sleep(wait_input[0] / 1000) | ||
|
||
return None |
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.
nit: 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.
I was wondering if you mean remove return None
? I thought we'd need to return None
from execute if it's in decoupled mode.
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.
Not returning anything is similar to returning None
.
Closing as per discussion a better approach would be handle this in the Triton core instead of PYBE. Filed ticket DLIS-6795 to track this. |
Testing added for the specific use case of launching a separate thread for decoupled models. Fixed a small issue for the CI as well.
PYBE: triton-inference-server/python_backend#358