qaihm-bot commited on
Commit
0e21411
·
verified ·
1 Parent(s): 70f8688

See https://github.com/quic/ai-hub-models/releases/v0.39.0 for changelog.

This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +1 -0
  2. DEPLOYMENT_MODEL_LICENSE.pdf +3 -0
  3. LICENSE +2 -0
  4. README.md +181 -0
  5. precompiled/qualcomm-qcs6490-proxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin +3 -0
  6. precompiled/qualcomm-qcs6490-proxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.onnx.zip +3 -0
  7. precompiled/qualcomm-qcs6490-proxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin +3 -0
  8. precompiled/qualcomm-qcs6490-proxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.onnx.zip +3 -0
  9. precompiled/qualcomm-qcs6490-proxy/tool-versions.yaml +4 -0
  10. precompiled/qualcomm-qcs8275-proxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin +3 -0
  11. precompiled/qualcomm-qcs8275-proxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin +3 -0
  12. precompiled/qualcomm-qcs8275-proxy/tool-versions.yaml +3 -0
  13. precompiled/qualcomm-qcs8450-proxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin +3 -0
  14. precompiled/qualcomm-qcs8450-proxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin +3 -0
  15. precompiled/qualcomm-qcs8450-proxy/tool-versions.yaml +3 -0
  16. precompiled/qualcomm-qcs8550-proxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin +3 -0
  17. precompiled/qualcomm-qcs8550-proxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.onnx.zip +3 -0
  18. precompiled/qualcomm-qcs8550-proxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin +3 -0
  19. precompiled/qualcomm-qcs8550-proxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.onnx.zip +3 -0
  20. precompiled/qualcomm-qcs8550-proxy/tool-versions.yaml +4 -0
  21. precompiled/qualcomm-qcs9075-proxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin +3 -0
  22. precompiled/qualcomm-qcs9075-proxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin +3 -0
  23. precompiled/qualcomm-qcs9075-proxy/tool-versions.yaml +3 -0
  24. precompiled/qualcomm-sa7255p/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin +3 -0
  25. precompiled/qualcomm-sa7255p/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin +3 -0
  26. precompiled/qualcomm-sa7255p/tool-versions.yaml +3 -0
  27. precompiled/qualcomm-sa8255p-proxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin +3 -0
  28. precompiled/qualcomm-sa8255p-proxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin +3 -0
  29. precompiled/qualcomm-sa8255p-proxy/tool-versions.yaml +3 -0
  30. precompiled/qualcomm-sa8295p/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin +3 -0
  31. precompiled/qualcomm-sa8295p/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin +3 -0
  32. precompiled/qualcomm-sa8295p/tool-versions.yaml +3 -0
  33. precompiled/qualcomm-sa8650p-proxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin +3 -0
  34. precompiled/qualcomm-sa8650p-proxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin +3 -0
  35. precompiled/qualcomm-sa8650p-proxy/tool-versions.yaml +3 -0
  36. precompiled/qualcomm-sa8775p/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin +3 -0
  37. precompiled/qualcomm-sa8775p/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin +3 -0
  38. precompiled/qualcomm-sa8775p/tool-versions.yaml +3 -0
  39. precompiled/qualcomm-snapdragon-7gen5/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin +3 -0
  40. precompiled/qualcomm-snapdragon-7gen5/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.onnx.zip +3 -0
  41. precompiled/qualcomm-snapdragon-7gen5/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin +3 -0
  42. precompiled/qualcomm-snapdragon-7gen5/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.onnx.zip +3 -0
  43. precompiled/qualcomm-snapdragon-7gen5/tool-versions.yaml +4 -0
  44. precompiled/qualcomm-snapdragon-8-elite-for-galaxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin +3 -0
  45. precompiled/qualcomm-snapdragon-8-elite-for-galaxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.onnx.zip +3 -0
  46. precompiled/qualcomm-snapdragon-8-elite-for-galaxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin +3 -0
  47. precompiled/qualcomm-snapdragon-8-elite-for-galaxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.onnx.zip +3 -0
  48. precompiled/qualcomm-snapdragon-8-elite-for-galaxy/tool-versions.yaml +4 -0
  49. precompiled/qualcomm-snapdragon-8-elite-gen5/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin +3 -0
  50. precompiled/qualcomm-snapdragon-8-elite-gen5/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.onnx.zip +3 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ DEPLOYMENT_MODEL_LICENSE.pdf filter=lfs diff=lfs merge=lfs -text
DEPLOYMENT_MODEL_LICENSE.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4409f93b0e82531303b3e10f52f1fdfb56467a25f05b7441c6bbd8bb8a64b42c
3
+ size 109629
LICENSE ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ The license of the original trained model can be found at https://github.com/huggingface/transformers/blob/v4.42.3/LICENSE.
2
+ The license for the deployable model files (.tflite, .onnx, .dlc, .bin, etc.) can be found in DEPLOYMENT_MODEL_LICENSE.pdf.
README.md ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: pytorch
3
+ license: other
4
+ tags:
5
+ - foundation
6
+ - android
7
+ pipeline_tag: automatic-speech-recognition
8
+
9
+ ---
10
+
11
+ ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/whisper_small_quantized/web-assets/model_demo.png)
12
+
13
+ # Whisper-Small-Quantized: Optimized for Mobile Deployment
14
+ ## Transformer-based automatic speech recognition (ASR) model for multilingual transcription and translation available on HuggingFace
15
+
16
+
17
+ We have applied w8a16 quantization to significantly enhance performance and efficiency. HuggingFace Whisper-Small 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.
18
+
19
+ This model is an implementation of Whisper-Small-Quantized found [here](https://github.com/huggingface/transformers/tree/v4.42.3/src/transformers/models/whisper).
20
+
21
+
22
+ This repository provides scripts to run Whisper-Small-Quantized on Qualcomm® devices.
23
+ More details on model performance across various devices, can be found
24
+ [here](https://aihub.qualcomm.com/models/whisper_small_quantized).
25
+
26
+
27
+
28
+ ### Model Details
29
+
30
+ - **Model Type:** Model_use_case.speech_recognition
31
+ - **Model Stats:**
32
+ - Model checkpoint: openai/whisper-small
33
+ - Input resolution: 80x3000 (30 seconds audio)
34
+ - Max decoded sequence length: 200 tokens
35
+
36
+ | Model | Precision | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit | Target Model
37
+ |---|---|---|---|---|---|---|---|---|
38
+ | WhisperSmallEncoderQuantizable | w8a16 | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | QNN_CONTEXT_BINARY | 128.052 ms | 1 - 10 MB | NPU | Use Export Script |
39
+ | WhisperSmallEncoderQuantizable | w8a16 | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | QNN_CONTEXT_BINARY | 112.608 ms | 1 - 21 MB | NPU | Use Export Script |
40
+ | WhisperSmallEncoderQuantizable | w8a16 | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | QNN_CONTEXT_BINARY | 62.325 ms | 1 - 3 MB | NPU | Use Export Script |
41
+ | WhisperSmallEncoderQuantizable | w8a16 | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | PRECOMPILED_QNN_ONNX | 62.524 ms | 0 - 115 MB | NPU | Use Export Script |
42
+ | WhisperSmallEncoderQuantizable | w8a16 | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | QNN_CONTEXT_BINARY | 58.95 ms | 1 - 10 MB | NPU | Use Export Script |
43
+ | WhisperSmallEncoderQuantizable | w8a16 | RB3 Gen 2 (Proxy) | Qualcomm® QCS6490 (Proxy) | QNN_CONTEXT_BINARY | 613.165 ms | 1 - 13 MB | NPU | Use Export Script |
44
+ | WhisperSmallEncoderQuantizable | w8a16 | RB3 Gen 2 (Proxy) | Qualcomm® QCS6490 (Proxy) | PRECOMPILED_QNN_ONNX | 612.722 ms | 29 - 40 MB | NPU | Use Export Script |
45
+ | WhisperSmallEncoderQuantizable | w8a16 | SA7255P ADP | Qualcomm® SA7255P | QNN_CONTEXT_BINARY | 128.052 ms | 1 - 10 MB | NPU | Use Export Script |
46
+ | WhisperSmallEncoderQuantizable | w8a16 | SA8255 (Proxy) | Qualcomm® SA8255P (Proxy) | QNN_CONTEXT_BINARY | 61.478 ms | 0 - 3 MB | NPU | Use Export Script |
47
+ | WhisperSmallEncoderQuantizable | w8a16 | SA8295P ADP | Qualcomm® SA8295P | QNN_CONTEXT_BINARY | 80.04 ms | 1 - 17 MB | NPU | Use Export Script |
48
+ | WhisperSmallEncoderQuantizable | w8a16 | SA8650 (Proxy) | Qualcomm® SA8650P (Proxy) | QNN_CONTEXT_BINARY | 62.303 ms | 1 - 3 MB | NPU | Use Export Script |
49
+ | WhisperSmallEncoderQuantizable | w8a16 | SA8775P ADP | Qualcomm® SA8775P | QNN_CONTEXT_BINARY | 58.95 ms | 1 - 10 MB | NPU | Use Export Script |
50
+ | WhisperSmallEncoderQuantizable | w8a16 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | QNN_CONTEXT_BINARY | 43.635 ms | 1 - 19 MB | NPU | Use Export Script |
51
+ | WhisperSmallEncoderQuantizable | w8a16 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | PRECOMPILED_QNN_ONNX | 44.395 ms | 56 - 75 MB | NPU | Use Export Script |
52
+ | WhisperSmallEncoderQuantizable | w8a16 | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | QNN_CONTEXT_BINARY | 35.072 ms | 1 - 14 MB | NPU | Use Export Script |
53
+ | WhisperSmallEncoderQuantizable | w8a16 | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | PRECOMPILED_QNN_ONNX | 36.148 ms | 54 - 67 MB | NPU | Use Export Script |
54
+ | WhisperSmallEncoderQuantizable | w8a16 | Snapdragon 7 Gen 5 QRD | Snapdragon® 7 Gen 5 Mobile | QNN_CONTEXT_BINARY | 191.005 ms | 1 - 15 MB | NPU | Use Export Script |
55
+ | WhisperSmallEncoderQuantizable | w8a16 | Snapdragon 7 Gen 5 QRD | Snapdragon® 7 Gen 5 Mobile | PRECOMPILED_QNN_ONNX | 184.911 ms | 54 - 63 MB | NPU | Use Export Script |
56
+ | WhisperSmallEncoderQuantizable | w8a16 | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen5 Mobile | QNN_CONTEXT_BINARY | 28.292 ms | 0 - 12 MB | NPU | Use Export Script |
57
+ | WhisperSmallEncoderQuantizable | w8a16 | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen5 Mobile | PRECOMPILED_QNN_ONNX | 28.678 ms | 61 - 72 MB | NPU | Use Export Script |
58
+ | WhisperSmallEncoderQuantizable | w8a16 | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN_CONTEXT_BINARY | 61.61 ms | 0 - 0 MB | NPU | Use Export Script |
59
+ | WhisperSmallEncoderQuantizable | w8a16 | Snapdragon X Elite CRD | Snapdragon® X Elite | PRECOMPILED_QNN_ONNX | 61.896 ms | 108 - 108 MB | NPU | Use Export Script |
60
+ | WhisperSmallDecoderQuantizable | w8a16 | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | QNN_CONTEXT_BINARY | 13.422 ms | 27 - 36 MB | NPU | Use Export Script |
61
+ | WhisperSmallDecoderQuantizable | w8a16 | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | QNN_CONTEXT_BINARY | 11.469 ms | 29 - 46 MB | NPU | Use Export Script |
62
+ | WhisperSmallDecoderQuantizable | w8a16 | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | QNN_CONTEXT_BINARY | 8.49 ms | 30 - 33 MB | NPU | Use Export Script |
63
+ | WhisperSmallDecoderQuantizable | w8a16 | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | PRECOMPILED_QNN_ONNX | 8.83 ms | 30 - 32 MB | NPU | Use Export Script |
64
+ | WhisperSmallDecoderQuantizable | w8a16 | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | QNN_CONTEXT_BINARY | 9.441 ms | 24 - 34 MB | NPU | Use Export Script |
65
+ | WhisperSmallDecoderQuantizable | w8a16 | RB3 Gen 2 (Proxy) | Qualcomm® QCS6490 (Proxy) | QNN_CONTEXT_BINARY | 32.888 ms | 27 - 38 MB | NPU | Use Export Script |
66
+ | WhisperSmallDecoderQuantizable | w8a16 | RB3 Gen 2 (Proxy) | Qualcomm® QCS6490 (Proxy) | PRECOMPILED_QNN_ONNX | 34.862 ms | 37 - 49 MB | NPU | Use Export Script |
67
+ | WhisperSmallDecoderQuantizable | w8a16 | SA7255P ADP | Qualcomm® SA7255P | QNN_CONTEXT_BINARY | 13.422 ms | 27 - 36 MB | NPU | Use Export Script |
68
+ | WhisperSmallDecoderQuantizable | w8a16 | SA8255 (Proxy) | Qualcomm® SA8255P (Proxy) | QNN_CONTEXT_BINARY | 8.26 ms | 35 - 37 MB | NPU | Use Export Script |
69
+ | WhisperSmallDecoderQuantizable | w8a16 | SA8295P ADP | Qualcomm® SA8295P | QNN_CONTEXT_BINARY | 10.538 ms | 30 - 46 MB | NPU | Use Export Script |
70
+ | WhisperSmallDecoderQuantizable | w8a16 | SA8650 (Proxy) | Qualcomm® SA8650P (Proxy) | QNN_CONTEXT_BINARY | 8.403 ms | 26 - 28 MB | NPU | Use Export Script |
71
+ | WhisperSmallDecoderQuantizable | w8a16 | SA8775P ADP | Qualcomm® SA8775P | QNN_CONTEXT_BINARY | 9.441 ms | 24 - 34 MB | NPU | Use Export Script |
72
+ | WhisperSmallDecoderQuantizable | w8a16 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | QNN_CONTEXT_BINARY | 6.394 ms | 30 - 48 MB | NPU | Use Export Script |
73
+ | WhisperSmallDecoderQuantizable | w8a16 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | PRECOMPILED_QNN_ONNX | 6.854 ms | 38 - 57 MB | NPU | Use Export Script |
74
+ | WhisperSmallDecoderQuantizable | w8a16 | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | QNN_CONTEXT_BINARY | 4.825 ms | 28 - 42 MB | NPU | Use Export Script |
75
+ | WhisperSmallDecoderQuantizable | w8a16 | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | PRECOMPILED_QNN_ONNX | 5.182 ms | 26 - 42 MB | NPU | Use Export Script |
76
+ | WhisperSmallDecoderQuantizable | w8a16 | Snapdragon 7 Gen 5 QRD | Snapdragon® 7 Gen 5 Mobile | QNN_CONTEXT_BINARY | 11.331 ms | 30 - 45 MB | NPU | Use Export Script |
77
+ | WhisperSmallDecoderQuantizable | w8a16 | Snapdragon 7 Gen 5 QRD | Snapdragon® 7 Gen 5 Mobile | PRECOMPILED_QNN_ONNX | 11.918 ms | 38 - 50 MB | NPU | Use Export Script |
78
+ | WhisperSmallDecoderQuantizable | w8a16 | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen5 Mobile | QNN_CONTEXT_BINARY | 4.047 ms | 28 - 40 MB | NPU | Use Export Script |
79
+ | WhisperSmallDecoderQuantizable | w8a16 | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen5 Mobile | PRECOMPILED_QNN_ONNX | 4.395 ms | 37 - 48 MB | NPU | Use Export Script |
80
+ | WhisperSmallDecoderQuantizable | w8a16 | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN_CONTEXT_BINARY | 7.733 ms | 30 - 30 MB | NPU | Use Export Script |
81
+ | WhisperSmallDecoderQuantizable | w8a16 | Snapdragon X Elite CRD | Snapdragon® X Elite | PRECOMPILED_QNN_ONNX | 7.756 ms | 186 - 186 MB | NPU | Use Export Script |
82
+
83
+
84
+
85
+
86
+ ## Installation
87
+
88
+
89
+ Install the package via pip:
90
+ ```bash
91
+ pip install "qai-hub-models[whisper-small-quantized]"
92
+ ```
93
+
94
+
95
+ ## Configure Qualcomm® AI Hub to run this model on a cloud-hosted device
96
+
97
+ Sign-in to [Qualcomm® AI Hub](https://app.aihub.qualcomm.com/) with your
98
+ Qualcomm® ID. Once signed in navigate to `Account -> Settings -> API Token`.
99
+
100
+ With this API token, you can configure your client to run models on the cloud
101
+ hosted devices.
102
+ ```bash
103
+ qai-hub configure --api_token API_TOKEN
104
+ ```
105
+ Navigate to [docs](https://app.aihub.qualcomm.com/docs/) for more information.
106
+
107
+
108
+
109
+ ## Demo off target
110
+
111
+ The package contains a simple end-to-end demo that downloads pre-trained
112
+ weights and runs this model on a sample input.
113
+
114
+ ```bash
115
+ python -m qai_hub_models.models.whisper_small_quantized.demo
116
+ ```
117
+
118
+ The above demo runs a reference implementation of pre-processing, model
119
+ inference, and post processing.
120
+
121
+ **NOTE**: If you want running in a Jupyter Notebook or Google Colab like
122
+ environment, please add the following to your cell (instead of the above).
123
+ ```
124
+ %run -m qai_hub_models.models.whisper_small_quantized.demo
125
+ ```
126
+
127
+
128
+ ### Run model on a cloud-hosted device
129
+
130
+ In addition to the demo, you can also run the model on a cloud-hosted Qualcomm®
131
+ device. This script does the following:
132
+ * Performance check on-device on a cloud-hosted device
133
+ * Downloads compiled assets that can be deployed on-device for Android.
134
+ * Accuracy check between PyTorch and on-device outputs.
135
+
136
+ ```bash
137
+ python -m qai_hub_models.models.whisper_small_quantized.export
138
+ ```
139
+
140
+
141
+
142
+
143
+
144
+
145
+ ## Deploying compiled model to Android
146
+
147
+
148
+ The models can be deployed using multiple runtimes:
149
+ - TensorFlow Lite (`.tflite` export): [This
150
+ tutorial](https://www.tensorflow.org/lite/android/quickstart) provides a
151
+ guide to deploy the .tflite model in an Android application.
152
+
153
+
154
+ - QNN (`.so` export ): This [sample
155
+ app](https://docs.qualcomm.com/bundle/publicresource/topics/80-63442-50/sample_app.html)
156
+ provides instructions on how to use the `.so` shared library in an Android application.
157
+
158
+
159
+ ## View on Qualcomm® AI Hub
160
+ Get more details on Whisper-Small-Quantized's performance across various devices [here](https://aihub.qualcomm.com/models/whisper_small_quantized).
161
+ Explore all available models on [Qualcomm® AI Hub](https://aihub.qualcomm.com/)
162
+
163
+
164
+ ## License
165
+ * The license for the original implementation of Whisper-Small-Quantized can be found
166
+ [here](https://github.com/huggingface/transformers/blob/v4.42.3/LICENSE).
167
+ * The license for the compiled assets for on-device deployment can be found [here](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/Qualcomm+AI+Hub+Proprietary+License.pdf)
168
+
169
+
170
+
171
+ ## References
172
+ * [Robust Speech Recognition via Large-Scale Weak Supervision](https://cdn.openai.com/papers/whisper.pdf)
173
+ * [Source Model Implementation](https://github.com/huggingface/transformers/tree/v4.42.3/src/transformers/models/whisper)
174
+
175
+
176
+
177
+ ## Community
178
+ * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
179
+ * For questions or feedback please [reach out to us](mailto:[email protected]).
180
+
181
+
precompiled/qualcomm-qcs6490-proxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddc997b35f6ed3a6791734bc03a0fbeaf0edfd423dfa1c306a5863f8f9eab57a
3
+ size 223879168
precompiled/qualcomm-qcs6490-proxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.onnx.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6910473b32f3f42e074b7effa5d7f90a46b3604e3772bd801cc1a72bf9019fe
3
+ size 193518242
precompiled/qualcomm-qcs6490-proxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14a567f9876799271f59773500e1abae07d5acd12f189cb39641d7c1b2fcf5c0
3
+ size 139366400
precompiled/qualcomm-qcs6490-proxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.onnx.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f1f1b59bfe33bf27d3f9c71203f3ee359e0f4c99a600a2a44a0ae53063c513b
3
+ size 102104980
precompiled/qualcomm-qcs6490-proxy/tool-versions.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ tool_versions:
2
+ precompiled_qnn_onnx:
3
+ qairt: 2.37.1.250807093845_124904
4
+ onnx_runtime: 1.22.2
precompiled/qualcomm-qcs8275-proxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be9d53a61cd042767ed23fe9a4bd948a55500ec4466241bbe14fd126c916ddff
3
+ size 225382400
precompiled/qualcomm-qcs8275-proxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0ae251ada265b7ef935120145f582294d148b0cc1f1287fee1f27440bfd27f4
3
+ size 111763456
precompiled/qualcomm-qcs8275-proxy/tool-versions.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ tool_versions:
2
+ qnn_context_binary:
3
+ qairt: 2.38.0.250901140452_125126-auto
precompiled/qualcomm-qcs8450-proxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:149d1cc2dd6a5a199dfc87746e35b0bfc2b26f8df17920ad4b550efe45bf8185
3
+ size 223621120
precompiled/qualcomm-qcs8450-proxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e83edc665ecb6441a03f5b9a22bebc74567055dd846608adcb3facbabe24f2c7
3
+ size 111304704
precompiled/qualcomm-qcs8450-proxy/tool-versions.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ tool_versions:
2
+ qnn_context_binary:
3
+ qairt: 2.38.0.250901140452_125126
precompiled/qualcomm-qcs8550-proxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:775e604c8aa126be4e8feaad136cf684529419971c54193b82372d0c877f7313
3
+ size 225378304
precompiled/qualcomm-qcs8550-proxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.onnx.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:942d2ad825c8ee376f6a3afac08aea7cf7a85f4512b01b3cb3f6e75c58d2e329
3
+ size 193590896
precompiled/qualcomm-qcs8550-proxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e399625ac74cdece9c4215332390ad40f6c95b60fcbf989c0ebbe4d368503c3e
3
+ size 112140288
precompiled/qualcomm-qcs8550-proxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.onnx.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c01889fc929c33be789b4f6f7db40890176dc6e350390945b0130420ba7e8d63
3
+ size 93996909
precompiled/qualcomm-qcs8550-proxy/tool-versions.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ tool_versions:
2
+ precompiled_qnn_onnx:
3
+ qairt: 2.37.1.250807093845_124904
4
+ onnx_runtime: 1.22.2
precompiled/qualcomm-qcs9075-proxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17a87c1210a73669160770d96f6a961d371b47107d7cfe22253a40ce0c2adc40
3
+ size 225386496
precompiled/qualcomm-qcs9075-proxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f128bc249bbf1d7c20aefb3fd14d3c756d440c13280db413515821ca83bc77e8
3
+ size 111874048
precompiled/qualcomm-qcs9075-proxy/tool-versions.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ tool_versions:
2
+ qnn_context_binary:
3
+ qairt: 2.38.0.250901140452_125126-auto
precompiled/qualcomm-sa7255p/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be9d53a61cd042767ed23fe9a4bd948a55500ec4466241bbe14fd126c916ddff
3
+ size 225382400
precompiled/qualcomm-sa7255p/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0ae251ada265b7ef935120145f582294d148b0cc1f1287fee1f27440bfd27f4
3
+ size 111763456
precompiled/qualcomm-sa7255p/tool-versions.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ tool_versions:
2
+ qnn_context_binary:
3
+ qairt: 2.38.0.250901140452_125126-auto
precompiled/qualcomm-sa8255p-proxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:775e604c8aa126be4e8feaad136cf684529419971c54193b82372d0c877f7313
3
+ size 225378304
precompiled/qualcomm-sa8255p-proxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e399625ac74cdece9c4215332390ad40f6c95b60fcbf989c0ebbe4d368503c3e
3
+ size 112140288
precompiled/qualcomm-sa8255p-proxy/tool-versions.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ tool_versions:
2
+ qnn_context_binary:
3
+ qairt: 2.38.0.250901140452_125126
precompiled/qualcomm-sa8295p/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f06ce724e767be088840f779d8f4eed1ba798f0988f7ef05197274aa2c60ae5
3
+ size 223612928
precompiled/qualcomm-sa8295p/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a001f5170df5123789da48235d533e5ba4cb16ea6ef420a9785b7d19d239a32
3
+ size 111091712
precompiled/qualcomm-sa8295p/tool-versions.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ tool_versions:
2
+ qnn_context_binary:
3
+ qairt: 2.38.0.250901140452_125126-auto
precompiled/qualcomm-sa8650p-proxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:775e604c8aa126be4e8feaad136cf684529419971c54193b82372d0c877f7313
3
+ size 225378304
precompiled/qualcomm-sa8650p-proxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e399625ac74cdece9c4215332390ad40f6c95b60fcbf989c0ebbe4d368503c3e
3
+ size 112140288
precompiled/qualcomm-sa8650p-proxy/tool-versions.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ tool_versions:
2
+ qnn_context_binary:
3
+ qairt: 2.38.0.250901140452_125126
precompiled/qualcomm-sa8775p/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17a87c1210a73669160770d96f6a961d371b47107d7cfe22253a40ce0c2adc40
3
+ size 225386496
precompiled/qualcomm-sa8775p/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f128bc249bbf1d7c20aefb3fd14d3c756d440c13280db413515821ca83bc77e8
3
+ size 111874048
precompiled/qualcomm-sa8775p/tool-versions.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ tool_versions:
2
+ qnn_context_binary:
3
+ qairt: 2.38.0.250901140452_125126-auto
precompiled/qualcomm-snapdragon-7gen5/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10e35e415e36c9fd6892638dc277a7a3dd31743b03c9ab26b3a949b375b84c86
3
+ size 225517568
precompiled/qualcomm-snapdragon-7gen5/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.onnx.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce962ea1182d2f6e87cb85db46fb996cbeb5ac2841fd18bebab25eaeefdc3523
3
+ size 193634989
precompiled/qualcomm-snapdragon-7gen5/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ae81f1b393b7134caf3bbed0d76625fe02feabbc8c51a9ea641a4e97a1dc9f5
3
+ size 147673088
precompiled/qualcomm-snapdragon-7gen5/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.onnx.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03c5a1cc569e80d4b25dbbf9d08095b905971e91499702ea8adaf433978bea0c
3
+ size 110006845
precompiled/qualcomm-snapdragon-7gen5/tool-versions.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ tool_versions:
2
+ precompiled_qnn_onnx:
3
+ qairt: 2.37.1.250807093845_124904
4
+ onnx_runtime: 1.22.2
precompiled/qualcomm-snapdragon-8-elite-for-galaxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65caf9a1e53521b4bd7e9be7d82438097abc667f6a49febef89f5ac0714234a9
3
+ size 225320960
precompiled/qualcomm-snapdragon-8-elite-for-galaxy/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.onnx.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d40c060484d09fd330215b13b87141a7a2036a75c63cde8826fd082523f8070
3
+ size 193571496
precompiled/qualcomm-snapdragon-8-elite-for-galaxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b70bc389551b60bbf67c1b1368ef692309f00e0ec0c2e9753787e167f79474d5
3
+ size 111689728
precompiled/qualcomm-snapdragon-8-elite-for-galaxy/Whisper-Small-Quantized_WhisperSmallEncoderQuantizable_w8a16.onnx.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:234842104dc3030650759d7cf3fe5f02cd4d350130079014dfabb8146ec36a52
3
+ size 93686222
precompiled/qualcomm-snapdragon-8-elite-for-galaxy/tool-versions.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ tool_versions:
2
+ precompiled_qnn_onnx:
3
+ qairt: 2.37.1.250807093845_124904
4
+ onnx_runtime: 1.22.2
precompiled/qualcomm-snapdragon-8-elite-gen5/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c484e48f838c5930a8bc5aaa0cb83e9b375ab8078c8bbf68877236c93d6b3902
3
+ size 225484800
precompiled/qualcomm-snapdragon-8-elite-gen5/Whisper-Small-Quantized_WhisperSmallDecoderQuantizable_w8a16.onnx.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e2952e9582400ad395e5b3a7524481414d8e75191ccced7bd3bd6b60c76082e
3
+ size 193623881