Swin-Base: Optimized for Qualcomm Devices

SwinBase is a machine learning model that can classify images from the Imagenet dataset. It can also be used as a backbone in building more complex models for specific use cases.

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

Model Details

Model Type: Model_use_case.image_classification

Model Stats:

  • Input resolution: 224x224
  • Model checkpoint: Imagenet
  • Model size (float): 339 MB
  • Model size (w8a16): 90.2 MB
  • Number of parameters: 88.8M

Performance Summary

Model Runtime Precision Chipset Inference Time (ms) Peak Memory Range (MB) Primary Compute Unit
Swin-Base ONNX float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 7.396 ms 0 - 390 MB NPU
Swin-Base ONNX float Snapdragon® 8 Elite For Galaxy Mobile 9.126 ms 1 - 374 MB NPU
Swin-Base ONNX float Snapdragon® X2 Elite 7.611 ms 2 - 2 MB NPU
Swin-Base ONNX float Snapdragon® X Elite 18.313 ms 176 - 176 MB NPU
Swin-Base ONNX float Snapdragon® 8 Gen 3 Mobile 12.56 ms 0 - 528 MB NPU
Swin-Base ONNX float Snapdragon® 8 Gen 1 Mobile 27.417 ms 1 - 518 MB NPU
Swin-Base ONNX float Qualcomm® Dragonwing™ IQ-8275 19.955 ms 1 - 5 MB NPU
Swin-Base ONNX float Qualcomm® Dragonwing™ QCS8550 (Proxy) 17.913 ms 0 - 195 MB NPU
Swin-Base ONNX float Qualcomm® QCS8450 27.417 ms 1 - 518 MB NPU
Swin-Base ONNX float Qualcomm® Dragonwing™ IQ-9075 21.541 ms 0 - 4 MB NPU
Swin-Base ONNX float Qualcomm® Dragonwing™ IQ-X7181 18.313 ms 176 - 176 MB NPU
Swin-Base ONNX float Qualcomm® Dragonwing™ Q-8750 9.126 ms 1 - 374 MB NPU
Swin-Base ONNX float Snapdragon® 8 Elite Extreme Gen 6 Mobile 6.731 ms 1 - 380 MB NPU
Swin-Base ONNX float Snapdragon® 8 Elite Gen 6 Mobile 8.526 ms 1 - 378 MB NPU
Swin-Base ONNX w8a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 5.963 ms 0 - 414 MB NPU
Swin-Base ONNX w8a16 Snapdragon® 8 Elite For Galaxy Mobile 7.71 ms 0 - 404 MB NPU
Swin-Base ONNX w8a16 Snapdragon® X2 Elite 6.149 ms 1 - 1 MB NPU
Swin-Base ONNX w8a16 Snapdragon® X Elite 15.831 ms 91 - 91 MB NPU
Swin-Base ONNX w8a16 Snapdragon® 8 Gen 3 Mobile 10.723 ms 0 - 538 MB NPU
Swin-Base ONNX w8a16 Snapdragon® 8 Gen 1 Mobile 19.675 ms 1 - 540 MB NPU
Swin-Base ONNX w8a16 Qualcomm® Dragonwing™ QCS6490 37.56 ms 1 - 4 MB NPU
Swin-Base ONNX w8a16 Qualcomm® Dragonwing™ IQ-8275 13.998 ms 1 - 5 MB NPU
Swin-Base ONNX w8a16 Qualcomm® Dragonwing™ QCS8550 (Proxy) 15.202 ms 0 - 194 MB NPU
Swin-Base ONNX w8a16 Qualcomm® QCS8450 19.675 ms 1 - 540 MB NPU
Swin-Base ONNX w8a16 Qualcomm® Dragonwing™ IQ-9075 15.844 ms 1 - 5 MB NPU
Swin-Base ONNX w8a16 Qualcomm® Dragonwing™ IQ-X7181 15.831 ms 91 - 91 MB NPU
Swin-Base ONNX w8a16 Qualcomm® Dragonwing™ Q-6690 95.109 ms 0 - 663 MB NPU
Swin-Base ONNX w8a16 Qualcomm® Dragonwing™ Q-7790 17.21 ms 0 - 610 MB NPU
Swin-Base ONNX w8a16 Qualcomm® Dragonwing™ Q-8750 7.71 ms 0 - 404 MB NPU
Swin-Base ONNX w8a16 Snapdragon® 7 Gen 4 Mobile 17.21 ms 0 - 610 MB NPU
Swin-Base ONNX w8a16 Snapdragon® 8 Elite Extreme Gen 6 Mobile 5.073 ms 0 - 418 MB NPU
Swin-Base ONNX w8a16 Snapdragon® 8 Elite Gen 6 Mobile 6.873 ms 0 - 415 MB NPU
Swin-Base QNN_DLC float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 6.931 ms 0 - 370 MB NPU
Swin-Base QNN_DLC float Snapdragon® 8 Elite For Galaxy Mobile 8.674 ms 0 - 352 MB NPU
Swin-Base QNN_DLC float Snapdragon® X2 Elite 7.649 ms 0 - 0 MB NPU
Swin-Base QNN_DLC float Snapdragon® X Elite 17.954 ms 1 - 1 MB NPU
Swin-Base QNN_DLC float Snapdragon® 8 Gen 3 Mobile 12.199 ms 1 - 507 MB NPU
Swin-Base QNN_DLC float Snapdragon® 8 Gen 1 Mobile 27.053 ms 0 - 496 MB NPU
Swin-Base QNN_DLC float Qualcomm® Dragonwing™ IQ-8275 19.449 ms 0 - 3 MB NPU
Swin-Base QNN_DLC float Qualcomm® Dragonwing™ QCS8550 (Proxy) 17.26 ms 0 - 2 MB NPU
Swin-Base QNN_DLC float Qualcomm® QCS8450 27.053 ms 0 - 496 MB NPU
Swin-Base QNN_DLC float Qualcomm® Dragonwing™ IQ-9075 19.752 ms 0 - 2 MB NPU
Swin-Base QNN_DLC float Qualcomm® Dragonwing™ IQ-X7181 17.954 ms 1 - 1 MB NPU
Swin-Base QNN_DLC float Qualcomm® Dragonwing™ Q-8750 8.674 ms 0 - 352 MB NPU
Swin-Base QNN_DLC float Qualcomm® SA8295P 26.143 ms 0 - 344 MB NPU
Swin-Base QNN_DLC float Snapdragon® 8 Elite Extreme Gen 6 Mobile 6.27 ms 0 - 361 MB NPU
Swin-Base QNN_DLC float Snapdragon® 8 Elite Gen 6 Mobile 8.054 ms 0 - 354 MB NPU
Swin-Base QNN_DLC w8a16 Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 6.889 ms 0 - 397 MB NPU
Swin-Base QNN_DLC w8a16 Snapdragon® 8 Elite For Galaxy Mobile 8.843 ms 0 - 389 MB NPU
Swin-Base QNN_DLC w8a16 Snapdragon® X2 Elite 7.499 ms 0 - 0 MB NPU
Swin-Base QNN_DLC w8a16 Snapdragon® X Elite 19.457 ms 0 - 0 MB NPU
Swin-Base QNN_DLC w8a16 Snapdragon® 8 Gen 3 Mobile 12.963 ms 0 - 512 MB NPU
Swin-Base QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-8275 16.56 ms 1 - 4 MB NPU
Swin-Base QNN_DLC w8a16 Qualcomm® Dragonwing™ QCS8550 (Proxy) 18.692 ms 0 - 3 MB NPU
Swin-Base QNN_DLC w8a16 Qualcomm® SA8650P 18.904 ms 0 - 413 MB NPU
Swin-Base QNN_DLC w8a16 Qualcomm® SA8255P 18.904 ms 0 - 413 MB NPU
Swin-Base QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-9075 19.157 ms 3 - 5 MB NPU
Swin-Base QNN_DLC w8a16 Qualcomm® Dragonwing™ IQ-X7181 19.457 ms 0 - 0 MB NPU
Swin-Base QNN_DLC w8a16 Qualcomm® Dragonwing™ Q-6690 111.99 ms 0 - 639 MB NPU
Swin-Base QNN_DLC w8a16 Qualcomm® Dragonwing™ Q-7790 20.591 ms 0 - 596 MB NPU
Swin-Base QNN_DLC w8a16 Qualcomm® Dragonwing™ Q-8750 8.843 ms 0 - 389 MB NPU
Swin-Base QNN_DLC w8a16 Snapdragon® 7 Gen 4 Mobile 20.591 ms 0 - 596 MB NPU
Swin-Base QNN_DLC w8a16 Snapdragon® 8 Elite Extreme Gen 6 Mobile 6.562 ms 0 - 395 MB NPU
Swin-Base QNN_DLC w8a16 Snapdragon® 8 Elite Gen 6 Mobile 9.756 ms 0 - 392 MB NPU
Swin-Base TFLITE float Snapdragon® 8 Elite Gen 5 For Galaxy Mobile 7.454 ms 0 - 380 MB NPU
Swin-Base TFLITE float Snapdragon® 8 Elite For Galaxy Mobile 9.119 ms 0 - 358 MB NPU
Swin-Base TFLITE float Snapdragon® 8 Gen 3 Mobile 12.818 ms 0 - 504 MB NPU
Swin-Base TFLITE float Snapdragon® 8 Gen 1 Mobile 27.299 ms 0 - 495 MB NPU
Swin-Base TFLITE float Qualcomm® Dragonwing™ IQ-8275 19.583 ms 0 - 179 MB NPU
Swin-Base TFLITE float Qualcomm® Dragonwing™ QCS8550 (Proxy) 18.232 ms 0 - 4 MB NPU
Swin-Base TFLITE float Qualcomm® SA8650P 114.874 ms 0 - 34 MB GPU
Swin-Base TFLITE float Qualcomm® SA8255P 114.874 ms 0 - 34 MB GPU
Swin-Base TFLITE float Qualcomm® QCS8450 27.299 ms 0 - 495 MB NPU
Swin-Base TFLITE float Qualcomm® Dragonwing™ IQ-9075 21.813 ms 0 - 179 MB NPU
Swin-Base TFLITE float Qualcomm® Dragonwing™ Q-8750 9.119 ms 0 - 358 MB NPU
Swin-Base TFLITE float Qualcomm® SA7255P 268.852 ms 0 - 34 MB GPU
Swin-Base TFLITE float Qualcomm® SA8295P 26.88 ms 0 - 351 MB NPU
Swin-Base TFLITE float Snapdragon® 8 Elite Extreme Gen 6 Mobile 6.74 ms 0 - 366 MB NPU
Swin-Base TFLITE float Snapdragon® 8 Elite Gen 6 Mobile 8.666 ms 0 - 360 MB NPU

License

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