File size: 5,873 Bytes
98f824c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
{
  "architectures": [
    "LingV3TTSForConditionalGeneration"
  ],
  "model_type": "lingv3_tts",
  "auto_map": {
    "AutoConfig": "configuration_lingv3_tts.LingV3TTSConfig",
    "AutoModel": "modeling_lingv3_tts.LingV3TTSForConditionalGeneration"
  },
  "tie_word_embeddings": false,
  "llm_config": {
    "architectures": [
      "BailingMoeV3ForCausalLM"
    ],
    "model_type": "bailing_moe_v3",
    "vocab_size": 157184,
    "hidden_size": 1536,
    "intermediate_size": 4608,
    "num_hidden_layers": 24,
    "num_attention_heads": 16,
    "num_key_value_heads": 16,
    "hidden_act": "silu",
    "use_qkv_bias": false,
    "use_bias": false,
    "rms_norm_eps": 1e-06,
    "tie_word_embeddings": false,
    "embedding_dropout": 0.0,
    "attention_dropout": 0.0,
    "output_dropout": 0.0,
    "initializer_range": 0.006,
    "max_position_embeddings": 4096,
    "rope_theta": 10000,
    "use_cache": true,
    "max_window_layers": 24,
    "rope_scaling": null,
    "bos_token_id": 156891,
    "pad_token_id": 156892,
    "eos_token_id": [
      156892,
      156895
    ],
    "num_experts": 128,
    "num_shared_experts": 1,
    "num_experts_per_tok": 8,
    "n_group": 8,
    "topk_group": 4,
    "moe_intermediate_size": 512,
    "moe_shared_expert_intermediate_size": 512,
    "first_k_dense_replace": 1,
    "head_dim": 128,
    "output_router_logits": false,
    "use_qk_norm": true,
    "num_nextn_predict_layers": 0,
    "mtp_loss_scaling_factor": 0.1,
    "moe_router_enable_expert_bias": true,
    "routed_scaling_factor": 2.5,
    "moe_router_topk_scaling_factor": 2.5,
    "layer_group_size": 4,
    "kv_lora_rank": 512,
    "q_lora_rank": 256,
    "qk_rope_head_dim": 64,
    "v_head_dim": 128,
    "qk_nope_head_dim": 128,
    "rope_interleave": true,
    "score_function": "sigmoid",
    "scoring_func": "sigmoid",
    "seq_aux": true,
    "topk_method": "noaux_tc",
    "router_dtype": "fp32",
    "gated_attention_proj_granularity_type": "head_wise",
    "no_kda_lora": true,
    "kda_safe_gate": true,
    "kda_lower_bound": -5.0,
    "short_conv_kernel_size": 4,
    "moe_layer_freq": [
      0,
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1,
      1
    ],
    "torch_dtype": "bfloat16",
    "norm_topk_prob": true,
    "use_expert_bias": true,
    "moe_z_loss_coeff": 2.9e-06,
    "rotary_percent": 0.5,
    "position_embedding_type": "rope"
  },
  "audio_config": {
    "architectures": [
      "AudioVAE"
    ],
    "sample_rate": 44100,
    "enc_kwargs": {
      "backbone": {
        "_attn_implementation": "flash_attention_2",
        "attention_dropout": 0.0,
        "hidden_act": "silu",
        "hidden_size": 896,
        "initializer_range": 0.02,
        "intermediate_size": 4864,
        "is_causal": true,
        "max_position_embeddings": 32768,
        "max_window_layers": 0,
        "model_type": "qwen2",
        "num_attention_heads": 14,
        "num_hidden_layers": 24,
        "num_key_value_heads": 2,
        "rms_norm_eps": 1e-06,
        "rope_theta": 1000000.0,
        "sliding_window": 64,
        "tie_word_embeddings": true,
        "torch_dtype": "bfloat16",
        "use_cache": false,
        "use_sliding_window": true,
        "vocab_size": 1
      },
      "hop_size": 882,
      "input_dim": 882,
      "latent_dim": 64
    },
    "dec_kwargs": {
      "backbone": {
        "_attn_implementation": "flash_attention_2",
        "attention_dropout": 0.0,
        "hidden_act": "silu",
        "hidden_size": 896,
        "initializer_range": 0.02,
        "intermediate_size": 4864,
        "is_causal": true,
        "max_position_embeddings": 32768,
        "max_window_layers": 0,
        "model_type": "qwen2",
        "num_attention_heads": 14,
        "num_hidden_layers": 24,
        "num_key_value_heads": 2,
        "rms_norm_eps": 1e-06,
        "rope_theta": 1000000.0,
        "sliding_window": 64,
        "tie_word_embeddings": true,
        "torch_dtype": "bfloat16",
        "use_cache": false,
        "use_sliding_window": true,
        "vocab_size": 1
      },
      "latent_dim": 64,
      "output_dim": 882
    },
    "semantic_module_kwargs": null,
    "init_method": "kaiming",
    "patch_size": 4,
    "torch_dtype": "bfloat16"
  },
  "tts_config": {
    "protocol_version": "thinking_v1",
    "prompt_format": "legacy_antmmf",
    "tokenizer_contract": "legacy_antmmf",
    "sampling_contract": "native_fp32",
    "enable_tts_target_language": true,
    "infer_tts_language_from_text": true,
    "conditioning_mode": "speaker_only",
    "sampling_temperature": 1.5,
    "prompt_eos_token_id": 156895,
    "sample_rate": 44100,
    "speaker_embedding_dim": 192,
    "latent_dim": 64,
    "patch_size": 1,
    "history_size": 1,
    "audio_patch_token_id": 157164,
    "audio_start_token_id": 157165,
    "audio_end_token_id": 157166,
    "speaker_start_token_id": 157175,
    "speaker_end_token_id": 157176,
    "stop_threshold": 0.5,
    "minimum_decode_steps": 13,
    "maximum_decode_steps": 250,
    "decode_alignment": "old_shift",
    "task_contract": "lingv3_sft_multitask_v1",
    "task_decode_alignment": {
      "podcast": "old_shift"
    },
    "with_rml": true
  },
  "flow_config": {
    "z_channels": 64,
    "hidden_size": 1024,
    "depth": 16,
    "num_heads": 16,
    "mlp_ratio": 4,
    "dropout": 0.1,
    "qk_norm": null,
    "pe_attn_head": null,
    "attn_backend": "torch",
    "attn_mask_enabled": false
  },
  "aggregator_config": {
    "in_channels": 64,
    "hidden_size": 1024,
    "depth": 8,
    "num_heads": 16,
    "mlp_ratio": 4,
    "dropout": 0.1,
    "qk_norm": null,
    "pe_attn_head": null,
    "attn_backend": "torch",
    "attn_mask_enabled": false
  },
  "torch_dtype": "bfloat16"
}