Kimang18 commited on
Commit
a93fdc6
·
verified ·
1 Parent(s): 91963a9

Upload folder using huggingface_hub

Browse files
Files changed (4) hide show
  1. README.md +20 -0
  2. config.json +13 -0
  3. model.safetensors.index.json +174 -0
  4. weights.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: mlx
3
+ ---
4
+
5
+ # whisper-tiny-khmer
6
+ This model was converted to MLX format from [`openai-whisper-tiny`]().
7
+
8
+ ## Use with mlx
9
+ ```bash
10
+ pip install mlx-whisper
11
+ ```
12
+
13
+ ```python
14
+ import mlx_whisper
15
+
16
+ result = mlx_whisper.transcribe(
17
+ "FILE_NAME",
18
+ path_or_hf_repo=Kimang18/whisper-tiny-khmer,
19
+ )
20
+ ```
config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "n_mels": 80,
3
+ "n_audio_ctx": 1500,
4
+ "n_audio_state": 384,
5
+ "n_audio_head": 6,
6
+ "n_audio_layer": 4,
7
+ "n_vocab": 51865,
8
+ "n_text_ctx": 448,
9
+ "n_text_state": 384,
10
+ "n_text_head": 6,
11
+ "n_text_layer": 4,
12
+ "model_type": "whisper"
13
+ }
model.safetensors.index.json ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_size": 74369376
4
+ },
5
+ "weight_map": {
6
+ "alignment_heads": "weights.safetensors",
7
+ "decoder.blocks.0.attn.key.weight": "weights.safetensors",
8
+ "decoder.blocks.0.attn.out.bias": "weights.safetensors",
9
+ "decoder.blocks.0.attn.out.weight": "weights.safetensors",
10
+ "decoder.blocks.0.attn.query.bias": "weights.safetensors",
11
+ "decoder.blocks.0.attn.query.weight": "weights.safetensors",
12
+ "decoder.blocks.0.attn.value.bias": "weights.safetensors",
13
+ "decoder.blocks.0.attn.value.weight": "weights.safetensors",
14
+ "decoder.blocks.0.attn_ln.bias": "weights.safetensors",
15
+ "decoder.blocks.0.attn_ln.weight": "weights.safetensors",
16
+ "decoder.blocks.0.cross_attn.key.weight": "weights.safetensors",
17
+ "decoder.blocks.0.cross_attn.out.bias": "weights.safetensors",
18
+ "decoder.blocks.0.cross_attn.out.weight": "weights.safetensors",
19
+ "decoder.blocks.0.cross_attn.query.bias": "weights.safetensors",
20
+ "decoder.blocks.0.cross_attn.query.weight": "weights.safetensors",
21
+ "decoder.blocks.0.cross_attn.value.bias": "weights.safetensors",
22
+ "decoder.blocks.0.cross_attn.value.weight": "weights.safetensors",
23
+ "decoder.blocks.0.cross_attn_ln.bias": "weights.safetensors",
24
+ "decoder.blocks.0.cross_attn_ln.weight": "weights.safetensors",
25
+ "decoder.blocks.0.mlp1.bias": "weights.safetensors",
26
+ "decoder.blocks.0.mlp1.weight": "weights.safetensors",
27
+ "decoder.blocks.0.mlp2.bias": "weights.safetensors",
28
+ "decoder.blocks.0.mlp2.weight": "weights.safetensors",
29
+ "decoder.blocks.0.mlp_ln.bias": "weights.safetensors",
30
+ "decoder.blocks.0.mlp_ln.weight": "weights.safetensors",
31
+ "decoder.blocks.1.attn.key.weight": "weights.safetensors",
32
+ "decoder.blocks.1.attn.out.bias": "weights.safetensors",
33
+ "decoder.blocks.1.attn.out.weight": "weights.safetensors",
34
+ "decoder.blocks.1.attn.query.bias": "weights.safetensors",
35
+ "decoder.blocks.1.attn.query.weight": "weights.safetensors",
36
+ "decoder.blocks.1.attn.value.bias": "weights.safetensors",
37
+ "decoder.blocks.1.attn.value.weight": "weights.safetensors",
38
+ "decoder.blocks.1.attn_ln.bias": "weights.safetensors",
39
+ "decoder.blocks.1.attn_ln.weight": "weights.safetensors",
40
+ "decoder.blocks.1.cross_attn.key.weight": "weights.safetensors",
41
+ "decoder.blocks.1.cross_attn.out.bias": "weights.safetensors",
42
+ "decoder.blocks.1.cross_attn.out.weight": "weights.safetensors",
43
+ "decoder.blocks.1.cross_attn.query.bias": "weights.safetensors",
44
+ "decoder.blocks.1.cross_attn.query.weight": "weights.safetensors",
45
+ "decoder.blocks.1.cross_attn.value.bias": "weights.safetensors",
46
+ "decoder.blocks.1.cross_attn.value.weight": "weights.safetensors",
47
+ "decoder.blocks.1.cross_attn_ln.bias": "weights.safetensors",
48
+ "decoder.blocks.1.cross_attn_ln.weight": "weights.safetensors",
49
+ "decoder.blocks.1.mlp1.bias": "weights.safetensors",
50
+ "decoder.blocks.1.mlp1.weight": "weights.safetensors",
51
+ "decoder.blocks.1.mlp2.bias": "weights.safetensors",
52
+ "decoder.blocks.1.mlp2.weight": "weights.safetensors",
53
+ "decoder.blocks.1.mlp_ln.bias": "weights.safetensors",
54
+ "decoder.blocks.1.mlp_ln.weight": "weights.safetensors",
55
+ "decoder.blocks.2.attn.key.weight": "weights.safetensors",
56
+ "decoder.blocks.2.attn.out.bias": "weights.safetensors",
57
+ "decoder.blocks.2.attn.out.weight": "weights.safetensors",
58
+ "decoder.blocks.2.attn.query.bias": "weights.safetensors",
59
+ "decoder.blocks.2.attn.query.weight": "weights.safetensors",
60
+ "decoder.blocks.2.attn.value.bias": "weights.safetensors",
61
+ "decoder.blocks.2.attn.value.weight": "weights.safetensors",
62
+ "decoder.blocks.2.attn_ln.bias": "weights.safetensors",
63
+ "decoder.blocks.2.attn_ln.weight": "weights.safetensors",
64
+ "decoder.blocks.2.cross_attn.key.weight": "weights.safetensors",
65
+ "decoder.blocks.2.cross_attn.out.bias": "weights.safetensors",
66
+ "decoder.blocks.2.cross_attn.out.weight": "weights.safetensors",
67
+ "decoder.blocks.2.cross_attn.query.bias": "weights.safetensors",
68
+ "decoder.blocks.2.cross_attn.query.weight": "weights.safetensors",
69
+ "decoder.blocks.2.cross_attn.value.bias": "weights.safetensors",
70
+ "decoder.blocks.2.cross_attn.value.weight": "weights.safetensors",
71
+ "decoder.blocks.2.cross_attn_ln.bias": "weights.safetensors",
72
+ "decoder.blocks.2.cross_attn_ln.weight": "weights.safetensors",
73
+ "decoder.blocks.2.mlp1.bias": "weights.safetensors",
74
+ "decoder.blocks.2.mlp1.weight": "weights.safetensors",
75
+ "decoder.blocks.2.mlp2.bias": "weights.safetensors",
76
+ "decoder.blocks.2.mlp2.weight": "weights.safetensors",
77
+ "decoder.blocks.2.mlp_ln.bias": "weights.safetensors",
78
+ "decoder.blocks.2.mlp_ln.weight": "weights.safetensors",
79
+ "decoder.blocks.3.attn.key.weight": "weights.safetensors",
80
+ "decoder.blocks.3.attn.out.bias": "weights.safetensors",
81
+ "decoder.blocks.3.attn.out.weight": "weights.safetensors",
82
+ "decoder.blocks.3.attn.query.bias": "weights.safetensors",
83
+ "decoder.blocks.3.attn.query.weight": "weights.safetensors",
84
+ "decoder.blocks.3.attn.value.bias": "weights.safetensors",
85
+ "decoder.blocks.3.attn.value.weight": "weights.safetensors",
86
+ "decoder.blocks.3.attn_ln.bias": "weights.safetensors",
87
+ "decoder.blocks.3.attn_ln.weight": "weights.safetensors",
88
+ "decoder.blocks.3.cross_attn.key.weight": "weights.safetensors",
89
+ "decoder.blocks.3.cross_attn.out.bias": "weights.safetensors",
90
+ "decoder.blocks.3.cross_attn.out.weight": "weights.safetensors",
91
+ "decoder.blocks.3.cross_attn.query.bias": "weights.safetensors",
92
+ "decoder.blocks.3.cross_attn.query.weight": "weights.safetensors",
93
+ "decoder.blocks.3.cross_attn.value.bias": "weights.safetensors",
94
+ "decoder.blocks.3.cross_attn.value.weight": "weights.safetensors",
95
+ "decoder.blocks.3.cross_attn_ln.bias": "weights.safetensors",
96
+ "decoder.blocks.3.cross_attn_ln.weight": "weights.safetensors",
97
+ "decoder.blocks.3.mlp1.bias": "weights.safetensors",
98
+ "decoder.blocks.3.mlp1.weight": "weights.safetensors",
99
+ "decoder.blocks.3.mlp2.bias": "weights.safetensors",
100
+ "decoder.blocks.3.mlp2.weight": "weights.safetensors",
101
+ "decoder.blocks.3.mlp_ln.bias": "weights.safetensors",
102
+ "decoder.blocks.3.mlp_ln.weight": "weights.safetensors",
103
+ "decoder.ln.bias": "weights.safetensors",
104
+ "decoder.ln.weight": "weights.safetensors",
105
+ "decoder.positional_embedding": "weights.safetensors",
106
+ "decoder.token_embedding.weight": "weights.safetensors",
107
+ "encoder.blocks.0.attn.key.weight": "weights.safetensors",
108
+ "encoder.blocks.0.attn.out.bias": "weights.safetensors",
109
+ "encoder.blocks.0.attn.out.weight": "weights.safetensors",
110
+ "encoder.blocks.0.attn.query.bias": "weights.safetensors",
111
+ "encoder.blocks.0.attn.query.weight": "weights.safetensors",
112
+ "encoder.blocks.0.attn.value.bias": "weights.safetensors",
113
+ "encoder.blocks.0.attn.value.weight": "weights.safetensors",
114
+ "encoder.blocks.0.attn_ln.bias": "weights.safetensors",
115
+ "encoder.blocks.0.attn_ln.weight": "weights.safetensors",
116
+ "encoder.blocks.0.mlp1.bias": "weights.safetensors",
117
+ "encoder.blocks.0.mlp1.weight": "weights.safetensors",
118
+ "encoder.blocks.0.mlp2.bias": "weights.safetensors",
119
+ "encoder.blocks.0.mlp2.weight": "weights.safetensors",
120
+ "encoder.blocks.0.mlp_ln.bias": "weights.safetensors",
121
+ "encoder.blocks.0.mlp_ln.weight": "weights.safetensors",
122
+ "encoder.blocks.1.attn.key.weight": "weights.safetensors",
123
+ "encoder.blocks.1.attn.out.bias": "weights.safetensors",
124
+ "encoder.blocks.1.attn.out.weight": "weights.safetensors",
125
+ "encoder.blocks.1.attn.query.bias": "weights.safetensors",
126
+ "encoder.blocks.1.attn.query.weight": "weights.safetensors",
127
+ "encoder.blocks.1.attn.value.bias": "weights.safetensors",
128
+ "encoder.blocks.1.attn.value.weight": "weights.safetensors",
129
+ "encoder.blocks.1.attn_ln.bias": "weights.safetensors",
130
+ "encoder.blocks.1.attn_ln.weight": "weights.safetensors",
131
+ "encoder.blocks.1.mlp1.bias": "weights.safetensors",
132
+ "encoder.blocks.1.mlp1.weight": "weights.safetensors",
133
+ "encoder.blocks.1.mlp2.bias": "weights.safetensors",
134
+ "encoder.blocks.1.mlp2.weight": "weights.safetensors",
135
+ "encoder.blocks.1.mlp_ln.bias": "weights.safetensors",
136
+ "encoder.blocks.1.mlp_ln.weight": "weights.safetensors",
137
+ "encoder.blocks.2.attn.key.weight": "weights.safetensors",
138
+ "encoder.blocks.2.attn.out.bias": "weights.safetensors",
139
+ "encoder.blocks.2.attn.out.weight": "weights.safetensors",
140
+ "encoder.blocks.2.attn.query.bias": "weights.safetensors",
141
+ "encoder.blocks.2.attn.query.weight": "weights.safetensors",
142
+ "encoder.blocks.2.attn.value.bias": "weights.safetensors",
143
+ "encoder.blocks.2.attn.value.weight": "weights.safetensors",
144
+ "encoder.blocks.2.attn_ln.bias": "weights.safetensors",
145
+ "encoder.blocks.2.attn_ln.weight": "weights.safetensors",
146
+ "encoder.blocks.2.mlp1.bias": "weights.safetensors",
147
+ "encoder.blocks.2.mlp1.weight": "weights.safetensors",
148
+ "encoder.blocks.2.mlp2.bias": "weights.safetensors",
149
+ "encoder.blocks.2.mlp2.weight": "weights.safetensors",
150
+ "encoder.blocks.2.mlp_ln.bias": "weights.safetensors",
151
+ "encoder.blocks.2.mlp_ln.weight": "weights.safetensors",
152
+ "encoder.blocks.3.attn.key.weight": "weights.safetensors",
153
+ "encoder.blocks.3.attn.out.bias": "weights.safetensors",
154
+ "encoder.blocks.3.attn.out.weight": "weights.safetensors",
155
+ "encoder.blocks.3.attn.query.bias": "weights.safetensors",
156
+ "encoder.blocks.3.attn.query.weight": "weights.safetensors",
157
+ "encoder.blocks.3.attn.value.bias": "weights.safetensors",
158
+ "encoder.blocks.3.attn.value.weight": "weights.safetensors",
159
+ "encoder.blocks.3.attn_ln.bias": "weights.safetensors",
160
+ "encoder.blocks.3.attn_ln.weight": "weights.safetensors",
161
+ "encoder.blocks.3.mlp1.bias": "weights.safetensors",
162
+ "encoder.blocks.3.mlp1.weight": "weights.safetensors",
163
+ "encoder.blocks.3.mlp2.bias": "weights.safetensors",
164
+ "encoder.blocks.3.mlp2.weight": "weights.safetensors",
165
+ "encoder.blocks.3.mlp_ln.bias": "weights.safetensors",
166
+ "encoder.blocks.3.mlp_ln.weight": "weights.safetensors",
167
+ "encoder.conv1.bias": "weights.safetensors",
168
+ "encoder.conv1.weight": "weights.safetensors",
169
+ "encoder.conv2.bias": "weights.safetensors",
170
+ "encoder.conv2.weight": "weights.safetensors",
171
+ "encoder.ln_post.bias": "weights.safetensors",
172
+ "encoder.ln_post.weight": "weights.safetensors"
173
+ }
174
+ }
weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34f1ea6b433c038cad681347366466531433a7b07bacda98e1188f68ef005837
3
+ size 74386138