add model
Browse files- config.json +43 -0
- generation_config.json +10 -0
- model.safetensors +3 -0
- preprocessor_config.json +13 -0
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +6 -0
- tokenizer_config.json +50 -0
- vocab.json +0 -0
config.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_dropout": 0.0,
|
| 3 |
+
"activation_function": "relu",
|
| 4 |
+
"architectures": [
|
| 5 |
+
"Speech2TextForConditionalGeneration"
|
| 6 |
+
],
|
| 7 |
+
"attention_dropout": 0.1,
|
| 8 |
+
"bos_token_id": 0,
|
| 9 |
+
"classifier_dropout": 0.0,
|
| 10 |
+
"conv_channels": 32,
|
| 11 |
+
"conv_kernel_sizes": [
|
| 12 |
+
5,
|
| 13 |
+
5
|
| 14 |
+
],
|
| 15 |
+
"d_model": 16,
|
| 16 |
+
"decoder_attention_heads": 4,
|
| 17 |
+
"decoder_ffn_dim": 4,
|
| 18 |
+
"decoder_layerdrop": 0.0,
|
| 19 |
+
"decoder_layers": 2,
|
| 20 |
+
"decoder_start_token_id": 2,
|
| 21 |
+
"dropout": 0.1,
|
| 22 |
+
"encoder_attention_heads": 4,
|
| 23 |
+
"encoder_ffn_dim": 4,
|
| 24 |
+
"encoder_layerdrop": 0.0,
|
| 25 |
+
"encoder_layers": 2,
|
| 26 |
+
"eos_token_id": 2,
|
| 27 |
+
"init_std": 0.02,
|
| 28 |
+
"input_channels": 1,
|
| 29 |
+
"input_feat_per_channel": 24,
|
| 30 |
+
"is_encoder_decoder": true,
|
| 31 |
+
"max_position_embeddings": 20,
|
| 32 |
+
"max_source_positions": 20,
|
| 33 |
+
"max_target_positions": 20,
|
| 34 |
+
"model_type": "speech_to_text",
|
| 35 |
+
"num_conv_layers": 2,
|
| 36 |
+
"num_hidden_layers": 2,
|
| 37 |
+
"pad_token_id": 1,
|
| 38 |
+
"scale_embedding": true,
|
| 39 |
+
"torch_dtype": "float32",
|
| 40 |
+
"transformers_version": "4.52.2",
|
| 41 |
+
"use_cache": true,
|
| 42 |
+
"vocab_size": 10000
|
| 43 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 0,
|
| 4 |
+
"decoder_start_token_id": 2,
|
| 5 |
+
"eos_token_id": 2,
|
| 6 |
+
"max_length": 5,
|
| 7 |
+
"max_new_tokens": 5,
|
| 8 |
+
"pad_token_id": 1,
|
| 9 |
+
"transformers_version": "4.52.2"
|
| 10 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7261459bb4f43dfb595e3e576cef19b8ea2a095e29ed8837236014cd56865016
|
| 3 |
+
size 705880
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dither": 0.0,
|
| 3 |
+
"do_ceptral_normalize": true,
|
| 4 |
+
"feature_extractor_type": "Speech2TextFeatureExtractor",
|
| 5 |
+
"feature_size": 24,
|
| 6 |
+
"normalize_means": true,
|
| 7 |
+
"normalize_vars": true,
|
| 8 |
+
"num_mel_bins": 24,
|
| 9 |
+
"padding_side": "right",
|
| 10 |
+
"padding_value": 0.0,
|
| 11 |
+
"return_attention_mask": true,
|
| 12 |
+
"sampling_rate": 16000
|
| 13 |
+
}
|
sentencepiece.bpe.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:052a168787a9160b4b2ba54e4995e9600298812c34191ca3f70cea51cd4f5c1e
|
| 3 |
+
size 416684
|
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,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"0": {
|
| 4 |
+
"content": "<s>",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false,
|
| 9 |
+
"special": true
|
| 10 |
+
},
|
| 11 |
+
"1": {
|
| 12 |
+
"content": "<pad>",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"2": {
|
| 20 |
+
"content": "</s>",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false,
|
| 25 |
+
"special": true
|
| 26 |
+
},
|
| 27 |
+
"3": {
|
| 28 |
+
"content": "<unk>",
|
| 29 |
+
"lstrip": false,
|
| 30 |
+
"normalized": false,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"single_word": false,
|
| 33 |
+
"special": true
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"additional_special_tokens": [],
|
| 37 |
+
"bos_token": "<s>",
|
| 38 |
+
"clean_up_tokenization_spaces": false,
|
| 39 |
+
"do_lower_case": true,
|
| 40 |
+
"do_upper_case": false,
|
| 41 |
+
"eos_token": "</s>",
|
| 42 |
+
"extra_special_tokens": {},
|
| 43 |
+
"lang_codes": null,
|
| 44 |
+
"model_max_length": 20,
|
| 45 |
+
"pad_token": "<pad>",
|
| 46 |
+
"sp_model_kwargs": {},
|
| 47 |
+
"tgt_lang": null,
|
| 48 |
+
"tokenizer_class": "Speech2TextTokenizer",
|
| 49 |
+
"unk_token": "<unk>"
|
| 50 |
+
}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|