Translation
ExecuTorch
msluszniak's picture
Unpublish variants that lose on device
a043589 verified
Raw History Blame Contribute Delete
5.52 kB
{
"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json",
"model": "opus_mt",
"family": "marian",
"size": "en_de",
"capabilities": [
"translation"
],
"backend": "xnnpack",
"license": "cc-by-4.0",
"tokenizer": "../tokenizer.json",
"variants": [
{
"file": "opus_mt_en_de_xnnpack_int8.pte",
"precision": "int8",
"quantized": true,
"quantize": "8da8w-pc",
"embedding_quantize": "int8",
"default": true,
"methods": {
"encode": {
"inputs": [
{
"shape": [
1,
256
],
"dtype": "int64"
},
{
"shape": [
1,
256
],
"dtype": "int64"
}
],
"outputs": [
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
}
]
},
"decode": {
"inputs": [
{
"shape": [
1,
1
],
"dtype": "int64"
},
{
"shape": [
1
],
"dtype": "int64"
},
{
"shape": [
1,
256
],
"dtype": "int64"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
},
{
"shape": [
8,
256,
64
],
"dtype": "float32"
}
],
"outputs": [
{
"shape": [
1,
1,
58101
],
"dtype": "float32"
}
]
}
}
}
]
}