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 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® 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 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.773 ms 0 - 352 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Snapdragon® 8 Elite Mobile 8.235 ms 0 - 349 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Snapdragon® X2 Elite 7.437 ms 1 - 1 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Snapdragon® X Elite 14.455 ms 0 - 0 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Snapdragon® X Elite 14.455 ms 0 - 0 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Snapdragon® 8 Gen 3 Mobile 11.764 ms 0 - 471 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Qualcomm® QCS8275 (Proxy) 50.229 ms 0 - 354 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Qualcomm® QCS8550 (Proxy) 15.304 ms 0 - 2 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Qualcomm® SA8775P 18.678 ms 0 - 354 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Qualcomm® SA8775P 18.678 ms 0 - 354 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Qualcomm® SA8775P 18.678 ms 0 - 354 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Qualcomm® QCS9075 19.118 ms 0 - 2 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Qualcomm® QCS8450 (Proxy) 37.596 ms 0 - 283 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Qualcomm® SA7255P 50.229 ms 0 - 354 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Qualcomm® SA8295P 23.873 ms 0 - 181 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC float Snapdragon® 8 Elite For Galaxy Mobile 8.235 ms 0 - 349 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Snapdragon® 8 Elite Gen 5 Mobile 2.953 ms 0 - 293 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Snapdragon® 8 Elite Mobile 3.991 ms 0 - 291 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Snapdragon® X2 Elite 3.573 ms 1 - 1 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Snapdragon® X Elite 8.064 ms 0 - 0 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Snapdragon® X Elite 8.064 ms 0 - 0 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Snapdragon® 8 Gen 3 Mobile 5.03 ms 0 - 366 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Qualcomm® QCS8275 (Proxy) 17.748 ms 0 - 304 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Qualcomm® QCS8550 (Proxy) 7.57 ms 0 - 2 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Qualcomm® SA8775P 7.767 ms 0 - 304 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Qualcomm® SA8775P 7.767 ms 0 - 304 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Qualcomm® SA8775P 7.767 ms 0 - 304 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Qualcomm® QCS9075 9.431 ms 0 - 2 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Qualcomm® SA7255P 17.748 ms 0 - 304 MB NPU
Distil-Bert-Base-Uncased-Hf QNN_DLC w8a16 Snapdragon® 8 Elite For Galaxy Mobile 3.991 ms 0 - 291 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® QCS8275 (Proxy) 50.515 ms 0 - 359 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® QCS9075 19.302 ms 0 - 176 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® SA7255P 50.515 ms 0 - 359 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

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