SwinV2-Base: Optimized for Qualcomm Devices
SwinV2Base 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 SwinV2-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 |
|---|---|---|---|---|
| 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 SwinV2-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 SwinV2-Base on GitHub for usage instructions.
Model Details
Model Type: Model_use_case.image_classification
Model Stats:
- Input resolution: 256x256
- 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 |
|---|---|---|---|---|---|---|
| SwinV2-Base | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 10.86 ms | 0 - 453 MB | NPU |
| SwinV2-Base | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 14.296 ms | 0 - 428 MB | NPU |
| SwinV2-Base | QNN_DLC | float | Snapdragon® X2 Elite | 11.33 ms | 1 - 1 MB | NPU |
| SwinV2-Base | QNN_DLC | float | Snapdragon® X Elite | 29.571 ms | 1 - 1 MB | NPU |
| SwinV2-Base | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 19.947 ms | 0 - 569 MB | NPU |
| SwinV2-Base | QNN_DLC | float | Snapdragon® 8 Gen 1 Mobile | 38.933 ms | 0 - 583 MB | NPU |
| SwinV2-Base | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-8275 | 29.894 ms | 0 - 3 MB | NPU |
| SwinV2-Base | QNN_DLC | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 28.733 ms | 0 - 50 MB | NPU |
| SwinV2-Base | QNN_DLC | float | Qualcomm® QCS8450 | 38.933 ms | 0 - 583 MB | NPU |
| SwinV2-Base | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-9075 | 32.321 ms | 0 - 2 MB | NPU |
| SwinV2-Base | QNN_DLC | float | Qualcomm® Dragonwing™ IQ-X7181 | 29.571 ms | 1 - 1 MB | NPU |
| SwinV2-Base | QNN_DLC | float | Qualcomm® Dragonwing™ Q-8750 | 14.296 ms | 0 - 428 MB | NPU |
| SwinV2-Base | QNN_DLC | float | Qualcomm® SA8295P | 38.907 ms | 0 - 412 MB | NPU |
| SwinV2-Base | QNN_DLC | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 9.528 ms | 0 - 434 MB | NPU |
| SwinV2-Base | QNN_DLC | float | Snapdragon® 8 Elite Gen 6 Mobile | 14.841 ms | 0 - 427 MB | NPU |
| SwinV2-Base | QNN_DLC | w8a16 | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 10.165 ms | 0 - 481 MB | NPU |
| SwinV2-Base | QNN_DLC | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 13.609 ms | 0 - 456 MB | NPU |
| SwinV2-Base | QNN_DLC | w8a16 | Snapdragon® X2 Elite | 10.706 ms | 0 - 0 MB | NPU |
| SwinV2-Base | QNN_DLC | w8a16 | Snapdragon® X Elite | 28.83 ms | 0 - 0 MB | NPU |
| SwinV2-Base | QNN_DLC | w8a16 | Snapdragon® 8 Gen 3 Mobile | 20.409 ms | 0 - 599 MB | NPU |
| SwinV2-Base | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-8275 | 24.198 ms | 1 - 4 MB | NPU |
| SwinV2-Base | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 27.7 ms | 0 - 3 MB | NPU |
| SwinV2-Base | QNN_DLC | w8a16 | Qualcomm® SA8650P | 30.025 ms | 0 - 869 MB | NPU |
| SwinV2-Base | QNN_DLC | w8a16 | Qualcomm® SA8255P | 30.025 ms | 0 - 869 MB | NPU |
| SwinV2-Base | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-9075 | 27.98 ms | 1 - 3 MB | NPU |
| SwinV2-Base | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ IQ-X7181 | 28.83 ms | 0 - 0 MB | NPU |
| SwinV2-Base | QNN_DLC | w8a16 | Qualcomm® Dragonwing™ Q-8750 | 13.609 ms | 0 - 456 MB | NPU |
| SwinV2-Base | QNN_DLC | w8a16 | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 8.706 ms | 0 - 466 MB | NPU |
| SwinV2-Base | QNN_DLC | w8a16 | Snapdragon® 8 Elite Gen 6 Mobile | 13.822 ms | 0 - 461 MB | NPU |
| SwinV2-Base | TFLITE | float | Snapdragon® 8 Elite Gen 5 For Galaxy Mobile | 11.146 ms | 0 - 443 MB | NPU |
| SwinV2-Base | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 15.069 ms | 0 - 422 MB | NPU |
| SwinV2-Base | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 20.199 ms | 0 - 583 MB | NPU |
| SwinV2-Base | TFLITE | float | Snapdragon® 8 Gen 1 Mobile | 40.334 ms | 0 - 568 MB | NPU |
| SwinV2-Base | TFLITE | float | Qualcomm® Dragonwing™ IQ-8275 | 29.126 ms | 0 - 181 MB | NPU |
| SwinV2-Base | TFLITE | float | Qualcomm® Dragonwing™ QCS8550 (Proxy) | 29.424 ms | 0 - 199 MB | NPU |
| SwinV2-Base | TFLITE | float | Qualcomm® SA8775P | 271.97 ms | 3 - 26 MB | CPU |
| SwinV2-Base | TFLITE | float | Qualcomm® SA8650P | 271.97 ms | 3 - 26 MB | CPU |
| SwinV2-Base | TFLITE | float | Qualcomm® SA8255P | 271.97 ms | 3 - 26 MB | CPU |
| SwinV2-Base | TFLITE | float | Qualcomm® QCS8450 | 40.334 ms | 0 - 568 MB | NPU |
| SwinV2-Base | TFLITE | float | Qualcomm® Dragonwing™ IQ-9075 | 32.348 ms | 0 - 181 MB | NPU |
| SwinV2-Base | TFLITE | float | Qualcomm® Dragonwing™ Q-8750 | 15.069 ms | 0 - 422 MB | NPU |
| SwinV2-Base | TFLITE | float | Qualcomm® SA7255P | 370.868 ms | 3 - 25 MB | CPU |
| SwinV2-Base | TFLITE | float | Qualcomm® SA8295P | 39.078 ms | 0 - 404 MB | NPU |
| SwinV2-Base | TFLITE | float | Snapdragon® 8 Elite Extreme Gen 6 Mobile | 10.005 ms | 0 - 421 MB | NPU |
| SwinV2-Base | TFLITE | float | Snapdragon® 8 Elite Gen 6 Mobile | 15.009 ms | 0 - 421 MB | NPU |
License
- The license for the original implementation of SwinV2-Base can be found here.
References
Community
- Join our AI Hub Slack community to collaborate, post questions and learn more about on-device AI.
- For questions or feedback please reach out to us.
