NVIDIA / NVIDIA/TensorRT

why the yolov8 int8 quant using pytorch_quant is slower than trt --fp16 quant

Open
#3,762 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

devicec : nvidia NX
1.using trt --fp16
/usr/src/tensorrt/bin/trtexec --onnx=best.onnx --workspace=4096 --saveEngine=best.engine --fp16
the result of infer speed is 36.8ms
2. using pytorch_quant int8
/usr/src/tensorrt/bin/trtexec --onnx=best.onnx --saveEngine=v8s_ptq.engine --int8 --workspace=4096
the result of infer speed is : 39.5ms

### Tasks

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.

Research direction

Start by reproducing the two /usr/src/tensorrt/bin/trtexec commands on the NVIDIA NX with best.onnx and the stated workspace settings. Compare the generated FP16 and INT8 engine behavior and document why the INT8 engine measures 39.5 ms versus 36.8 ms, including the conditions needed for a reliable comparison.

Written by the indexing model from the issue text.

Assessment

Tech stack
pytorch
Domain
machine-learning, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.