trfms integration
Browse files- config.json +15 -28
- model.safetensors +2 -2
- preprocessor_config.json +3 -10
- special_tokens_map.json +16 -0
- tokenizer.json +0 -0
- tokenizer_config.json +11 -3
config.json
CHANGED
|
@@ -1,50 +1,37 @@
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
-
"
|
| 4 |
],
|
| 5 |
-
"blank_token_id": 1024,
|
| 6 |
-
"bos_token_id": 1,
|
| 7 |
"ctc_loss_reduction": "mean",
|
| 8 |
"ctc_zero_infinity": true,
|
|
|
|
| 9 |
"encoder_config": {
|
| 10 |
"activation_dropout": 0.1,
|
| 11 |
-
"
|
| 12 |
-
"architectures": [
|
| 13 |
-
"FastConformerModel"
|
| 14 |
-
],
|
| 15 |
"attention_dropout": 0.1,
|
| 16 |
-
"attention_probs_dropout_prob": 0.1,
|
| 17 |
"conv_kernel_size": 9,
|
| 18 |
-
"d_model": 1024,
|
| 19 |
"dropout": 0.1,
|
| 20 |
-
"
|
| 21 |
-
"encoder_attention_heads": 8,
|
| 22 |
-
"encoder_ffn_dim": 4096,
|
| 23 |
-
"encoder_layerdrop": 0.1,
|
| 24 |
-
"encoder_layers": 42,
|
| 25 |
"hidden_act": "silu",
|
| 26 |
-
"hidden_dropout_prob": 0.1,
|
| 27 |
"hidden_size": 1024,
|
| 28 |
"initializer_range": 0.02,
|
| 29 |
"intermediate_size": 4096,
|
| 30 |
-
"
|
| 31 |
-
"
|
| 32 |
-
"
|
| 33 |
-
"nemo_model_type": "parakeet_ctc",
|
| 34 |
"num_attention_heads": 8,
|
| 35 |
"num_hidden_layers": 42,
|
|
|
|
| 36 |
"num_mel_bins": 80,
|
|
|
|
| 37 |
"subsampling_conv_channels": 256,
|
| 38 |
-
"
|
| 39 |
-
"
|
| 40 |
-
"
|
| 41 |
-
"vocab_size": 1024,
|
| 42 |
-
"xscaling": true
|
| 43 |
},
|
| 44 |
-
"
|
| 45 |
"model_type": "parakeet_ctc",
|
| 46 |
-
"pad_token_id":
|
| 47 |
-
"
|
| 48 |
-
"transformers_version": "4.54.0.dev0",
|
| 49 |
"vocab_size": 1025
|
| 50 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
+
"ParakeetForCTC"
|
| 4 |
],
|
|
|
|
|
|
|
| 5 |
"ctc_loss_reduction": "mean",
|
| 6 |
"ctc_zero_infinity": true,
|
| 7 |
+
"dtype": "bfloat16",
|
| 8 |
"encoder_config": {
|
| 9 |
"activation_dropout": 0.1,
|
| 10 |
+
"attention_bias": true,
|
|
|
|
|
|
|
|
|
|
| 11 |
"attention_dropout": 0.1,
|
|
|
|
| 12 |
"conv_kernel_size": 9,
|
|
|
|
| 13 |
"dropout": 0.1,
|
| 14 |
+
"dropout_positions": 0.0,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
"hidden_act": "silu",
|
|
|
|
| 16 |
"hidden_size": 1024,
|
| 17 |
"initializer_range": 0.02,
|
| 18 |
"intermediate_size": 4096,
|
| 19 |
+
"layerdrop": 0.1,
|
| 20 |
+
"max_position_embeddings": 5000,
|
| 21 |
+
"model_type": "parakeet_encoder",
|
|
|
|
| 22 |
"num_attention_heads": 8,
|
| 23 |
"num_hidden_layers": 42,
|
| 24 |
+
"num_key_value_heads": 8,
|
| 25 |
"num_mel_bins": 80,
|
| 26 |
+
"scale_input": true,
|
| 27 |
"subsampling_conv_channels": 256,
|
| 28 |
+
"subsampling_conv_kernel_size": 3,
|
| 29 |
+
"subsampling_conv_stride": 2,
|
| 30 |
+
"subsampling_factor": 8
|
|
|
|
|
|
|
| 31 |
},
|
| 32 |
+
"initializer_range": 0.02,
|
| 33 |
"model_type": "parakeet_ctc",
|
| 34 |
+
"pad_token_id": 1024,
|
| 35 |
+
"transformers_version": "4.57.0.dev0",
|
|
|
|
| 36 |
"vocab_size": 1025
|
| 37 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57e0bc26772f3360b7ae0c087f184364179906674d08fc8b71d48a54d4f52145
|
| 3 |
+
size 4250698604
|
preprocessor_config.json
CHANGED
|
@@ -1,20 +1,13 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
| 3 |
-
"f_min": 0,
|
| 4 |
-
"feature_extractor_type": "FastConformerFeatureExtractor",
|
| 5 |
"feature_size": 80,
|
| 6 |
"hop_length": 160,
|
| 7 |
-
"mag_power": 2.0,
|
| 8 |
-
"mel_scale": "slaney",
|
| 9 |
"n_fft": 512,
|
| 10 |
-
"n_mels": 80,
|
| 11 |
-
"normalize": "per_feature",
|
| 12 |
"padding_side": "right",
|
| 13 |
"padding_value": 0.0,
|
| 14 |
"preemphasis": 0.97,
|
|
|
|
| 15 |
"return_attention_mask": true,
|
| 16 |
"sampling_rate": 16000,
|
| 17 |
-
"win_length": 400
|
| 18 |
-
"window_size": 0.025,
|
| 19 |
-
"window_stride": 0.01
|
| 20 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"feature_extractor_type": "ParakeetFeatureExtractor",
|
|
|
|
|
|
|
| 3 |
"feature_size": 80,
|
| 4 |
"hop_length": 160,
|
|
|
|
|
|
|
| 5 |
"n_fft": 512,
|
|
|
|
|
|
|
| 6 |
"padding_side": "right",
|
| 7 |
"padding_value": 0.0,
|
| 8 |
"preemphasis": 0.97,
|
| 9 |
+
"processor_class": "ParakeetProcessor",
|
| 10 |
"return_attention_mask": true,
|
| 11 |
"sampling_rate": 16000,
|
| 12 |
+
"win_length": 400
|
|
|
|
|
|
|
| 13 |
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"pad_token": {
|
| 3 |
+
"content": "<pad>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"unk_token": {
|
| 10 |
+
"content": "<unk>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
}
|
| 16 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
CHANGED
|
@@ -7,13 +7,21 @@
|
|
| 7 |
"rstrip": false,
|
| 8 |
"single_word": false,
|
| 9 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
}
|
| 11 |
},
|
| 12 |
-
"blank_token_id": 1024,
|
| 13 |
"clean_up_tokenization_spaces": false,
|
| 14 |
-
"do_lower_case": false,
|
| 15 |
"extra_special_tokens": {},
|
| 16 |
"model_max_length": 1000000000000000019884624838656,
|
| 17 |
-
"
|
|
|
|
|
|
|
| 18 |
"unk_token": "<unk>"
|
| 19 |
}
|
|
|
|
| 7 |
"rstrip": false,
|
| 8 |
"single_word": false,
|
| 9 |
"special": true
|
| 10 |
+
},
|
| 11 |
+
"1024": {
|
| 12 |
+
"content": "<pad>",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
}
|
| 19 |
},
|
|
|
|
| 20 |
"clean_up_tokenization_spaces": false,
|
|
|
|
| 21 |
"extra_special_tokens": {},
|
| 22 |
"model_max_length": 1000000000000000019884624838656,
|
| 23 |
+
"pad_token": "<pad>",
|
| 24 |
+
"processor_class": "ParakeetProcessor",
|
| 25 |
+
"tokenizer_class": "ParakeetTokenizerFast",
|
| 26 |
"unk_token": "<unk>"
|
| 27 |
}
|