Skip to content

[Performance] CUDA and ROCm beam search (huge) performance regression #16642

Description

@cloudhan

Describe the issue

1001ec9 severely deteriorate ROCm beam search performance by >= 2.x

For an test example, before this commit the decoding performance is 0.545s for a sample with batch 2, beam 4 and min len 20, max len 128. With this commit, the time it takes is 2.274s, this is more than 2x worse!

To reproduce

git checkout f5e9625 && git cherry-pick 15f16ef36e # build and run, the perf should be good
git checkout 1001ec9 && git cherry-pick 15f16ef36e # build and run, the perf will be much worse

Urgency

No response

Platform

No response

OS Version

ONNX Runtime Installation

Built from Source

ONNX Runtime Version or Commit ID

1001ec9

ONNX Runtime API

Python

Architecture

X64

Execution Provider

CUDA

Execution Provider Library Version

CUDA and ROCm

Model File

whisper large

Is this a quantized model?

No

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ep:CUDAissues related to the CUDA execution providerep:ROCmquestions/issues related to ROCm execution provider

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions