bhanc commited on
Commit
80d23a9
·
1 Parent(s): cfcb472

Replace .pte files with reexported versions including dynamic dims companion methods

Browse files
Files changed (7) hide show
  1. .gitattributes +39 -0
  2. README.md +16 -0
  3. config.json +3 -0
  4. coreml/config.json +76 -0
  5. mlx/config.json +76 -0
  6. tokenizer.json +0 -0
  7. xnnpack/config.json +75 -0
.gitattributes ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ xnnpack/whisper_small_xnnpack.pte filter=lfs diff=lfs merge=lfs -text
37
+ xnnpack/whisper_small_xnnpack_fp32.pte filter=lfs diff=lfs merge=lfs -text
38
+ coreml/whisper_small_coreml_fp16.pte filter=lfs diff=lfs merge=lfs -text
39
+ mlx/whisper_small_mlx_bf16.pte filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ pipeline_tag: automatic-speech-recognition
4
+ ---
5
+
6
+ # Introduction
7
+
8
+ This repository hosts the [whisper-small](https://huggingface.co/openai/whisper-small) model for the [React Native ExecuTorch](https://www.npmjs.com/package/react-native-executorch) library. It includes the model exported for XNNPACK, CoreML and MLX backends in `.pte` format, ready for use in the **ExecuTorch** runtime.
9
+
10
+ If you'd like to run these models in your own ExecuTorch runtime, refer to the [official documentation](https://pytorch.org/executorch/stable/index.html) for setup instructions.
11
+
12
+ ## Compatibility
13
+
14
+ If you intend to use this models outside of React Native ExecuTorch, make sure your runtime is compatible with the **ExecuTorch** version used to export the `.pte` files. For more details, see the compatibility note in the [ExecuTorch GitHub repository](https://github.com/pytorch/executorch/blob/11d1742fdeddcf05bc30a6cfac321d2a2e3b6768/runtime/COMPATIBILITY.md?plain=1#L4). If you work with React Native ExecuTorch, the constants from the library will guarantee compatibility with runtime used behind the scenes.
15
+
16
+ These models were exported using v1.2.0 version of ExecuTorch and **no forward compatibility** is guaranteed. Older versions of the runtime may not work with these files.
config.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "modelName": "whisper-small"
3
+ }
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_small",
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_small_coreml_fp16.pte",
14
+ "precision": "fp16",
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
+ 768
38
+ ],
39
+ "dtype": "float32"
40
+ }
41
+ ],
42
+ "outputs": [
43
+ {
44
+ "shape": [
45
+ 1,
46
+ 128,
47
+ 51865
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
+ 768
68
+ ],
69
+ "dtype": "float32"
70
+ }
71
+ ]
72
+ }
73
+ }
74
+ }
75
+ ]
76
+ }
mlx/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_small",
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_small_mlx_bf16.pte",
14
+ "precision": "bf16",
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
+ 768
38
+ ],
39
+ "dtype": "float32"
40
+ }
41
+ ],
42
+ "outputs": [
43
+ {
44
+ "shape": [
45
+ 1,
46
+ 128,
47
+ 51865
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
+ 768
68
+ ],
69
+ "dtype": "float32"
70
+ }
71
+ ]
72
+ }
73
+ }
74
+ }
75
+ ]
76
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
xnnpack/config.json ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json",
3
+ "model": "whisper_small",
4
+ "family": "whisper",
5
+ "capabilities": [
6
+ "speech-to-text"
7
+ ],
8
+ "backend": "xnnpack",
9
+ "license": "apache-2.0",
10
+ "variants": [
11
+ {
12
+ "file": "whisper_small_xnnpack_fp32.pte",
13
+ "precision": "fp32",
14
+ "quantized": false,
15
+ "default": true,
16
+ "methods": {
17
+ "decode": {
18
+ "inputs": [
19
+ {
20
+ "shape": [
21
+ 1,
22
+ 128
23
+ ],
24
+ "dtype": "int64"
25
+ },
26
+ {
27
+ "shape": [
28
+ 128
29
+ ],
30
+ "dtype": "int64"
31
+ },
32
+ {
33
+ "shape": [
34
+ 1,
35
+ 1500,
36
+ 768
37
+ ],
38
+ "dtype": "float32"
39
+ }
40
+ ],
41
+ "outputs": [
42
+ {
43
+ "shape": [
44
+ 1,
45
+ 128,
46
+ 51865
47
+ ],
48
+ "dtype": "float32"
49
+ }
50
+ ]
51
+ },
52
+ "encode": {
53
+ "inputs": [
54
+ {
55
+ "shape": [
56
+ 480000
57
+ ],
58
+ "dtype": "float32"
59
+ }
60
+ ],
61
+ "outputs": [
62
+ {
63
+ "shape": [
64
+ 1,
65
+ 1500,
66
+ 768
67
+ ],
68
+ "dtype": "float32"
69
+ }
70
+ ]
71
+ }
72
+ }
73
+ }
74
+ ]
75
+ }