bhushans commited on
Commit
d39fc6c
·
verified ·
1 Parent(s): c00e9fb

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +43 -25
README.md CHANGED
@@ -35,29 +35,31 @@ More details on model performance across various devices, can be found
35
 
36
  | Model | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
37
  |---|---|---|---|---|---|---|---|---|
38
- | GoogLeNetQuantized | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 0.29 ms | 0 - 108 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
39
- | GoogLeNetQuantized | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | QNN | 0.345 ms | 0 - 30 MB | INT8 | NPU | [GoogLeNetQuantized.so](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.so) |
40
- | GoogLeNetQuantized | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 0.206 ms | 0 - 37 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
41
- | GoogLeNetQuantized | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 0.253 ms | 0 - 17 MB | INT8 | NPU | [GoogLeNetQuantized.so](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.so) |
42
- | GoogLeNetQuantized | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 0.212 ms | 0 - 20 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
43
- | GoogLeNetQuantized | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 0.218 ms | 0 - 11 MB | INT8 | NPU | Use Export Script |
44
- | GoogLeNetQuantized | RB3 Gen 2 (Proxy) | QCS6490 Proxy | TFLITE | 0.929 ms | 0 - 21 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
45
- | GoogLeNetQuantized | RB3 Gen 2 (Proxy) | QCS6490 Proxy | QNN | 1.402 ms | 0 - 8 MB | INT8 | NPU | Use Export Script |
46
- | GoogLeNetQuantized | RB5 (Proxy) | QCS8250 Proxy | TFLITE | 5.704 ms | 0 - 2 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
47
- | GoogLeNetQuantized | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 0.286 ms | 0 - 1 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
48
- | GoogLeNetQuantized | QCS8550 (Proxy) | QCS8550 Proxy | QNN | 0.303 ms | 0 - 1 MB | INT8 | NPU | Use Export Script |
49
- | GoogLeNetQuantized | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 0.282 ms | 0 - 109 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
50
- | GoogLeNetQuantized | SA8255 (Proxy) | SA8255P Proxy | QNN | 0.307 ms | 0 - 1 MB | INT8 | NPU | Use Export Script |
51
- | GoogLeNetQuantized | SA8775 (Proxy) | SA8775P Proxy | TFLITE | 0.288 ms | 0 - 2 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
52
- | GoogLeNetQuantized | SA8775 (Proxy) | SA8775P Proxy | QNN | 0.306 ms | 0 - 1 MB | INT8 | NPU | Use Export Script |
53
- | GoogLeNetQuantized | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 0.284 ms | 0 - 1 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
54
- | GoogLeNetQuantized | SA8650 (Proxy) | SA8650P Proxy | QNN | 0.304 ms | 0 - 1 MB | INT8 | NPU | Use Export Script |
55
- | GoogLeNetQuantized | SA8295P ADP | SA8295P | TFLITE | 0.654 ms | 0 - 19 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
56
- | GoogLeNetQuantized | SA8295P ADP | SA8295P | QNN | 1.004 ms | 0 - 6 MB | INT8 | NPU | Use Export Script |
57
- | GoogLeNetQuantized | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 0.341 ms | 0 - 38 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
58
- | GoogLeNetQuantized | QCS8450 (Proxy) | QCS8450 Proxy | QNN | 0.418 ms | 0 - 16 MB | INT8 | NPU | Use Export Script |
59
- | GoogLeNetQuantized | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 0.409 ms | 0 - 0 MB | INT8 | NPU | Use Export Script |
60
- | GoogLeNetQuantized | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 149.585 ms | 58 - 58 MB | INT8 | NPU | [GoogLeNetQuantized.onnx](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.onnx) |
 
 
61
 
62
 
63
 
@@ -122,7 +124,7 @@ GoogLeNetQuantized
122
  Device : Samsung Galaxy S23 (13)
123
  Runtime : TFLITE
124
  Estimated inference time (ms) : 0.3
125
- Estimated peak memory usage (MB): [0, 108]
126
  Total # Ops : 86
127
  Compute Unit(s) : NPU (86 ops)
128
  ```
@@ -143,13 +145,29 @@ in memory using the `jit.trace` and then call the `submit_compile_job` API.
143
  import torch
144
 
145
  import qai_hub as hub
146
- from qai_hub_models.models.googlenet_quantized import
147
 
148
  # Load the model
 
149
 
150
  # Device
151
  device = hub.Device("Samsung Galaxy S23")
152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
 
154
  ```
155
 
 
35
 
36
  | Model | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
37
  |---|---|---|---|---|---|---|---|---|
38
+ | GoogLeNetQuantized | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 0.282 ms | 0 - 10 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
39
+ | GoogLeNetQuantized | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | QNN | 0.339 ms | 0 - 9 MB | INT8 | NPU | [GoogLeNetQuantized.so](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.so) |
40
+ | GoogLeNetQuantized | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 0.209 ms | 0 - 15 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
41
+ | GoogLeNetQuantized | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 0.253 ms | 0 - 13 MB | INT8 | NPU | [GoogLeNetQuantized.so](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.so) |
42
+ | GoogLeNetQuantized | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 0.216 ms | 0 - 10 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
43
+ | GoogLeNetQuantized | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 0.253 ms | 0 - 11 MB | INT8 | NPU | Use Export Script |
44
+ | GoogLeNetQuantized | RB3 Gen 2 (Proxy) | QCS6490 Proxy | TFLITE | 0.885 ms | 0 - 14 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
45
+ | GoogLeNetQuantized | RB3 Gen 2 (Proxy) | QCS6490 Proxy | QNN | 1.201 ms | 0 - 8 MB | INT8 | NPU | Use Export Script |
46
+ | GoogLeNetQuantized | RB5 (Proxy) | QCS8250 Proxy | TFLITE | 5.722 ms | 0 - 7 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
47
+ | GoogLeNetQuantized | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 0.283 ms | 0 - 9 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
48
+ | GoogLeNetQuantized | QCS8550 (Proxy) | QCS8550 Proxy | QNN | 0.295 ms | 0 - 2 MB | INT8 | NPU | Use Export Script |
49
+ | GoogLeNetQuantized | SA7255P ADP | SA7255P | TFLITE | 3.761 ms | 0 - 11 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
50
+ | GoogLeNetQuantized | SA7255P ADP | SA7255P | QNN | 3.969 ms | 0 - 6 MB | INT8 | NPU | Use Export Script |
51
+ | GoogLeNetQuantized | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 0.285 ms | 0 - 114 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
52
+ | GoogLeNetQuantized | SA8255 (Proxy) | SA8255P Proxy | QNN | 0.305 ms | 0 - 1 MB | INT8 | NPU | Use Export Script |
53
+ | GoogLeNetQuantized | SA8295P ADP | SA8295P | TFLITE | 0.643 ms | 0 - 10 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
54
+ | GoogLeNetQuantized | SA8295P ADP | SA8295P | QNN | 0.849 ms | 0 - 6 MB | INT8 | NPU | Use Export Script |
55
+ | GoogLeNetQuantized | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 0.292 ms | 0 - 102 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
56
+ | GoogLeNetQuantized | SA8650 (Proxy) | SA8650P Proxy | QNN | 0.305 ms | 0 - 2 MB | INT8 | NPU | Use Export Script |
57
+ | GoogLeNetQuantized | SA8775P ADP | SA8775P | TFLITE | 0.579 ms | 0 - 10 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
58
+ | GoogLeNetQuantized | SA8775P ADP | SA8775P | QNN | 0.741 ms | 0 - 6 MB | INT8 | NPU | Use Export Script |
59
+ | GoogLeNetQuantized | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 0.349 ms | 0 - 14 MB | INT8 | NPU | [GoogLeNetQuantized.tflite](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.tflite) |
60
+ | GoogLeNetQuantized | QCS8450 (Proxy) | QCS8450 Proxy | QNN | 0.413 ms | 0 - 16 MB | INT8 | NPU | Use Export Script |
61
+ | GoogLeNetQuantized | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 0.408 ms | 0 - 0 MB | INT8 | NPU | Use Export Script |
62
+ | GoogLeNetQuantized | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 150.249 ms | 58 - 58 MB | INT8 | NPU | [GoogLeNetQuantized.onnx](https://huggingface.co/qualcomm/GoogLeNetQuantized/blob/main/GoogLeNetQuantized.onnx) |
63
 
64
 
65
 
 
124
  Device : Samsung Galaxy S23 (13)
125
  Runtime : TFLITE
126
  Estimated inference time (ms) : 0.3
127
+ Estimated peak memory usage (MB): [0, 10]
128
  Total # Ops : 86
129
  Compute Unit(s) : NPU (86 ops)
130
  ```
 
145
  import torch
146
 
147
  import qai_hub as hub
148
+ from qai_hub_models.models.googlenet_quantized import Model
149
 
150
  # Load the model
151
+ torch_model = Model.from_pretrained()
152
 
153
  # Device
154
  device = hub.Device("Samsung Galaxy S23")
155
 
156
+ # Trace model
157
+ input_shape = torch_model.get_input_spec()
158
+ sample_inputs = torch_model.sample_inputs()
159
+
160
+ pt_model = torch.jit.trace(torch_model, [torch.tensor(data[0]) for _, data in sample_inputs.items()])
161
+
162
+ # Compile model on a specific device
163
+ compile_job = hub.submit_compile_job(
164
+ model=pt_model,
165
+ device=device,
166
+ input_specs=torch_model.get_input_spec(),
167
+ )
168
+
169
+ # Get target model to run on-device
170
+ target_model = compile_job.get_target_model()
171
 
172
  ```
173