Skip to content

Conversation

@shewu-quic
Copy link
Collaborator

@shewu-quic shewu-quic commented Jun 30, 2025

Summary:

  • Add the unit test for Whisper
  • Support multi-method for Whisper
  • Add qnn_whisper_runner to run whisper encoder-decoder model

Command:

python examples/qualcomm/oss_scripts/whisper/whisper.py -b build-android  -s <serial> -H <host> -m SM8750 --max_seq_len 1024

Performance:

  • SM8750:
    • avg encoding time: 0.037 s
    • avg decoding time: 0.004 s

Accuracy:

  • Word Error Rate: 0.1941964328289032

cc: @haowhsu-quic, @cccclai , @winskuo-quic

Summary:
- Fixed the bug of index_put
- Add the unit test for Whisper
- Support multi-method for Whisper
- Add qnn_whisper_runner to run whisper encoder-decoder model
@pytorch-bot
Copy link

pytorch-bot bot commented Jun 30, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12102

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure

As of commit ff09c9a with merge base bf9cd34 (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 30, 2025
@shewu-quic
Copy link
Collaborator Author

@pytorchbot label "release notes: qualcomm"

@pytorch-bot pytorch-bot bot added the release notes: qualcomm Changes to the Qualcomm backend delegate label Jun 30, 2025
@facebook-github-bot
Copy link
Contributor

@cccclai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link
Contributor

@cccclai cccclai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Curious if whisper needs special handling for better perf?

@cccclai cccclai merged commit fd677ac into pytorch:main Jul 4, 2025
103 of 106 checks passed
@shewu-quic
Copy link
Collaborator Author

This is great! Curious if whisper needs special handling for better perf?

Currently, I’m applying these optimizations:

  1. Converting linear layers to convolutional
  2. Tagging quant IO to avoid Q/DQ for input/output

I believe there’s still room for further performance improvements, such as mha2sha and custom annotation for kv cache.

Tanish2101 pushed a commit to Tanish2101/executorch that referenced this pull request Jul 9, 2025
Summary:
- Add the unit test for Whisper
- Support multi-method for Whisper
- Add qnn_whisper_runner to run whisper encoder-decoder model

Command: 
```
python examples/qualcomm/oss_scripts/whisper/whisper.py -b build-android  -s <serial> -H <host> -m SM8750 --max_seq_len 1024
```

Performance:
- SM8750: 
  - avg encoding time: 0.037 s
  - avg decoding time: 0.004 s

Accuracy:
- Word Error Rate: 0.1941964328289032

cc: @haowhsu-quic, @cccclai , @winskuo-quic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: qualcomm Changes to the Qualcomm backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants