Declare the int8 Core ML variant
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json","model": "clip_vit_base_patch32","family": "clip","capabilities": ["text-embedding","image-embedding"],"backend": "coreml","license": "mit","tokenizer": "../tokenizer.json","variants": [{"file": null,"components": {"image": "clip_vit_base_patch32_image_coreml_fp16.pte","text": "clip_vit_base_patch32_text_coreml_fp16.pte"},"precision": "fp16","methods": {"image": {"forward": {"inputs": [{"shape": [1,3,224,224],"dtype": "float32"}],"outputs": [{"shape": [1,512],"dtype": "float32"}]}},"text": {"forward": {"inputs": [{"shape": [1,74],"dtype": "int64"},{"shape": [1,74],"dtype": "int64"}],"outputs": [{"shape": [1,512],"dtype": "float32"}]}}}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081{"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json","model": "clip_vit_base_patch32_text","family": "clip","capabilities": ["text-embedding"],"backend": "coreml","license": "mit","variants": [{"file": "clip_vit_base_patch32_text_coreml_int8.pte","precision": "int8","quantized": true,"default": true,"methods": {"forward": {"inputs": [{"shape": [1,74],"dtype": "int64"},{"shape": [1,74],"dtype": "int64"}],"outputs": [{"shape": [1,512],"dtype": "float32"}]}},"quantize": "int8"},{"file": "clip_vit_base_patch32_text_coreml_fp16.pte","precision": "fp16","quantized": false,"default": true,"methods": {"forward": {"inputs": [{"shape": [1,74],"dtype": "int64"},{"shape": [1,74],"dtype": "int64"}],"outputs": [{"shape": [1,512],"dtype": "float32"}]}}}
coreml/config.json+66-60