NVIDIA / NVIDIA/TensorRT

Obvious performance degradation for TRT-fp16 model compared to original Pytorch model

Open
#2,942 13 comments 0 reactions 1 assignee View on GitHub

@zerollzeng is already working on this.

Since May 8, 2023.

triaged
Dominant language
C++
Stars
13.4k
Forks
2.4k
Avg merge
5d 3h
Merged PRs (30d)
2

Description

Description

The performence of TRT-fp32 and OnnxRuntime is equal to the original Pytorch model, while there is obvious performance degradation in TRT-fp16,what is the reason and how to solve it?

image

Environment

Pytorch: 2.0.0
CUDA: 11.4
Cudnn: 8.6.0
TensorRT: 8.5-GA
Graphic Cards: Nvidia A100
GPU Driver version: 515.86.01
Operating System: Ubuntu 20.04
Python: 3.10

If there's need to modify some layers or operation of model to improve the performance of TRT-fp16, how to locate these layers or operations?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.