You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context
Hey, I'm setting up a python backend and I am using dlpack to keep the tensors on GPU. As described in its doc, the tensor will be in either CPU or GPU memory, depending on how those tensors were last used, which in my cased is by a ONNX model using an ensemble.
A dummy diagram of the ensemble would be like this:
------------ --------------
| ONNX MODEL | ---[Tensor]--> | Python Model |
------------ --------------
When doing the request one by one to my ensemble, the Tensor is indeed always on the GPU as expected, but when sending a bunch of request simultaneously to the ensemble, it appears that some times the tensor is instead present on the CPU.
I see only three possible reasons for this behaviour:
ONNX-RT/backend does a silent fallback to CPU
Triton's queue sometimes move the tensor from GPU to CPU (would be the first time we see this)
Another model/service use this tensor (but none of my models does use this same tensor)
Note that both models are set as KIND_GPU, and for debugging purposed the max batch size is set to 1.
Question
Is it possible that ONNX-RT or the ONNX Backend does a silent fallback to CPU when certain conditions are met?
The text was updated successfully, but these errors were encountered:
Context
Hey, I'm setting up a python backend and I am using
dlpack
to keep the tensors on GPU. As described in its doc, the tensor will be in either CPU or GPU memory, depending on how those tensors were last used, which in my cased is by aONNX
model using an ensemble.A dummy diagram of the ensemble would be like this:
When doing the request one by one to my ensemble, the Tensor is indeed always on the GPU as expected, but when sending a bunch of request simultaneously to the ensemble, it appears that some times the tensor is instead present on the CPU.
I see only three possible reasons for this behaviour:
Note that both models are set as
KIND_GPU
, and for debugging purposed the max batch size is set to1
.Question
Is it possible that ONNX-RT or the ONNX Backend does a silent fallback to CPU when certain conditions are met?
The text was updated successfully, but these errors were encountered: