Text Generation
PyTorch
backbone
android

Albert-Base-V2-Hf: Optimized for Qualcomm Devices

ALBERT 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 Albert-Base-V2-Hf 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
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 Albert-Base-V2-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 Albert-Base-V2-Hf on GitHub for usage instructions.

Model Details

Model Type: Model_use_case.text_generation

Model Stats:

  • Input resolution: 1x384
  • Model checkpoint: albert/albert-base-v2
  • Model size (float): 43.9 MB
  • Number of parameters: 11.8M

Performance Summary

Model Runtime Precision Chipset Inference Time (ms) Peak Memory Range (MB) Primary Compute Unit
Albert-Base-V2-Hf ONNX float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 6.578 ms 0 - 302 MB NPU
Albert-Base-V2-Hf ONNX float Snapdragon® 8 Elite For Galaxy Mobile 8.619 ms 0 - 297 MB NPU
Albert-Base-V2-Hf ONNX float Snapdragon® X2 Elite 7.017 ms 1 - 1 MB NPU
Albert-Base-V2-Hf ONNX float Snapdragon® X Elite 17.535 ms 30 - 30 MB NPU
Albert-Base-V2-Hf ONNX float Snapdragon® 8 Gen 3 Mobile 12.48 ms 0 - 329 MB NPU
Albert-Base-V2-Hf ONNX float Snapdragon® 8 Gen 1 Mobile 26.812 ms 0 - 333 MB NPU
Albert-Base-V2-Hf ONNX float Qualcomm® Dragonwing™ IQ-8275 22.403 ms 0 - 4 MB NPU
Albert-Base-V2-Hf ONNX float Qualcomm® Dragonwing™ QCS8550 (Proxy) 17.021 ms 0 - 35 MB NPU
Albert-Base-V2-Hf ONNX float Qualcomm® QCS8450 26.812 ms 0 - 333 MB NPU
Albert-Base-V2-Hf ONNX float Qualcomm® Dragonwing™ IQ-9075 21.303 ms 0 - 4 MB NPU
Albert-Base-V2-Hf ONNX float Qualcomm® Dragonwing™ IQ-X7181 17.535 ms 30 - 30 MB NPU
Albert-Base-V2-Hf ONNX float Qualcomm® Dragonwing™ Q-8750 8.619 ms 0 - 297 MB NPU
Albert-Base-V2-Hf ONNX float Snapdragon® 8 Elite Extreme Gen 6 Mobile 6.075 ms 0 - 295 MB NPU
Albert-Base-V2-Hf ONNX float Snapdragon® 8 Elite Gen 6 Mobile 7.092 ms 0 - 265 MB NPU
Albert-Base-V2-Hf ONNX w8a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 5.497 ms 0 - 274 MB NPU
Albert-Base-V2-Hf ONNX w8a16 Snapdragon® 8 Elite For Galaxy Mobile 6.959 ms 0 - 269 MB NPU
Albert-Base-V2-Hf ONNX w8a16 Snapdragon® X2 Elite 5.598 ms 1 - 1 MB NPU
Albert-Base-V2-Hf ONNX w8a16 Snapdragon® X Elite 13.079 ms 21 - 21 MB NPU
Albert-Base-V2-Hf ONNX w8a16 Snapdragon® 8 Gen 3 Mobile 9.21 ms 0 - 300 MB NPU
Albert-Base-V2-Hf ONNX w8a16 Snapdragon® 8 Gen 1 Mobile 16.323 ms 0 - 301 MB NPU
Albert-Base-V2-Hf ONNX w8a16 Qualcomm® Dragonwing™ QCS6490 70.664 ms 48 - 51 MB NPU
Albert-Base-V2-Hf ONNX w8a16 Qualcomm® Dragonwing™ IQ-8275 12.214 ms 0 - 4 MB NPU
Albert-Base-V2-Hf ONNX w8a16 Qualcomm® Dragonwing™ QCS8550 (Proxy) 12.713 ms 0 - 27 MB NPU
Albert-Base-V2-Hf ONNX w8a16 Qualcomm® QCS8450 16.323 ms 0 - 301 MB NPU
Albert-Base-V2-Hf ONNX w8a16 Qualcomm® Dragonwing™ IQ-9075 12.95 ms 0 - 4 MB NPU
Albert-Base-V2-Hf ONNX w8a16 Qualcomm® Dragonwing™ IQ-X7181 13.079 ms 21 - 21 MB NPU
Albert-Base-V2-Hf ONNX w8a16 Qualcomm® Dragonwing™ Q-6690 215.155 ms 50 - 369 MB NPU
Albert-Base-V2-Hf ONNX w8a16 Qualcomm® Dragonwing™ Q-7790 30.208 ms 47 - 321 MB NPU
Albert-Base-V2-Hf ONNX w8a16 Qualcomm® Dragonwing™ Q-8750 6.959 ms 0 - 269 MB NPU
Albert-Base-V2-Hf ONNX w8a16 Snapdragon® 7 Gen 4 Mobile 30.208 ms 47 - 321 MB NPU
Albert-Base-V2-Hf ONNX w8a16 Snapdragon® 8 Elite Extreme Gen 6 Mobile 4.643 ms 0 - 319 MB NPU
Albert-Base-V2-Hf ONNX w8a16 Snapdragon® 8 Elite Gen 6 Mobile 5.766 ms 0 - 273 MB NPU
Albert-Base-V2-Hf QNN_DLC float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 6.556 ms 0 - 297 MB NPU
Albert-Base-V2-Hf QNN_DLC float Snapdragon® 8 Elite For Galaxy Mobile 8.681 ms 0 - 293 MB NPU
Albert-Base-V2-Hf QNN_DLC float Snapdragon® X2 Elite 7.426 ms 0 - 0 MB NPU
Albert-Base-V2-Hf QNN_DLC float Snapdragon® X Elite 17.667 ms 0 - 0 MB NPU
Albert-Base-V2-Hf QNN_DLC float Snapdragon® 8 Gen 3 Mobile 12.455 ms 0 - 327 MB NPU
Albert-Base-V2-Hf QNN_DLC float Snapdragon® 8 Gen 1 Mobile 26.461 ms 0 - 329 MB NPU
Albert-Base-V2-Hf QNN_DLC float Qualcomm® Dragonwing™ IQ-8275 22.738 ms 0 - 3 MB NPU
Albert-Base-V2-Hf QNN_DLC float Qualcomm® Dragonwing™ QCS8550 (Proxy) 16.884 ms 0 - 2 MB NPU
Albert-Base-V2-Hf QNN_DLC float Qualcomm® QCS8450 26.461 ms 0 - 329 MB NPU
Albert-Base-V2-Hf QNN_DLC float Qualcomm® Dragonwing™ IQ-9075 21.543 ms 2 - 4 MB NPU
Albert-Base-V2-Hf QNN_DLC float Qualcomm® Dragonwing™ IQ-X7181 17.667 ms 0 - 0 MB NPU
Albert-Base-V2-Hf QNN_DLC float Qualcomm® Dragonwing™ Q-8750 8.681 ms 0 - 293 MB NPU
Albert-Base-V2-Hf QNN_DLC float Qualcomm® SA8295P 26.18 ms 0 - 281 MB NPU
Albert-Base-V2-Hf QNN_DLC float Snapdragon® 8 Elite Extreme Gen 6 Mobile 6.018 ms 0 - 291 MB NPU
Albert-Base-V2-Hf QNN_DLC float Snapdragon® 8 Elite Gen 6 Mobile 7.112 ms 0 - 261 MB NPU
Albert-Base-V2-Hf QNN_DLC w8a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 5.432 ms 0 - 268 MB NPU
Albert-Base-V2-Hf QNN_DLC w8a16 Snapdragon® 8 Elite For Galaxy Mobile 7.265 ms 0 - 267 MB NPU
Albert-Base-V2-Hf QNN_DLC w8a16 Snapdragon® X2 Elite 6.178 ms 0 - 0 MB NPU
Albert-Base-V2-Hf QNN_DLC w8a16 Snapdragon® X Elite 13.414 ms 0 - 0 MB NPU
Albert-Base-V2-Hf QNN_DLC w8a16 Snapdragon® 8 Gen 3 Mobile 7.738 ms 0 - 300 MB NPU
Albert-Base-V2-Hf QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-8275 12.949 ms 0 - 3 MB NPU
Albert-Base-V2-Hf QNN_DLC w8a16 Qualcomm® Dragonwing™ QCS8550 (Proxy) 12.776 ms 0 - 2 MB NPU
Albert-Base-V2-Hf QNN_DLC w8a16 Qualcomm® SA8650P 11.482 ms 0 - 278 MB NPU
Albert-Base-V2-Hf QNN_DLC w8a16 Qualcomm® SA8255P 11.482 ms 0 - 278 MB NPU
Albert-Base-V2-Hf QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-9075 12.884 ms 0 - 2 MB NPU
Albert-Base-V2-Hf QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-X7181 13.414 ms 0 - 0 MB NPU
Albert-Base-V2-Hf QNN_DLC w8a16 Qualcomm® Dragonwing™ Q-8750 7.265 ms 0 - 267 MB NPU
Albert-Base-V2-Hf QNN_DLC w8a16 Qualcomm® SA7255P 29.14 ms 0 - 268 MB NPU
Albert-Base-V2-Hf QNN_DLC w8a16 Snapdragon® 8 Elite Extreme Gen 6 Mobile 4.843 ms 0 - 309 MB NPU
Albert-Base-V2-Hf QNN_DLC w8a16 Snapdragon® 8 Elite Gen 6 Mobile 6.028 ms 0 - 268 MB NPU
Albert-Base-V2-Hf TFLITE float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 6.521 ms 0 - 310 MB NPU
Albert-Base-V2-Hf TFLITE float Snapdragon® 8 Elite For Galaxy Mobile 8.767 ms 0 - 304 MB NPU
Albert-Base-V2-Hf TFLITE float Snapdragon® 8 Gen 3 Mobile 12.418 ms 0 - 334 MB NPU
Albert-Base-V2-Hf TFLITE float Snapdragon® 8 Gen 1 Mobile 26.623 ms 0 - 332 MB NPU
Albert-Base-V2-Hf TFLITE float Qualcomm® Dragonwing™ IQ-8275 22.885 ms 0 - 34 MB NPU
Albert-Base-V2-Hf TFLITE float Qualcomm® Dragonwing™ QCS8550 (Proxy) 16.906 ms 0 - 3 MB NPU
Albert-Base-V2-Hf TFLITE float Qualcomm® SA8650P 21.046 ms 0 - 289 MB NPU
Albert-Base-V2-Hf TFLITE float Qualcomm® SA8255P 21.046 ms 0 - 289 MB NPU
Albert-Base-V2-Hf TFLITE float Qualcomm® QCS8450 26.623 ms 0 - 332 MB NPU
Albert-Base-V2-Hf TFLITE float Qualcomm® Dragonwing™ IQ-9075 21.69 ms 0 - 33 MB NPU
Albert-Base-V2-Hf TFLITE float Qualcomm® Dragonwing™ Q-8750 8.767 ms 0 - 304 MB NPU
Albert-Base-V2-Hf TFLITE float Qualcomm® SA8295P 26.258 ms 0 - 328 MB NPU
Albert-Base-V2-Hf TFLITE float Snapdragon® 8 Elite Extreme Gen 6 Mobile 6.14 ms 0 - 305 MB NPU
Albert-Base-V2-Hf TFLITE float Snapdragon® 8 Elite Gen 6 Mobile 7.138 ms 0 - 273 MB NPU

License

  • The license for the original implementation of Albert-Base-V2-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/Albert-Base-V2-Hf