Automatic Speech Recognition
tahaouarrak Plachta commited on
Commit
b005394
·
0 Parent(s):

Duplicate from Plachta/ASTRAL-quantization

Browse files

Co-authored-by: ElderFrog <Plachta@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
README.md ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gpl-3.0
3
+ language:
4
+ - en
5
+ - zh
6
+ - ja
7
+ - kr
8
+ - ru
9
+ - ta
10
+ - es
11
+ - fr
12
+ - de
13
+ - it
14
+ - pt
15
+ - kn
16
+ - nl
17
+ pipeline_tag: automatic-speech-recognition
18
+ ---
19
+ # Model Card for Model ID
20
+
21
+ This is a speech linguistic content quantizer operates on Hubert-large features. It is trained with explicit ASR supervision to preserve more linguistic content while discarding more speaker traits.
22
+
23
+ ## Model Details
24
+
25
+ ### Model Description
26
+
27
+ <!-- Provide a longer summary of what this model is. -->
28
+
29
+
30
+
31
+ - **Developed by:** [More Information Needed]
32
+ - **Funded by [optional]:** [More Information Needed]
33
+ - **Shared by [optional]:** [More Information Needed]
34
+ - **Model type:** [More Information Needed]
35
+ - **Language(s) (NLP):** [More Information Needed]
36
+ - **License:** [More Information Needed]
37
+ - **Finetuned from model [optional]:** [More Information Needed]
38
+
39
+ ### Model Sources [optional]
40
+
41
+ <!-- Provide the basic links for the model. -->
42
+
43
+ - **Repository:** [More Information Needed]
44
+ - **Paper [optional]:** [More Information Needed]
45
+ - **Demo [optional]:** [More Information Needed]
46
+
47
+ ## Uses
48
+
49
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
50
+
51
+ ### Direct Use
52
+
53
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
54
+
55
+ [More Information Needed]
56
+
57
+ ### Downstream Use [optional]
58
+
59
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
60
+
61
+ [More Information Needed]
62
+
63
+ ### Out-of-Scope Use
64
+
65
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
66
+
67
+ [More Information Needed]
68
+
69
+ ## Bias, Risks, and Limitations
70
+
71
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
72
+
73
+ [More Information Needed]
74
+
75
+ ### Recommendations
76
+
77
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
78
+
79
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
80
+
81
+ ## How to Get Started with the Model
82
+
83
+ Use the code below to get started with the model.
84
+
85
+ [More Information Needed]
86
+
87
+ ## Training Details
88
+
89
+ ### Training Data
90
+
91
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
92
+
93
+ [More Information Needed]
94
+
95
+ ### Training Procedure
96
+
97
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
98
+
99
+ #### Preprocessing [optional]
100
+
101
+ [More Information Needed]
102
+
103
+
104
+ #### Training Hyperparameters
105
+
106
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
107
+
108
+ #### Speeds, Sizes, Times [optional]
109
+
110
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
111
+
112
+ [More Information Needed]
113
+
114
+ ## Evaluation
115
+
116
+ <!-- This section describes the evaluation protocols and provides the results. -->
117
+
118
+ ### Testing Data, Factors & Metrics
119
+
120
+ #### Testing Data
121
+
122
+ <!-- This should link to a Dataset Card if possible. -->
123
+
124
+ [More Information Needed]
125
+
126
+ #### Factors
127
+
128
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
129
+
130
+ [More Information Needed]
131
+
132
+ #### Metrics
133
+
134
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
135
+
136
+ [More Information Needed]
137
+
138
+ ### Results
139
+
140
+ [More Information Needed]
141
+
142
+ #### Summary
143
+
144
+
145
+
146
+ ## Model Examination [optional]
147
+
148
+ <!-- Relevant interpretability work for the model goes here -->
149
+
150
+ [More Information Needed]
151
+
152
+ ## Environmental Impact
153
+
154
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
155
+
156
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
157
+
158
+ - **Hardware Type:** [More Information Needed]
159
+ - **Hours used:** [More Information Needed]
160
+ - **Cloud Provider:** [More Information Needed]
161
+ - **Compute Region:** [More Information Needed]
162
+ - **Carbon Emitted:** [More Information Needed]
163
+
164
+ ## Technical Specifications [optional]
165
+
166
+ ### Model Architecture and Objective
167
+
168
+ [More Information Needed]
169
+
170
+ ### Compute Infrastructure
171
+
172
+ [More Information Needed]
173
+
174
+ #### Hardware
175
+
176
+ [More Information Needed]
177
+
178
+ #### Software
179
+
180
+ [More Information Needed]
181
+
182
+ ## Citation [optional]
183
+
184
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
185
+
186
+ **BibTeX:**
187
+
188
+ [More Information Needed]
189
+
190
+ **APA:**
191
+
192
+ [More Information Needed]
193
+
194
+ ## Glossary [optional]
195
+
196
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
197
+
198
+ [More Information Needed]
199
+
200
+ ## More Information [optional]
201
+
202
+ [More Information Needed]
203
+
204
+ ## Model Card Authors [optional]
205
+
206
+ [More Information Needed]
207
+
208
+ ## Model Card Contact
209
+
210
+ [More Information Needed]
bsq2048/bsq2048_light.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7953115a60609c72a50bc79e88aa7248ffd4444b3912f89e8375ec1c6485fc6
3
+ size 78181599
bsq2048/config.yml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ _target_: default_model.AstralQuantizer
2
+ tokenizer_name: "openai/whisper-small"
3
+ ssl_model_name: "facebook/hubert-large-ll60k"
4
+ ssl_output_layer: 18
5
+ encoder:
6
+ _target_: modules.convnext.ConvNeXtV2Stage
7
+ dim: 512
8
+ num_blocks: 12
9
+ intermediate_dim: 1536
10
+ dilation: 1
11
+ input_dim: 1024
12
+ quantizer:
13
+ _target_: modules.bsq.BinarySphericalQuantize
14
+ codebook_size: 2048 # codebook size, must be a power of 2
15
+ dim: 512
16
+ entropy_loss_weight: 0.1
17
+ diversity_gamma: 1.0
18
+ spherical: True
19
+ enable_entropy_loss: True
20
+ soft_entropy_loss: True
21
+ decoder:
22
+ _target_: modules.convnext.ConvNeXtV2Stage
23
+ dim: 512
24
+ num_blocks: 12
25
+ intermediate_dim: 1536
26
+ dilation: 1
27
+ output_dim: 1024
28
+ gin_channels: 192
29
+ asr_decoder:
30
+ _target_: modules.asr_decoder.ASRDecoder
31
+ hidden_dim: 768
32
+ num_heads: 12
33
+ depth: 12
34
+ block_size: 4096
35
+ in_channels: 512
36
+ n_vocab: 51866
37
+ bos_id: 50528
38
+ eos_id: 50527
39
+ dropout_rate: 0.0
40
+ attn_dropout_rate: 0.0
bsq2048/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:198cc8b2bbde6c1818cf44f748d146f80b08438532b6f0170ddbef78f7e98c2f
3
+ size 1912057564
bsq32/bsq32_light.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b01d6ba14a7af57ecc02b3eb5897a7e2abdaefab06b3f218d6709dc98b0e83a3
3
+ size 78156693
bsq32/config.yml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ _target_: default_model.AstralQuantizer
2
+ tokenizer_name: "openai/whisper-small"
3
+ ssl_model_name: "facebook/hubert-large-ll60k"
4
+ ssl_output_layer: 18
5
+ encoder:
6
+ _target_: modules.convnext.ConvNeXtV2Stage
7
+ dim: 512
8
+ num_blocks: 12
9
+ intermediate_dim: 1536
10
+ dilation: 1
11
+ input_dim: 1024
12
+ quantizer:
13
+ _target_: modules.bsq.BinarySphericalQuantize
14
+ codebook_size: 32 # codebook size, must be a power of 2
15
+ dim: 512
16
+ entropy_loss_weight: 0.1
17
+ diversity_gamma: 1.0
18
+ spherical: True
19
+ enable_entropy_loss: True
20
+ soft_entropy_loss: True
21
+ decoder:
22
+ _target_: modules.convnext.ConvNeXtV2Stage
23
+ dim: 512
24
+ num_blocks: 12
25
+ intermediate_dim: 1536
26
+ dilation: 1
27
+ output_dim: 1024
28
+ gin_channels: 192
29
+ asr_decoder:
30
+ _target_: modules.asr_decoder.ASRDecoder
31
+ hidden_dim: 768
32
+ num_heads: 12
33
+ depth: 12
34
+ block_size: 4096
35
+ in_channels: 512
36
+ n_vocab: 51866
37
+ bos_id: 50528
38
+ eos_id: 50527
39
+ dropout_rate: 0.0
40
+ attn_dropout_rate: 0.0
bsq32/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc023addd00827f1c462d096c9da37840c42421f64b36665a3207f6b8358ea5a
3
+ size 1912031480