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.45, ONNX Runtime 1.25.0 Download
QNN_DLC float Universal QAIRT 2.45 Download
TFLITE float Universal QAIRT 2.45 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:

  • Model checkpoint: mobile_bert_uncased_google
  • Input resolution: 1x384
  • Number of parameters: 25.3M
  • Model size (float): 130 MB

Performance Summary

Model Runtime Precision Chipset Inference Time (ms) Peak Memory Range (MB) Primary Compute Unit
Mobile-Bert-Uncased-Google ONNX float Snapdragon® X2 Elite 14.186 ms 1 - 1 MB NPU
Mobile-Bert-Uncased-Google ONNX float Snapdragon® X Elite 25.506 ms 80 - 80 MB NPU
Mobile-Bert-Uncased-Google ONNX float Snapdragon® 8 Gen 3 Mobile 19.585 ms 0 - 363 MB NPU
Mobile-Bert-Uncased-Google ONNX float Snapdragon® 8 Gen 1 Mobile 45.995 ms 0 - 407 MB NPU
Mobile-Bert-Uncased-Google ONNX float Qualcomm® Dragonwing™ QCS8550 (Proxy) 25.264 ms 0 - 84 MB NPU
Mobile-Bert-Uncased-Google ONNX float Qualcomm® QCS8450 45.995 ms 0 - 407 MB NPU
Mobile-Bert-Uncased-Google ONNX float Snapdragon® 8 Elite Gen 5 Mobile 13.929 ms 0 - 185 MB NPU
Mobile-Bert-Uncased-Google ONNX float Snapdragon® 8 Elite Mobile 15.65 ms 0 - 184 MB NPU
Mobile-Bert-Uncased-Google ONNX float Qualcomm® Dragonwing™ Q-8750 15.65 ms 0 - 184 MB NPU
Mobile-Bert-Uncased-Google ONNX float Qualcomm® Dragonwing™ IQ-X7181 25.506 ms 80 - 80 MB NPU
Mobile-Bert-Uncased-Google ONNX float Qualcomm® Dragonwing™ IQ-9075 28.387 ms 0 - 45 MB NPU
Mobile-Bert-Uncased-Google QNN_DLC float Snapdragon® X2 Elite 14.715 ms 1 - 1 MB NPU
Mobile-Bert-Uncased-Google QNN_DLC float Snapdragon® X Elite 25.817 ms 1 - 1 MB NPU
Mobile-Bert-Uncased-Google QNN_DLC float Snapdragon® 8 Gen 3 Mobile 19.725 ms 0 - 310 MB NPU
Mobile-Bert-Uncased-Google QNN_DLC float Snapdragon® 8 Gen 1 Mobile 29.792 ms 0 - 381 MB NPU
Mobile-Bert-Uncased-Google QNN_DLC float Qualcomm® QCS8275 56.714 ms 0 - 195 MB NPU
Mobile-Bert-Uncased-Google QNN_DLC float Qualcomm® Dragonwing™ QCS8550 (Proxy) 26.357 ms 0 - 259 MB NPU
Mobile-Bert-Uncased-Google QNN_DLC float Qualcomm® SA8775P 28.602 ms 0 - 195 MB NPU
Mobile-Bert-Uncased-Google QNN_DLC float Qualcomm® SA8650P 28.602 ms 0 - 195 MB NPU
Mobile-Bert-Uncased-Google QNN_DLC float Qualcomm® SA8255P 28.602 ms 0 - 195 MB NPU
Mobile-Bert-Uncased-Google QNN_DLC float Qualcomm® QCS8450 29.792 ms 0 - 381 MB NPU
Mobile-Bert-Uncased-Google QNN_DLC float Snapdragon® 8 Elite Gen 5 Mobile 14.037 ms 0 - 216 MB NPU
Mobile-Bert-Uncased-Google QNN_DLC float Qualcomm® SA7255P 56.714 ms 0 - 195 MB NPU
Mobile-Bert-Uncased-Google QNN_DLC float Snapdragon® 8 Elite Mobile 15.601 ms 0 - 212 MB NPU
Mobile-Bert-Uncased-Google QNN_DLC float Qualcomm® SA8295P 33.246 ms 0 - 260 MB NPU
Mobile-Bert-Uncased-Google QNN_DLC float Qualcomm® Dragonwing™ Q-8750 15.601 ms 0 - 212 MB NPU
Mobile-Bert-Uncased-Google QNN_DLC float Qualcomm® Dragonwing™ IQ-X7181 25.817 ms 1 - 1 MB NPU
Mobile-Bert-Uncased-Google QNN_DLC float Qualcomm® Dragonwing™ IQ-9075 28.454 ms 0 - 2 MB NPU
Mobile-Bert-Uncased-Google TFLITE float Snapdragon® 8 Gen 3 Mobile 19.133 ms 0 - 310 MB NPU
Mobile-Bert-Uncased-Google TFLITE float Snapdragon® 8 Gen 1 Mobile 44.48 ms 0 - 365 MB NPU
Mobile-Bert-Uncased-Google TFLITE float Qualcomm® QCS8275 55.224 ms 0 - 199 MB NPU
Mobile-Bert-Uncased-Google TFLITE float Qualcomm® Dragonwing™ QCS8550 (Proxy) 25.286 ms 0 - 4 MB NPU
Mobile-Bert-Uncased-Google TFLITE float Qualcomm® SA8775P 27.769 ms 0 - 200 MB NPU
Mobile-Bert-Uncased-Google TFLITE float Qualcomm® SA8650P 27.769 ms 0 - 200 MB NPU
Mobile-Bert-Uncased-Google TFLITE float Qualcomm® SA8255P 27.769 ms 0 - 200 MB NPU
Mobile-Bert-Uncased-Google TFLITE float Qualcomm® QCS8450 44.48 ms 0 - 365 MB NPU
Mobile-Bert-Uncased-Google TFLITE float Snapdragon® 8 Elite Gen 5 Mobile 13.671 ms 0 - 221 MB NPU
Mobile-Bert-Uncased-Google TFLITE float Qualcomm® SA7255P 55.224 ms 0 - 199 MB NPU
Mobile-Bert-Uncased-Google TFLITE float Snapdragon® 8 Elite Mobile 14.788 ms 0 - 216 MB NPU
Mobile-Bert-Uncased-Google TFLITE float Qualcomm® SA8295P 32.403 ms 0 - 253 MB NPU
Mobile-Bert-Uncased-Google TFLITE float Qualcomm® Dragonwing™ Q-8750 14.788 ms 0 - 216 MB NPU
Mobile-Bert-Uncased-Google TFLITE float Qualcomm® Dragonwing™ IQ-9075 27.864 ms 0 - 82 MB NPU

License

  • The license for the original implementation of Mobile-Bert-Uncased-Google 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

Paper for qualcomm/Mobile-Bert-Uncased-Google