v0.38.0
Browse filesSee https://github.com/quic/ai-hub-models/releases/v0.38.0 for changelog.
Files changed (12)
- .gitattributes+4
- DEPLOYMENT_MODEL_LICENSE.pdfAdded+3
- GPUNet_float.dlcAdded+3
- GPUNet_float.onnx.zipAdded+3
- GPUNet_float.tfliteAdded+3
- GPUNet_w8a16.dlcAdded+3
- GPUNet_w8a8.dlcAdded+3
- GPUNet_w8a8.onnx.zipAdded+3
- GPUNet_w8a8.tfliteAdded+3
- LICENSEAdded+2
- README.mdAdded+287
- tool-versions.yamlAdded+4
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353637383932 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textDEPLOYMENT_MODEL_LICENSE.pdf filter=lfs diff=lfs merge=lfs -textGPUNet_float.dlc filter=lfs diff=lfs merge=lfs -textGPUNet_w8a16.dlc filter=lfs diff=lfs merge=lfs -textGPUNet_w8a8.dlc filter=lfs diff=lfs merge=lfs -text
123version https://git-lfs.github.com/spec/v1oid sha256:4409f93b0e82531303b3e10f52f1fdfb56467a25f05b7441c6bbd8bb8a64b42csize 109629123version https://git-lfs.github.com/spec/v1oid sha256:17066c2e9483a74b11fc8a8fc3f655e44ee0d7b992dc1213ad0aba655912cf6fsize 47562108123version https://git-lfs.github.com/spec/v1oid sha256:e10d156ec2d77240e21904c9c2923b99013af18a36aeba1ba05099d833b95a67size 44302131123version https://git-lfs.github.com/spec/v1oid sha256:bb4457a6ee3d8d2336fa2a3c4aaf0851d9ef8915df5193e9929099bec8a1ce24size 47478880123version https://git-lfs.github.com/spec/v1oid sha256:b1401e2460af5f0cbf474714bcb602f6c8a0bb322f818cf5abc84d023586e6c4size 13468924123version https://git-lfs.github.com/spec/v1oid sha256:ee1f52b3d7ed4a3277d093b6aad8f34b0eee5cd1e1b2d2fb5f3c283b45ac3e30size 13468916123version https://git-lfs.github.com/spec/v1oid sha256:947ef9719180ce242de1e97a9b66fc1abc59bf97bb7b1bdd60c02c9b0c1bc333size 22332441123version https://git-lfs.github.com/spec/v1oid sha256:96acf239e41c3ec788337b535506979787545f1c2d8a696ac2af4e3154d5c36csize 1257826412The license of the original trained model can be found at http://www.apache.org/licenses/LICENSE-2.0.The license for the deployable model files (.tflite, .onnx, .dlc, .bin, etc.) can be found in DEPLOYMENT_MODEL_LICENSE.pdf.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287---library_name: pytorchlicense: othertags:- backbone- androidpipeline_tag: image-classification
---

# GPUNet: Optimized for Mobile Deployment## Imagenet classifier and general purpose backbone
GPUNet 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 model is an implementation of GPUNet found [here](https://github.com/NVIDIA/DeepLearningExamples/tree/master/PyTorch/Classification/GPUNet).
This repository provides scripts to run GPUNet on Qualcomm® devices.More details on model performance across various devices, can be found[here](https://aihub.qualcomm.com/models/gpunet).
### Model Details
- **Model Type:** Model_use_case.image_classification- **Model Stats:** - Model checkpoint: Imagenet - Input resolution: 224x224 - Number of parameters: 10.49M - Model size (float): 45.28MB - Model size (w8a8): 21.3MB
| Model | Precision | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit | Target Model|---|---|---|---|---|---|---|---|---|| GPUNet | float | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | TFLITE | 4.661 ms | 0 - 50 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.tflite) || GPUNet | float | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | QNN_DLC | 4.579 ms | 0 - 22 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.dlc) || GPUNet | float | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | TFLITE | 1.777 ms | 0 - 63 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.tflite) || GPUNet | float | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | QNN_DLC | 2.242 ms | 1 - 33 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.dlc) || GPUNet | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | TFLITE | 1.231 ms | 0 - 179 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.tflite) || GPUNet | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | QNN_DLC | 1.242 ms | 0 - 70 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.dlc) || GPUNet | float | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | ONNX | 1.212 ms | 0 - 112 MB | NPU | [GPUNet.onnx.zip](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.onnx.zip) || GPUNet | float | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | TFLITE | 1.653 ms | 0 - 50 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.tflite) || GPUNet | float | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | QNN_DLC | 1.702 ms | 0 - 22 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.dlc) || GPUNet | float | SA7255P ADP | Qualcomm® SA7255P | TFLITE | 4.661 ms | 0 - 50 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.tflite) || GPUNet | float | SA7255P ADP | Qualcomm® SA7255P | QNN_DLC | 4.579 ms | 0 - 22 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.dlc) || GPUNet | float | SA8255 (Proxy) | Qualcomm® SA8255P (Proxy) | TFLITE | 1.223 ms | 0 - 181 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.tflite) || GPUNet | float | SA8255 (Proxy) | Qualcomm® SA8255P (Proxy) | QNN_DLC | 1.244 ms | 0 - 83 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.dlc) || GPUNet | float | SA8295P ADP | Qualcomm® SA8295P | TFLITE | 2.212 ms | 0 - 57 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.tflite) || GPUNet | float | SA8295P ADP | Qualcomm® SA8295P | QNN_DLC | 2.207 ms | 0 - 29 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.dlc) || GPUNet | float | SA8650 (Proxy) | Qualcomm® SA8650P (Proxy) | TFLITE | 1.227 ms | 0 - 180 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.tflite) || GPUNet | float | SA8650 (Proxy) | Qualcomm® SA8650P (Proxy) | QNN_DLC | 1.242 ms | 0 - 84 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.dlc) || GPUNet | float | SA8775P ADP | Qualcomm® SA8775P | TFLITE | 1.653 ms | 0 - 50 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.tflite) || GPUNet | float | SA8775P ADP | Qualcomm® SA8775P | QNN_DLC | 1.702 ms | 0 - 22 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.dlc) || GPUNet | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | TFLITE | 0.876 ms | 0 - 65 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.tflite) || GPUNet | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | QNN_DLC | 0.889 ms | 1 - 34 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.dlc) || GPUNet | float | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | ONNX | 0.879 ms | 0 - 35 MB | NPU | [GPUNet.onnx.zip](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.onnx.zip) || GPUNet | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | TFLITE | 0.69 ms | 0 - 56 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.tflite) || GPUNet | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | QNN_DLC | 0.696 ms | 0 - 28 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.dlc) || GPUNet | float | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | ONNX | 0.712 ms | 0 - 28 MB | NPU | [GPUNet.onnx.zip](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.onnx.zip) || GPUNet | float | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN_DLC | 1.332 ms | 112 - 112 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.dlc) || GPUNet | float | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 1.112 ms | 24 - 24 MB | NPU | [GPUNet.onnx.zip](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet.onnx.zip) || GPUNet | w8a16 | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | QNN_DLC | 2.445 ms | 0 - 29 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a16.dlc) || GPUNet | w8a16 | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | QNN_DLC | 1.493 ms | 0 - 41 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a16.dlc) || GPUNet | w8a16 | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | QNN_DLC | 1.068 ms | 0 - 7 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a16.dlc) || GPUNet | w8a16 | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | QNN_DLC | 1.297 ms | 0 - 29 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a16.dlc) || GPUNet | w8a16 | RB3 Gen 2 (Proxy) | Qualcomm® QCS6490 (Proxy) | QNN_DLC | 4.0 ms | 0 - 41 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a16.dlc) || GPUNet | w8a16 | SA7255P ADP | Qualcomm® SA7255P | QNN_DLC | 2.445 ms | 0 - 29 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a16.dlc) || GPUNet | w8a16 | SA8255 (Proxy) | Qualcomm® SA8255P (Proxy) | QNN_DLC | 1.076 ms | 0 - 58 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a16.dlc) || GPUNet | w8a16 | SA8295P ADP | Qualcomm® SA8295P | QNN_DLC | 1.642 ms | 0 - 36 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a16.dlc) || GPUNet | w8a16 | SA8650 (Proxy) | Qualcomm® SA8650P (Proxy) | QNN_DLC | 1.072 ms | 0 - 61 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a16.dlc) || GPUNet | w8a16 | SA8775P ADP | Qualcomm® SA8775P | QNN_DLC | 1.297 ms | 0 - 29 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a16.dlc) || GPUNet | w8a16 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | QNN_DLC | 0.755 ms | 0 - 37 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a16.dlc) || GPUNet | w8a16 | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | QNN_DLC | 0.516 ms | 0 - 33 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a16.dlc) || GPUNet | w8a16 | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN_DLC | 1.247 ms | 59 - 59 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a16.dlc) || GPUNet | w8a8 | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | TFLITE | 1.107 ms | 0 - 29 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.tflite) || GPUNet | w8a8 | QCS8275 (Proxy) | Qualcomm® QCS8275 (Proxy) | QNN_DLC | 1.4 ms | 0 - 29 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.dlc) || GPUNet | w8a8 | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | TFLITE | 0.572 ms | 0 - 43 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.tflite) || GPUNet | w8a8 | QCS8450 (Proxy) | Qualcomm® QCS8450 (Proxy) | QNN_DLC | 0.86 ms | 0 - 41 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.dlc) || GPUNet | w8a8 | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | TFLITE | 0.434 ms | 0 - 61 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.tflite) || GPUNet | w8a8 | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | QNN_DLC | 0.614 ms | 0 - 63 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.dlc) || GPUNet | w8a8 | QCS8550 (Proxy) | Qualcomm® QCS8550 (Proxy) | ONNX | 91.246 ms | 36 - 273 MB | NPU | [GPUNet.onnx.zip](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.onnx.zip) || GPUNet | w8a8 | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | TFLITE | 0.64 ms | 0 - 29 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.tflite) || GPUNet | w8a8 | QCS9075 (Proxy) | Qualcomm® QCS9075 (Proxy) | QNN_DLC | 0.802 ms | 0 - 29 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.dlc) || GPUNet | w8a8 | RB3 Gen 2 (Proxy) | Qualcomm® QCS6490 (Proxy) | TFLITE | 1.594 ms | 0 - 38 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.tflite) || GPUNet | w8a8 | RB3 Gen 2 (Proxy) | Qualcomm® QCS6490 (Proxy) | QNN_DLC | 2.243 ms | 0 - 37 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.dlc) || GPUNet | w8a8 | RB3 Gen 2 (Proxy) | Qualcomm® QCS6490 (Proxy) | ONNX | 31.065 ms | 16 - 29 MB | CPU | [GPUNet.onnx.zip](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.onnx.zip) || GPUNet | w8a8 | RB5 (Proxy) | Qualcomm® QCS8250 (Proxy) | TFLITE | 7.896 ms | 0 - 3 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.tflite) || GPUNet | w8a8 | RB5 (Proxy) | Qualcomm® QCS8250 (Proxy) | ONNX | 32.992 ms | 15 - 30 MB | CPU | [GPUNet.onnx.zip](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.onnx.zip) || GPUNet | w8a8 | SA7255P ADP | Qualcomm® SA7255P | TFLITE | 1.107 ms | 0 - 29 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.tflite) || GPUNet | w8a8 | SA7255P ADP | Qualcomm® SA7255P | QNN_DLC | 1.4 ms | 0 - 29 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.dlc) || GPUNet | w8a8 | SA8255 (Proxy) | Qualcomm® SA8255P (Proxy) | TFLITE | 0.44 ms | 0 - 63 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.tflite) || GPUNet | w8a8 | SA8255 (Proxy) | Qualcomm® SA8255P (Proxy) | QNN_DLC | 0.634 ms | 0 - 61 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.dlc) || GPUNet | w8a8 | SA8295P ADP | Qualcomm® SA8295P | TFLITE | 0.851 ms | 0 - 35 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.tflite) || GPUNet | w8a8 | SA8295P ADP | Qualcomm® SA8295P | QNN_DLC | 1.042 ms | 0 - 35 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.dlc) || GPUNet | w8a8 | SA8650 (Proxy) | Qualcomm® SA8650P (Proxy) | TFLITE | 0.439 ms | 0 - 63 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.tflite) || GPUNet | w8a8 | SA8650 (Proxy) | Qualcomm® SA8650P (Proxy) | QNN_DLC | 0.618 ms | 0 - 62 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.dlc) || GPUNet | w8a8 | SA8775P ADP | Qualcomm® SA8775P | TFLITE | 0.64 ms | 0 - 29 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.tflite) || GPUNet | w8a8 | SA8775P ADP | Qualcomm® SA8775P | QNN_DLC | 0.802 ms | 0 - 29 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.dlc) || GPUNet | w8a8 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | TFLITE | 0.341 ms | 0 - 40 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.tflite) || GPUNet | w8a8 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | QNN_DLC | 0.468 ms | 0 - 43 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.dlc) || GPUNet | w8a8 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 Mobile | ONNX | 68.17 ms | 27 - 1478 MB | NPU | [GPUNet.onnx.zip](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.onnx.zip) || GPUNet | w8a8 | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | TFLITE | 0.27 ms | 0 - 31 MB | NPU | [GPUNet.tflite](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.tflite) || GPUNet | w8a8 | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | QNN_DLC | 0.333 ms | 0 - 36 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.dlc) || GPUNet | w8a8 | Samsung Galaxy S25 | Snapdragon® 8 Elite For Galaxy Mobile | ONNX | 60.449 ms | 41 - 1347 MB | NPU | [GPUNet.onnx.zip](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.onnx.zip) || GPUNet | w8a8 | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN_DLC | 0.721 ms | 64 - 64 MB | NPU | [GPUNet.dlc](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.dlc) || GPUNet | w8a8 | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 79.755 ms | 50 - 50 MB | NPU | [GPUNet.onnx.zip](https://huggingface.co/qualcomm/GPUNet/blob/main/GPUNet_w8a8.onnx.zip) |
## Installation
Install the package via pip:```bashpip install qai-hub-models```
## Configure Qualcomm® AI Hub to run this model on a cloud-hosted device
Sign-in to [Qualcomm® AI Hub](https://app.aihub.qualcomm.com/) with yourQualcomm® ID. Once signed in navigate to `Account -> Settings -> API Token`.
With this API token, you can configure your client to run models on the cloudhosted devices.```bashqai-hub configure --api_token API_TOKEN```Navigate to [docs](https://app.aihub.qualcomm.com/docs/) for more information.
## Demo off target
The package contains a simple end-to-end demo that downloads pre-trainedweights and runs this model on a sample input.
```bashpython -m qai_hub_models.models.gpunet.demo```
The above demo runs a reference implementation of pre-processing, modelinference, and post processing.
**NOTE**: If you want running in a Jupyter Notebook or Google Colab likeenvironment, please add the following to your cell (instead of the above).```%run -m qai_hub_models.models.gpunet.demo```
### Run model on a cloud-hosted device
In addition to the demo, you can also run the model on a cloud-hosted Qualcomm®device. This script does the following:* Performance check on-device on a cloud-hosted device* Downloads compiled assets that can be deployed on-device for Android.* Accuracy check between PyTorch and on-device outputs.
```bashpython -m qai_hub_models.models.gpunet.export```
## How does this work?
This [export script](https://aihub.qualcomm.com/models/gpunet/qai_hub_models/models/GPUNet/export.py)leverages [Qualcomm® AI Hub](https://aihub.qualcomm.com/) to optimize, validate, and deploy this modelon-device. Lets go through each step below in detail:
Step 1: **Compile model for on-device deployment**
To compile a PyTorch model for on-device deployment, we first trace the modelin memory using the `jit.trace` and then call the `submit_compile_job` API.
```pythonimport torch
import qai_hub as hubfrom qai_hub_models.models.gpunet import Model
# Load the modeltorch_model = Model.from_pretrained()
# Devicedevice = hub.Device("Samsung Galaxy S25")
# Trace modelinput_shape = torch_model.get_input_spec()sample_inputs = torch_model.sample_inputs()
pt_model = torch.jit.trace(torch_model, [torch.tensor(data[0]) for _, data in sample_inputs.items()])
# Compile model on a specific devicecompile_job = hub.submit_compile_job( model=pt_model, device=device, input_specs=torch_model.get_input_spec(),)
# Get target model to run on-devicetarget_model = compile_job.get_target_model()
```
Step 2: **Performance profiling on cloud-hosted device**
After compiling models from step 1. Models can be profiled model on-device using the`target_model`. Note that this scripts runs the model on a device automaticallyprovisioned in the cloud. Once the job is submitted, you can navigate to aprovided job URL to view a variety of on-device performance metrics.```pythonprofile_job = hub.submit_profile_job( model=target_model, device=device,) ```
Step 3: **Verify on-device accuracy**
To verify the accuracy of the model on-device, you can run on-device inferenceon sample input data on the same cloud hosted device.```pythoninput_data = torch_model.sample_inputs()inference_job = hub.submit_inference_job( model=target_model, device=device, inputs=input_data,) on_device_output = inference_job.download_output_data()
```With the output of the model, you can compute like PSNR, relative errors orspot check the output with expected output.
**Note**: This on-device profiling and inference requires access to Qualcomm®AI Hub. [Sign up for access](https://myaccount.qualcomm.com/signup).
## Deploying compiled model to Android
The models can be deployed using multiple runtimes:- TensorFlow Lite (`.tflite` export): [This tutorial](https://www.tensorflow.org/lite/android/quickstart) provides a guide to deploy the .tflite model in an Android application.
- QNN (`.so` export ): This [sample app](https://docs.qualcomm.com/bundle/publicresource/topics/80-63442-50/sample_app.html)provides instructions on how to use the `.so` shared library in an Android application.
## View on Qualcomm® AI HubGet more details on GPUNet's performance across various devices [here](https://aihub.qualcomm.com/models/gpunet).Explore all available models on [Qualcomm® AI Hub](https://aihub.qualcomm.com/)
## License* The license for the original implementation of GPUNet can be found [here](http://www.apache.org/licenses/LICENSE-2.0).* The license for the compiled assets for on-device deployment can be found [here](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/Qualcomm+AI+Hub+Proprietary+License.pdf)
## References* [GPUNet: Searching the Deployable Convolution Neural Networks for GPUs](https://arxiv.org/abs/2205.00841)* [Source Model Implementation](https://github.com/NVIDIA/DeepLearningExamples/tree/master/PyTorch/Classification/GPUNet)
## Community* Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.* For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
1234tool_versions: onnx: qairt: 2.37.1.250807093845_124904 onnx_runtime: 1.22.2.gitattributes+4
DEPLOYMENT_MODEL_LICENSE.pdfAdded+3
GPUNet_float.dlcAdded+3
GPUNet_float.onnx.zipAdded+3
GPUNet_float.tfliteAdded+3
GPUNet_w8a16.dlcAdded+3
GPUNet_w8a8.dlcAdded+3
GPUNet_w8a8.onnx.zipAdded+3
GPUNet_w8a8.tfliteAdded+3
LICENSEAdded+2
README.mdAdded+287
tool-versions.yamlAdded+4