Upload README.md with huggingface_hub
Browse files33 unmodified lines34353637383940414243444555 unmodified lines10110210310410510610710810911011111211311411511611711811912012112271 unmodified lines19419519619719819915 unmodified lines21521621721821922022133 unmodified lines- Model size (CLIPImageEncoder): 437 MB| Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model| ---|---|---|---|---|---|---|---|| Samsung Galaxy S23 Ultra (Android 13) | Snapdragon® 8 Gen 2 | TFLite | 13.251 ms | 0 - 3 MB | FP16 | NPU | [CLIPTextEncoder.tflite](https://huggingface.co/qualcomm/OpenAI-Clip/blob/main/CLIPTextEncoder.tflite)| Samsung Galaxy S23 Ultra (Android 13) | Snapdragon® 8 Gen 2 | TFLite | 126.637 ms | 0 - 4 MB | FP16 | NPU | [CLIPImageEncoder.tflite](https://huggingface.co/qualcomm/OpenAI-Clip/blob/main/CLIPImageEncoder.tflite)| Samsung Galaxy S23 Ultra (Android 13) | Snapdragon® 8 Gen 2 | QNN Model Library | 7.849 ms | 0 - 24 MB | FP16 | NPU | [CLIPTextEncoder.so](https://huggingface.co/qualcomm/OpenAI-Clip/blob/main/CLIPTextEncoder.so)| Samsung Galaxy S23 Ultra (Android 13) | Snapdragon® 8 Gen 2 | QNN Model Library | 50.638 ms | 0 - 61 MB | FP16 | NPU | [CLIPImageEncoder.so](https://huggingface.co/qualcomm/OpenAI-Clip/blob/main/CLIPImageEncoder.so)## Installation55 unmodified linesProfile Job summary of CLIPTextEncoder--------------------------------------------------Device: Snapdragon X Elite CRD (11)Estimated Inference Time: 8.46 msEstimated Peak Memory Range: 0.14-0.14 MBCompute Units: NPU (377) | Total (377)Profile Job summary of CLIPImageEncoder--------------------------------------------------Device: Snapdragon X Elite CRD (11)Estimated Inference Time: 48.88 msEstimated Peak Memory Range: 0.57-0.57 MBCompute Units: NPU (369) | Total (369)```## How does this work?This [export script](https://github.com/quic/ai-hub-models/blob/main/qai_hub_models/models/OpenAI-Clip/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:71 unmodified lines## Deploying compiled model to Android15 unmodified lines## License- The license for the original implementation of OpenAI-Clip can be found[here](https://github.com/openai/CLIP/blob/main/LICENSE).- The license for the compiled assets for on-device deployment can be found [here]({deploy_license_url})## References* [Learning Transferable Visual Models From Natural Language Supervision](https://arxiv.org/abs/2103.00020)33 unmodified lines34353637383940414243444546474855 unmodified lines10410510610710810911011111211311411511611711811912012112212312412512612771 unmodified lines19920020120220320420515 unmodified lines22122222322422522622733 unmodified lines- Model size (CLIPImageEncoder): 437 MB| Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model| ---|---|---|---|---|---|---|---|| Samsung Galaxy S23 Ultra (Android 13) | Snapdragon® 8 Gen 2 | TFLite | 13.293 ms | 0 - 3 MB | FP16 | NPU | [CLIPTextEncoder.tflite](https://huggingface.co/qualcomm/OpenAI-Clip/blob/main/CLIPTextEncoder.tflite)| Samsung Galaxy S23 Ultra (Android 13) | Snapdragon® 8 Gen 2 | TFLite | 126.539 ms | 0 - 261 MB | FP16 | NPU | [CLIPImageEncoder.tflite](https://huggingface.co/qualcomm/OpenAI-Clip/blob/main/CLIPImageEncoder.tflite)| Samsung Galaxy S23 Ultra (Android 13) | Snapdragon® 8 Gen 2 | QNN Model Library | 7.81 ms | 0 - 30 MB | FP16 | NPU | [CLIPTextEncoder.so](https://huggingface.co/qualcomm/OpenAI-Clip/blob/main/CLIPTextEncoder.so)| Samsung Galaxy S23 Ultra (Android 13) | Snapdragon® 8 Gen 2 | QNN Model Library | 50.274 ms | 0 - 63 MB | FP16 | NPU | [CLIPImageEncoder.so](https://huggingface.co/qualcomm/OpenAI-Clip/blob/main/CLIPImageEncoder.so)## Installation55 unmodified linesProfile Job summary of CLIPTextEncoder--------------------------------------------------Device: Snapdragon X Elite CRD (11)Estimated Inference Time: 8.43 msEstimated Peak Memory Range: 0.15-0.15 MBCompute Units: NPU (377) | Total (377)Profile Job summary of CLIPImageEncoder--------------------------------------------------Device: Snapdragon X Elite CRD (11)Estimated Inference Time: 48.61 msEstimated Peak Memory Range: 0.57-0.57 MBCompute Units: NPU (369) | Total (369)```## How does this work?This [export script](https://aihub.qualcomm.com/models/openai_clip/qai_hub_models/models/OpenAI-Clip/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:71 unmodified lines## Deploying compiled model to Android15 unmodified lines## License- The license for the original implementation of OpenAI-Clip can be found[here](https://github.com/openai/CLIP/blob/main/LICENSE).- 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* [Learning Transferable Visual Models From Natural Language Supervision](https://arxiv.org/abs/2103.00020)
README.md+15-9