kalbin commited on
Commit
8a56a14
·
verified ·
1 Parent(s): 0996073

Upload v22 DPO (length-normalized, MOSHI_MODE=speech_only) on kalbin/moshi-on-policy-dpo-v20-kyutai

Browse files
config.json ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "MoshiForConditionalGeneration"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "audio_encoder_config": {
7
+ "_frame_rate": 12.5,
8
+ "_name_or_path": "kyutai/mimi",
9
+ "add_cross_attention": false,
10
+ "architectures": [
11
+ "MimiModel"
12
+ ],
13
+ "attention_bias": false,
14
+ "attention_dropout": 0.0,
15
+ "audio_channels": 1,
16
+ "bos_token_id": null,
17
+ "codebook_dim": 256,
18
+ "codebook_size": 2048,
19
+ "compress": 2,
20
+ "cross_attention_hidden_size": null,
21
+ "decoder_start_token_id": null,
22
+ "dilation_growth_rate": 2,
23
+ "dtype": "bfloat16",
24
+ "eos_token_id": null,
25
+ "finetuning_task": null,
26
+ "head_dim": 64,
27
+ "hidden_act": "gelu",
28
+ "hidden_size": 512,
29
+ "initializer_range": 0.02,
30
+ "intermediate_size": 2048,
31
+ "is_decoder": false,
32
+ "kernel_size": 7,
33
+ "last_kernel_size": 3,
34
+ "layer_scale_initial_scale": 0.01,
35
+ "max_position_embeddings": 8000,
36
+ "model_type": "mimi",
37
+ "norm_eps": 1e-05,
38
+ "normalize": false,
39
+ "num_attention_heads": 8,
40
+ "num_filters": 64,
41
+ "num_hidden_layers": 8,
42
+ "num_key_value_heads": 8,
43
+ "num_quantizers": 32,
44
+ "num_residual_layers": 1,
45
+ "num_semantic_quantizers": 1,
46
+ "pad_mode": "constant",
47
+ "pad_token_id": null,
48
+ "prefix": null,
49
+ "pruned_heads": {},
50
+ "residual_kernel_size": 3,
51
+ "rope_parameters": {
52
+ "rope_theta": 10000.0,
53
+ "rope_type": "default"
54
+ },
55
+ "sampling_rate": 24000,
56
+ "sep_token_id": null,
57
+ "sliding_window": 250,
58
+ "task_specific_params": null,
59
+ "tf_legacy_loss": false,
60
+ "tie_encoder_decoder": false,
61
+ "tie_word_embeddings": true,
62
+ "tokenizer_class": null,
63
+ "torchscript": false,
64
+ "trim_right_ratio": 1.0,
65
+ "upsample_groups": 512,
66
+ "upsampling_ratios": [
67
+ 8,
68
+ 6,
69
+ 5,
70
+ 4
71
+ ],
72
+ "use_bfloat16": false,
73
+ "use_cache": false,
74
+ "use_causal_conv": true,
75
+ "use_conv_shortcut": false,
76
+ "use_streaming": false,
77
+ "vector_quantization_hidden_dimension": 256
78
+ },
79
+ "audio_vocab_size": 2048,
80
+ "bos_token_id": null,
81
+ "depth_decoder_config": {
82
+ "add_cross_attention": false,
83
+ "attention_dropout": 0.0,
84
+ "audio_vocab_size": 2048,
85
+ "bos_token_id": null,
86
+ "cross_attention_hidden_size": null,
87
+ "decoder_start_token_id": null,
88
+ "dtype": "bfloat16",
89
+ "eos_token_id": null,
90
+ "ffn_dim": 5632,
91
+ "finetuning_task": null,
92
+ "head_dim": 64,
93
+ "hidden_act": "silu",
94
+ "hidden_size": 1024,
95
+ "initializer_range": 0.02,
96
+ "input_size": 4096,
97
+ "is_decoder": false,
98
+ "max_position_embeddings": 9,
99
+ "model_type": "moshi_depth",
100
+ "num_attention_heads": 16,
101
+ "num_codebooks": 8,
102
+ "num_hidden_layers": 6,
103
+ "num_key_value_heads": 16,
104
+ "pad_token_id": null,
105
+ "prefix": null,
106
+ "pruned_heads": {},
107
+ "rms_norm_eps": 1e-08,
108
+ "sep_token_id": null,
109
+ "sliding_window": 8,
110
+ "task_specific_params": null,
111
+ "tf_legacy_loss": false,
112
+ "tie_encoder_decoder": false,
113
+ "tie_word_embeddings": false,
114
+ "tokenizer_class": null,
115
+ "torchscript": false,
116
+ "use_bfloat16": false,
117
+ "use_cache": true,
118
+ "vocab_size": 32000
119
+ },
120
+ "dtype": "bfloat16",
121
+ "eos_token_id": null,
122
+ "ffn_dim": 22528,
123
+ "head_dim": 128,
124
+ "hidden_act": "silu",
125
+ "hidden_size": 4096,
126
+ "initializer_range": 0.02,
127
+ "max_position_embeddings": 3000,
128
+ "model_type": "moshi",
129
+ "num_attention_heads": 32,
130
+ "num_codebooks": 8,
131
+ "num_hidden_layers": 32,
132
+ "num_key_value_heads": 32,
133
+ "pad_token_id": null,
134
+ "rms_norm_eps": 1e-08,
135
+ "rope_parameters": {
136
+ "rope_theta": 10000.0,
137
+ "rope_type": "default"
138
+ },
139
+ "sliding_window": 3000,
140
+ "tie_word_embeddings": false,
141
+ "transformers_version": "5.8.0",
142
+ "use_cache": false,
143
+ "vocab_size": 32000
144
+ }
generation_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cache_implementation": "sliding_window",
3
+ "depth_decoder_config": {
4
+ "cache_implementation": "sliding_window",
5
+ "do_sample": true,
6
+ "max_length": 9,
7
+ "min_length": 9,
8
+ "temperature": 0.8,
9
+ "top_k": 250,
10
+ "transformers_version": "4.46.0.dev0"
11
+ },
12
+ "do_sample": true,
13
+ "temp": 0.7,
14
+ "top_k": 25,
15
+ "transformers_version": "5.8.0"
16
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d33bfc246a0d9044c2b686a1f04fb12c5d03550dadd4f3f4a3d17c3965a1e72
3
+ size 15567851962
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
8
+ "local_files_only": false,
9
+ "model_input_names": [
10
+ "input_ids",
11
+ "attention_mask"
12
+ ],
13
+ "model_max_length": 1000000000000000019884624838656,
14
+ "pad_token_id": null,
15
+ "tokenizer_class": "TokenizersBackend",
16
+ "unk_token": "<unk>"
17
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:412577bfcaf949cd8a0f4cb3c9d1594ece3be9e86354d96a4dddcbb9d4956356
3
+ size 5329