how can i use triton_python_backend_utils? #5986
-
|
Description root@4248wefe0f480:~# python3
how can i use it? how can i doing Triton Information Are you using the Triton container or did you build it yourself? Expected behavior import done well |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
|
I think the |
Beta Was this translation helpful? Give feedback.
-
|
@kthui thx for comment! wow that is so amazing...! how is this possible? |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
If you have stumbled upon this discussion because you are trying to figure out how to debug TritonPythonModel, then one way to add a lot of logging messages while running the tritonserver, and start from there. Or, you could create a mock ├── mock
│ ├── main.py # attach a debugger
│ ├── model.py # contains TritonPythonModel
│ └── triton_python_backend_utils.py # define the functionalities of pb_utils, minimallyPersonally, I like the mock environment idea. I haven't gone through the rest of Triton's documentation yet so maybe the answer is more obvious to some of you 🥲 But I hope it helps for somebody who's kinda stuck at this. |
Beta Was this translation helpful? Give feedback.

triton_python_backend_utilsis a utility library provided by the Triton Python backend, see this comment for its purpose.