Upload 4 files
Browse files- config.json +5 -4
- generation_config.json +3 -3
- preprocessor_config.json +9 -0
config.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
{
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"MoonshineForConditionalGeneration"
|
| 4 |
],
|
| 5 |
"attention_bias": false,
|
| 6 |
"attention_dropout": 0.0,
|
| 7 |
"bos_token_id": 1,
|
|
|
|
| 8 |
"decoder_hidden_act": "silu",
|
| 9 |
"decoder_num_attention_heads": 8,
|
| 10 |
"decoder_num_hidden_layers": 8,
|
|
@@ -21,13 +23,12 @@
|
|
| 21 |
"is_encoder_decoder": true,
|
| 22 |
"max_position_embeddings": 194,
|
| 23 |
"model_type": "moonshine",
|
| 24 |
-
"pad_head_dim_to_multiple_of": 8,
|
| 25 |
-
"pad_token_id": 2,
|
| 26 |
"partial_rotary_factor": 0.62,
|
| 27 |
"rope_scaling": null,
|
| 28 |
"rope_theta": 10000.0,
|
| 29 |
"torch_dtype": "float32",
|
| 30 |
-
"transformers_version": "4.
|
| 31 |
"use_cache": true,
|
| 32 |
-
"vocab_size": 32768
|
|
|
|
| 33 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "/home/eustache_lebihan/dev/add-moonshine/moonshine-base",
|
| 3 |
"architectures": [
|
| 4 |
"MoonshineForConditionalGeneration"
|
| 5 |
],
|
| 6 |
"attention_bias": false,
|
| 7 |
"attention_dropout": 0.0,
|
| 8 |
"bos_token_id": 1,
|
| 9 |
+
"pad_token_id": 2,
|
| 10 |
"decoder_hidden_act": "silu",
|
| 11 |
"decoder_num_attention_heads": 8,
|
| 12 |
"decoder_num_hidden_layers": 8,
|
|
|
|
| 23 |
"is_encoder_decoder": true,
|
| 24 |
"max_position_embeddings": 194,
|
| 25 |
"model_type": "moonshine",
|
|
|
|
|
|
|
| 26 |
"partial_rotary_factor": 0.62,
|
| 27 |
"rope_scaling": null,
|
| 28 |
"rope_theta": 10000.0,
|
| 29 |
"torch_dtype": "float32",
|
| 30 |
+
"transformers_version": "4.48.0.dev0",
|
| 31 |
"use_cache": true,
|
| 32 |
+
"vocab_size": 32768,
|
| 33 |
+
"pad_head_dim_to_multiple_of": 8
|
| 34 |
}
|
generation_config.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
{
|
| 2 |
"_from_model_config": true,
|
| 3 |
"bos_token_id": 1,
|
|
|
|
| 4 |
"decoder_start_token_id": 1,
|
| 5 |
"eos_token_id": 2,
|
| 6 |
-
"
|
| 7 |
-
"
|
| 8 |
-
"transformers_version": "4.52.4"
|
| 9 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"_from_model_config": true,
|
| 3 |
"bos_token_id": 1,
|
| 4 |
+
"pad_token_id": 2,
|
| 5 |
"decoder_start_token_id": 1,
|
| 6 |
"eos_token_id": 2,
|
| 7 |
+
"transformers_version": "4.48.0.dev0",
|
| 8 |
+
"max_length": 194
|
|
|
|
| 9 |
}
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_normalize": false,
|
| 3 |
+
"feature_extractor_type": "Wav2Vec2FeatureExtractor",
|
| 4 |
+
"feature_size": 1,
|
| 5 |
+
"padding_side": "right",
|
| 6 |
+
"padding_value": 0.0,
|
| 7 |
+
"return_attention_mask": true,
|
| 8 |
+
"sampling_rate": 16000
|
| 9 |
+
}
|