Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quantize model is slower than raw model #69

Open
jinggaizi opened this issue Dec 1, 2022 · 3 comments
Open

Quantize model is slower than raw model #69

jinggaizi opened this issue Dec 1, 2022 · 3 comments

Comments

@jinggaizi
Copy link

I test espnet_onnx with a conformer model, I eval 100 wav 10 times and calculate the RTF only forward time, the result is

cpu gpu
fp32 0.0180668 0.00263397
quantize 0.0172804 0.0124609

quantize model is very slower than fp32 model on GPU and just a litter bit faster on cpu

System information:
torch /cuda / GPU: 11.0 / 11.6 / A100
cpu: AMD EPYC 7402 24-Core Processor
onnx: 1.10.1
onnxruntime-gpu : 1.13.1
espnet_onnx: 0.1.9

Have you tested the speed of the quantize model on GPU

@Masao-Someki
Copy link
Collaborator

Hi @jinggaizi, GPU inference of quantized model is not supported on onnxruntime, that's why it is slow.

@jinggaizi
Copy link
Author

thanks ,I will learn tensorRT to support this mode

@1nlplearner
Copy link

I test espnet_onnx with a conformer model, I eval 100 wav 10 times and calculate the RTF only forward time, the result is

cpu gpu
fp32 0.0180668 0.00263397
quantize 0.0172804 0.0124609
quantize model is very slower than fp32 model on GPU and just a litter bit faster on cpu

System information: torch /cuda / GPU: 11.0 / 11.6 / A100 cpu: AMD EPYC 7402 24-Core Processor onnx: 1.10.1 onnxruntime-gpu : 1.13.1 espnet_onnx: 0.1.9

Have you tested the speed of the quantize model on GPU

hi, do you encounter the problem
#70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants