INT8 quantization with Torch-TensorRT fails



at our company we are having problems using Pytorch-TensorRT with the official Nvidia Docker image, version 22.05.

The problems come with int8 quantization, and are already reported in pytorch bug tracker, unfortunately with no answer [].

We also have found the bug reported here [], which is still connected to int8 quantization in Pytorch-TensorRT


TensorRT Version: (Torch-TensorRT) 1.2.0a0+666a2637
GPU Type: GeForce RTX 2080 Ti
Nvidia Driver Version: GeForce RTX 2080 Ti
CUDA Version: 11.0
CUDNN Version: 8.4
Operating System + Version: ubuntu 18.04
Python Version (if applicable): 3.8.10
TensorFlow Version (if applicable): –
PyTorch Version (if applicable): 1.11.00
Baremetal or Container (if container which image + tag): Nvidial NGC Container

Relevant Files

The first bug is encountered when executing this notebook [] in the Nvidia-Pytorch container 22.05.

The stack trace can be found in the link to the Pytorch GitHub issue.

The second bug description is found in its GitHub issue page: a segmentation fault occurs when using int8 quantization with TensorRT.

Steps To Reproduce

The first bug is easily reproducible by executing the notebook inside the container version 22.05.

Hi, Please refer to the below links to perform inference in INT8



My problem concerns the Pytorch-TensorRT library. Any advice on that?



Regarding the reported bugs, please wait for an update on the git issues.
For QAT using the PyTorch, the following links may be helpful to you.

Thank you.