Commit
·
99ceeef
1
Parent(s):
0db9cf3
Add quantization to the facebook model
Browse files- config.json +90 -0
- preprocessor_config.json +8 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +1 -0
- tokenizer_config.json +1 -0
- vocab.json +1 -0
config.json
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_dropout": 0.0,
|
| 3 |
+
"apply_spec_augment": true,
|
| 4 |
+
"architectures": [
|
| 5 |
+
"Wav2Vec2ForPreTraining"
|
| 6 |
+
],
|
| 7 |
+
"attention_dropout": 0.1,
|
| 8 |
+
"bos_token_id": 1,
|
| 9 |
+
"contrastive_logit_temperature": 0.1,
|
| 10 |
+
"conv_bias": false,
|
| 11 |
+
"conv_dim": [
|
| 12 |
+
512,
|
| 13 |
+
512,
|
| 14 |
+
512,
|
| 15 |
+
512,
|
| 16 |
+
512,
|
| 17 |
+
512,
|
| 18 |
+
512
|
| 19 |
+
],
|
| 20 |
+
"conv_kernel": [
|
| 21 |
+
10,
|
| 22 |
+
3,
|
| 23 |
+
3,
|
| 24 |
+
3,
|
| 25 |
+
3,
|
| 26 |
+
2,
|
| 27 |
+
2
|
| 28 |
+
],
|
| 29 |
+
"conv_stride": [
|
| 30 |
+
5,
|
| 31 |
+
2,
|
| 32 |
+
2,
|
| 33 |
+
2,
|
| 34 |
+
2,
|
| 35 |
+
2,
|
| 36 |
+
2
|
| 37 |
+
],
|
| 38 |
+
"ctc_loss_reduction": "sum",
|
| 39 |
+
"ctc_zero_infinity": false,
|
| 40 |
+
"diversity_loss_weight": 0.1,
|
| 41 |
+
"do_stable_layer_norm": false,
|
| 42 |
+
"eos_token_id": 2,
|
| 43 |
+
"feat_extract_activation": "gelu",
|
| 44 |
+
"feat_extract_norm": "group",
|
| 45 |
+
"feat_proj_dropout": 0.1,
|
| 46 |
+
"feat_quantizer_dropout": 0.0,
|
| 47 |
+
"final_dropout": 0.0,
|
| 48 |
+
"freeze_feat_extract_train": true,
|
| 49 |
+
"gradient_checkpointing": true,
|
| 50 |
+
"gumbel_softmax_temperature": [
|
| 51 |
+
2.0,
|
| 52 |
+
0.5,
|
| 53 |
+
0.999995
|
| 54 |
+
],
|
| 55 |
+
"hidden_act": "gelu",
|
| 56 |
+
"hidden_dropout": 0.1,
|
| 57 |
+
"hidden_size": 768,
|
| 58 |
+
"initializer_range": 0.02,
|
| 59 |
+
"intermediate_size": 3072,
|
| 60 |
+
"layer_norm_eps": 1e-05,
|
| 61 |
+
"layerdrop": 0.05,
|
| 62 |
+
"mask_channel_length": 10,
|
| 63 |
+
"mask_channel_min_space": 1,
|
| 64 |
+
"mask_channel_other": 0.0,
|
| 65 |
+
"mask_channel_prob": 0.0,
|
| 66 |
+
"mask_channel_selection": "static",
|
| 67 |
+
"mask_feature_length": 10,
|
| 68 |
+
"mask_feature_prob": 0.0,
|
| 69 |
+
"mask_time_length": 10,
|
| 70 |
+
"mask_time_min_space": 1,
|
| 71 |
+
"mask_time_other": 0.0,
|
| 72 |
+
"mask_time_prob": 0.05,
|
| 73 |
+
"mask_time_selection": "static",
|
| 74 |
+
"model_type": "wav2vec2",
|
| 75 |
+
"no_mask_channel_overlap": false,
|
| 76 |
+
"no_mask_time_overlap": false,
|
| 77 |
+
"num_attention_heads": 12,
|
| 78 |
+
"num_conv_pos_embedding_groups": 16,
|
| 79 |
+
"num_conv_pos_embeddings": 128,
|
| 80 |
+
"num_feat_extract_layers": 7,
|
| 81 |
+
"num_hidden_layers": 12,
|
| 82 |
+
"num_latent_groups": 2,
|
| 83 |
+
"num_latent_vars": 320,
|
| 84 |
+
"num_negatives": 100,
|
| 85 |
+
"pad_token_id": 0,
|
| 86 |
+
"transformers_version": "4.6.0.dev0",
|
| 87 |
+
"vocab_size": 32,
|
| 88 |
+
"vq_final_dim": 256,
|
| 89 |
+
"vq_latent_dim": 256
|
| 90 |
+
}
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_normalize": true,
|
| 3 |
+
"feature_size": 1,
|
| 4 |
+
"padding_side": "right",
|
| 5 |
+
"padding_value": 0.0,
|
| 6 |
+
"return_attention_mask": false,
|
| 7 |
+
"sampling_rate": 16000
|
| 8 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5b5a7c852e9867a03032fc7c6ea143dc32244ab612acf4be683588cb97d90645
|
| 3 |
+
size 380267609
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "pad_token": "<pad>"}
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"unk_token": "<unk>", "bos_token": "<s>", "eos_token": "</s>", "pad_token": "<pad>", "do_lower_case": false, "return_attention_mask": false, "do_normalize": true}
|
vocab.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"<pad>": 0, "<s>": 1, "</s>": 2, "<unk>": 3, "|": 4, "E": 5, "T": 6, "A": 7, "O": 8, "N": 9, "I": 10, "H": 11, "S": 12, "R": 13, "D": 14, "L": 15, "U": 16, "M": 17, "W": 18, "C": 19, "F": 20, "G": 21, "Y": 22, "P": 23, "B": 24, "V": 25, "K": 26, "'": 27, "X": 28, "J": 29, "Q": 30, "Z": 31}
|