qaihm-bot commited on
Commit
1c564d0
·
verified ·
1 Parent(s): 5b4bf57

See https://github.com/quic/ai-hub-models/releases/v0.46.1 for changelog.

EfficientFormer_float.dlc DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6d8fc050890aef92f7c13ac1d28dad913c3b301ca2e17a4ac0b66ddad93d3f84
3
- size 49274172
 
 
 
 
EfficientFormer_float.onnx.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:88528867cce78e62298411f2c59fd2b6944651427a6e4294cbec303f73517a92
3
- size 45831693
 
 
 
 
EfficientFormer_float.tflite DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:885a7277249d33f7129cfe8dc2d170016a500e770bae8bd31fd4c912205e2556
3
- size 49132860
 
 
 
 
EfficientFormer_w8a16.dlc DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0ca4949ab0a4d335001cbdaa6ab0d999ac2f0f035f580e59bdb3afc75cf9d708
3
- size 13565404
 
 
 
 
EfficientFormer_w8a16.onnx.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3d2ff1a8f1d2ed171e9e526b4e660d2d29c4527f2b5dde8306dda35c3dd4297d
3
- size 27609155
 
 
 
 
README.md CHANGED
@@ -10,257 +10,106 @@ pipeline_tag: image-classification
10
 
11
  ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/efficientformer/web-assets/model_demo.png)
12
 
13
- # EfficientFormer: Optimized for Mobile Deployment
14
- ## Imagenet classifier and general purpose backbone
15
-
16
 
17
  EfficientFormer is a vision transformer model that can classify images from the Imagenet dataset.
18
 
19
- This model is an implementation of EfficientFormer found [here](https://github.com/snap-research/EfficientFormer).
20
-
21
-
22
- This repository provides scripts to run EfficientFormer on Qualcomm® devices.
23
- More details on model performance across various devices, can be found
24
- [here](https://aihub.qualcomm.com/models/efficientformer).
25
-
26
-
27
-
28
- ### Model Details
29
-
30
- - **Model Type:** Model_use_case.image_classification
31
- - **Model Stats:**
32
- - Model checkpoint: efficientformer_l1_300d
33
- - Input resolution: 224x224
34
- - Number of parameters: 12.3M
35
- - Model size (float): 46.9 MB
36
- - Model size (w8a16): 12.2 MB
37
-
38
- | Model | Precision | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit | Target Model
39
- |---|---|---|---|---|---|---|---|---|
40
- | EfficientFormer | float | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | TFLITE | 4.875 ms | 0 - 154 MB | NPU | [EfficientFormer.tflite](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer.tflite) |
41
- | EfficientFormer | float | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | QNN_DLC | 5.001 ms | 1 - 139 MB | NPU | [EfficientFormer.dlc](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer.dlc) |
42
- | EfficientFormer | float | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | TFLITE | 5.48 ms | 0 - 197 MB | NPU | [EfficientFormer.tflite](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer.tflite) |
43
- | EfficientFormer | float | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | QNN_DLC | 5.616 ms | 1 - 182 MB | NPU | [EfficientFormer.dlc](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer.dlc) |
44
- | EfficientFormer | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | TFLITE | 1.436 ms | 0 - 3 MB | NPU | [EfficientFormer.tflite](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer.tflite) |
45
- | EfficientFormer | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | QNN_DLC | 1.586 ms | 1 - 2 MB | NPU | [EfficientFormer.dlc](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer.dlc) |
46
- | EfficientFormer | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | ONNX | 1.639 ms | 0 - 30 MB | NPU | [EfficientFormer.onnx.zip](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer.onnx.zip) |
47
- | EfficientFormer | float | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | TFLITE | 2.099 ms | 0 - 155 MB | NPU | [EfficientFormer.tflite](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer.tflite) |
48
- | EfficientFormer | float | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | QNN_DLC | 2.209 ms | 1 - 139 MB | NPU | [EfficientFormer.dlc](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer.dlc) |
49
- | EfficientFormer | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | TFLITE | 1.029 ms | 0 - 195 MB | NPU | [EfficientFormer.tflite](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer.tflite) |
50
- | EfficientFormer | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | QNN_DLC | 1.102 ms | 1 - 179 MB | NPU | [EfficientFormer.dlc](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer.dlc) |
51
- | EfficientFormer | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | ONNX | 1.1 ms | 0 - 153 MB | NPU | [EfficientFormer.onnx.zip](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer.onnx.zip) |
52
- | EfficientFormer | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | TFLITE | 0.769 ms | 0 - 155 MB | NPU | [EfficientFormer.tflite](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer.tflite) |
53
- | EfficientFormer | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | QNN_DLC | 0.824 ms | 1 - 144 MB | NPU | [EfficientFormer.dlc](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer.dlc) |
54
- | EfficientFormer | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | ONNX | 0.921 ms | 0 - 114 MB | NPU | [EfficientFormer.onnx.zip](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer.onnx.zip) |
55
- | EfficientFormer | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | TFLITE | 0.686 ms | 0 - 154 MB | NPU | [EfficientFormer.tflite](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer.tflite) |
56
- | EfficientFormer | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | QNN_DLC | 0.7 ms | 1 - 141 MB | NPU | [EfficientFormer.dlc](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer.dlc) |
57
- | EfficientFormer | float | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | ONNX | 0.801 ms | 1 - 115 MB | NPU | [EfficientFormer.onnx.zip](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer.onnx.zip) |
58
- | EfficientFormer | float | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN_DLC | 1.812 ms | 1 - 1 MB | NPU | [EfficientFormer.dlc](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer.dlc) |
59
- | EfficientFormer | float | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 1.621 ms | 25 - 25 MB | NPU | [EfficientFormer.onnx.zip](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer.onnx.zip) |
60
- | EfficientFormer | w8a16 | Dragonwing Q-6690 MTP | Qualcomm® QCM6690 | QNN_DLC | 7.023 ms | 0 - 152 MB | NPU | [EfficientFormer.dlc](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer_w8a16.dlc) |
61
- | EfficientFormer | w8a16 | Dragonwing Q-6690 MTP | Qualcomm® QCM6690 | ONNX | 64.274 ms | 22 - 36 MB | CPU | [EfficientFormer.onnx.zip](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer_w8a16.onnx.zip) |
62
- | EfficientFormer | w8a16 | Dragonwing RB3 Gen 2 Vision Kit | Qualcomm® QCS6490 | ONNX | 139.848 ms | 20 - 26 MB | CPU | [EfficientFormer.onnx.zip](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer_w8a16.onnx.zip) |
63
- | EfficientFormer | w8a16 | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | QNN_DLC | 3.254 ms | 1 - 144 MB | NPU | [EfficientFormer.dlc](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer_w8a16.dlc) |
64
- | EfficientFormer | w8a16 | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | QNN_DLC | 1.553 ms | 0 - 2 MB | NPU | [EfficientFormer.dlc](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer_w8a16.dlc) |
65
- | EfficientFormer | w8a16 | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | ONNX | 8.467 ms | 0 - 13 MB | NPU | [EfficientFormer.onnx.zip](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer_w8a16.onnx.zip) |
66
- | EfficientFormer | w8a16 | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | QNN_DLC | 1.938 ms | 0 - 145 MB | NPU | [EfficientFormer.dlc](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer_w8a16.dlc) |
67
- | EfficientFormer | w8a16 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | QNN_DLC | 1.071 ms | 0 - 170 MB | NPU | [EfficientFormer.dlc](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer_w8a16.dlc) |
68
- | EfficientFormer | w8a16 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | ONNX | 6.267 ms | 5 - 151 MB | NPU | [EfficientFormer.onnx.zip](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer_w8a16.onnx.zip) |
69
- | EfficientFormer | w8a16 | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | QNN_DLC | 0.709 ms | 0 - 148 MB | NPU | [EfficientFormer.dlc](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer_w8a16.dlc) |
70
- | EfficientFormer | w8a16 | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | ONNX | 7.508 ms | 5 - 124 MB | NPU | [EfficientFormer.onnx.zip](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer_w8a16.onnx.zip) |
71
- | EfficientFormer | w8a16 | Snapdragon 7 Gen 4 QRD | Snapdragon® 7 Gen 4 Mobile | QNN_DLC | 1.694 ms | 0 - 153 MB | NPU | [EfficientFormer.dlc](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer_w8a16.dlc) |
72
- | EfficientFormer | w8a16 | Snapdragon 7 Gen 4 QRD | Snapdragon® 7 Gen 4 Mobile | ONNX | 60.448 ms | 22 - 39 MB | CPU | [EfficientFormer.onnx.zip](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer_w8a16.onnx.zip) |
73
- | EfficientFormer | w8a16 | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | QNN_DLC | 0.599 ms | 0 - 147 MB | NPU | [EfficientFormer.dlc](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer_w8a16.dlc) |
74
- | EfficientFormer | w8a16 | Snapdragon 8 Elite Gen 5 QRD | Snapdragon® 8 Elite Gen 5 Mobile | ONNX | 4.264 ms | 5 - 124 MB | NPU | [EfficientFormer.onnx.zip](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer_w8a16.onnx.zip) |
75
- | EfficientFormer | w8a16 | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN_DLC | 1.795 ms | 0 - 0 MB | NPU | [EfficientFormer.dlc](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer_w8a16.dlc) |
76
- | EfficientFormer | w8a16 | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 6.424 ms | 10 - 10 MB | NPU | [EfficientFormer.onnx.zip](https://huggingface.co/qualcomm/EfficientFormer/blob/main/EfficientFormer_w8a16.onnx.zip) |
77
-
78
-
79
-
80
-
81
- ## Installation
82
-
83
-
84
- Install the package via pip:
85
- ```bash
86
- # NOTE: 3.10 <= PYTHON_VERSION < 3.14 is supported.
87
- pip install "qai-hub-models[efficientformer]"
88
- ```
89
-
90
-
91
- ## Configure Qualcomm® AI Hub Workbench to run this model on a cloud-hosted device
92
-
93
- Sign-in to [Qualcomm® AI Hub Workbench](https://workbench.aihub.qualcomm.com/) with your
94
- Qualcomm® ID. Once signed in navigate to `Account -> Settings -> API Token`.
95
-
96
- With this API token, you can configure your client to run models on the cloud
97
- hosted devices.
98
- ```bash
99
- qai-hub configure --api_token API_TOKEN
100
- ```
101
- Navigate to [docs](https://workbench.aihub.qualcomm.com/docs/) for more information.
102
-
103
-
104
-
105
- ## Demo off target
106
-
107
- The package contains a simple end-to-end demo that downloads pre-trained
108
- weights and runs this model on a sample input.
109
-
110
- ```bash
111
- python -m qai_hub_models.models.efficientformer.demo
112
- ```
113
-
114
- The above demo runs a reference implementation of pre-processing, model
115
- inference, and post processing.
116
-
117
- **NOTE**: If you want running in a Jupyter Notebook or Google Colab like
118
- environment, please add the following to your cell (instead of the above).
119
- ```
120
- %run -m qai_hub_models.models.efficientformer.demo
121
- ```
122
-
123
-
124
- ### Run model on a cloud-hosted device
125
-
126
- In addition to the demo, you can also run the model on a cloud-hosted Qualcomm®
127
- device. This script does the following:
128
- * Performance check on-device on a cloud-hosted device
129
- * Downloads compiled assets that can be deployed on-device for Android.
130
- * Accuracy check between PyTorch and on-device outputs.
131
-
132
- ```bash
133
- python -m qai_hub_models.models.efficientformer.export
134
- ```
135
-
136
-
137
-
138
- ## How does this work?
139
-
140
- This [export script](https://aihub.qualcomm.com/models/efficientformer/qai_hub_models/models/EfficientFormer/export.py)
141
- leverages [Qualcomm® AI Hub](https://aihub.qualcomm.com/) to optimize, validate, and deploy this model
142
- on-device. Lets go through each step below in detail:
143
-
144
- Step 1: **Compile model for on-device deployment**
145
-
146
- To compile a PyTorch model for on-device deployment, we first trace the model
147
- in memory using the `jit.trace` and then call the `submit_compile_job` API.
148
-
149
- ```python
150
- import torch
151
-
152
- import qai_hub as hub
153
- from qai_hub_models.models.efficientformer import Model
154
-
155
- # Load the model
156
- torch_model = Model.from_pretrained()
157
-
158
- # Device
159
- device = hub.Device("Samsung Galaxy S25")
160
-
161
- # Trace model
162
- input_shape = torch_model.get_input_spec()
163
- sample_inputs = torch_model.sample_inputs()
164
-
165
- pt_model = torch.jit.trace(torch_model, [torch.tensor(data[0]) for _, data in sample_inputs.items()])
166
-
167
- # Compile model on a specific device
168
- compile_job = hub.submit_compile_job(
169
- model=pt_model,
170
- device=device,
171
- input_specs=torch_model.get_input_spec(),
172
- )
173
-
174
- # Get target model to run on-device
175
- target_model = compile_job.get_target_model()
176
-
177
- ```
178
-
179
-
180
- Step 2: **Performance profiling on cloud-hosted device**
181
-
182
- After compiling models from step 1. Models can be profiled model on-device using the
183
- `target_model`. Note that this scripts runs the model on a device automatically
184
- provisioned in the cloud. Once the job is submitted, you can navigate to a
185
- provided job URL to view a variety of on-device performance metrics.
186
- ```python
187
- profile_job = hub.submit_profile_job(
188
- model=target_model,
189
- device=device,
190
- )
191
-
192
- ```
193
-
194
- Step 3: **Verify on-device accuracy**
195
-
196
- To verify the accuracy of the model on-device, you can run on-device inference
197
- on sample input data on the same cloud hosted device.
198
- ```python
199
- input_data = torch_model.sample_inputs()
200
- inference_job = hub.submit_inference_job(
201
- model=target_model,
202
- device=device,
203
- inputs=input_data,
204
- )
205
- on_device_output = inference_job.download_output_data()
206
-
207
- ```
208
- With the output of the model, you can compute like PSNR, relative errors or
209
- spot check the output with expected output.
210
-
211
- **Note**: This on-device profiling and inference requires access to Qualcomm®
212
- AI Hub Workbench. [Sign up for access](https://myaccount.qualcomm.com/signup).
213
-
214
-
215
-
216
- ## Run demo on a cloud-hosted device
217
-
218
- You can also run the demo on-device.
219
-
220
- ```bash
221
- python -m qai_hub_models.models.efficientformer.demo --eval-mode on-device
222
- ```
223
-
224
- **NOTE**: If you want running in a Jupyter Notebook or Google Colab like
225
- environment, please add the following to your cell (instead of the above).
226
- ```
227
- %run -m qai_hub_models.models.efficientformer.demo -- --eval-mode on-device
228
- ```
229
-
230
-
231
- ## Deploying compiled model to Android
232
-
233
-
234
- The models can be deployed using multiple runtimes:
235
- - TensorFlow Lite (`.tflite` export): [This
236
- tutorial](https://www.tensorflow.org/lite/android/quickstart) provides a
237
- guide to deploy the .tflite model in an Android application.
238
-
239
-
240
- - QNN (`.so` export ): This [sample
241
- app](https://docs.qualcomm.com/bundle/publicresource/topics/80-63442-50/sample_app.html)
242
- provides instructions on how to use the `.so` shared library in an Android application.
243
-
244
-
245
- ## View on Qualcomm® AI Hub
246
- Get more details on EfficientFormer's performance across various devices [here](https://aihub.qualcomm.com/models/efficientformer).
247
- Explore all available models on [Qualcomm® AI Hub](https://aihub.qualcomm.com/)
248
-
249
 
250
  ## License
251
  * The license for the original implementation of EfficientFormer can be found
252
  [here](https://github.com/snap-research/EfficientFormer?tab=License-1-ov-file#readme).
253
 
254
-
255
-
256
  ## References
257
  * [Rethinking Vision Transformers for MobileNet Size and Speed](https://arxiv.org/abs/2212.08059)
258
  * [Source Model Implementation](https://github.com/snap-research/EfficientFormer)
259
 
260
-
261
-
262
  ## Community
263
  * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
264
  * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
265
-
266
-
 
10
 
11
  ![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/efficientformer/web-assets/model_demo.png)
12
 
13
+ # EfficientFormer: Optimized for Qualcomm Devices
 
 
14
 
15
  EfficientFormer is a vision transformer model that can classify images from the Imagenet dataset.
16
 
17
+ This is based on the implementation of EfficientFormer found [here](https://github.com/snap-research/EfficientFormer).
18
+ This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the [Qualcomm® AI Hub Models](https://github.com/quic/ai-hub-models/blob/main/qai_hub_models/models/efficientformer) library to export with custom configurations. More details on model performance across various devices, can be found [here](#performance-summary).
19
+
20
+ Qualcomm AI Hub Models uses [Qualcomm AI Hub Workbench](https://workbench.aihub.qualcomm.com) to compile, profile, and evaluate this model. [Sign up](https://myaccount.qualcomm.com/signup) to run these models on a hosted Qualcomm® device.
21
+
22
+ ## Getting Started
23
+ There are two ways to deploy this model on your device:
24
+
25
+ ### Option 1: Download Pre-Exported Models
26
+
27
+ Below are pre-exported model assets ready for deployment.
28
+
29
+ | Runtime | Precision | Chipset | SDK Versions | Download |
30
+ |---|---|---|---|---|
31
+ | ONNX | float | Universal | QAIRT 2.37, ONNX Runtime 1.23.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/efficientformer/releases/v0.46.1/efficientformer-onnx-float.zip)
32
+ | ONNX | w8a16 | Universal | QAIRT 2.37, ONNX Runtime 1.23.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/efficientformer/releases/v0.46.1/efficientformer-onnx-w8a16.zip)
33
+ | QNN_DLC | float | Universal | QAIRT 2.42 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/efficientformer/releases/v0.46.1/efficientformer-qnn_dlc-float.zip)
34
+ | QNN_DLC | w8a16 | Universal | QAIRT 2.42 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/efficientformer/releases/v0.46.1/efficientformer-qnn_dlc-w8a16.zip)
35
+ | TFLITE | float | Universal | QAIRT 2.42, TFLite 2.17.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/efficientformer/releases/v0.46.1/efficientformer-tflite-float.zip)
36
+
37
+ For more device-specific assets and performance metrics, visit **[EfficientFormer on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/efficientformer)**.
38
+
39
+
40
+ ### Option 2: Export with Custom Configurations
41
+
42
+ Use the [Qualcomm® AI Hub Models](https://github.com/quic/ai-hub-models/blob/main/qai_hub_models/models/efficientformer) Python library to compile and export the model with your own:
43
+ - Custom weights (e.g., fine-tuned checkpoints)
44
+ - Custom input shapes
45
+ - Target device and runtime configurations
46
+
47
+ This option is ideal if you need to customize the model beyond the default configuration provided here.
48
+
49
+ See our repository for [EfficientFormer on GitHub](https://github.com/quic/ai-hub-models/blob/main/qai_hub_models/models/efficientformer) for usage instructions.
50
+
51
+ ## Model Details
52
+
53
+ **Model Type:** Model_use_case.image_classification
54
+
55
+ **Model Stats:**
56
+ - Model checkpoint: efficientformer_l1_300d
57
+ - Input resolution: 224x224
58
+ - Number of parameters: 12.3M
59
+ - Model size (float): 46.9 MB
60
+ - Model size (w8a16): 12.2 MB
61
+
62
+ ## Performance Summary
63
+ | Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit
64
+ |---|---|---|---|---|---|---
65
+ | EfficientFormer | ONNX | float | Snapdragon® X Elite | 1.634 ms | 24 - 24 MB | NPU
66
+ | EfficientFormer | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 1.166 ms | 0 - 148 MB | NPU
67
+ | EfficientFormer | ONNX | float | Qualcomm® QCS8550 (Proxy) | 1.713 ms | 0 - 63 MB | NPU
68
+ | EfficientFormer | ONNX | float | Qualcomm® QCS9075 | 2.101 ms | 1 - 3 MB | NPU
69
+ | EfficientFormer | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.963 ms | 0 - 114 MB | NPU
70
+ | EfficientFormer | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.869 ms | 0 - 113 MB | NPU
71
+ | EfficientFormer | ONNX | w8a16 | Snapdragon® X Elite | 6.347 ms | 10 - 10 MB | NPU
72
+ | EfficientFormer | ONNX | w8a16 | Snapdragon® 8 Gen 3 Mobile | 5.97 ms | 5 - 151 MB | NPU
73
+ | EfficientFormer | ONNX | w8a16 | Qualcomm® QCS6490 | 144.626 ms | 19 - 25 MB | CPU
74
+ | EfficientFormer | ONNX | w8a16 | Qualcomm® QCS8550 (Proxy) | 7.312 ms | 5 - 11 MB | NPU
75
+ | EfficientFormer | ONNX | w8a16 | Qualcomm® QCS9075 | 9.286 ms | 5 - 8 MB | NPU
76
+ | EfficientFormer | ONNX | w8a16 | Qualcomm® QCM6690 | 63.675 ms | 22 - 30 MB | CPU
77
+ | EfficientFormer | ONNX | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 5.362 ms | 5 - 123 MB | NPU
78
+ | EfficientFormer | ONNX | w8a16 | Snapdragon® 7 Gen 4 Mobile | 60.202 ms | 21 - 30 MB | CPU
79
+ | EfficientFormer | ONNX | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 4.916 ms | 0 - 121 MB | NPU
80
+ | EfficientFormer | QNN_DLC | float | Snapdragon® X Elite | 1.728 ms | 1 - 1 MB | NPU
81
+ | EfficientFormer | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 1.038 ms | 0 - 80 MB | NPU
82
+ | EfficientFormer | QNN_DLC | float | Qualcomm® QCS8275 (Proxy) | 4.975 ms | 1 - 46 MB | NPU
83
+ | EfficientFormer | QNN_DLC | float | Qualcomm® QCS8550 (Proxy) | 1.553 ms | 1 - 3 MB | NPU
84
+ | EfficientFormer | QNN_DLC | float | Qualcomm® QCS9075 | 1.999 ms | 3 - 5 MB | NPU
85
+ | EfficientFormer | QNN_DLC | float | Qualcomm® QCS8450 (Proxy) | 5.62 ms | 0 - 82 MB | NPU
86
+ | EfficientFormer | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.79 ms | 0 - 48 MB | NPU
87
+ | EfficientFormer | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.649 ms | 1 - 49 MB | NPU
88
+ | EfficientFormer | QNN_DLC | w8a16 | Snapdragon�� X Elite | 1.845 ms | 0 - 0 MB | NPU
89
+ | EfficientFormer | QNN_DLC | w8a16 | Snapdragon® 8 Gen 3 Mobile | 1.084 ms | 0 - 78 MB | NPU
90
+ | EfficientFormer | QNN_DLC | w8a16 | Qualcomm® QCS8275 (Proxy) | 3.253 ms | 0 - 57 MB | NPU
91
+ | EfficientFormer | QNN_DLC | w8a16 | Qualcomm® QCS8550 (Proxy) | 1.604 ms | 0 - 2 MB | NPU
92
+ | EfficientFormer | QNN_DLC | w8a16 | Qualcomm® QCS9075 | 1.775 ms | 2 - 4 MB | NPU
93
+ | EfficientFormer | QNN_DLC | w8a16 | Qualcomm® QCM6690 | 7.064 ms | 0 - 177 MB | NPU
94
+ | EfficientFormer | QNN_DLC | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 0.711 ms | 0 - 49 MB | NPU
95
+ | EfficientFormer | QNN_DLC | w8a16 | Snapdragon® 7 Gen 4 Mobile | 1.701 ms | 0 - 60 MB | NPU
96
+ | EfficientFormer | QNN_DLC | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 0.579 ms | 0 - 58 MB | NPU
97
+ | EfficientFormer | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 1.035 ms | 0 - 104 MB | NPU
98
+ | EfficientFormer | TFLITE | float | Qualcomm® QCS8275 (Proxy) | 4.928 ms | 0 - 66 MB | NPU
99
+ | EfficientFormer | TFLITE | float | Qualcomm® QCS8550 (Proxy) | 1.47 ms | 0 - 3 MB | NPU
100
+ | EfficientFormer | TFLITE | float | Qualcomm® QCS9075 | 1.954 ms | 0 - 27 MB | NPU
101
+ | EfficientFormer | TFLITE | float | Qualcomm® QCS8450 (Proxy) | 5.589 ms | 0 - 103 MB | NPU
102
+ | EfficientFormer | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 0.784 ms | 0 - 71 MB | NPU
103
+ | EfficientFormer | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 0.634 ms | 0 - 69 MB | NPU
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
 
105
  ## License
106
  * The license for the original implementation of EfficientFormer can be found
107
  [here](https://github.com/snap-research/EfficientFormer?tab=License-1-ov-file#readme).
108
 
 
 
109
  ## References
110
  * [Rethinking Vision Transformers for MobileNet Size and Speed](https://arxiv.org/abs/2212.08059)
111
  * [Source Model Implementation](https://github.com/snap-research/EfficientFormer)
112
 
 
 
113
  ## Community
114
  * Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
115
  * For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
 
 
tool-versions.yaml DELETED
@@ -1,4 +0,0 @@
1
- tool_versions:
2
- onnx:
3
- qairt: 2.37.1.250807093845_124904
4
- onnx_runtime: 1.23.0