Image Classification
PyTorch
bu_auto
android

LeViT: Optimized for Qualcomm Devices

LeViT is a vision transformer model that can classify images from the Imagenet dataset.

This is based on the implementation of LeViT 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 w8a8_mixed_int16 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 LeViT 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 LeViT on GitHub for usage instructions.

Model Details

Model Type: Model_use_case.image_classification

Model Stats:

  • Input resolution: 224x224
  • Model checkpoint: LeViT-128S
  • Model size (float): 29.9 MB
  • Model size (w8a16): 8.83 MB
  • Number of parameters: 7.82M

Performance Summary

Model Runtime Precision Chipset Inference Time (ms) Peak Memory Range (MB) Primary Compute Unit
LeViT ONNX float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 0.643 ms 0 - 62 MB NPU
LeViT ONNX float Snapdragon® 8 Elite For Galaxy Mobile 0.688 ms 0 - 67 MB NPU
LeViT ONNX float Snapdragon® X2 Elite 0.671 ms 2 - 2 MB NPU
LeViT ONNX float Snapdragon® X Elite 1.28 ms 17 - 17 MB NPU
LeViT ONNX float Snapdragon® 8 Gen 3 Mobile 0.87 ms 0 - 91 MB NPU
LeViT ONNX float Snapdragon® 8 Gen 1 Mobile 1.5 ms 1 - 89 MB NPU
LeViT ONNX float Qualcomm® Dragonwing™ IQ-8275 1.26 ms 0 - 5 MB NPU
LeViT ONNX float Qualcomm® Dragonwing™ QCS8550 (Proxy) 1.243 ms 0 - 22 MB NPU
LeViT ONNX float Qualcomm® QCS8450 1.5 ms 1 - 89 MB NPU
LeViT ONNX float Qualcomm® Dragonwing™ IQ-9075 1.362 ms 1 - 4 MB NPU
LeViT ONNX float Qualcomm® Dragonwing™ IQ-X7181 1.28 ms 17 - 17 MB NPU
LeViT ONNX float Qualcomm® Dragonwing™ Q-8750 0.688 ms 0 - 67 MB NPU
LeViT ONNX float Snapdragon® 8 Elite Extreme Gen 6 Mobile 0.567 ms 0 - 67 MB NPU
LeViT ONNX float Snapdragon® 8 Elite Gen 6 Mobile 0.659 ms 0 - 62 MB NPU
LeViT ONNX w8a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 0.481 ms 0 - 63 MB NPU
LeViT ONNX w8a16 Snapdragon® 8 Elite For Galaxy Mobile 0.537 ms 0 - 57 MB NPU
LeViT ONNX w8a16 Snapdragon® X2 Elite 0.493 ms 1 - 1 MB NPU
LeViT ONNX w8a16 Snapdragon® X Elite 1.089 ms 8 - 8 MB NPU
LeViT ONNX w8a16 Snapdragon® 8 Gen 3 Mobile 0.697 ms 0 - 85 MB NPU
LeViT ONNX w8a16 Snapdragon® 8 Gen 1 Mobile 1.241 ms 0 - 89 MB NPU
LeViT ONNX w8a16 Qualcomm® Dragonwing™ QCS6490 3.239 ms 0 - 3 MB NPU
LeViT ONNX w8a16 Qualcomm® Dragonwing™ IQ-8275 0.956 ms 0 - 4 MB NPU
LeViT ONNX w8a16 Qualcomm® Dragonwing™ QCS8550 (Proxy) 1.039 ms 0 - 12 MB NPU
LeViT ONNX w8a16 Qualcomm® QCS8450 1.241 ms 0 - 89 MB NPU
LeViT ONNX w8a16 Qualcomm® Dragonwing™ IQ-9075 1.08 ms 0 - 4 MB NPU
LeViT ONNX w8a16 Qualcomm® Dragonwing™ IQ-X7181 1.089 ms 8 - 8 MB NPU
LeViT ONNX w8a16 Qualcomm® Dragonwing™ Q-6690 4.35 ms 0 - 174 MB NPU
LeViT ONNX w8a16 Qualcomm® Dragonwing™ Q-7790 1.037 ms 0 - 60 MB NPU
LeViT ONNX w8a16 Qualcomm® Dragonwing™ Q-8750 0.537 ms 0 - 57 MB NPU
LeViT ONNX w8a16 Snapdragon® 7 Gen 4 Mobile 1.037 ms 0 - 60 MB NPU
LeViT ONNX w8a16 Snapdragon® 8 Elite Extreme Gen 6 Mobile 0.421 ms 0 - 58 MB NPU
LeViT ONNX w8a16 Snapdragon® 8 Elite Gen 6 Mobile 0.524 ms 0 - 59 MB NPU
LeViT ONNX w8a8_mixed_int16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 1.454 ms 0 - 58 MB NPU
LeViT ONNX w8a8_mixed_int16 Snapdragon® 8 Elite For Galaxy Mobile 2.102 ms 0 - 54 MB NPU
LeViT ONNX w8a8_mixed_int16 Snapdragon® X2 Elite 1.698 ms 8 - 8 MB NPU
LeViT ONNX w8a8_mixed_int16 Snapdragon® X Elite 2.891 ms 8 - 8 MB NPU
LeViT ONNX w8a8_mixed_int16 Snapdragon® 8 Gen 3 Mobile 1.953 ms 0 - 85 MB NPU
LeViT ONNX w8a8_mixed_int16 Qualcomm® Dragonwing™ IQ-8275 3.463 ms 6 - 10 MB NPU
LeViT ONNX w8a8_mixed_int16 Qualcomm® Dragonwing™ QCS8550 (Proxy) 3.014 ms 0 - 4 MB NPU
LeViT ONNX w8a8_mixed_int16 Qualcomm® Dragonwing™ IQ-9075 3.405 ms 8 - 11 MB NPU
LeViT ONNX w8a8_mixed_int16 Qualcomm® Dragonwing™ IQ-X7181 2.891 ms 8 - 8 MB NPU
LeViT ONNX w8a8_mixed_int16 Qualcomm® Dragonwing™ Q-8750 2.102 ms 0 - 54 MB NPU
LeViT ONNX w8a8_mixed_int16 Snapdragon® 8 Elite Extreme Gen 6 Mobile 1.671 ms 0 - 56 MB NPU
LeViT ONNX w8a8_mixed_int16 Snapdragon® 8 Elite Gen 6 Mobile 1.386 ms 0 - 56 MB NPU
LeViT QNN_DLC float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 0.774 ms 1 - 63 MB NPU
LeViT QNN_DLC float Snapdragon® 8 Elite For Galaxy Mobile 0.843 ms 0 - 66 MB NPU
LeViT QNN_DLC float Snapdragon® X2 Elite 1.038 ms 1 - 1 MB NPU
LeViT QNN_DLC float Snapdragon® X Elite 1.79 ms 1 - 1 MB NPU
LeViT QNN_DLC float Snapdragon® 8 Gen 3 Mobile 1.071 ms 0 - 87 MB NPU
LeViT QNN_DLC float Snapdragon® 8 Gen 1 Mobile 2.163 ms 0 - 91 MB NPU
LeViT QNN_DLC float Qualcomm® Dragonwing™ IQ-8275 1.46 ms 1 - 4 MB NPU
LeViT QNN_DLC float Qualcomm® Dragonwing™ QCS8550 (Proxy) 1.552 ms 1 - 2 MB NPU
LeViT QNN_DLC float Qualcomm® SA8775P 1.965 ms 1 - 63 MB NPU
LeViT QNN_DLC float Qualcomm® SA8650P 1.965 ms 1 - 63 MB NPU
LeViT QNN_DLC float Qualcomm® SA8255P 1.965 ms 1 - 63 MB NPU
LeViT QNN_DLC float Qualcomm® QCS8450 2.163 ms 0 - 91 MB NPU
LeViT QNN_DLC float Qualcomm® Dragonwing™ IQ-9075 1.68 ms 1 - 3 MB NPU
LeViT QNN_DLC float Qualcomm® Dragonwing™ IQ-X7181 1.79 ms 1 - 1 MB NPU
LeViT QNN_DLC float Qualcomm® Dragonwing™ Q-8750 0.843 ms 0 - 66 MB NPU
LeViT QNN_DLC float Qualcomm® SA8295P 2.203 ms 0 - 58 MB NPU
LeViT QNN_DLC float Snapdragon® 8 Elite Extreme Gen 6 Mobile 0.685 ms 0 - 61 MB NPU
LeViT QNN_DLC float Snapdragon® 8 Elite Gen 6 Mobile 0.766 ms 0 - 61 MB NPU
LeViT QNN_DLC w8a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 0.678 ms 0 - 55 MB NPU
LeViT QNN_DLC w8a16 Snapdragon® 8 Elite For Galaxy Mobile 0.771 ms 0 - 52 MB NPU
LeViT QNN_DLC w8a16 Snapdragon® X2 Elite 0.871 ms 0 - 0 MB NPU
LeViT QNN_DLC w8a16 Snapdragon® X Elite 1.768 ms 0 - 0 MB NPU
LeViT QNN_DLC w8a16 Snapdragon® 8 Gen 3 Mobile 0.952 ms 0 - 75 MB NPU
LeViT QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-8275 1.367 ms 0 - 4 MB NPU
LeViT QNN_DLC w8a16 Qualcomm® Dragonwing™ QCS8550 (Proxy) 1.55 ms 0 - 2 MB NPU
LeViT QNN_DLC w8a16 Qualcomm® SA8775P 1.862 ms 0 - 55 MB NPU
LeViT QNN_DLC w8a16 Qualcomm® SA8650P 1.862 ms 0 - 55 MB NPU
LeViT QNN_DLC w8a16 Qualcomm® SA8255P 1.862 ms 0 - 55 MB NPU
LeViT QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-9075 1.593 ms 2 - 5 MB NPU
LeViT QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-X7181 1.768 ms 0 - 0 MB NPU
LeViT QNN_DLC w8a16 Qualcomm® Dragonwing™ Q-6690 5.547 ms 0 - 170 MB NPU
LeViT QNN_DLC w8a16 Qualcomm® Dragonwing™ Q-7790 1.548 ms 0 - 56 MB NPU
LeViT QNN_DLC w8a16 Qualcomm® Dragonwing™ Q-8750 0.771 ms 0 - 52 MB NPU
LeViT QNN_DLC w8a16 Snapdragon® 7 Gen 4 Mobile 1.548 ms 0 - 56 MB NPU
LeViT QNN_DLC w8a16 Snapdragon® 8 Elite Extreme Gen 6 Mobile 0.651 ms 0 - 53 MB NPU
LeViT QNN_DLC w8a16 Snapdragon® 8 Elite Gen 6 Mobile 0.894 ms 0 - 53 MB NPU
LeViT TFLITE float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 0.583 ms 0 - 72 MB NPU
LeViT TFLITE float Snapdragon® 8 Elite For Galaxy Mobile 0.646 ms 0 - 70 MB NPU
LeViT TFLITE float Snapdragon® 8 Gen 3 Mobile 0.953 ms 0 - 85 MB NPU
LeViT TFLITE float Snapdragon® 8 Gen 1 Mobile 1.894 ms 0 - 91 MB NPU
LeViT TFLITE float Qualcomm® Dragonwing™ IQ-8275 1.224 ms 0 - 20 MB NPU
LeViT TFLITE float Qualcomm® Dragonwing™ QCS8550 (Proxy) 1.266 ms 0 - 23 MB NPU
LeViT TFLITE float Qualcomm® QCS8450 1.894 ms 0 - 91 MB NPU
LeViT TFLITE float Qualcomm® Dragonwing™ IQ-9075 1.401 ms 0 - 20 MB NPU
LeViT TFLITE float Qualcomm® Dragonwing™ Q-8750 0.646 ms 0 - 70 MB NPU
LeViT TFLITE float Qualcomm® SA7255P 3.131 ms 0 - 61 MB NPU
LeViT TFLITE float Qualcomm® SA8295P 1.89 ms 0 - 58 MB NPU
LeViT TFLITE float Snapdragon® 8 Elite Extreme Gen 6 Mobile 0.525 ms 0 - 67 MB NPU
LeViT TFLITE float Snapdragon® 8 Elite Gen 6 Mobile 0.605 ms 0 - 66 MB NPU

License

  • The license for the original implementation of LeViT 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/LeViT