Distil-Bert-Base-Uncased-Hf: Optimized for Qualcomm Devices
DistilBERT is a lightweight BERT model designed for efficient self-supervised learning of language representations. It can be used for masked language modeling and as a backbone for various NLP tasks.
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 |
|---|---|---|---|---|
| ONNX | float | Universal | QAIRT 2.51, ONNX Runtime 1.30.0 | Download |
| ONNX | w8a16 | Universal | QAIRT 2.51, ONNX Runtime 1.30.0 | Download |
| QNN_DLC | float | Universal | QAIRT 2.51 | Download |
| QNN_DLC | w8a16 | Universal | QAIRT 2.51 | Download |
| TFLITE | float | Universal | QAIRT 2.51 | Download |
For more device-specific assets and performance metrics, visit Distil-Bert-Base-Uncased-Hf 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 Distil-Bert-Base-Uncased-Hf on GitHub for usage instructions.
Model Details
Model Type: Model_use_case.text_generation
Model Stats:
- Input resolution: 1x384
- Model checkpoint: distil_bert_base_uncased_hf
- Model size (float): 43.3 MB
- Number of parameters: 11.3M
Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit |
|---|---|---|---|---|---|---|
| Distil-Bert-Base-Uncased-Hf | ONNX | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 4.03 ms | 0 - 230 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 5.356 ms | 0 - 228 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | float | Snapdragon® X2 Elite | 4.588 ms | 1 - 1 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | float | Snapdragon® X Elite | 10.756 ms | 176 - 176 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 7.371 ms | 0 - 337 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 15.783 ms | 0 - 281 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 14.643 ms | 0 - 4 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 10.251 ms | 0 - 194 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | float | Qualcomm® QCS8450 | 15.783 ms | 0 - 281 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 13.941 ms | 0 - 4 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 10.756 ms | 176 - 176 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 5.356 ms | 0 - 228 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 3.696 ms | 0 - 225 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | float | Snapdragon® 8 Elite Gen 6 Mobile | 4.059 ms | 0 - 197 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | w8a16 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 3.882 ms | 0 - 287 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 4.977 ms | 0 - 283 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | w8a16 | Snapdragon® X2 Elite | 3.944 ms | 1 - 1 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | w8a16 | Snapdragon® X Elite | 8.712 ms | 111 - 111 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | w8a16 | Snapdragon® 8 Gen 3 Mobile | 5.84 ms | 0 - 360 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | w8a16 | Snapdragon® 8 Gen 1 Mobile | 10.884 ms | 0 - 363 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | w8a16 | Qualcomm® Dragonwing™ QCS6490 | 62.493 ms | 48 - 51 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 7.927 ms | 0 - 4 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 8.375 ms | 0 - 115 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | w8a16 | Qualcomm® QCS8450 | 10.884 ms | 0 - 363 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | 8.618 ms | 0 - 4 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-X7181 | 8.712 ms | 111 - 111 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | w8a16 | Qualcomm® Dragonwing™ Q-6690 | 97.834 ms | 47 - 373 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | w8a16 | Qualcomm® Dragonwing™ Q-7790 | 21.992 ms | 48 - 352 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | w8a16 | Qualcomm® Dragonwing™ Q-8750 | 4.977 ms | 0 - 283 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | w8a16 | Snapdragon® 7 Gen 4 Mobile | 21.992 ms | 48 - 352 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | w8a16 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 3.412 ms | 0 - 310 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | ONNX | w8a16 | Snapdragon® 8 Elite Gen 6 Mobile | 3.931 ms | 0 - 287 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 4.036 ms | 0 - 228 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 5.375 ms | 0 - 223 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | float | Snapdragon® X2 Elite | 4.949 ms | 1 - 1 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | float | Snapdragon® X Elite | 10.938 ms | 1 - 1 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 7.358 ms | 0 - 336 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | float | Snapdragon® 8 Gen 1 Mobile | 15.791 ms | 0 - 278 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-8275 | 14.775 ms | 0 - 3 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 10.252 ms | 0 - 2 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | float | Qualcomm® QCS8450 | 15.791 ms | 0 - 278 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-9075 | 14.358 ms | 0 - 2 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-X7181 | 10.938 ms | 1 - 1 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | float | Qualcomm® Dragonwing™ Q-8750 | 5.375 ms | 0 - 223 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | float | Qualcomm® SA8295P | 16.37 ms | 0 - 211 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 3.663 ms | 0 - 224 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | float | Snapdragon® 8 Elite Gen 6 Mobile | 4.051 ms | 0 - 195 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | w8a16 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 3.476 ms | 0 - 290 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 5.142 ms | 0 - 285 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | w8a16 | Snapdragon® X2 Elite | 4.064 ms | 1 - 1 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | w8a16 | Snapdragon® X Elite | 9.207 ms | 1 - 1 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | w8a16 | Snapdragon® 8 Gen 3 Mobile | 4.223 ms | 0 - 359 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 8.04 ms | 0 - 3 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 8.507 ms | 0 - 166 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | w8a16 | Qualcomm® SA8650P | 6.018 ms | 0 - 301 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | w8a16 | Qualcomm® SA8255P | 6.018 ms | 0 - 301 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | 8.819 ms | 0 - 2 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-X7181 | 9.207 ms | 1 - 1 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ Q-8750 | 5.142 ms | 0 - 285 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | w8a16 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 2.968 ms | 0 - 309 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | QNN_DLC | w8a16 | Snapdragon® 8 Elite Gen 6 Mobile | 3.906 ms | 0 - 287 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | TFLITE | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 4.06 ms | 0 - 236 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 5.39 ms | 0 - 229 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 7.404 ms | 0 - 340 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | TFLITE | float | Snapdragon® 8 Gen 1 Mobile | 15.773 ms | 0 - 278 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | TFLITE | float | Qualcomm® Dragonwing™ IQ-8275 | 14.629 ms | 0 - 178 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | TFLITE | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 10.209 ms | 0 - 3 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | TFLITE | float | Qualcomm® SA8775P | 13.722 ms | 0 - 214 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | TFLITE | float | Qualcomm® SA8650P | 13.722 ms | 0 - 214 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | TFLITE | float | Qualcomm® SA8255P | 13.722 ms | 0 - 214 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | TFLITE | float | Qualcomm® QCS8450 | 15.773 ms | 0 - 278 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | TFLITE | float | Qualcomm® Dragonwing™ IQ-9075 | 14.181 ms | 0 - 177 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | TFLITE | float | Qualcomm® Dragonwing™ Q-8750 | 5.39 ms | 0 - 229 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | TFLITE | float | Qualcomm® SA8295P | 16.423 ms | 0 - 214 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | TFLITE | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 3.688 ms | 0 - 232 MB | NPU |
| Distil-Bert-Base-Uncased-Hf | TFLITE | float | Snapdragon® 8 Elite Gen 6 Mobile | 4.075 ms | 0 - 197 MB | NPU |
License
- The license for the original implementation of Distil-Bert-Base-Uncased-Hf 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.
