msluszniak's picture
Declare the int8 Core ML variant
895dc7e verified
Raw
History Blame Contribute Delete
1.71 kB
{
"$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"
}
]
}
}
}
]
}