[CI] torch-compile-models-standard: test_bert_base_uncased failed
Open
@lanluo-nvidia is already working on this.
Since Aug 16, 2026.
bug
- Dominant language
- Python
- Stars
- 3k
- Forks
- 410
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 78
Description
Bug Description
https://github.com/pytorch/TensorRT/actions/runs/31944904591/job/95213434731
FAILED models/test_models.py::test_bert_base_uncased[dtype1] - torch._dynamo.exc.BackendCompilerFailed: backend='torch_tensorrt_backend' raised:
ValueError: __len__() should return >= 0
While executing %permute_6 : [num_users=1] = call_function[target=torch.ops.aten.permute.default](args = (%getitem_3, [0, 2, 1, 3]), kwargs = {})
Original traceback:
None
Use tlparse to see full graph. (https://github.com/pytorch/tlparse?tab=readme-ov-file#tlparse-parse-structured-pt2-logs)
Set TORCHDYNAMO_VERBOSE=1 for the internal stack trace (please do this especially if you're reporting a bug to PyTorch). For even more developer context, set TORCH_LOGS="+dynamo"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Environment
Build information about Torch-TensorRT can be found by turning on debug messages
- Torch-TensorRT Version (e.g. 1.0.0):
- PyTorch Version (e.g. 1.0):
- CPU Architecture:
- OS (e.g., Linux):
- How you installed PyTorch (
conda,pip,libtorch, source): - Build command you used (if compiling from source):
- Are you using local sources or building from archives:
- Python version:
- CUDA version:
- GPU models and configuration:
- 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.
Assessment
This issue has not been assessed yet.