| { |
| "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", |
| "model": "whisper_base", |
| "family": "whisper", |
| "capabilities": [ |
| "speech-to-text" |
| ], |
| "backend": "mlx", |
| "license": "apache-2.0", |
| "tokenizer": "../tokenizer.json", |
| "variants": [ |
| { |
| "file": "whisper_base_mlx_bf16.pte", |
| "precision": "bf16", |
| "quantized": false, |
| "default": true, |
| "methods": { |
| "decode": { |
| "inputs": [ |
| { |
| "shape": [ |
| 1, |
| 128 |
| ], |
| "dtype": "int64" |
| }, |
| { |
| "shape": [ |
| 128 |
| ], |
| "dtype": "int64" |
| }, |
| { |
| "shape": [ |
| 1, |
| 1500, |
| 512 |
| ], |
| "dtype": "float32" |
| } |
| ], |
| "outputs": [ |
| { |
| "shape": [ |
| 1, |
| 128, |
| 51865 |
| ], |
| "dtype": "float32" |
| } |
| ] |
| }, |
| "encode": { |
| "inputs": [ |
| { |
| "shape": [ |
| 480000 |
| ], |
| "dtype": "float32" |
| } |
| ], |
| "outputs": [ |
| { |
| "shape": [ |
| 1, |
| 1500, |
| 512 |
| ], |
| "dtype": "float32" |
| } |
| ] |
| } |
| } |
| } |
| ] |
| } |