Whisper-Small-Quantized: Optimized for Qualcomm Devices

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.

This is based on the implementation of Whisper-Small-Quantized 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.

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 w8a16 Snapdragon® 8 Elite Gen 5 Mobile QAIRT 2.42, ONNX Runtime 1.24.1 Download
PRECOMPILED_QNN_ONNX w8a16 Snapdragon® X2 Elite QAIRT 2.42, ONNX Runtime 1.24.1 Download
PRECOMPILED_QNN_ONNX w8a16 Snapdragon® X Elite QAIRT 2.42, ONNX Runtime 1.24.1 Download
PRECOMPILED_QNN_ONNX w8a16 Snapdragon® 8 Gen 3 Mobile QAIRT 2.42, ONNX Runtime 1.24.1 Download
PRECOMPILED_QNN_ONNX w8a16 Qualcomm® QCS8550 (Proxy) QAIRT 2.42, ONNX Runtime 1.24.1 Download
PRECOMPILED_QNN_ONNX w8a16 Snapdragon® 8 Elite For Galaxy Mobile QAIRT 2.42, ONNX Runtime 1.24.1 Download
PRECOMPILED_QNN_ONNX w8a16 Snapdragon® 7 Gen 4 Mobile QAIRT 2.42, ONNX Runtime 1.24.1 Download
PRECOMPILED_QNN_ONNX w8a16 Qualcomm® QCM6690 QAIRT 2.42, ONNX Runtime 1.24.1 Download
PRECOMPILED_QNN_ONNX w8a16 Qualcomm® QCS9075 QAIRT 2.42, ONNX Runtime 1.24.1 Download
QNN_CONTEXT_BINARY w8a16 Snapdragon® 8 Elite Gen 5 Mobile QAIRT 2.43 Download
QNN_CONTEXT_BINARY w8a16 Snapdragon® X2 Elite QAIRT 2.43 Download
QNN_CONTEXT_BINARY w8a16 Snapdragon® X Elite QAIRT 2.43 Download
QNN_CONTEXT_BINARY w8a16 Snapdragon® 8 Gen 3 Mobile QAIRT 2.43 Download
QNN_CONTEXT_BINARY w8a16 Qualcomm® QCS8550 (Proxy) QAIRT 2.43 Download
QNN_CONTEXT_BINARY w8a16 Qualcomm® SA8775P QAIRT 2.43 Download
QNN_CONTEXT_BINARY w8a16 Snapdragon® 8 Elite For Galaxy Mobile QAIRT 2.43 Download
QNN_CONTEXT_BINARY w8a16 Snapdragon® 7 Gen 4 Mobile QAIRT 2.43 Download
QNN_CONTEXT_BINARY w8a16 Qualcomm® SA7255P QAIRT 2.43 Download
QNN_CONTEXT_BINARY w8a16 Qualcomm® QCM6690 QAIRT 2.43 Download
QNN_CONTEXT_BINARY w8a16 Qualcomm® QCS9075 QAIRT 2.43 Download

For more device-specific assets and performance metrics, visit Whisper-Small-Quantized 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-Small-Quantized on GitHub for usage instructions.

Model Details

Model Type: Model_use_case.speech_recognition

Model Stats:

  • Model checkpoint: openai/whisper-small
  • Input resolution: 80x3000 (30 seconds audio)
  • Max decoded sequence length: 200 tokens

Performance Summary

Model Runtime Precision Chipset Inference Time (ms) Peak Memory Range (MB) Primary Compute Unit
WhisperSmallDecoderQuantizable PRECOMPILED_QNN_ONNX w8a16 Snapdragon® 8 Elite Gen 5 Mobile 4.017 ms 36 - 46 MB NPU
WhisperSmallDecoderQuantizable PRECOMPILED_QNN_ONNX w8a16 Snapdragon® X2 Elite 3.825 ms 185 - 185 MB NPU
WhisperSmallDecoderQuantizable PRECOMPILED_QNN_ONNX w8a16 Snapdragon® X Elite 7.953 ms 185 - 185 MB NPU
WhisperSmallDecoderQuantizable PRECOMPILED_QNN_ONNX w8a16 Snapdragon® 8 Gen 3 Mobile 6.47 ms 39 - 48 MB NPU
WhisperSmallDecoderQuantizable PRECOMPILED_QNN_ONNX w8a16 Qualcomm® QCS8550 (Proxy) 8.304 ms 27 - 29 MB NPU
WhisperSmallDecoderQuantizable PRECOMPILED_QNN_ONNX w8a16 Qualcomm® QCS9075 9.145 ms 24 - 57 MB NPU
WhisperSmallDecoderQuantizable PRECOMPILED_QNN_ONNX w8a16 Qualcomm® QCM6690 32.401 ms 28 - 37 MB NPU
WhisperSmallDecoderQuantizable PRECOMPILED_QNN_ONNX w8a16 Snapdragon® 8 Elite For Galaxy Mobile 4.776 ms 25 - 37 MB NPU
WhisperSmallDecoderQuantizable PRECOMPILED_QNN_ONNX w8a16 Snapdragon® 7 Gen 4 Mobile 10.88 ms 30 - 36 MB NPU
WhisperSmallDecoderQuantizable QNN_CONTEXT_BINARY w8a16 Snapdragon® 8 Elite Gen 5 Mobile 3.967 ms 30 - 41 MB NPU
WhisperSmallDecoderQuantizable QNN_CONTEXT_BINARY w8a16 Snapdragon® X2 Elite 4.249 ms 30 - 30 MB NPU
WhisperSmallDecoderQuantizable QNN_CONTEXT_BINARY w8a16 Snapdragon® X Elite 7.557 ms 30 - 30 MB NPU
WhisperSmallDecoderQuantizable QNN_CONTEXT_BINARY w8a16 Snapdragon® 8 Gen 3 Mobile 6.203 ms 19 - 27 MB NPU
WhisperSmallDecoderQuantizable QNN_CONTEXT_BINARY w8a16 Qualcomm® QCS8275 (Proxy) 13.659 ms 12 - 19 MB NPU
WhisperSmallDecoderQuantizable QNN_CONTEXT_BINARY w8a16 Qualcomm® QCS8550 (Proxy) 8.187 ms 30 - 32 MB NPU
WhisperSmallDecoderQuantizable QNN_CONTEXT_BINARY w8a16 Qualcomm® SA8775P 27.56 ms 19 - 26 MB NPU
WhisperSmallDecoderQuantizable QNN_CONTEXT_BINARY w8a16 Qualcomm® QCS9075 8.936 ms 25 - 60 MB NPU
WhisperSmallDecoderQuantizable QNN_CONTEXT_BINARY w8a16 Qualcomm® QCM6690 30.781 ms 30 - 37 MB NPU
WhisperSmallDecoderQuantizable QNN_CONTEXT_BINARY w8a16 Qualcomm® SA7255P 13.659 ms 12 - 19 MB NPU
WhisperSmallDecoderQuantizable QNN_CONTEXT_BINARY w8a16 Snapdragon® 8 Elite For Galaxy Mobile 4.793 ms 28 - 41 MB NPU
WhisperSmallDecoderQuantizable QNN_CONTEXT_BINARY w8a16 Snapdragon® 7 Gen 4 Mobile 10.907 ms 29 - 36 MB NPU
WhisperSmallEncoderQuantizable PRECOMPILED_QNN_ONNX w8a16 Snapdragon® 8 Elite Gen 5 Mobile 174.548 ms 63 - 73 MB NPU
WhisperSmallEncoderQuantizable PRECOMPILED_QNN_ONNX w8a16 Snapdragon® X2 Elite 155.383 ms 127 - 127 MB NPU
WhisperSmallEncoderQuantizable PRECOMPILED_QNN_ONNX w8a16 Snapdragon® X Elite 267.039 ms 127 - 127 MB NPU
WhisperSmallEncoderQuantizable PRECOMPILED_QNN_ONNX w8a16 Snapdragon® 8 Gen 3 Mobile 240.522 ms 63 - 74 MB NPU
WhisperSmallEncoderQuantizable PRECOMPILED_QNN_ONNX w8a16 Qualcomm® QCS8550 (Proxy) 386.76 ms 55 - 58 MB NPU
WhisperSmallEncoderQuantizable PRECOMPILED_QNN_ONNX w8a16 Qualcomm® QCS9075 255.083 ms 63 - 66 MB NPU
WhisperSmallEncoderQuantizable PRECOMPILED_QNN_ONNX w8a16 Qualcomm® QCM6690 4338.57 ms 1 - 12 MB NPU
WhisperSmallEncoderQuantizable PRECOMPILED_QNN_ONNX w8a16 Snapdragon® 8 Elite For Galaxy Mobile 200.696 ms 64 - 75 MB NPU
WhisperSmallEncoderQuantizable PRECOMPILED_QNN_ONNX w8a16 Snapdragon® 7 Gen 4 Mobile 457.646 ms 56 - 62 MB NPU
WhisperSmallEncoderQuantizable QNN_CONTEXT_BINARY w8a16 Snapdragon® 8 Elite Gen 5 Mobile 173.204 ms 1 - 11 MB NPU
WhisperSmallEncoderQuantizable QNN_CONTEXT_BINARY w8a16 Snapdragon® X2 Elite 154.118 ms 0 - 0 MB NPU
WhisperSmallEncoderQuantizable QNN_CONTEXT_BINARY w8a16 Snapdragon® X Elite 295.657 ms 0 - 0 MB NPU
WhisperSmallEncoderQuantizable QNN_CONTEXT_BINARY w8a16 Snapdragon® 8 Gen 3 Mobile 267.017 ms 3 - 10 MB NPU
WhisperSmallEncoderQuantizable QNN_CONTEXT_BINARY w8a16 Qualcomm® QCS8275 (Proxy) 515.755 ms 1 - 9 MB NPU
WhisperSmallEncoderQuantizable QNN_CONTEXT_BINARY w8a16 Qualcomm® QCS8550 (Proxy) 366.478 ms 1 - 2 MB NPU
WhisperSmallEncoderQuantizable QNN_CONTEXT_BINARY w8a16 Qualcomm® SA8775P 310.162 ms 0 - 9 MB NPU
WhisperSmallEncoderQuantizable QNN_CONTEXT_BINARY w8a16 Qualcomm® QCS9075 292.347 ms 0 - 29 MB NPU
WhisperSmallEncoderQuantizable QNN_CONTEXT_BINARY w8a16 Qualcomm® QCM6690 4026.592 ms 0 - 7 MB NPU
WhisperSmallEncoderQuantizable QNN_CONTEXT_BINARY w8a16 Qualcomm® SA7255P 515.755 ms 1 - 9 MB NPU
WhisperSmallEncoderQuantizable QNN_CONTEXT_BINARY w8a16 Snapdragon® 8 Elite For Galaxy Mobile 223.174 ms 1 - 10 MB NPU
WhisperSmallEncoderQuantizable QNN_CONTEXT_BINARY w8a16 Snapdragon® 7 Gen 4 Mobile 471.739 ms 1 - 7 MB NPU

License

  • The license for the original implementation of Whisper-Small-Quantized can be found here.

References

Community

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support