🐛 [Bug] Encountered bug when using Torch-TensorRT
Open
Nobody has claimed this yet.
bug
story: Dynamo Frontend & Partitioning
- Dominant language
- Python
- Stars
- 3k
- Forks
- 410
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 78
Description
Bug Description
Presence of BUILD file in released wheel does break use of package in Bazel with rules-python (https://github.com/bazel-contrib/rules_python/issues/2780).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Import works without any issues.
Environment
Build information about Torch-TensorRT can be found by turning on debug messages
- Torch-TensorRT Version (e.g. 1.0.0): 2.6.0, CUDA 12.6
- PyTorch Version (e.g. 1.0): 2.6.0
- CPU Architecture: x86/64
- OS (e.g., Linux): Ubuntu 24.04
- How you installed PyTorch (
conda,pip,libtorch, source): Bazel, rules-python - Build command you used (if compiling from source): -
- Are you using local sources or building from archives: -
- Python version: 3.11
- CUDA version: 12.6
- GPU models and configuration: Tesla T4
- Any other relevant information: -
Additional context
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reproduction repository at https://github.com/scanvio/bazel-torch-tensorrt and inspect the released Torch-TensorRT wheel, focusing on how its BUILD file is packaged. Done means the package can be imported through Bazel with rules-python without the released BUILD file causing a conflict.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- build-system, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100