msluszniak commited on
Commit
59bf0ed
·
verified ·
1 Parent(s): da5d4d9

fix(v0.9.0): add missing coreml/config.json

Browse files
Files changed (1) hide show
  1. coreml/config.json +76 -0
coreml/config.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json",
3
+ "model": "whisper_base_en",
4
+ "family": "whisper",
5
+ "capabilities": [
6
+ "speech-to-text"
7
+ ],
8
+ "backend": "coreml",
9
+ "license": "apache-2.0",
10
+ "tokenizer": "../tokenizer.json",
11
+ "variants": [
12
+ {
13
+ "file": "whisper_base_en_coreml_fp32.pte",
14
+ "precision": "fp32",
15
+ "quantized": false,
16
+ "default": true,
17
+ "methods": {
18
+ "decode": {
19
+ "inputs": [
20
+ {
21
+ "shape": [
22
+ 1,
23
+ 128
24
+ ],
25
+ "dtype": "int64"
26
+ },
27
+ {
28
+ "shape": [
29
+ 128
30
+ ],
31
+ "dtype": "int64"
32
+ },
33
+ {
34
+ "shape": [
35
+ 1,
36
+ 1500,
37
+ 512
38
+ ],
39
+ "dtype": "float32"
40
+ }
41
+ ],
42
+ "outputs": [
43
+ {
44
+ "shape": [
45
+ 1,
46
+ 128,
47
+ 51864
48
+ ],
49
+ "dtype": "float32"
50
+ }
51
+ ]
52
+ },
53
+ "encode": {
54
+ "inputs": [
55
+ {
56
+ "shape": [
57
+ 480000
58
+ ],
59
+ "dtype": "float32"
60
+ }
61
+ ],
62
+ "outputs": [
63
+ {
64
+ "shape": [
65
+ 1,
66
+ 1500,
67
+ 512
68
+ ],
69
+ "dtype": "float32"
70
+ }
71
+ ]
72
+ }
73
+ }
74
+ }
75
+ ]
76
+ }