File size: 7,365 Bytes
5c0d3d3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
{
    "model_name": "LFM2.5-Audio-1.5B",
    "model_type": "aud-lfm2-s2s",
    "vm_cfg": null,
    "mm_cfg": null,
    "lm_cfg": {
        "model_type": "lfm2",
        "data_type": "bfloat16",
        "arch": "lfm",
        "token_cfg": {
            "vocab_size": 65536
        },
        "rope_cfg": {
            "rope_theta": 1000000,
            "rope_local_base_freq": 1000000,
            "rope_scaling": {
                "factor": 1.0,
                "low_freq_factor": 0,
                "high_freq_factor": 0,
                "original_max_position_embeddings": 0,
                "long_factor": null,
                "short_factor": null,
                "rope_type": "default",
                "mrope_section": null,
                "mrope_interleaved": false
            }
        },
        "attn_cfg": {
            "num_attention_heads": 32,
            "num_key_value_heads": 8,
            "head_dim": 64,
            "swa_enable": false,
            "sliding_window": 0,
            "attention_bias": false,
            "attention_dropout": 0.0,
            "query_pre_attn_scalar": 0
        },
        "mlp_cfg": {
            "intermediate_size": 8192,
            "act": "silu",
            "num_layers": 3,
            "mlp_bias": false
        },
        "hidden_size": 2048,
        "num_hidden_layers": 16,
        "max_position_embeddings": 2048,
        "rms_norm_eps": 1e-05,
        "rms_norm_unit_offset": false,
        "layer_types": [
            "conv",
            "conv",
            "full_attention",
            "conv",
            "conv",
            "full_attention",
            "conv",
            "conv",
            "full_attention",
            "conv",
            "full_attention",
            "conv",
            "full_attention",
            "conv",
            "full_attention",
            "conv"
        ],
        "attn_logit_softcapping": null,
        "final_logit_softcapping": null,
        "lm_head_num_splits": 1,
        "lm_head_split_dim": 65536,
        "conv_L_cache": 3,
        "conv_bias": false,
        "lora_cfg": null
    },
    "pipeline_cfg": {
        "system_prompt": null,
        "chat_template": null,
        "max_num_tokens": 2048,
        "input_token_group_size": 128,
        "input_token_group_offsets": [
            0,
            128,
            256,
            384,
            512,
            640,
            768,
            896,
            1024,
            1152,
            1280,
            1408,
            1536,
            1664,
            1792,
            1920
        ],
        "future_token_mask_size": 128,
        "return_logits": false,
        "use_strided_kv_cache": false,
        "enable_filter_sharing": false,
        "quantize_embeddings": false,
        "split_mlp": true
    },
    "audio_pipeline_cfg": {
        "codebooks": 8,
        "tie_audio_embeddings": false,
        "semantic_codebook_factor": 100,
        "codebook_weight": "log",
        "interleaved_n_text": 6,
        "interleaved_n_audio": 12
    },
    "audio_preprocessor_cfg": {
        "sample_rate": 16000,
        "normalize": "per_feature",
        "window_size": 0.025,
        "window_stride": 0.01,
        "window": "hann",
        "features": 128,
        "n_fft": 512,
        "log": true,
        "frame_splicing": 1,
        "dither": 1e-05,
        "pad_to": 0,
        "pad_value": 0.0
    },
    "audio_encoder_cfg": {
        "feat_in": 128,
        "feat_out": -1,
        "n_layers": 17,
        "d_model": 512,
        "subsampling": "dw_striding",
        "subsampling_factor": 8,
        "subsampling_conv_channels": 256,
        "causal_downsampling": false,
        "reduction": null,
        "reduction_position": null,
        "reduction_factor": 1,
        "ff_expansion_factor": 4,
        "self_attention_model": "rel_pos",
        "n_heads": 8,
        "att_context_size": [
            -1,
            -1
        ],
        "xscaling": false,
        "untie_biases": true,
        "pos_emb_max_len": 5000,
        "conv_kernel_size": 9,
        "conv_norm_type": "batch_norm",
        "conv_context_size": null,
        "dropout": 0.1,
        "dropout_pre_encoder": 0.1,
        "dropout_emb": 0,
        "dropout_att": 0.1,
        "fixed_input_frames": 1024
    },
    "audio_depthformer_cfg": {
        "layers": 6,
        "dim": 1024,
        "tie": true,
        "proj_dim": 8192,
        "num_heads": 32,
        "num_key_value_heads": 8,
        "max_seq_len": 8,
        "vocab_size": 2049,
        "rope_theta": 1000000.0
    },
    "audio_detokenizer_cfg": {
        "lm_cfg": {
            "model_type": "lfm2",
            "data_type": "bfloat16",
            "arch": "lfm",
            "token_cfg": {
                "vocab_size": 65536
            },
            "rope_cfg": {
                "rope_theta": 1000000.0,
                "rope_local_base_freq": 10000,
                "rope_scaling": {
                    "factor": 1.0,
                    "low_freq_factor": 0,
                    "high_freq_factor": 0,
                    "original_max_position_embeddings": 0,
                    "long_factor": null,
                    "short_factor": null,
                    "rope_type": "default",
                    "mrope_section": null,
                    "mrope_interleaved": false
                }
            },
            "attn_cfg": {
                "num_attention_heads": 16,
                "num_key_value_heads": 8,
                "head_dim": 32,
                "swa_enable": true,
                "sliding_window": 30,
                "attention_bias": false,
                "attention_dropout": 0.0,
                "query_pre_attn_scalar": 0
            },
            "mlp_cfg": {
                "intermediate_size": 3328,
                "act": "silu",
                "num_layers": 3,
                "mlp_bias": false
            },
            "hidden_size": 512,
            "num_hidden_layers": 8,
            "max_position_embeddings": 128000,
            "rms_norm_eps": 1e-05,
            "rms_norm_unit_offset": false,
            "layer_types": [
                "conv",
                "conv",
                "sliding_attention",
                "conv",
                "sliding_attention",
                "conv",
                "sliding_attention",
                "conv"
            ],
            "attn_logit_softcapping": null,
            "final_logit_softcapping": null,
            "lm_head_num_splits": 1,
            "lm_head_split_dim": 0,
            "conv_L_cache": 3,
            "conv_bias": false,
            "lora_cfg": null
        },
        "output_size": 1282,
        "tokens_per_frame": 6,
        "cache_len_tokens": 30,
        "include_projection": true,
        "istft_cfg": {
            "n_fft": 1280,
            "hop_length": 320,
            "win_length": 1280,
            "window": "hann",
            "sample_rate": 24000,
            "padding": "same"
        }
    },
    "language_model_name": "LFM2.5-Audio-1.5B_language",
    "audio_encoder_model_name": "LFM2.5-Audio-1.5B_audio_encoder",
    "audio_depthformer_core_model_name": "LFM2.5-Audio-1.5B_audio_depthformer_core",
    "audio_depthformer_head_model_name": "LFM2.5-Audio-1.5B_audio_depthformer_head_cb",
    "audio_detokenizer_model_name": "LFM2.5-Audio-1.5B_audio_detokenizer"
}