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 w8a16 Universal QAIRT 2.42, ONNX Runtime 1.24.3 Download
QNN_DLC float Universal QAIRT 2.45 Download
QNN_DLC w8a16 Universal QAIRT 2.45 Download
TFLITE float Universal QAIRT 2.45 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:

  • Model checkpoint: distil_bert_base_uncased_hf
  • Input resolution: 1x384
  • Number of parameters: 11.3M
  • Model size (float): 43.3 MB

Performance Summary

Model Runtime Precision Chipset Inference Time (ms) Peak Memory Range (MB) Primary Compute Unit
Distil-Bert-Base-Uncased-Hf ONNX w8a16 Snapdragon® 8 Elite Gen 5 Mobile 5.025 ms 0 - 305 MB NPU
Distil-Bert-Base-Uncased-Hf ONNX w8a16 Snapdragon® 8 Elite Mobile 6.318 ms 0 - 299 MB NPU
Distil-Bert-Base-Uncased-Hf ONNX w8a16 Snapdragon® X2 Elite 5.045 ms 111 - 111 MB NPU
Distil-Bert-Base-Uncased-Hf ONNX w8a16 Snapdragon® X Elite 12.021 ms 112 - 112 MB NPU
Distil-Bert-Base-Uncased-Hf ONNX w8a16 Snapdragon® X Elite 12.021 ms 112 - 112 MB NPU
Distil-Bert-Base-Uncased-Hf ONNX w8a16 Snapdragon® 8 Gen 3 Mobile 8.409 ms 0 - 398 MB NPU
Distil-Bert-Base-Uncased-Hf ONNX w8a16 Qualcomm® QCS6490 1344.166 ms 191 - 279 MB CPU
Distil-Bert-Base-Uncased-Hf ONNX w8a16 Qualcomm® QCS8550 (Proxy) 11.415 ms 0 - 116 MB NPU
Distil-Bert-Base-Uncased-Hf ONNX w8a16 Snapdragon® 8 Elite For Galaxy Mobile 6.318 ms 0 - 299 MB NPU
Distil-Bert-Base-Uncased-Hf ONNX w8a16 Snapdragon® 7 Gen 4 Mobile 701.504 ms 355 - 367 MB CPU
Distil-Bert-Base-Uncased-Hf ONNX w8a16 Qualcomm® QCS9075 12.506 ms 0 - 3 MB NPU
Distil-Bert-Base-Uncased-Hf ONNX w8a16 Qualcomm® QCM6690 712.83 ms 351 - 363 MB CPU
Distil-Bert-Base-Uncased-Hf ONNX w8a16 Snapdragon® 7 Gen 4 Mobile 701.504 ms 355 - 367 MB CPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Snapdragon® 8 Elite Gen 5 Mobile 6.765 ms 0 - 353 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Snapdragon® 8 Elite Mobile 8.395 ms 0 - 351 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Snapdragon® X2 Elite 7.43 ms 1 - 1 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Snapdragon® X Elite 14.291 ms 0 - 0 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Snapdragon® X Elite 14.291 ms 0 - 0 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Snapdragon® 8 Gen 3 Mobile 11.886 ms 0 - 472 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Qualcomm® QCS8550 (Proxy) 14.993 ms 0 - 2 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Qualcomm® SA8775P 18.7 ms 0 - 355 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Qualcomm® SA8775P 18.7 ms 0 - 355 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Qualcomm® SA8775P 18.7 ms 0 - 355 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Qualcomm® SA7255P 50.272 ms 0 - 354 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Qualcomm® QCS8450 (Proxy) 21.996 ms 0 - 285 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Qualcomm® SA8295P 23.633 ms 0 - 180 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Snapdragon® 8 Elite For Galaxy Mobile 8.395 ms 0 - 351 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Qualcomm® QCS9075 18.978 ms 0 - 2 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Snapdragon® 8 Elite Gen 5 Mobile 2.946 ms 0 - 293 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Snapdragon® 8 Elite Mobile 3.988 ms 11 - 301 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Snapdragon® X2 Elite 3.515 ms 1 - 1 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Snapdragon® X Elite 8.061 ms 0 - 0 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Snapdragon® X Elite 8.061 ms 0 - 0 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Snapdragon® 8 Gen 3 Mobile 5.03 ms 0 - 365 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Qualcomm® QCS8550 (Proxy) 7.522 ms 0 - 2 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Qualcomm® SA8775P 7.753 ms 0 - 304 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Qualcomm® SA8775P 7.753 ms 0 - 304 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Qualcomm® SA8775P 7.753 ms 0 - 304 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Qualcomm® SA7255P 17.743 ms 0 - 304 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Snapdragon® 8 Elite For Galaxy Mobile 3.988 ms 11 - 301 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Qualcomm® QCS9075 9.429 ms 0 - 2 MB NPU
Distil-Bert-Base-Uncased-Hf TFLITE float Snapdragon® 8 Elite Gen 5 Mobile 7.025 ms 0 - 359 MB NPU
Distil-Bert-Base-Uncased-Hf TFLITE float Snapdragon® 8 Elite Mobile 8.399 ms 0 - 355 MB NPU
Distil-Bert-Base-Uncased-Hf TFLITE float Snapdragon® 8 Gen 3 Mobile 12.022 ms 0 - 475 MB NPU
Distil-Bert-Base-Uncased-Hf TFLITE float Qualcomm® QCS8550 (Proxy) 15.647 ms 0 - 2 MB NPU
Distil-Bert-Base-Uncased-Hf TFLITE float Qualcomm® SA8775P 18.992 ms 0 - 359 MB NPU
Distil-Bert-Base-Uncased-Hf TFLITE float Qualcomm® SA8775P 18.992 ms 0 - 359 MB NPU
Distil-Bert-Base-Uncased-Hf TFLITE float Qualcomm® SA8775P 18.992 ms 0 - 359 MB NPU
Distil-Bert-Base-Uncased-Hf TFLITE float Qualcomm® SA7255P 50.515 ms 0 - 359 MB NPU
Distil-Bert-Base-Uncased-Hf TFLITE float Qualcomm® QCS8450 (Proxy) 37.747 ms 0 - 285 MB NPU
Distil-Bert-Base-Uncased-Hf TFLITE float Qualcomm® SA8295P 23.956 ms 0 - 181 MB NPU
Distil-Bert-Base-Uncased-Hf TFLITE float Snapdragon® 8 Elite For Galaxy Mobile 8.399 ms 0 - 355 MB NPU
Distil-Bert-Base-Uncased-Hf TFLITE float Qualcomm® QCS9075 19.302 ms 0 - 176 MB NPU

License

  • The license for the original implementation of Distil-Bert-Base-Uncased-Hf 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/Distil-Bert-Base-Uncased-Hf