Update tiny models for KyutaiSpeechToTextForConditionalGeneration
Browse files- config.json +85 -0
- generation_config.json +13 -0
- model.safetensors +3 -0
- preprocessor_config.json +12 -0
- tokenizer.json +0 -0
- tokenizer_config.json +18 -0
config.json
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"KyutaiSpeechToTextForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"attention_dropout": 0.1,
|
| 6 |
+
"audio_bos_token_id": 2048,
|
| 7 |
+
"audio_pad_token_id": 2048,
|
| 8 |
+
"bos_token_id": 1,
|
| 9 |
+
"codebook_vocab_size": 2049,
|
| 10 |
+
"codec_config": {
|
| 11 |
+
"_frame_rate": null,
|
| 12 |
+
"attention_bias": false,
|
| 13 |
+
"attention_dropout": 0.0,
|
| 14 |
+
"audio_channels": 1,
|
| 15 |
+
"chunk_in_sec": null,
|
| 16 |
+
"codebook_dim": 16,
|
| 17 |
+
"codebook_size": 16,
|
| 18 |
+
"compress": 2,
|
| 19 |
+
"dilation_growth_rate": 2,
|
| 20 |
+
"head_dim": 8,
|
| 21 |
+
"hidden_act": "gelu",
|
| 22 |
+
"hidden_size": 16,
|
| 23 |
+
"initializer_range": 0.02,
|
| 24 |
+
"intermediate_size": 2048,
|
| 25 |
+
"kernel_size": 7,
|
| 26 |
+
"last_kernel_size": 3,
|
| 27 |
+
"layer_scale_initial_scale": 0.01,
|
| 28 |
+
"max_position_embeddings": 8000,
|
| 29 |
+
"model_type": "mimi",
|
| 30 |
+
"norm_eps": 1e-05,
|
| 31 |
+
"num_attention_heads": 2,
|
| 32 |
+
"num_filters": 8,
|
| 33 |
+
"num_hidden_layers": 2,
|
| 34 |
+
"num_key_value_heads": 2,
|
| 35 |
+
"num_quantizers": 8,
|
| 36 |
+
"num_residual_layers": 1,
|
| 37 |
+
"num_semantic_quantizers": 1,
|
| 38 |
+
"pad_mode": "constant",
|
| 39 |
+
"residual_kernel_size": 3,
|
| 40 |
+
"rope_parameters": {
|
| 41 |
+
"rope_theta": 10000.0,
|
| 42 |
+
"rope_type": "default"
|
| 43 |
+
},
|
| 44 |
+
"sampling_rate": 24000,
|
| 45 |
+
"sliding_window": 4,
|
| 46 |
+
"tie_word_embeddings": true,
|
| 47 |
+
"trim_right_ratio": 1.0,
|
| 48 |
+
"upsample_groups": 16,
|
| 49 |
+
"upsampling_ratios": [
|
| 50 |
+
8,
|
| 51 |
+
4
|
| 52 |
+
],
|
| 53 |
+
"use_cache": false,
|
| 54 |
+
"use_causal_conv": true,
|
| 55 |
+
"use_conv_shortcut": false,
|
| 56 |
+
"use_streaming": false,
|
| 57 |
+
"vector_quantization_hidden_dimension": 16
|
| 58 |
+
},
|
| 59 |
+
"delay_in_tokens": 5,
|
| 60 |
+
"dtype": "float32",
|
| 61 |
+
"eos_token_id": null,
|
| 62 |
+
"ffn_dim": 38,
|
| 63 |
+
"frame_size": 64,
|
| 64 |
+
"head_dim": 8,
|
| 65 |
+
"hidden_act": "silu",
|
| 66 |
+
"hidden_size": 32,
|
| 67 |
+
"initializer_range": 0.02,
|
| 68 |
+
"max_position_embeddings": 512,
|
| 69 |
+
"model_type": "kyutai_speech_to_text",
|
| 70 |
+
"num_attention_heads": 4,
|
| 71 |
+
"num_codebooks": 8,
|
| 72 |
+
"num_hidden_layers": 2,
|
| 73 |
+
"num_key_value_heads": 4,
|
| 74 |
+
"pad_token_id": 0,
|
| 75 |
+
"rms_norm_eps": 1e-06,
|
| 76 |
+
"rope_parameters": {
|
| 77 |
+
"rope_theta": 10000.0,
|
| 78 |
+
"rope_type": "default"
|
| 79 |
+
},
|
| 80 |
+
"sliding_window": 512,
|
| 81 |
+
"tie_word_embeddings": false,
|
| 82 |
+
"transformers_version": "5.16.0.dev0",
|
| 83 |
+
"use_cache": true,
|
| 84 |
+
"vocab_size": 4000
|
| 85 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"codec__from_model_config": true,
|
| 5 |
+
"codec_output_attentions": false,
|
| 6 |
+
"codec_output_hidden_states": false,
|
| 7 |
+
"codec_use_cache": false,
|
| 8 |
+
"output_attentions": false,
|
| 9 |
+
"output_hidden_states": false,
|
| 10 |
+
"pad_token_id": 0,
|
| 11 |
+
"transformers_version": "5.16.0.dev0",
|
| 12 |
+
"use_cache": true
|
| 13 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c3ec580e827a92872e23a48b57ba841fe09d36d975eba38b06144af448f0672
|
| 3 |
+
size 4365804
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"audio_delay_seconds": 2.5,
|
| 3 |
+
"audio_silence_prefix_seconds": 1.0,
|
| 4 |
+
"chunk_length_s": null,
|
| 5 |
+
"feature_extractor_type": "KyutaiSpeechToTextFeatureExtractor",
|
| 6 |
+
"feature_size": 1,
|
| 7 |
+
"overlap": null,
|
| 8 |
+
"padding_side": "right",
|
| 9 |
+
"padding_value": 0.0,
|
| 10 |
+
"return_attention_mask": true,
|
| 11 |
+
"sampling_rate": 24000
|
| 12 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token_id": null,
|
| 4 |
+
"chat_template": null,
|
| 5 |
+
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eos_token_id": null,
|
| 7 |
+
"is_local": true,
|
| 8 |
+
"local_files_only": false,
|
| 9 |
+
"model_input_names": [
|
| 10 |
+
"input_ids",
|
| 11 |
+
"attention_mask"
|
| 12 |
+
],
|
| 13 |
+
"model_max_length": 512,
|
| 14 |
+
"pad_token_id": null,
|
| 15 |
+
"processor_class": "KyutaiSpeechToTextProcessor",
|
| 16 |
+
"tokenizer_class": "TokenizersBackend",
|
| 17 |
+
"unk_token": "<unk>"
|
| 18 |
+
}
|