Skip to content

ONNX Exported BART Model Performance is degraded than native pytorch on T4 #7796

Description

Describe the bug
Hariharan Seshadri (@hariharans29) creating new issue as your suggestion.

Stemming from Issue, post enabling CUDAExecutionProvider, the performance of inference seems to have degraded post ONNX conversion.

Pytorch Native Model Performance : 676 ms
ONNX Model Peformance: 2.78 sec

Urgency
Our project went live this weekend, but the performance is hammering us.

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux lab-am-vm 4.19.0-16-cloud-amd64 Set up CI with Azure Pipelines #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux

  • ONNX Runtime installed from (source or binary): PIP Install

  • ONNX Runtime version:
    onnxruntime-gpu==1.7.0

  • Python version: 3.7.10

  • CUDA/cuDNN version: release 11.0, V11.0.194

  • GPU model and memory: NVIDIA T4, 16G

To Reproduce
Attached full script/jupyter notebook to reproduce and analyze. Please look at cell #7 onwards.
bart_onnx-am.ipynb.zip

Expected behavior
Performance be significantly better than native pytorch

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

staleissues that have not been addressed in a while; categorized by a bot

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions