Upload folder using huggingface_hub
Browse files- config.json +104 -0
- onnx/model.onnx +3 -0
- onnx/model_quantized.onnx +3 -0
- preprocessor_config.json +9 -0
- quantize_config.json +31 -0
config.json
ADDED
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/unispeech-sat-base",
|
3 |
+
"activation_dropout": 0.1,
|
4 |
+
"apply_spec_augment": true,
|
5 |
+
"architectures": [
|
6 |
+
"UniSpeechSatForPreTraining"
|
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": "mean",
|
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_dropout": 0.0,
|
48 |
+
"feat_extract_norm": "group",
|
49 |
+
"feat_proj_dropout": 0.1,
|
50 |
+
"feat_quantizer_dropout": 0.0,
|
51 |
+
"final_dropout": 0.1,
|
52 |
+
"hidden_act": "gelu",
|
53 |
+
"hidden_dropout": 0.1,
|
54 |
+
"hidden_dropout_prob": 0.1,
|
55 |
+
"hidden_size": 768,
|
56 |
+
"initializer_range": 0.02,
|
57 |
+
"intermediate_size": 3072,
|
58 |
+
"layer_norm_eps": 1e-05,
|
59 |
+
"layerdrop": 0.1,
|
60 |
+
"mask_feature_length": 10,
|
61 |
+
"mask_feature_min_masks": 0,
|
62 |
+
"mask_feature_prob": 0.0,
|
63 |
+
"mask_time_length": 10,
|
64 |
+
"mask_time_min_masks": 2,
|
65 |
+
"mask_time_prob": 0.05,
|
66 |
+
"model_type": "unispeech-sat",
|
67 |
+
"num_attention_heads": 12,
|
68 |
+
"num_clusters": 504,
|
69 |
+
"num_codevector_groups": 2,
|
70 |
+
"num_codevectors_per_group": 320,
|
71 |
+
"num_conv_pos_embedding_groups": 16,
|
72 |
+
"num_conv_pos_embeddings": 128,
|
73 |
+
"num_feat_extract_layers": 7,
|
74 |
+
"num_hidden_layers": 12,
|
75 |
+
"num_negatives": 100,
|
76 |
+
"pad_token_id": 0,
|
77 |
+
"proj_codevector_dim": 256,
|
78 |
+
"tdnn_dilation": [
|
79 |
+
1,
|
80 |
+
2,
|
81 |
+
3,
|
82 |
+
1,
|
83 |
+
1
|
84 |
+
],
|
85 |
+
"tdnn_dim": [
|
86 |
+
512,
|
87 |
+
512,
|
88 |
+
512,
|
89 |
+
512,
|
90 |
+
1500
|
91 |
+
],
|
92 |
+
"tdnn_kernel": [
|
93 |
+
5,
|
94 |
+
3,
|
95 |
+
3,
|
96 |
+
1,
|
97 |
+
1
|
98 |
+
],
|
99 |
+
"tokenizer_class": "Wav2Vec2CTCTokenizer",
|
100 |
+
"transformers_version": "4.33.2",
|
101 |
+
"use_weighted_layer_sum": false,
|
102 |
+
"vocab_size": 32,
|
103 |
+
"xvector_output_dim": 512
|
104 |
+
}
|
onnx/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:03d589d9646ed94931e96dc7c4a900abac512add167d03fec4c0819a67117fd6
|
3 |
+
size 377746620
|
onnx/model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:95c75013fd7e70c43553f87c7527dcb19a36f3406c0d51634b08d619c5205479
|
3 |
+
size 95193954
|
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,
|
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 |
+
"Sub",
|
8 |
+
"Shape",
|
9 |
+
"Conv",
|
10 |
+
"Add",
|
11 |
+
"Erf",
|
12 |
+
"ReduceMean",
|
13 |
+
"Mul",
|
14 |
+
"Slice",
|
15 |
+
"Softmax",
|
16 |
+
"Transpose",
|
17 |
+
"Concat",
|
18 |
+
"Constant",
|
19 |
+
"Reshape",
|
20 |
+
"Unsqueeze",
|
21 |
+
"Gather",
|
22 |
+
"Sqrt",
|
23 |
+
"MatMul",
|
24 |
+
"Div",
|
25 |
+
"Pow",
|
26 |
+
"InstanceNormalization"
|
27 |
+
],
|
28 |
+
"weight_type": "QUInt8"
|
29 |
+
}
|
30 |
+
}
|
31 |
+
}
|