Upload folder using huggingface_hub
Browse files- config.json +102 -0
- onnx/model.onnx +3 -0
- onnx/model_quantized.onnx +3 -0
- preprocessor_config.json +9 -0
- quantize_config.json +31 -0
- special_tokens_map.json +6 -0
- tokenizer_config.json +17 -0
- vocab.json +34 -0
config.json
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/unispeech-sat-base-100h-libri-ft",
|
3 |
+
"activation_dropout": 0.1,
|
4 |
+
"apply_spec_augment": true,
|
5 |
+
"architectures": [
|
6 |
+
"UniSpeechSatForCTC"
|
7 |
+
],
|
8 |
+
"attention_dropout": 0.1,
|
9 |
+
"bos_token_id": 1,
|
10 |
+
"classifier_proj_size": 256,
|
11 |
+
"codevector_dim": 256,
|
12 |
+
"contrastive_logits_temperature": 0.1,
|
13 |
+
"conv_bias": false,
|
14 |
+
"conv_dim": [
|
15 |
+
512,
|
16 |
+
512,
|
17 |
+
512,
|
18 |
+
512,
|
19 |
+
512,
|
20 |
+
512,
|
21 |
+
512
|
22 |
+
],
|
23 |
+
"conv_kernel": [
|
24 |
+
10,
|
25 |
+
3,
|
26 |
+
3,
|
27 |
+
3,
|
28 |
+
3,
|
29 |
+
2,
|
30 |
+
2
|
31 |
+
],
|
32 |
+
"conv_stride": [
|
33 |
+
5,
|
34 |
+
2,
|
35 |
+
2,
|
36 |
+
2,
|
37 |
+
2,
|
38 |
+
2,
|
39 |
+
2
|
40 |
+
],
|
41 |
+
"ctc_loss_reduction": "sum",
|
42 |
+
"ctc_zero_infinity": false,
|
43 |
+
"diversity_loss_weight": 0.1,
|
44 |
+
"do_stable_layer_norm": false,
|
45 |
+
"eos_token_id": 2,
|
46 |
+
"feat_extract_activation": "gelu",
|
47 |
+
"feat_extract_norm": "group",
|
48 |
+
"feat_proj_dropout": 0.1,
|
49 |
+
"feat_quantizer_dropout": 0.0,
|
50 |
+
"final_dropout": 0.1,
|
51 |
+
"freeze_feat_extract_train": true,
|
52 |
+
"hidden_act": "gelu",
|
53 |
+
"hidden_dropout": 0.1,
|
54 |
+
"hidden_size": 768,
|
55 |
+
"initializer_range": 0.02,
|
56 |
+
"intermediate_size": 3072,
|
57 |
+
"layer_norm_eps": 1e-05,
|
58 |
+
"layerdrop": 0.1,
|
59 |
+
"mask_feature_length": 10,
|
60 |
+
"mask_feature_min_masks": 0,
|
61 |
+
"mask_feature_prob": 0.0,
|
62 |
+
"mask_time_length": 10,
|
63 |
+
"mask_time_min_masks": 2,
|
64 |
+
"mask_time_prob": 0.05,
|
65 |
+
"model_type": "unispeech-sat",
|
66 |
+
"num_attention_heads": 12,
|
67 |
+
"num_clusters": 504,
|
68 |
+
"num_codevector_groups": 2,
|
69 |
+
"num_codevectors_per_group": 320,
|
70 |
+
"num_conv_pos_embedding_groups": 16,
|
71 |
+
"num_conv_pos_embeddings": 128,
|
72 |
+
"num_feat_extract_layers": 7,
|
73 |
+
"num_hidden_layers": 12,
|
74 |
+
"num_negatives": 100,
|
75 |
+
"pad_token_id": 0,
|
76 |
+
"proj_codevector_dim": 256,
|
77 |
+
"tdnn_dilation": [
|
78 |
+
1,
|
79 |
+
2,
|
80 |
+
3,
|
81 |
+
1,
|
82 |
+
1
|
83 |
+
],
|
84 |
+
"tdnn_dim": [
|
85 |
+
512,
|
86 |
+
512,
|
87 |
+
512,
|
88 |
+
512,
|
89 |
+
1500
|
90 |
+
],
|
91 |
+
"tdnn_kernel": [
|
92 |
+
5,
|
93 |
+
3,
|
94 |
+
3,
|
95 |
+
1,
|
96 |
+
1
|
97 |
+
],
|
98 |
+
"transformers_version": "4.33.2",
|
99 |
+
"use_weighted_layer_sum": false,
|
100 |
+
"vocab_size": 32,
|
101 |
+
"xvector_output_dim": 512
|
102 |
+
}
|
onnx/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dd7e6ccbbd32ee01a4912f7e0794e8daf96f91725205d66bb70095045dffa2f1
|
3 |
+
size 377911002
|
onnx/model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:49274be7018ca9a3b96d9a13d17b8e5d11d1369a23f0fe204d94e1c528447b08
|
3 |
+
size 95322218
|
preprocessor_config.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"feature_extractor_type": "Wav2Vec2FeatureExtractor",
|
4 |
+
"feature_size": 1,
|
5 |
+
"padding_side": "right",
|
6 |
+
"padding_value": 0.0,
|
7 |
+
"return_attention_mask": false,
|
8 |
+
"sampling_rate": 16000
|
9 |
+
}
|
quantize_config.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"per_channel": false,
|
3 |
+
"reduce_range": false,
|
4 |
+
"per_model_config": {
|
5 |
+
"model": {
|
6 |
+
"op_types": [
|
7 |
+
"Slice",
|
8 |
+
"InstanceNormalization",
|
9 |
+
"Erf",
|
10 |
+
"Softmax",
|
11 |
+
"ReduceMean",
|
12 |
+
"Transpose",
|
13 |
+
"Concat",
|
14 |
+
"Unsqueeze",
|
15 |
+
"Gather",
|
16 |
+
"Pow",
|
17 |
+
"Add",
|
18 |
+
"Sub",
|
19 |
+
"MatMul",
|
20 |
+
"Sqrt",
|
21 |
+
"Shape",
|
22 |
+
"Reshape",
|
23 |
+
"Mul",
|
24 |
+
"Div",
|
25 |
+
"Conv",
|
26 |
+
"Constant"
|
27 |
+
],
|
28 |
+
"weight_type": "QUInt8"
|
29 |
+
}
|
30 |
+
}
|
31 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"eos_token": "</s>",
|
4 |
+
"pad_token": "<pad>",
|
5 |
+
"unk_token": "<unk>"
|
6 |
+
}
|
tokenizer_config.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"clean_up_tokenization_spaces": true,
|
4 |
+
"do_lower_case": false,
|
5 |
+
"do_normalize": true,
|
6 |
+
"eos_token": "</s>",
|
7 |
+
"model_max_length": 1000000000000000019884624838656,
|
8 |
+
"pad_token": "<pad>",
|
9 |
+
"processor_class": "Wav2Vec2Processor",
|
10 |
+
"replace_word_delimiter_char": " ",
|
11 |
+
"return_attention_mask": false,
|
12 |
+
"target_lang": null,
|
13 |
+
"tokenizer_class": "Wav2Vec2CTCTokenizer",
|
14 |
+
"tokenizer_file": null,
|
15 |
+
"unk_token": "<unk>",
|
16 |
+
"word_delimiter_token": "|"
|
17 |
+
}
|
vocab.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"'": 27,
|
3 |
+
"</s>": 2,
|
4 |
+
"<pad>": 0,
|
5 |
+
"<s>": 1,
|
6 |
+
"<unk>": 3,
|
7 |
+
"A": 7,
|
8 |
+
"B": 24,
|
9 |
+
"C": 19,
|
10 |
+
"D": 14,
|
11 |
+
"E": 5,
|
12 |
+
"F": 20,
|
13 |
+
"G": 21,
|
14 |
+
"H": 11,
|
15 |
+
"I": 10,
|
16 |
+
"J": 29,
|
17 |
+
"K": 26,
|
18 |
+
"L": 15,
|
19 |
+
"M": 17,
|
20 |
+
"N": 9,
|
21 |
+
"O": 8,
|
22 |
+
"P": 23,
|
23 |
+
"Q": 30,
|
24 |
+
"R": 13,
|
25 |
+
"S": 12,
|
26 |
+
"T": 6,
|
27 |
+
"U": 16,
|
28 |
+
"V": 25,
|
29 |
+
"W": 18,
|
30 |
+
"X": 28,
|
31 |
+
"Y": 22,
|
32 |
+
"Z": 31,
|
33 |
+
"|": 4
|
34 |
+
}
|