Upload folder using huggingface_hub
Browse files- config.json +39 -0
- onnx/model.onnx +3 -0
- preprocessor_config.json +21 -0
config.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_attn_implementation_autoset": true,
|
3 |
+
"_name_or_path": "hf-internal-testing/tiny-random-MCTCTForCTC",
|
4 |
+
"architectures": [
|
5 |
+
"MCTCTForCTC"
|
6 |
+
],
|
7 |
+
"attention_head_dim": 128,
|
8 |
+
"attention_probs_dropout_prob": 0.3,
|
9 |
+
"bos_token_id": 0,
|
10 |
+
"conv_channels": null,
|
11 |
+
"conv_dropout": 0.3,
|
12 |
+
"conv_glu_dim": 1,
|
13 |
+
"conv_kernel": [
|
14 |
+
7
|
15 |
+
],
|
16 |
+
"conv_stride": [
|
17 |
+
3
|
18 |
+
],
|
19 |
+
"ctc_loss_reduction": "sum",
|
20 |
+
"ctc_zero_infinity": false,
|
21 |
+
"eos_token_id": 2,
|
22 |
+
"hidden_act": "relu",
|
23 |
+
"hidden_dropout_prob": 0.3,
|
24 |
+
"hidden_size": 512,
|
25 |
+
"initializer_range": 0.02,
|
26 |
+
"input_channels": 1,
|
27 |
+
"input_feat_per_channel": 80,
|
28 |
+
"intermediate_size": 20,
|
29 |
+
"layer_norm_eps": 1e-05,
|
30 |
+
"layerdrop": 0.3,
|
31 |
+
"max_position_embeddings": 920,
|
32 |
+
"model_type": "mctct",
|
33 |
+
"num_attention_heads": 4,
|
34 |
+
"num_conv_layers": 1,
|
35 |
+
"num_hidden_layers": 4,
|
36 |
+
"pad_token_id": 1,
|
37 |
+
"transformers_version": "4.48.2",
|
38 |
+
"vocab_size": 32
|
39 |
+
}
|
onnx/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:901505af192b82648816527ec0debbba4964c9d5e0850ef5d0b645ffd6e49b1d
|
3 |
+
size 23377891
|
preprocessor_config.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"feature_extractor_type": "MCTCTFeatureExtractor",
|
3 |
+
"feature_size": 80,
|
4 |
+
"frame_signal_scale": 32768.0,
|
5 |
+
"hop_length": 10,
|
6 |
+
"mel_floor": 1.0,
|
7 |
+
"n_fft": 512,
|
8 |
+
"n_freqs": 257,
|
9 |
+
"normalize_means": true,
|
10 |
+
"normalize_vars": true,
|
11 |
+
"num_mel_bins": 80,
|
12 |
+
"padding_side": "right",
|
13 |
+
"padding_value": 0.0,
|
14 |
+
"preemphasis_coeff": 0.97,
|
15 |
+
"return_attention_mask": false,
|
16 |
+
"sample_size": 400,
|
17 |
+
"sample_stride": 160,
|
18 |
+
"sampling_rate": 16000,
|
19 |
+
"win_function": "hamming_window",
|
20 |
+
"win_length": 25
|
21 |
+
}
|