Skip to content
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

Update TensorRT repository branch to match TensorRT installed #96

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kgonia
Copy link

@kgonia kgonia commented Jun 2, 2024

I tried running the Stable Diffusion example; however, there is a problem with running it due to a TensorRT version mismatch.

The container has installed version 10+. Here is the result of pip list:

tensorrt                 10.0.1
tensorrt-cu12            10.0.1
tensorrt-cu12-bindings   10.0.1
tensorrt-cu12-libs       10.0.1

But Docker refers to a repository with version 9.

There was a change in the API:

https://docs.nvidia.com/deeplearning/tensorrt/migration-guide/index.html

get_binding_dtype is now get_tensor_dtype.

With version 9, I got this error:

tritonserver.InvalidArgumentError: load failed for model 'stable_diffusion_1_5': version 1 is at UNAVAILABLE state: Internal: AttributeError: 'tensorrt_bindings.tensorrt.ICudaEngine' object has no attribute 'get_binding_dtype'

At:
  /opt/tritonserver/backends/diffusion/Diffusion/utilities.py(225): allocate_buffers
  /opt/tritonserver/backends/diffusion/Diffusion/stable_diffusion_pipeline.py(253): loadResources
  /opt/tritonserver/backends/diffusion/model.py(140): initialize
;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant