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

support/optimize ASR on HPU #280

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

Spycsh
Copy link
Member

@Spycsh Spycsh commented Jun 12, 2024

Description

In this PR Whisper ASR inference is enabled on HPU, and at the same time optimized with one warmup with a long enough audio. (<The Whisper short-form case 30s limit). After this warmup, future shorter generation should follow the same subset of cached HPU graph and be fast. The e2e perf gain HPU compared to CPU can be up to roughly 2~3x.

Language is updated to be required as explicitly specified: (e.g. "english", "chinese"). Check the Whisper compatible language list. The default language is "english". We deprecate the auto language detection (where AudioSpeechRecognition.language is None) until #1049 is considered to be handled. It is not a must except for special usage. The default language is "english".

Issues

List the issue or RFC link this PR is working on. If there is no such link, please mark it as n/a.

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)

Dependencies

None

Tests

None

@hshen14 hshen14 merged commit 2a48601 into opea-project:main Jun 12, 2024
8 checks passed
Spycsh added a commit to Spycsh/GenAIExamples that referenced this pull request Jun 19, 2024
* optimize asr on hpu

Signed-off-by: Spycsh <[email protected]>
yogeshmpandey pushed a commit to hteeyeoh/GenAIExamples that referenced this pull request Aug 12, 2024
* optimize asr on hpu

Signed-off-by: Spycsh <[email protected]>
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

Successfully merging this pull request may close these issues.

4 participants