You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "SaiShashank12 (via GitHub)" <gi...@apache.org> on 2025/09/27 18:53:31 UTC

[I] [Bug]: TensorRT 10.x compatibility issues in TensorRTEngineHandlerNumPy [beam]

SaiShashank12 opened a new issue, #36306:
URL: https://github.com/apache/beam/issues/36306

   ### What happened?
   
   When running Beam’s TensorRT inference handler (`TensorRTEngineHandlerNumPy`) on TensorRT 10.x, inference fails immediately during initialization:
   
   AttributeError: 'tensorrt.tensorrt.ICudaEngine' object has no attribute 'num_bindings'
   
   This happens because the handler is written against the legacy TensorRT 8.x API. In TensorRT 10, the "bindings" API was removed and replaced with the new tensors API (`num_io_tensors`, `get_tensor_name`, `get_tensor_mode`, `execute_async_v3`, etc.).
   
   As a result, Beam pipelines cannot run on modern NVIDIA environments using TensorRT 10.x.
   
   
   ### Issue Priority
   
   Priority: 2 (default / most bugs should be filed as P2)
   
   ### Issue Components
   
   - [x] Component: Python SDK
   - [ ] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [ ] Component: IO connector
   - [ ] Component: Beam YAML
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Infrastructure
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Samza Runner
   - [ ] Component: Twister2 Runner
   - [ ] Component: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: TensorRT 10.x compatibility issues in TensorRTEngineHandlerNumPy [beam]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #36306: [Bug]: TensorRT 10.x compatibility issues in TensorRTEngineHandlerNumPy
URL: https://github.com/apache/beam/issues/36306


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: TensorRT 10.x compatibility issues in TensorRTEngineHandlerNumPy [beam]

Posted by "SaiShashank12 (via GitHub)" <gi...@apache.org>.
SaiShashank12 commented on issue #36306:
URL: https://github.com/apache/beam/issues/36306#issuecomment-3341979088

   .take-issue


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: TensorRT 10.x compatibility issues in TensorRTEngineHandlerNumPy [beam]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #36306:
URL: https://github.com/apache/beam/issues/36306#issuecomment-3341978509

   Label component:ml cannot be managed because it does not exist in the repo. Please check your spelling.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: TensorRT 10.x compatibility issues in TensorRTEngineHandlerNumPy [beam]

Posted by "SaiShashank12 (via GitHub)" <gi...@apache.org>.
SaiShashank12 commented on issue #36306:
URL: https://github.com/apache/beam/issues/36306#issuecomment-3344885224

   This is  the docker image that I have used
   ```
   ARG BUILD_IMAGE=[nvcr.io/nvidia/tensorrt:25.01-py3](http://nvcr.io/nvidia/tensorrt:25.01-py3)
   FROM ${BUILD_IMAGE}
   ENV PATH="/usr/src/tensorrt/bin:${PATH}"
   
   WORKDIR /workspace
   
   RUN apt-get update -y && \
       apt-get install -y \
       python3-venv \
       libx11-6 \
       libsm6 \
       libxext6 \
       libxrender-dev \
       libgl1
   
   RUN pip install --no-cache-dir apache-beam[gcp]==2.67.0
   
   COPY --from=apache/beam_python3.10_sdk:2.67.0 /opt/apache/beam /opt/apache/beam
   
   
   RUN pip install --upgrade pip && \
   pip install torch && \
   pip install torchvision && \
   pip install pillow>=8.0.0 && \
   pip install transformers>=4.18.0 && \
   pip install cuda-python==12.8 && \
   pip install opencv-python==4.7.0.72 && \
   pip install PyMuPDF==1.22.5 && \
   pip install requests && \
   pip install numpy==2.0.1
   
   ENTRYPOINT ["/opt/apache/beam/boot"]
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: TensorRT 10.x compatibility issues in TensorRTEngineHandlerNumPy [beam]

Posted by "SaiShashank12 (via GitHub)" <gi...@apache.org>.
SaiShashank12 commented on issue #36306:
URL: https://github.com/apache/beam/issues/36306#issuecomment-3341978448

   .add-labels component:ml,type:bug,priority:P2
   .take-issue


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: TensorRT 10.x compatibility issues in TensorRTEngineHandlerNumPy [beam]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #36306:
URL: https://github.com/apache/beam/issues/36306#issuecomment-4150096701

   This issue has been closed due to lack of activity. If you think that is incorrect, you can reopen the issue at any time.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org