loubna1101 commited on
Commit
05cc2ac
·
verified ·
1 Parent(s): 20524bb

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,314 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "return_dict": true,
3
+ "output_hidden_states": false,
4
+ "torchscript": false,
5
+ "dtype": null,
6
+ "pruned_heads": {},
7
+ "tie_word_embeddings": true,
8
+ "chunk_size_feed_forward": 0,
9
+ "is_encoder_decoder": false,
10
+ "is_decoder": false,
11
+ "cross_attention_hidden_size": null,
12
+ "add_cross_attention": false,
13
+ "tie_encoder_decoder": false,
14
+ "architectures": [
15
+ "Qwen3TTSForConditionalGeneration"
16
+ ],
17
+ "finetuning_task": null,
18
+ "id2label": {
19
+ "0": "LABEL_0",
20
+ "1": "LABEL_1"
21
+ },
22
+ "label2id": {
23
+ "LABEL_0": 0,
24
+ "LABEL_1": 1
25
+ },
26
+ "task_specific_params": null,
27
+ "problem_type": null,
28
+ "tokenizer_class": null,
29
+ "prefix": null,
30
+ "bos_token_id": null,
31
+ "pad_token_id": null,
32
+ "eos_token_id": null,
33
+ "sep_token_id": null,
34
+ "decoder_start_token_id": null,
35
+ "max_length": 20,
36
+ "min_length": 0,
37
+ "do_sample": false,
38
+ "early_stopping": false,
39
+ "num_beams": 1,
40
+ "temperature": 1.0,
41
+ "top_k": 50,
42
+ "top_p": 1.0,
43
+ "typical_p": 1.0,
44
+ "repetition_penalty": 1.0,
45
+ "length_penalty": 1.0,
46
+ "no_repeat_ngram_size": 0,
47
+ "encoder_no_repeat_ngram_size": 0,
48
+ "bad_words_ids": null,
49
+ "num_return_sequences": 1,
50
+ "output_scores": false,
51
+ "return_dict_in_generate": false,
52
+ "forced_bos_token_id": null,
53
+ "forced_eos_token_id": null,
54
+ "remove_invalid_values": false,
55
+ "exponential_decay_length_penalty": null,
56
+ "suppress_tokens": null,
57
+ "begin_suppress_tokens": null,
58
+ "num_beam_groups": 1,
59
+ "diversity_penalty": 0.0,
60
+ "_name_or_path": "Qwen/Qwen3-TTS-12Hz-1.7B-Base",
61
+ "transformers_version": "4.57.3",
62
+ "assistant_token_id": 77091,
63
+ "model_type": "qwen3_tts",
64
+ "tf_legacy_loss": false,
65
+ "use_bfloat16": false,
66
+ "talker_config": {
67
+ "return_dict": true,
68
+ "output_hidden_states": false,
69
+ "torchscript": false,
70
+ "dtype": null,
71
+ "pruned_heads": {},
72
+ "tie_word_embeddings": false,
73
+ "chunk_size_feed_forward": 0,
74
+ "is_encoder_decoder": false,
75
+ "is_decoder": false,
76
+ "cross_attention_hidden_size": null,
77
+ "add_cross_attention": false,
78
+ "tie_encoder_decoder": false,
79
+ "architectures": null,
80
+ "finetuning_task": null,
81
+ "id2label": {
82
+ "0": "LABEL_0",
83
+ "1": "LABEL_1"
84
+ },
85
+ "label2id": {
86
+ "LABEL_0": 0,
87
+ "LABEL_1": 1
88
+ },
89
+ "task_specific_params": null,
90
+ "problem_type": null,
91
+ "tokenizer_class": null,
92
+ "prefix": null,
93
+ "bos_token_id": null,
94
+ "pad_token_id": null,
95
+ "eos_token_id": null,
96
+ "sep_token_id": null,
97
+ "decoder_start_token_id": null,
98
+ "max_length": 20,
99
+ "min_length": 0,
100
+ "do_sample": false,
101
+ "early_stopping": false,
102
+ "num_beams": 1,
103
+ "temperature": 1.0,
104
+ "top_k": 50,
105
+ "top_p": 1.0,
106
+ "typical_p": 1.0,
107
+ "repetition_penalty": 1.0,
108
+ "length_penalty": 1.0,
109
+ "no_repeat_ngram_size": 0,
110
+ "encoder_no_repeat_ngram_size": 0,
111
+ "bad_words_ids": null,
112
+ "num_return_sequences": 1,
113
+ "output_scores": false,
114
+ "return_dict_in_generate": false,
115
+ "forced_bos_token_id": null,
116
+ "forced_eos_token_id": null,
117
+ "remove_invalid_values": false,
118
+ "exponential_decay_length_penalty": null,
119
+ "suppress_tokens": null,
120
+ "begin_suppress_tokens": null,
121
+ "num_beam_groups": 1,
122
+ "diversity_penalty": 0.0,
123
+ "_name_or_path": "",
124
+ "head_dim": 128,
125
+ "model_type": "qwen3_tts_talker",
126
+ "position_id_per_seconds": 13,
127
+ "text_vocab_size": 151936,
128
+ "tf_legacy_loss": false,
129
+ "use_bfloat16": false,
130
+ "vocab_size": 3072,
131
+ "max_position_embeddings": 32768,
132
+ "hidden_size": 2048,
133
+ "intermediate_size": 6144,
134
+ "num_hidden_layers": 28,
135
+ "num_attention_heads": 16,
136
+ "use_sliding_window": false,
137
+ "sliding_window": null,
138
+ "num_key_value_heads": 8,
139
+ "hidden_act": "silu",
140
+ "initializer_range": 0.02,
141
+ "rms_norm_eps": 1e-06,
142
+ "use_cache": true,
143
+ "rope_theta": 1000000,
144
+ "rope_scaling": {
145
+ "interleaved": true,
146
+ "mrope_section": [
147
+ 24,
148
+ 20,
149
+ 20
150
+ ],
151
+ "rope_type": "default",
152
+ "type": "default"
153
+ },
154
+ "attention_bias": false,
155
+ "attention_dropout": 0,
156
+ "code_predictor_config": {
157
+ "return_dict": true,
158
+ "output_hidden_states": false,
159
+ "torchscript": false,
160
+ "dtype": null,
161
+ "pruned_heads": {},
162
+ "tie_word_embeddings": false,
163
+ "chunk_size_feed_forward": 0,
164
+ "is_encoder_decoder": false,
165
+ "is_decoder": false,
166
+ "cross_attention_hidden_size": null,
167
+ "add_cross_attention": false,
168
+ "tie_encoder_decoder": false,
169
+ "architectures": null,
170
+ "finetuning_task": null,
171
+ "id2label": {
172
+ "0": "LABEL_0",
173
+ "1": "LABEL_1"
174
+ },
175
+ "label2id": {
176
+ "LABEL_0": 0,
177
+ "LABEL_1": 1
178
+ },
179
+ "task_specific_params": null,
180
+ "problem_type": null,
181
+ "tokenizer_class": null,
182
+ "prefix": null,
183
+ "bos_token_id": null,
184
+ "pad_token_id": null,
185
+ "eos_token_id": null,
186
+ "sep_token_id": null,
187
+ "decoder_start_token_id": null,
188
+ "max_length": 20,
189
+ "min_length": 0,
190
+ "do_sample": false,
191
+ "early_stopping": false,
192
+ "num_beams": 1,
193
+ "temperature": 1.0,
194
+ "top_k": 50,
195
+ "top_p": 1.0,
196
+ "typical_p": 1.0,
197
+ "repetition_penalty": 1.0,
198
+ "length_penalty": 1.0,
199
+ "no_repeat_ngram_size": 0,
200
+ "encoder_no_repeat_ngram_size": 0,
201
+ "bad_words_ids": null,
202
+ "num_return_sequences": 1,
203
+ "output_scores": false,
204
+ "return_dict_in_generate": false,
205
+ "forced_bos_token_id": null,
206
+ "forced_eos_token_id": null,
207
+ "remove_invalid_values": false,
208
+ "exponential_decay_length_penalty": null,
209
+ "suppress_tokens": null,
210
+ "begin_suppress_tokens": null,
211
+ "num_beam_groups": 1,
212
+ "diversity_penalty": 0.0,
213
+ "_name_or_path": "",
214
+ "model_type": "qwen3_tts_talker_code_predictor",
215
+ "tf_legacy_loss": false,
216
+ "use_bfloat16": false,
217
+ "vocab_size": 2048,
218
+ "max_position_embeddings": 65536,
219
+ "hidden_size": 1024,
220
+ "intermediate_size": 3072,
221
+ "num_hidden_layers": 5,
222
+ "num_attention_heads": 16,
223
+ "use_sliding_window": false,
224
+ "sliding_window": null,
225
+ "max_window_layers": 28,
226
+ "num_key_value_heads": 8,
227
+ "head_dim": 128,
228
+ "hidden_act": "silu",
229
+ "initializer_range": 0.02,
230
+ "rms_norm_eps": 1e-06,
231
+ "use_cache": true,
232
+ "rope_theta": 1000000,
233
+ "rope_scaling": null,
234
+ "attention_bias": false,
235
+ "attention_dropout": 0,
236
+ "layer_types": [
237
+ "full_attention",
238
+ "full_attention",
239
+ "full_attention",
240
+ "full_attention",
241
+ "full_attention"
242
+ ],
243
+ "num_code_groups": 16,
244
+ "output_attentions": false
245
+ },
246
+ "num_code_groups": 16,
247
+ "text_hidden_size": 2048,
248
+ "codec_eos_token_id": 2150,
249
+ "codec_think_id": 2154,
250
+ "codec_language_id": {
251
+ "chinese": 2055,
252
+ "english": 2050,
253
+ "german": 2053,
254
+ "italian": 2070,
255
+ "portuguese": 2071,
256
+ "spanish": 2054,
257
+ "japanese": 2058,
258
+ "korean": 2064,
259
+ "french": 2061,
260
+ "russian": 2069
261
+ },
262
+ "codec_nothink_id": 2155,
263
+ "codec_think_bos_id": 2156,
264
+ "codec_think_eos_id": 2157,
265
+ "codec_pad_id": 2148,
266
+ "codec_bos_id": 2149,
267
+ "spk_id": {
268
+ "darija_speaker": 3000
269
+ },
270
+ "spk_is_dialect": {
271
+ "darija_speaker": false
272
+ },
273
+ "output_attentions": false
274
+ },
275
+ "speaker_encoder_config": {
276
+ "mel_dim": 128,
277
+ "enc_dim": 2048,
278
+ "enc_channels": [
279
+ 512,
280
+ 512,
281
+ 512,
282
+ 512,
283
+ 1536
284
+ ],
285
+ "enc_kernel_sizes": [
286
+ 5,
287
+ 3,
288
+ 3,
289
+ 3,
290
+ 1
291
+ ],
292
+ "enc_dilations": [
293
+ 1,
294
+ 2,
295
+ 3,
296
+ 4,
297
+ 1
298
+ ],
299
+ "enc_attention_channels": 128,
300
+ "enc_res2net_scale": 8,
301
+ "enc_se_channels": 128,
302
+ "sample_rate": 24000,
303
+ "model_type": ""
304
+ },
305
+ "tokenizer_type": "qwen3_tts_tokenizer_12hz",
306
+ "tts_model_size": "1b7",
307
+ "tts_model_type": "custom_voice",
308
+ "im_start_token_id": 151644,
309
+ "im_end_token_id": 151645,
310
+ "tts_pad_token_id": 151671,
311
+ "tts_bos_token_id": 151672,
312
+ "tts_eos_token_id": 151673,
313
+ "output_attentions": false
314
+ }
speaker_embedding.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:245d00ee4d8ffaecee74e9f39b9250ac7654abf95645f4c0312dc15a3b42c873
3
+ size 9903
talker_lora/README.md ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: ''
3
+ library_name: peft
4
+ tags:
5
+ - 'base_model:adapter:'
6
+ - lora
7
+ - transformers
8
+ ---
9
+
10
+ # Model Card for Model ID
11
+
12
+ <!-- Provide a quick summary of what the model is/does. -->
13
+
14
+
15
+
16
+ ## Model Details
17
+
18
+ ### Model Description
19
+
20
+ <!-- Provide a longer summary of what this model is. -->
21
+
22
+
23
+
24
+ - **Developed by:** [More Information Needed]
25
+ - **Funded by [optional]:** [More Information Needed]
26
+ - **Shared by [optional]:** [More Information Needed]
27
+ - **Model type:** [More Information Needed]
28
+ - **Language(s) (NLP):** [More Information Needed]
29
+ - **License:** [More Information Needed]
30
+ - **Finetuned from model [optional]:** [More Information Needed]
31
+
32
+ ### Model Sources [optional]
33
+
34
+ <!-- Provide the basic links for the model. -->
35
+
36
+ - **Repository:** [More Information Needed]
37
+ - **Paper [optional]:** [More Information Needed]
38
+ - **Demo [optional]:** [More Information Needed]
39
+
40
+ ## Uses
41
+
42
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
43
+
44
+ ### Direct Use
45
+
46
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
47
+
48
+ [More Information Needed]
49
+
50
+ ### Downstream Use [optional]
51
+
52
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
53
+
54
+ [More Information Needed]
55
+
56
+ ### Out-of-Scope Use
57
+
58
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
59
+
60
+ [More Information Needed]
61
+
62
+ ## Bias, Risks, and Limitations
63
+
64
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
65
+
66
+ [More Information Needed]
67
+
68
+ ### Recommendations
69
+
70
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
71
+
72
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
73
+
74
+ ## How to Get Started with the Model
75
+
76
+ Use the code below to get started with the model.
77
+
78
+ [More Information Needed]
79
+
80
+ ## Training Details
81
+
82
+ ### Training Data
83
+
84
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
85
+
86
+ [More Information Needed]
87
+
88
+ ### Training Procedure
89
+
90
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
91
+
92
+ #### Preprocessing [optional]
93
+
94
+ [More Information Needed]
95
+
96
+
97
+ #### Training Hyperparameters
98
+
99
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
100
+
101
+ #### Speeds, Sizes, Times [optional]
102
+
103
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
104
+
105
+ [More Information Needed]
106
+
107
+ ## Evaluation
108
+
109
+ <!-- This section describes the evaluation protocols and provides the results. -->
110
+
111
+ ### Testing Data, Factors & Metrics
112
+
113
+ #### Testing Data
114
+
115
+ <!-- This should link to a Dataset Card if possible. -->
116
+
117
+ [More Information Needed]
118
+
119
+ #### Factors
120
+
121
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
122
+
123
+ [More Information Needed]
124
+
125
+ #### Metrics
126
+
127
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
128
+
129
+ [More Information Needed]
130
+
131
+ ### Results
132
+
133
+ [More Information Needed]
134
+
135
+ #### Summary
136
+
137
+
138
+
139
+ ## Model Examination [optional]
140
+
141
+ <!-- Relevant interpretability work for the model goes here -->
142
+
143
+ [More Information Needed]
144
+
145
+ ## Environmental Impact
146
+
147
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
148
+
149
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
150
+
151
+ - **Hardware Type:** [More Information Needed]
152
+ - **Hours used:** [More Information Needed]
153
+ - **Cloud Provider:** [More Information Needed]
154
+ - **Compute Region:** [More Information Needed]
155
+ - **Carbon Emitted:** [More Information Needed]
156
+
157
+ ## Technical Specifications [optional]
158
+
159
+ ### Model Architecture and Objective
160
+
161
+ [More Information Needed]
162
+
163
+ ### Compute Infrastructure
164
+
165
+ [More Information Needed]
166
+
167
+ #### Hardware
168
+
169
+ [More Information Needed]
170
+
171
+ #### Software
172
+
173
+ [More Information Needed]
174
+
175
+ ## Citation [optional]
176
+
177
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
178
+
179
+ **BibTeX:**
180
+
181
+ [More Information Needed]
182
+
183
+ **APA:**
184
+
185
+ [More Information Needed]
186
+
187
+ ## Glossary [optional]
188
+
189
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
190
+
191
+ [More Information Needed]
192
+
193
+ ## More Information [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Authors [optional]
198
+
199
+ [More Information Needed]
200
+
201
+ ## Model Card Contact
202
+
203
+ [More Information Needed]
204
+ ### Framework versions
205
+
206
+ - PEFT 0.18.1
talker_lora/adapter_config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": {
6
+ "base_model_class": "Qwen3TTSTalkerModel",
7
+ "parent_library": "qwen_tts.core.models.modeling_qwen3_tts"
8
+ },
9
+ "base_model_name_or_path": "",
10
+ "bias": "none",
11
+ "corda_config": null,
12
+ "ensure_weight_tying": false,
13
+ "eva_config": null,
14
+ "exclude_modules": null,
15
+ "fan_in_fan_out": false,
16
+ "inference_mode": true,
17
+ "init_lora_weights": true,
18
+ "layer_replication": null,
19
+ "layers_pattern": null,
20
+ "layers_to_transform": null,
21
+ "loftq_config": {},
22
+ "lora_alpha": 16,
23
+ "lora_bias": false,
24
+ "lora_dropout": 0.05,
25
+ "megatron_config": null,
26
+ "megatron_core": "megatron.core",
27
+ "modules_to_save": null,
28
+ "peft_type": "LORA",
29
+ "peft_version": "0.18.1",
30
+ "qalora_group_size": 16,
31
+ "r": 8,
32
+ "rank_pattern": {},
33
+ "revision": null,
34
+ "target_modules": [
35
+ "o_proj",
36
+ "v_proj",
37
+ "q_proj",
38
+ "k_proj"
39
+ ],
40
+ "target_parameters": null,
41
+ "task_type": null,
42
+ "trainable_token_indices": null,
43
+ "use_dora": false,
44
+ "use_qalora": false,
45
+ "use_rslora": false
46
+ }
talker_lora/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7fccaf434b4cb39e2290699de41e1de4db6c6bdf8ba7a817c2146b1c27a5eebb
3
+ size 12873296
training_meta.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base_model": "Qwen/Qwen3-TTS-12Hz-1.7B-Base",
3
+ "speaker_name": "darija_speaker",
4
+ "speaker_id": 3000,
5
+ "epoch": 9,
6
+ "lora": {
7
+ "r": 8,
8
+ "alpha": 16,
9
+ "dropout": 0.05,
10
+ "target_modules": [
11
+ "q_proj",
12
+ "k_proj",
13
+ "v_proj",
14
+ "o_proj"
15
+ ]
16
+ }
17
+ }