--- license: mit pipeline_tag: image-feature-extraction library_name: executorch --- # clip-vit-base-patch32 This repository hosts the **clip-vit-base-patch32** models exported for the [React Native ExecuTorch](https://www.npmjs.com/package/react-native-executorch) library as ExecuTorch `.pte` programs, ready to run on device. Upstream model: [clip-vit-base-patch32](https://huggingface.co/openai/clip-vit-base-patch32) ## Variants | Path | Component | Backend | Precision | | --- | --- | --- | --- | | `coreml/clip_vit_base_patch32_image_coreml_fp16.pte` | image | coreml | fp16 | | `coreml/clip_vit_base_patch32_text_coreml_fp16.pte` | text | coreml | fp16 | | `mlx/clip_vit_base_patch32_image_mlx_int8.pte` | - | mlx | int8 | | `vulkan/clip_vit_base_patch32_image_vulkan_fp16.pte` | image | vulkan | fp16 | | `vulkan/clip_vit_base_patch32_text_vulkan_fp16.pte` | text | vulkan | fp16 | | `xnnpack/clip_vit_base_patch32_image_xnnpack_fp32.pte` | image | xnnpack | fp32 | | `xnnpack/clip_vit_base_patch32_text_xnnpack_fp32.pte` | text | xnnpack | fp32 | ## Repository structure ``` config.json 43 B coreml/clip_vit_base_patch32_image_coreml_fp16.pte 168 MB coreml/clip_vit_base_patch32_text_coreml_fp16.pte 122 MB coreml/config.json 1.7 kB mlx/clip_vit_base_patch32_image_mlx_int8.pte 93.7 MB mlx/config.json 840 B tokenizer.json 2.1 MB vulkan/clip_vit_base_patch32_image_vulkan_fp16.pte 168 MB vulkan/clip_vit_base_patch32_text_vulkan_fp16.pte 121 MB vulkan/config.json 1.7 kB xnnpack/clip_vit_base_patch32_image_xnnpack_fp32.pte 335 MB xnnpack/clip_vit_base_patch32_text_xnnpack_fp32.pte 242 MB xnnpack/config.json 1.6 kB ``` ## Compatibility These files are published for the **ExecuTorch v1.4.1** runtime. ExecuTorch gives no forward compatibility guarantee, so an older runtime may fail to load them. To use them in React Native ExecuTorch, pass the model constant shipped in the library's model registry to the corresponding task pipeline. See the [documentation](https://docs.swmansion.com/react-native-executorch/docs/fundamentals/downloading-models). To load these files in your own ExecuTorch runtime, read the [compatibility note](https://github.com/pytorch/executorch/blob/main/runtime/COMPATIBILITY.md) first.