Mobile-Bert-Uncased-Google: Optimized for Qualcomm Devices
MOBILEBERT 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 is based on the implementation of Mobile-Bert-Uncased-Google 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 |
|---|---|---|---|---|
| ONNX | float | Universal | QAIRT 2.51, ONNX Runtime 1.30.0 | Download |
| ONNX | w8a16 | Universal | QAIRT 2.51, ONNX Runtime 1.30.0 | Download |
| ONNX | w8a16_mixed_fp16 | 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 |
| QNN_DLC | w8a16_mixed_fp16 | Universal | QAIRT 2.51 | Download |
| TFLITE | float | Universal | QAIRT 2.51 | Download |
For more device-specific assets and performance metrics, visit Mobile-Bert-Uncased-Google 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 Mobile-Bert-Uncased-Google on GitHub for usage instructions.
Model Details
Model Type: Model_use_case.text_generation
Model Stats:
- Input resolution: 1x384
- Model checkpoint: mobile_bert_uncased_google
- Model size (float): 130 MB
- Number of parameters: 25.3M
Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit |
|---|---|---|---|---|---|---|
| Mobile-Bert-Uncased-Google | ONNX | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 4.396 ms | 0 - 228 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 5.883 ms | 1 - 223 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | float | Snapdragon® X2 Elite | 4.709 ms | 1 - 1 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | float | Snapdragon® X Elite | 11.197 ms | 80 - 80 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 7.839 ms | 0 - 396 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | float | Snapdragon® 8 Gen 1 Mobile | 13.301 ms | 0 - 370 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | float | Qualcomm® Dragonwing™ IQ-8275 | 12.853 ms | 0 - 5 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 10.712 ms | 0 - 82 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | float | Qualcomm® QCS8450 | 13.301 ms | 0 - 370 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | float | Qualcomm® Dragonwing™ IQ-9075 | 13.18 ms | 0 - 4 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | float | Qualcomm® Dragonwing™ IQ-X7181 | 11.197 ms | 80 - 80 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | float | Qualcomm® Dragonwing™ Q-8750 | 5.883 ms | 1 - 223 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 3.675 ms | 0 - 222 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | float | Snapdragon® 8 Elite Gen 6 Mobile | 4.71 ms | 0 - 185 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 4.264 ms | 0 - 358 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 5.199 ms | 2 - 358 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16 | Snapdragon® X2 Elite | 4.44 ms | 1 - 1 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16 | Snapdragon® X Elite | 9.856 ms | 46 - 46 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16 | Snapdragon® 8 Gen 1 Mobile | 9.825 ms | 0 - 447 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16 | Qualcomm® Dragonwing™ QCS6490 | 58.424 ms | 48 - 52 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 8.672 ms | 0 - 4 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 9.458 ms | 0 - 51 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16 | Qualcomm® QCS8450 | 9.825 ms | 0 - 447 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | 9.556 ms | 0 - 4 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16 | Qualcomm® Dragonwing™ IQ-X7181 | 9.856 ms | 46 - 46 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16 | Qualcomm® Dragonwing™ Q-6690 | 142.928 ms | 47 - 398 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16 | Qualcomm® Dragonwing™ Q-7790 | 22.364 ms | 47 - 410 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16 | Qualcomm® Dragonwing™ Q-8750 | 5.199 ms | 2 - 358 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16 | Snapdragon® 7 Gen 4 Mobile | 22.364 ms | 47 - 410 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 3.628 ms | 0 - 360 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16 | Snapdragon® 8 Elite Gen 6 Mobile | 4.885 ms | 0 - 345 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16_mixed_fp16 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 4.501 ms | 0 - 356 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16_mixed_fp16 | Snapdragon® 8 Elite For Galaxy Mobile | 5.471 ms | 3 - 359 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16_mixed_fp16 | Snapdragon® X2 Elite | 4.707 ms | 1 - 1 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16_mixed_fp16 | Snapdragon® X Elite | 10.319 ms | 48 - 48 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16_mixed_fp16 | Snapdragon® 8 Gen 1 Mobile | 10.576 ms | 0 - 449 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16_mixed_fp16 | Qualcomm® Dragonwing™ IQ-8275 | 9.057 ms | 0 - 4 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16_mixed_fp16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 9.802 ms | 0 - 51 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16_mixed_fp16 | Qualcomm® QCS8450 | 10.576 ms | 0 - 449 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16_mixed_fp16 | Qualcomm® Dragonwing™ IQ-9075 | 9.961 ms | 0 - 4 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16_mixed_fp16 | Qualcomm® Dragonwing™ IQ-X7181 | 10.319 ms | 48 - 48 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16_mixed_fp16 | Qualcomm® Dragonwing™ Q-8750 | 5.471 ms | 3 - 359 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16_mixed_fp16 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 3.985 ms | 0 - 361 MB | NPU |
| Mobile-Bert-Uncased-Google | ONNX | w8a16_mixed_fp16 | Snapdragon® 8 Elite Gen 6 Mobile | 5.165 ms | 0 - 348 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 4.56 ms | 0 - 244 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 5.639 ms | 3 - 247 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | float | Snapdragon® X2 Elite | 5.268 ms | 1 - 1 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | float | Snapdragon® X Elite | 11.717 ms | 1 - 1 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 7.922 ms | 0 - 325 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | float | Snapdragon® 8 Gen 1 Mobile | 13.351 ms | 0 - 306 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-8275 | 12.727 ms | 0 - 3 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 10.95 ms | 0 - 2 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | float | Qualcomm® QCS8450 | 13.351 ms | 0 - 306 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-9075 | 13.563 ms | 0 - 3 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-X7181 | 11.717 ms | 1 - 1 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | float | Qualcomm® Dragonwing™ Q-8750 | 5.639 ms | 3 - 247 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | float | Qualcomm® SA8295P | 14.059 ms | 0 - 200 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 3.867 ms | 0 - 239 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | float | Snapdragon® 8 Elite Gen 6 Mobile | 4.815 ms | 0 - 182 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 4.236 ms | 0 - 317 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 5.24 ms | 0 - 314 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16 | Snapdragon® X2 Elite | 4.81 ms | 0 - 0 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16 | Snapdragon® X Elite | 10.265 ms | 0 - 0 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16 | Snapdragon® 8 Gen 3 Mobile | 7.292 ms | 0 - 367 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 8.873 ms | 0 - 3 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 9.447 ms | 0 - 2 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16 | Qualcomm® SA8650P | 9.944 ms | 0 - 295 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16 | Qualcomm® SA8255P | 9.944 ms | 0 - 295 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | 9.531 ms | 2 - 4 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-X7181 | 10.265 ms | 0 - 0 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ Q-8750 | 5.24 ms | 0 - 314 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 4.102 ms | 0 - 317 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16 | Snapdragon® 8 Elite Gen 6 Mobile | 5.034 ms | 0 - 306 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16_mixed_fp16 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 4.58 ms | 0 - 315 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16_mixed_fp16 | Snapdragon® 8 Elite For Galaxy Mobile | 5.569 ms | 0 - 315 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16_mixed_fp16 | Snapdragon® X2 Elite | 5.212 ms | 0 - 0 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16_mixed_fp16 | Snapdragon® X Elite | 10.623 ms | 0 - 0 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16_mixed_fp16 | Snapdragon® 8 Gen 3 Mobile | 7.453 ms | 0 - 367 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16_mixed_fp16 | Qualcomm® Dragonwing™ IQ-8275 | 9.531 ms | 0 - 3 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16_mixed_fp16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 9.844 ms | 0 - 2 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16_mixed_fp16 | Qualcomm® SA8650P | 10.192 ms | 0 - 295 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16_mixed_fp16 | Qualcomm® SA8255P | 10.192 ms | 0 - 295 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16_mixed_fp16 | Qualcomm® Dragonwing™ IQ-9075 | 9.929 ms | 0 - 2 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16_mixed_fp16 | Qualcomm® Dragonwing™ IQ-X7181 | 10.623 ms | 0 - 0 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16_mixed_fp16 | Qualcomm® Dragonwing™ Q-8750 | 5.569 ms | 0 - 315 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16_mixed_fp16 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 4.18 ms | 0 - 317 MB | NPU |
| Mobile-Bert-Uncased-Google | QNN_DLC | w8a16_mixed_fp16 | Snapdragon® 8 Elite Gen 6 Mobile | 5.289 ms | 0 - 305 MB | NPU |
License
- The license for the original implementation of Mobile-Bert-Uncased-Google 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.
