Whisper-Medium: Optimized for Qualcomm Devices
HuggingFace Whisper-Medium ASR (Automatic Speech Recognition) model is a state-of-the-art system designed for transcribing spoken language into written text. This model is based on the transformer architecture and has been optimized for edge inference by replacing Multi-Head Attention (MHA) with Single-Head Attention (SHA) and linear layers with convolutional (conv) layers. It exhibits robust performance in realistic, noisy environments, making it highly reliable for real-world applications. Specifically, it excels in long-form transcription, capable of accurately transcribing audio clips up to 30 seconds long. Time to the first token is the encoder's latency, while time to each additional token is decoder's latency, where we assume a max decoded length specified below.
This is based on the implementation of Whisper-Medium found here. This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the Qualcomm® AI Hub Models library to export with custom configurations. More details on model performance across various devices, can be found here.
Qualcomm AI Hub Models uses Qualcomm AI Hub Workbench to compile, profile, and evaluate this model. Sign up to run these models on a hosted Qualcomm® device.
Deploying Whisper-Medium on-device
This model is compatible with the Qualcomm Voice AI SDK. Download the SDK from the Qualcomm Package Manager to deploy this model on-device.
Getting Started
There are two ways to deploy this model on your device:
Option 1: Download Pre-Exported Models
Below are pre-exported model assets ready for deployment.
| Runtime | Precision | Chipset | SDK Versions | Download |
|---|---|---|---|---|
| PRECOMPILED_QNN_ONNX | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | QAIRT 2.51, ONNX Runtime 1.30.0 | Download |
| PRECOMPILED_QNN_ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | QAIRT 2.51, ONNX Runtime 1.30.0 | Download |
| PRECOMPILED_QNN_ONNX | float | Snapdragon® X2 Elite | QAIRT 2.51, ONNX Runtime 1.30.0 | Download |
| PRECOMPILED_QNN_ONNX | float | Snapdragon® X Elite | QAIRT 2.51, ONNX Runtime 1.30.0 | Download |
| PRECOMPILED_QNN_ONNX | float | Snapdragon® 8 Gen 3 Mobile | QAIRT 2.50, ONNX Runtime 1.30.0 | Download |
| PRECOMPILED_QNN_ONNX | float | Snapdragon® 8 Gen 1 Mobile | QAIRT 2.51 | Download |
| PRECOMPILED_QNN_ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | QAIRT 2.51, ONNX Runtime 1.30.0 | Download |
| PRECOMPILED_QNN_ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | QAIRT 2.51, ONNX Runtime 1.30.0 | Download |
| PRECOMPILED_QNN_ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | QAIRT 2.51, ONNX Runtime 1.30.0 | Download |
| PRECOMPILED_QNN_ONNX | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | QAIRT 2.51, ONNX Runtime 1.30.0 | Download |
| PRECOMPILED_QNN_ONNX | float | Snapdragon® 8 Elite Gen 6 Mobile | QAIRT 2.51, ONNX Runtime 1.30.0 | Download |
| QNN_CONTEXT_BINARY | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | QAIRT 2.51 | Download |
| QNN_CONTEXT_BINARY | float | Snapdragon® 8 Elite For Galaxy Mobile | QAIRT 2.51 | Download |
| QNN_CONTEXT_BINARY | float | Snapdragon® X2 Elite | QAIRT 2.51 | Download |
| QNN_CONTEXT_BINARY | float | Snapdragon® X Elite | QAIRT 2.51 | Download |
| QNN_CONTEXT_BINARY | float | Snapdragon® 8 Gen 3 Mobile | QAIRT 2.50 | Download |
| QNN_CONTEXT_BINARY | float | Snapdragon® 8 Gen 1 Mobile | QAIRT 2.51 | Download |
| QNN_CONTEXT_BINARY | float | Qualcomm® Dragonwing™ IQ-8275 | QAIRT 2.51 | Download |
| QNN_CONTEXT_BINARY | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | QAIRT 2.51 | Download |
| QNN_CONTEXT_BINARY | float | Qualcomm® SA8775P | QAIRT 2.51 | Download |
| QNN_CONTEXT_BINARY | float | Qualcomm® Dragonwing™ IQ-9075 | QAIRT 2.51 | Download |
| QNN_CONTEXT_BINARY | float | Qualcomm® SA7255P | QAIRT 2.51 | Download |
| QNN_CONTEXT_BINARY | float | Qualcomm® SA8295P | QAIRT 2.51 | Download |
| QNN_CONTEXT_BINARY | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | QAIRT 2.51 | Download |
| QNN_CONTEXT_BINARY | float | Snapdragon® 8 Elite Gen 6 Mobile | QAIRT 2.51 | Download |
| VOICE_AI | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | QAIRT 2.51 | Download |
| VOICE_AI | float | Snapdragon® 8 Elite For Galaxy Mobile | QAIRT 2.51 | Download |
| VOICE_AI | float | Snapdragon® X2 Elite | QAIRT 2.51 | Download |
| VOICE_AI | float | Snapdragon® X Elite | QAIRT 2.51 | Download |
| VOICE_AI | float | Snapdragon® 8 Gen 3 Mobile | QAIRT 2.50 | Download |
| VOICE_AI | float | Snapdragon® 8 Gen 1 Mobile | QAIRT 2.51 | Download |
| VOICE_AI | float | Qualcomm® Dragonwing™ IQ-8275 | QAIRT 2.51 | Download |
| VOICE_AI | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | QAIRT 2.51 | Download |
| VOICE_AI | float | Qualcomm® SA8775P | QAIRT 2.51 | Download |
| VOICE_AI | float | Qualcomm® Dragonwing™ IQ-9075 | QAIRT 2.51 | Download |
| VOICE_AI | float | Qualcomm® SA7255P | QAIRT 2.51 | Download |
| VOICE_AI | float | Qualcomm® SA8295P | QAIRT 2.51 | Download |
| VOICE_AI | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | QAIRT 2.51 | Download |
| VOICE_AI | float | Snapdragon® 8 Elite Gen 6 Mobile | QAIRT 2.51 | Download |
For more device-specific assets and performance metrics, visit Whisper-Medium on Qualcomm® AI Hub.
Option 2: Export with Custom Configurations
Use the Qualcomm® AI Hub Models Python library to compile and export the model with your own:
- Custom weights (e.g., fine-tuned checkpoints)
- Custom input shapes
- Target device and runtime configurations
This option is ideal if you need to customize the model beyond the default configuration provided here.
See our repository for Whisper-Medium on GitHub for usage instructions.
Model Details
Model Type: Model_use_case.speech_recognition
Model Stats:
- Input resolution: 80x3000 (30 seconds audio)
- Max decoded sequence length: 200 tokens
- Model checkpoint: openai/whisper-medium
- Model size (decoder) (float): 1.54GB
- Model size (encoder) (float): 1.54GB
- Number of parameters (decoder): 385M
- Number of parameters (encoder): 384M
Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit |
|---|---|---|---|---|---|---|
| decoder | PRECOMPILED_QNN_ONNX | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 23.086 ms | 152 - 164 MB | NPU |
| decoder | PRECOMPILED_QNN_ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 23.883 ms | 106 - 119 MB | NPU |
| decoder | PRECOMPILED_QNN_ONNX | float | Snapdragon® X2 Elite | 17.941 ms | 160 - 160 MB | NPU |
| decoder | PRECOMPILED_QNN_ONNX | float | Snapdragon® X Elite | 28.983 ms | 726 - 726 MB | NPU |
| decoder | PRECOMPILED_QNN_ONNX | float | Snapdragon® 8 Gen 3 Mobile | 29.937 ms | 200 - 211 MB | NPU |
| decoder | PRECOMPILED_QNN_ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 41.069 ms | 159 - 323 MB | NPU |
| decoder | PRECOMPILED_QNN_ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 34.641 ms | 143 - 146 MB | NPU |
| decoder | PRECOMPILED_QNN_ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 37.15 ms | 160 - 323 MB | NPU |
| decoder | PRECOMPILED_QNN_ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 28.983 ms | 726 - 726 MB | NPU |
| decoder | PRECOMPILED_QNN_ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 23.883 ms | 106 - 119 MB | NPU |
| decoder | PRECOMPILED_QNN_ONNX | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 19.761 ms | 206 - 216 MB | NPU |
| decoder | PRECOMPILED_QNN_ONNX | float | Snapdragon® 8 Elite Gen 6 Mobile | 21.404 ms | 207 - 217 MB | NPU |
| decoder | QNN_CONTEXT_BINARY | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 21.38 ms | 140 - 155 MB | NPU |
| decoder | QNN_CONTEXT_BINARY | float | Snapdragon® 8 Elite For Galaxy Mobile | 23.346 ms | 111 - 125 MB | NPU |
| decoder | QNN_CONTEXT_BINARY | float | Snapdragon® X2 Elite | 18.537 ms | 160 - 160 MB | NPU |
| decoder | QNN_CONTEXT_BINARY | float | Snapdragon® X Elite | 28.759 ms | 160 - 160 MB | NPU |
| decoder | QNN_CONTEXT_BINARY | float | Snapdragon® 8 Gen 3 Mobile | 28.947 ms | 158 - 172 MB | NPU |
| decoder | QNN_CONTEXT_BINARY | float | Qualcomm® Dragonwing™ IQ-8275 | 41.071 ms | 160 - 341 MB | NPU |
| decoder | QNN_CONTEXT_BINARY | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 34.543 ms | 137 - 139 MB | NPU |
| decoder | QNN_CONTEXT_BINARY | float | Qualcomm® SA8650P | 36.697 ms | 160 - 172 MB | NPU |
| decoder | QNN_CONTEXT_BINARY | float | Qualcomm® SA8255P | 36.697 ms | 160 - 172 MB | NPU |
| decoder | QNN_CONTEXT_BINARY | float | Qualcomm® QCS8450 | 37.619 ms | 160 - 178 MB | NPU |
| decoder | QNN_CONTEXT_BINARY | float | Qualcomm® Dragonwing™ IQ-9075 | 37.87 ms | 160 - 340 MB | NPU |
| decoder | QNN_CONTEXT_BINARY | float | Qualcomm® Dragonwing™ IQ-X7181 | 28.759 ms | 160 - 160 MB | NPU |
| decoder | QNN_CONTEXT_BINARY | float | Qualcomm® Dragonwing™ Q-8750 | 23.346 ms | 111 - 125 MB | NPU |
| decoder | QNN_CONTEXT_BINARY | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 19.555 ms | 88 - 97 MB | NPU |
| decoder | QNN_CONTEXT_BINARY | float | Snapdragon® 8 Elite Gen 6 Mobile | 20.499 ms | 160 - 171 MB | NPU |
| decoder | VOICE_AI | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 20.998 ms | 108 - 119 MB | NPU |
| decoder | VOICE_AI | float | Snapdragon® 8 Elite For Galaxy Mobile | 23.42 ms | 113 - 127 MB | NPU |
| decoder | VOICE_AI | float | Snapdragon® X2 Elite | 18.476 ms | 160 - 160 MB | NPU |
| decoder | VOICE_AI | float | Snapdragon® X Elite | 28.74 ms | 160 - 160 MB | NPU |
| decoder | VOICE_AI | float | Snapdragon® 8 Gen 3 Mobile | 28.764 ms | 158 - 172 MB | NPU |
| decoder | VOICE_AI | float | Qualcomm® Dragonwing™ IQ-8275 | 40.216 ms | 160 - 341 MB | NPU |
| decoder | VOICE_AI | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 34.014 ms | 158 - 161 MB | NPU |
| decoder | VOICE_AI | float | Qualcomm® SA8650P | 36.842 ms | 146 - 158 MB | NPU |
| decoder | VOICE_AI | float | Qualcomm® SA8255P | 36.842 ms | 146 - 158 MB | NPU |
| decoder | VOICE_AI | float | Qualcomm® Dragonwing™ IQ-9075 | 36.761 ms | 160 - 340 MB | NPU |
| decoder | VOICE_AI | float | Qualcomm® Dragonwing™ IQ-X7181 | 28.74 ms | 160 - 160 MB | NPU |
| decoder | VOICE_AI | float | Qualcomm® Dragonwing™ Q-8750 | 23.42 ms | 113 - 127 MB | NPU |
| decoder | VOICE_AI | float | Qualcomm® SA8295P | 39.507 ms | 109 - 116 MB | NPU |
| decoder | VOICE_AI | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 19.773 ms | 104 - 114 MB | NPU |
| decoder | VOICE_AI | float | Snapdragon® 8 Elite Gen 6 Mobile | 20.861 ms | 160 - 171 MB | NPU |
| encoder | PRECOMPILED_QNN_ONNX | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 137.59 ms | 301 - 313 MB | NPU |
| encoder | PRECOMPILED_QNN_ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 176.141 ms | 304 - 316 MB | NPU |
| encoder | PRECOMPILED_QNN_ONNX | float | Snapdragon® X2 Elite | 141.645 ms | 527 - 527 MB | NPU |
| encoder | PRECOMPILED_QNN_ONNX | float | Snapdragon® X Elite | 332.16 ms | 697 - 697 MB | NPU |
| encoder | PRECOMPILED_QNN_ONNX | float | Snapdragon® 8 Gen 3 Mobile | 245.213 ms | 304 - 317 MB | NPU |
| encoder | PRECOMPILED_QNN_ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 419.894 ms | 157 - 161 MB | NPU |
| encoder | PRECOMPILED_QNN_ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 327.175 ms | 0 - 770 MB | NPU |
| encoder | PRECOMPILED_QNN_ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 393.423 ms | 302 - 306 MB | NPU |
| encoder | PRECOMPILED_QNN_ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 332.16 ms | 697 - 697 MB | NPU |
| encoder | PRECOMPILED_QNN_ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 176.141 ms | 304 - 316 MB | NPU |
| encoder | PRECOMPILED_QNN_ONNX | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 113.495 ms | 273 - 281 MB | NPU |
| encoder | PRECOMPILED_QNN_ONNX | float | Snapdragon® 8 Elite Gen 6 Mobile | 163.481 ms | 273 - 280 MB | NPU |
| encoder | QNN_CONTEXT_BINARY | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 136.841 ms | 0 - 9 MB | NPU |
| encoder | QNN_CONTEXT_BINARY | float | Snapdragon® 8 Elite For Galaxy Mobile | 174.027 ms | 1 - 9 MB | NPU |
| encoder | QNN_CONTEXT_BINARY | float | Snapdragon® X2 Elite | 141.247 ms | 0 - 0 MB | NPU |
| encoder | QNN_CONTEXT_BINARY | float | Snapdragon® X Elite | 331.968 ms | 0 - 0 MB | NPU |
| encoder | QNN_CONTEXT_BINARY | float | Snapdragon® 8 Gen 3 Mobile | 235.923 ms | 29 - 37 MB | NPU |
| encoder | QNN_CONTEXT_BINARY | float | Qualcomm® Dragonwing™ IQ-8275 | 419.854 ms | 1 - 145 MB | NPU |
| encoder | QNN_CONTEXT_BINARY | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 324.928 ms | 1 - 3 MB | NPU |
| encoder | QNN_CONTEXT_BINARY | float | Qualcomm® SA8650P | 441.603 ms | 1 - 12 MB | NPU |
| encoder | QNN_CONTEXT_BINARY | float | Qualcomm® SA8255P | 441.603 ms | 1 - 12 MB | NPU |
| encoder | QNN_CONTEXT_BINARY | float | Qualcomm® QCS8450 | 513.256 ms | 0 - 14 MB | NPU |
| encoder | QNN_CONTEXT_BINARY | float | Qualcomm® Dragonwing™ IQ-9075 | 392.504 ms | 0 - 144 MB | NPU |
| encoder | QNN_CONTEXT_BINARY | float | Qualcomm® Dragonwing™ IQ-X7181 | 331.968 ms | 0 - 0 MB | NPU |
| encoder | QNN_CONTEXT_BINARY | float | Qualcomm® Dragonwing™ Q-8750 | 174.027 ms | 1 - 9 MB | NPU |
| encoder | QNN_CONTEXT_BINARY | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 111.579 ms | 5 - 14 MB | NPU |
| encoder | QNN_CONTEXT_BINARY | float | Snapdragon® 8 Elite Gen 6 Mobile | 158.723 ms | 1 - 9 MB | NPU |
| encoder | VOICE_AI | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 137.773 ms | 1 - 11 MB | NPU |
| encoder | VOICE_AI | float | Snapdragon® 8 Elite For Galaxy Mobile | 173.311 ms | 13 - 22 MB | NPU |
| encoder | VOICE_AI | float | Snapdragon® X2 Elite | 141.467 ms | 0 - 0 MB | NPU |
| encoder | VOICE_AI | float | Snapdragon® X Elite | 329.686 ms | 0 - 0 MB | NPU |
| encoder | VOICE_AI | float | Snapdragon® 8 Gen 3 Mobile | 238.448 ms | 1 - 8 MB | NPU |
| encoder | VOICE_AI | float | Qualcomm® Dragonwing™ IQ-8275 | 417.673 ms | 0 - 145 MB | NPU |
| encoder | VOICE_AI | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 325.174 ms | 3 - 5 MB | NPU |
| encoder | VOICE_AI | float | Qualcomm® SA8650P | 441.333 ms | 1 - 12 MB | NPU |
| encoder | VOICE_AI | float | Qualcomm® SA8255P | 441.333 ms | 1 - 12 MB | NPU |
| encoder | VOICE_AI | float | Qualcomm® Dragonwing™ IQ-9075 | 392.052 ms | 0 - 144 MB | NPU |
| encoder | VOICE_AI | float | Qualcomm® Dragonwing™ IQ-X7181 | 329.686 ms | 0 - 0 MB | NPU |
| encoder | VOICE_AI | float | Qualcomm® Dragonwing™ Q-8750 | 173.311 ms | 13 - 22 MB | NPU |
| encoder | VOICE_AI | float | Qualcomm® SA8295P | 436.559 ms | 2 - 8 MB | NPU |
| encoder | VOICE_AI | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 116.705 ms | 1 - 9 MB | NPU |
| encoder | VOICE_AI | float | Snapdragon® 8 Elite Gen 6 Mobile | 156.28 ms | 1 - 9 MB | NPU |
License
- The license for the original implementation of Whisper-Medium can be found here.
References
Community
- Join our AI Hub Slack community to collaborate, post questions and learn more about on-device AI.
- For questions or feedback please reach out to us.
