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

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

Browse files
.gitattributes DELETED
@@ -1,39 +0,0 @@
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 DELETED
@@ -1,16 +0,0 @@
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 DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "modelName": "whisper-small"
3
- }
 
 
 
 
coreml/config.json DELETED
@@ -1,76 +0,0 @@
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
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
coreml/whisper_small_coreml_fp16.pte CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2b6199ede91695bb03a3ca698eb5da497f5ee849111b9f9ac4944beca9867307
3
- size 485327730
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:344724bb37328cc8ac58cdfb3c06a741c8add9b659896b45673c93bed0104a5f
3
+ size 485330161
mlx/config.json DELETED
@@ -1,76 +0,0 @@
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
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
mlx/whisper_small_mlx_bf16.pte CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:59e993fe38649ed190e079db455de226efac56a5b592362bed915e07b2c3e89b
3
- size 484734336
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5ccd885be7b10bfd585fb9c2f181dd7ed681df8c098dc74095d9ae1f73acb6a
3
+ size 484735744
tokenizer.json DELETED
The diff for this file is too large to render. See raw diff
 
xnnpack/config.json DELETED
@@ -1,75 +0,0 @@
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
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
xnnpack/whisper_small_xnnpack_fp32.pte CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b41adddfd3c047741b7c9f712e0ed9f4ec2a68e392902e53d9f60af61db6fdd3
3
- size 1128735360
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9977588b4782abbb6e5e1014ce7e8d31edcf071b90800320f462a87d1845787e
3
+ size 1128744192