Roman Knyazhitskiy commited on
Commit
d667821
·
1 Parent(s): afec589
Files changed (4) hide show
  1. .gitattributes +1 -0
  2. config.json +1473 -0
  3. model.safetensors +3 -0
  4. tokenizer.json +3 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
config.json ADDED
@@ -0,0 +1,1473 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "LanguageModelConfig",
3
+ "token_codec_config": {
4
+ "type": "ChatCodecConfig",
5
+ "prompt_template": "{%- set image_count = namespace(value=0) %}\n{%- set video_count = namespace(value=0) %}\n{%- macro render_content(content, do_vision_count, is_system_content=false) %}\n {%- if content is string %}\n {{- content }}\n {%- elif content is iterable and content is not mapping %}\n {%- for item in content %}\n {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}\n {%- if is_system_content %}\n {{- raise_exception('System message cannot contain images.') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set image_count.value = image_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- 'Picture ' ~ image_count.value ~ ': ' }}\n {%- endif %}\n {{- '<|vision_start|><|image_pad|><|vision_end|>' }}\n {%- elif 'video' in item or item.type == 'video' %}\n {%- if is_system_content %}\n {{- raise_exception('System message cannot contain videos.') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set video_count.value = video_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- 'Video ' ~ video_count.value ~ ': ' }}\n {%- endif %}\n {{- '<|vision_start|><|video_pad|><|vision_end|>' }}\n {%- elif 'text' in item %}\n {{- item.text }}\n {%- else %}\n {{- raise_exception('Unexpected item type in content.') }}\n {%- endif %}\n {%- endfor %}\n {%- elif content is none or content is undefined %}\n {{- '' }}\n {%- else %}\n {{- raise_exception('Unexpected content type.') }}\n {%- endif %}\n{%- endmacro %}\n{%- if not messages %}\n {{- raise_exception('No messages provided.') }}\n{%- endif %}\n{%- if tools and tools is iterable and tools is not mapping %}\n {{- '<|im_start|>system\\n' }}\n {{- \"# Tools\\n\\nYou have access to the following functions:\\n\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\" }}\n {{- '\\n\\nIf you choose to call a function ONLY reply in the following format with NO suffix:\\n\\n<tool_call>\\n<function=example_function_name>\\n<parameter=example_parameter_1>\\nvalue_1\\n</parameter>\\n<parameter=example_parameter_2>\\nThis is the value for the second parameter\\nthat can span\\nmultiple lines\\n</parameter>\\n</function>\\n</tool_call>\\n\\n<IMPORTANT>\\nReminder:\\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\\n- Required parameters MUST be specified\\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\\n</IMPORTANT>' }}\n {%- if messages[0].role == 'system' %}\n {%- set content = render_content(messages[0].content, false, true)|trim %}\n {%- if content %}\n {{- '\\n\\n' + content }}\n {%- endif %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {%- set content = render_content(messages[0].content, false, true)|trim %}\n {{- '<|im_start|>system\\n' + content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" %}\n {%- set content = render_content(message.content, false)|trim %}\n {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if ns.multi_step_tool %}\n {{- raise_exception('No user query found in messages.') }}\n{%- endif %}\n{%- for message in messages %}\n {%- set content = render_content(message.content, true)|trim %}\n {%- if message.role == \"system\" %}\n {%- if not loop.first %}\n {{- raise_exception('System message must be at the beginning.') }}\n {%- endif %}\n {%- elif message.role == \"user\" %}\n {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- set content = content.split('</think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- set reasoning_content = reasoning_content|trim %}\n {%- if loop.index0 > ns.last_query_index %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content + '\\n</think>\\n\\n' + content }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {%- if loop.first %}\n {%- if content|trim %}\n {{- '\\n\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- else %}\n {{- '<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- endif %}\n {%- else %}\n {{- '\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- endif %}\n {%- if tool_call.arguments is defined %}\n {%- for args_name, args_value in tool_call.arguments|items %}\n {{- '<parameter=' + args_name + '>\\n' }}\n {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}\n {{- args_value }}\n {{- '\\n</parameter>\\n' }}\n {%- endfor %}\n {%- endif %}\n {{- '</function>\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.previtem and loop.previtem.role != \"tool\" %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if not loop.last and loop.nextitem.role != \"tool\" %}\n {{- '<|im_end|>\\n' }}\n {%- elif loop.last %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- else %}\n {{- raise_exception('Unexpected message role.') }}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is true %}\n {{- '<think>\\n' }}\n {%- else %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- endif %}\n{%- endif %}",
6
+ "output_parser_regex": "(?s)(?:<think>)?(?P<chain_of_thought>.*?)(?:</think>\\s*(?P<response>.*))?\\Z",
7
+ "system_role_name": "system",
8
+ "user_role_name": "user",
9
+ "assistant_role_name": "assistant",
10
+ "eos_token": "<|im_end|>",
11
+ "bos_token": null,
12
+ "default_system_prompt": null
13
+ },
14
+ "decoder_config": {
15
+ "embedding_config": {
16
+ "type": "TiedEmbeddingConfig",
17
+ "input_scale": null,
18
+ "logit_soft_cap": null
19
+ },
20
+ "transformer_config": {
21
+ "layer_configs": [
22
+ {
23
+ "pre_mixer_norm_config": {
24
+ "epsilon": 1e-06,
25
+ "scale_offset": 1.0,
26
+ "upcast_mode": "only_normalization",
27
+ "subtract_mean": false,
28
+ "has_biases": false
29
+ },
30
+ "mixer_config": {
31
+ "type": "DeltaNetConfig",
32
+ "in_proj_config": {},
33
+ "conv_config": {
34
+ "has_biases": false
35
+ },
36
+ "out_proj_config": {},
37
+ "norm_config": {
38
+ "epsilon": 1e-06,
39
+ "scale_offset": null,
40
+ "upcast_mode": "only_normalization",
41
+ "subtract_mean": false,
42
+ "has_biases": false
43
+ },
44
+ "num_heads": 16,
45
+ "num_groups": 16,
46
+ "head_dim": 128,
47
+ "value_head_dim": 128,
48
+ "kernel_size": 4
49
+ },
50
+ "post_mixer_norm_config": null,
51
+ "pre_mlp_norm_config": {
52
+ "epsilon": 1e-06,
53
+ "scale_offset": 1.0,
54
+ "upcast_mode": "only_normalization",
55
+ "subtract_mean": false,
56
+ "has_biases": false
57
+ },
58
+ "mlp_config": {
59
+ "type": "DenseMLPConfig",
60
+ "linear_config": {},
61
+ "activation": {
62
+ "type": "SiLU",
63
+ "alpha": 1.0
64
+ },
65
+ "has_up_biases": false,
66
+ "has_down_biases": false,
67
+ "gate_clipping": null,
68
+ "up_clipping": null
69
+ },
70
+ "post_mlp_norm_config": null,
71
+ "hidden_dim": null,
72
+ "ple_config": null,
73
+ "has_post_layer_scalar": false,
74
+ "kv_source_layer_index": null,
75
+ "rope_config": null
76
+ },
77
+ {
78
+ "pre_mixer_norm_config": {
79
+ "epsilon": 1e-06,
80
+ "scale_offset": 1.0,
81
+ "upcast_mode": "only_normalization",
82
+ "subtract_mean": false,
83
+ "has_biases": false
84
+ },
85
+ "mixer_config": {
86
+ "type": "DeltaNetConfig",
87
+ "in_proj_config": {},
88
+ "conv_config": {
89
+ "has_biases": false
90
+ },
91
+ "out_proj_config": {},
92
+ "norm_config": {
93
+ "epsilon": 1e-06,
94
+ "scale_offset": null,
95
+ "upcast_mode": "only_normalization",
96
+ "subtract_mean": false,
97
+ "has_biases": false
98
+ },
99
+ "num_heads": 16,
100
+ "num_groups": 16,
101
+ "head_dim": 128,
102
+ "value_head_dim": 128,
103
+ "kernel_size": 4
104
+ },
105
+ "post_mixer_norm_config": null,
106
+ "pre_mlp_norm_config": {
107
+ "epsilon": 1e-06,
108
+ "scale_offset": 1.0,
109
+ "upcast_mode": "only_normalization",
110
+ "subtract_mean": false,
111
+ "has_biases": false
112
+ },
113
+ "mlp_config": {
114
+ "type": "DenseMLPConfig",
115
+ "linear_config": {},
116
+ "activation": {
117
+ "type": "SiLU",
118
+ "alpha": 1.0
119
+ },
120
+ "has_up_biases": false,
121
+ "has_down_biases": false,
122
+ "gate_clipping": null,
123
+ "up_clipping": null
124
+ },
125
+ "post_mlp_norm_config": null,
126
+ "hidden_dim": null,
127
+ "ple_config": null,
128
+ "has_post_layer_scalar": false,
129
+ "kv_source_layer_index": null,
130
+ "rope_config": null
131
+ },
132
+ {
133
+ "pre_mixer_norm_config": {
134
+ "epsilon": 1e-06,
135
+ "scale_offset": 1.0,
136
+ "upcast_mode": "only_normalization",
137
+ "subtract_mean": false,
138
+ "has_biases": false
139
+ },
140
+ "mixer_config": {
141
+ "type": "DeltaNetConfig",
142
+ "in_proj_config": {},
143
+ "conv_config": {
144
+ "has_biases": false
145
+ },
146
+ "out_proj_config": {},
147
+ "norm_config": {
148
+ "epsilon": 1e-06,
149
+ "scale_offset": null,
150
+ "upcast_mode": "only_normalization",
151
+ "subtract_mean": false,
152
+ "has_biases": false
153
+ },
154
+ "num_heads": 16,
155
+ "num_groups": 16,
156
+ "head_dim": 128,
157
+ "value_head_dim": 128,
158
+ "kernel_size": 4
159
+ },
160
+ "post_mixer_norm_config": null,
161
+ "pre_mlp_norm_config": {
162
+ "epsilon": 1e-06,
163
+ "scale_offset": 1.0,
164
+ "upcast_mode": "only_normalization",
165
+ "subtract_mean": false,
166
+ "has_biases": false
167
+ },
168
+ "mlp_config": {
169
+ "type": "DenseMLPConfig",
170
+ "linear_config": {},
171
+ "activation": {
172
+ "type": "SiLU",
173
+ "alpha": 1.0
174
+ },
175
+ "has_up_biases": false,
176
+ "has_down_biases": false,
177
+ "gate_clipping": null,
178
+ "up_clipping": null
179
+ },
180
+ "post_mlp_norm_config": null,
181
+ "hidden_dim": null,
182
+ "ple_config": null,
183
+ "has_post_layer_scalar": false,
184
+ "kv_source_layer_index": null,
185
+ "rope_config": null
186
+ },
187
+ {
188
+ "pre_mixer_norm_config": {
189
+ "epsilon": 1e-06,
190
+ "scale_offset": 1.0,
191
+ "upcast_mode": "only_normalization",
192
+ "subtract_mean": false,
193
+ "has_biases": false
194
+ },
195
+ "mixer_config": {
196
+ "type": "AttentionConfig",
197
+ "qkv_projection_config": {},
198
+ "out_projection_config": {},
199
+ "query_norm_config": {
200
+ "epsilon": 1e-06,
201
+ "scale_offset": 1.0,
202
+ "upcast_mode": "only_normalization",
203
+ "subtract_mean": false,
204
+ "has_biases": false
205
+ },
206
+ "key_norm_config": {
207
+ "epsilon": 1e-06,
208
+ "scale_offset": 1.0,
209
+ "upcast_mode": "only_normalization",
210
+ "subtract_mean": false,
211
+ "has_biases": false
212
+ },
213
+ "num_heads": 8,
214
+ "num_groups": 2,
215
+ "head_dim": 256,
216
+ "is_causal": true,
217
+ "scale": null,
218
+ "sliding_window_size": null,
219
+ "logit_soft_cap": null,
220
+ "has_sinks": false,
221
+ "has_qkv_biases": false,
222
+ "has_out_biases": false,
223
+ "gate_projection_config": {},
224
+ "normalize_values": false,
225
+ "is_kv_sharing": false
226
+ },
227
+ "post_mixer_norm_config": null,
228
+ "pre_mlp_norm_config": {
229
+ "epsilon": 1e-06,
230
+ "scale_offset": 1.0,
231
+ "upcast_mode": "only_normalization",
232
+ "subtract_mean": false,
233
+ "has_biases": false
234
+ },
235
+ "mlp_config": {
236
+ "type": "DenseMLPConfig",
237
+ "linear_config": {},
238
+ "activation": {
239
+ "type": "SiLU",
240
+ "alpha": 1.0
241
+ },
242
+ "has_up_biases": false,
243
+ "has_down_biases": false,
244
+ "gate_clipping": null,
245
+ "up_clipping": null
246
+ },
247
+ "post_mlp_norm_config": null,
248
+ "hidden_dim": null,
249
+ "ple_config": null,
250
+ "has_post_layer_scalar": false,
251
+ "kv_source_layer_index": null,
252
+ "rope_config": {
253
+ "type": "UnscaledRoPEConfig",
254
+ "base": 10000000.0,
255
+ "max_sequence_length": 262144,
256
+ "head_dim": 64
257
+ }
258
+ },
259
+ {
260
+ "pre_mixer_norm_config": {
261
+ "epsilon": 1e-06,
262
+ "scale_offset": 1.0,
263
+ "upcast_mode": "only_normalization",
264
+ "subtract_mean": false,
265
+ "has_biases": false
266
+ },
267
+ "mixer_config": {
268
+ "type": "DeltaNetConfig",
269
+ "in_proj_config": {},
270
+ "conv_config": {
271
+ "has_biases": false
272
+ },
273
+ "out_proj_config": {},
274
+ "norm_config": {
275
+ "epsilon": 1e-06,
276
+ "scale_offset": null,
277
+ "upcast_mode": "only_normalization",
278
+ "subtract_mean": false,
279
+ "has_biases": false
280
+ },
281
+ "num_heads": 16,
282
+ "num_groups": 16,
283
+ "head_dim": 128,
284
+ "value_head_dim": 128,
285
+ "kernel_size": 4
286
+ },
287
+ "post_mixer_norm_config": null,
288
+ "pre_mlp_norm_config": {
289
+ "epsilon": 1e-06,
290
+ "scale_offset": 1.0,
291
+ "upcast_mode": "only_normalization",
292
+ "subtract_mean": false,
293
+ "has_biases": false
294
+ },
295
+ "mlp_config": {
296
+ "type": "DenseMLPConfig",
297
+ "linear_config": {},
298
+ "activation": {
299
+ "type": "SiLU",
300
+ "alpha": 1.0
301
+ },
302
+ "has_up_biases": false,
303
+ "has_down_biases": false,
304
+ "gate_clipping": null,
305
+ "up_clipping": null
306
+ },
307
+ "post_mlp_norm_config": null,
308
+ "hidden_dim": null,
309
+ "ple_config": null,
310
+ "has_post_layer_scalar": false,
311
+ "kv_source_layer_index": null,
312
+ "rope_config": null
313
+ },
314
+ {
315
+ "pre_mixer_norm_config": {
316
+ "epsilon": 1e-06,
317
+ "scale_offset": 1.0,
318
+ "upcast_mode": "only_normalization",
319
+ "subtract_mean": false,
320
+ "has_biases": false
321
+ },
322
+ "mixer_config": {
323
+ "type": "DeltaNetConfig",
324
+ "in_proj_config": {},
325
+ "conv_config": {
326
+ "has_biases": false
327
+ },
328
+ "out_proj_config": {},
329
+ "norm_config": {
330
+ "epsilon": 1e-06,
331
+ "scale_offset": null,
332
+ "upcast_mode": "only_normalization",
333
+ "subtract_mean": false,
334
+ "has_biases": false
335
+ },
336
+ "num_heads": 16,
337
+ "num_groups": 16,
338
+ "head_dim": 128,
339
+ "value_head_dim": 128,
340
+ "kernel_size": 4
341
+ },
342
+ "post_mixer_norm_config": null,
343
+ "pre_mlp_norm_config": {
344
+ "epsilon": 1e-06,
345
+ "scale_offset": 1.0,
346
+ "upcast_mode": "only_normalization",
347
+ "subtract_mean": false,
348
+ "has_biases": false
349
+ },
350
+ "mlp_config": {
351
+ "type": "DenseMLPConfig",
352
+ "linear_config": {},
353
+ "activation": {
354
+ "type": "SiLU",
355
+ "alpha": 1.0
356
+ },
357
+ "has_up_biases": false,
358
+ "has_down_biases": false,
359
+ "gate_clipping": null,
360
+ "up_clipping": null
361
+ },
362
+ "post_mlp_norm_config": null,
363
+ "hidden_dim": null,
364
+ "ple_config": null,
365
+ "has_post_layer_scalar": false,
366
+ "kv_source_layer_index": null,
367
+ "rope_config": null
368
+ },
369
+ {
370
+ "pre_mixer_norm_config": {
371
+ "epsilon": 1e-06,
372
+ "scale_offset": 1.0,
373
+ "upcast_mode": "only_normalization",
374
+ "subtract_mean": false,
375
+ "has_biases": false
376
+ },
377
+ "mixer_config": {
378
+ "type": "DeltaNetConfig",
379
+ "in_proj_config": {},
380
+ "conv_config": {
381
+ "has_biases": false
382
+ },
383
+ "out_proj_config": {},
384
+ "norm_config": {
385
+ "epsilon": 1e-06,
386
+ "scale_offset": null,
387
+ "upcast_mode": "only_normalization",
388
+ "subtract_mean": false,
389
+ "has_biases": false
390
+ },
391
+ "num_heads": 16,
392
+ "num_groups": 16,
393
+ "head_dim": 128,
394
+ "value_head_dim": 128,
395
+ "kernel_size": 4
396
+ },
397
+ "post_mixer_norm_config": null,
398
+ "pre_mlp_norm_config": {
399
+ "epsilon": 1e-06,
400
+ "scale_offset": 1.0,
401
+ "upcast_mode": "only_normalization",
402
+ "subtract_mean": false,
403
+ "has_biases": false
404
+ },
405
+ "mlp_config": {
406
+ "type": "DenseMLPConfig",
407
+ "linear_config": {},
408
+ "activation": {
409
+ "type": "SiLU",
410
+ "alpha": 1.0
411
+ },
412
+ "has_up_biases": false,
413
+ "has_down_biases": false,
414
+ "gate_clipping": null,
415
+ "up_clipping": null
416
+ },
417
+ "post_mlp_norm_config": null,
418
+ "hidden_dim": null,
419
+ "ple_config": null,
420
+ "has_post_layer_scalar": false,
421
+ "kv_source_layer_index": null,
422
+ "rope_config": null
423
+ },
424
+ {
425
+ "pre_mixer_norm_config": {
426
+ "epsilon": 1e-06,
427
+ "scale_offset": 1.0,
428
+ "upcast_mode": "only_normalization",
429
+ "subtract_mean": false,
430
+ "has_biases": false
431
+ },
432
+ "mixer_config": {
433
+ "type": "AttentionConfig",
434
+ "qkv_projection_config": {},
435
+ "out_projection_config": {},
436
+ "query_norm_config": {
437
+ "epsilon": 1e-06,
438
+ "scale_offset": 1.0,
439
+ "upcast_mode": "only_normalization",
440
+ "subtract_mean": false,
441
+ "has_biases": false
442
+ },
443
+ "key_norm_config": {
444
+ "epsilon": 1e-06,
445
+ "scale_offset": 1.0,
446
+ "upcast_mode": "only_normalization",
447
+ "subtract_mean": false,
448
+ "has_biases": false
449
+ },
450
+ "num_heads": 8,
451
+ "num_groups": 2,
452
+ "head_dim": 256,
453
+ "is_causal": true,
454
+ "scale": null,
455
+ "sliding_window_size": null,
456
+ "logit_soft_cap": null,
457
+ "has_sinks": false,
458
+ "has_qkv_biases": false,
459
+ "has_out_biases": false,
460
+ "gate_projection_config": {},
461
+ "normalize_values": false,
462
+ "is_kv_sharing": false
463
+ },
464
+ "post_mixer_norm_config": null,
465
+ "pre_mlp_norm_config": {
466
+ "epsilon": 1e-06,
467
+ "scale_offset": 1.0,
468
+ "upcast_mode": "only_normalization",
469
+ "subtract_mean": false,
470
+ "has_biases": false
471
+ },
472
+ "mlp_config": {
473
+ "type": "DenseMLPConfig",
474
+ "linear_config": {},
475
+ "activation": {
476
+ "type": "SiLU",
477
+ "alpha": 1.0
478
+ },
479
+ "has_up_biases": false,
480
+ "has_down_biases": false,
481
+ "gate_clipping": null,
482
+ "up_clipping": null
483
+ },
484
+ "post_mlp_norm_config": null,
485
+ "hidden_dim": null,
486
+ "ple_config": null,
487
+ "has_post_layer_scalar": false,
488
+ "kv_source_layer_index": null,
489
+ "rope_config": {
490
+ "type": "UnscaledRoPEConfig",
491
+ "base": 10000000.0,
492
+ "max_sequence_length": 262144,
493
+ "head_dim": 64
494
+ }
495
+ },
496
+ {
497
+ "pre_mixer_norm_config": {
498
+ "epsilon": 1e-06,
499
+ "scale_offset": 1.0,
500
+ "upcast_mode": "only_normalization",
501
+ "subtract_mean": false,
502
+ "has_biases": false
503
+ },
504
+ "mixer_config": {
505
+ "type": "DeltaNetConfig",
506
+ "in_proj_config": {},
507
+ "conv_config": {
508
+ "has_biases": false
509
+ },
510
+ "out_proj_config": {},
511
+ "norm_config": {
512
+ "epsilon": 1e-06,
513
+ "scale_offset": null,
514
+ "upcast_mode": "only_normalization",
515
+ "subtract_mean": false,
516
+ "has_biases": false
517
+ },
518
+ "num_heads": 16,
519
+ "num_groups": 16,
520
+ "head_dim": 128,
521
+ "value_head_dim": 128,
522
+ "kernel_size": 4
523
+ },
524
+ "post_mixer_norm_config": null,
525
+ "pre_mlp_norm_config": {
526
+ "epsilon": 1e-06,
527
+ "scale_offset": 1.0,
528
+ "upcast_mode": "only_normalization",
529
+ "subtract_mean": false,
530
+ "has_biases": false
531
+ },
532
+ "mlp_config": {
533
+ "type": "DenseMLPConfig",
534
+ "linear_config": {},
535
+ "activation": {
536
+ "type": "SiLU",
537
+ "alpha": 1.0
538
+ },
539
+ "has_up_biases": false,
540
+ "has_down_biases": false,
541
+ "gate_clipping": null,
542
+ "up_clipping": null
543
+ },
544
+ "post_mlp_norm_config": null,
545
+ "hidden_dim": null,
546
+ "ple_config": null,
547
+ "has_post_layer_scalar": false,
548
+ "kv_source_layer_index": null,
549
+ "rope_config": null
550
+ },
551
+ {
552
+ "pre_mixer_norm_config": {
553
+ "epsilon": 1e-06,
554
+ "scale_offset": 1.0,
555
+ "upcast_mode": "only_normalization",
556
+ "subtract_mean": false,
557
+ "has_biases": false
558
+ },
559
+ "mixer_config": {
560
+ "type": "DeltaNetConfig",
561
+ "in_proj_config": {},
562
+ "conv_config": {
563
+ "has_biases": false
564
+ },
565
+ "out_proj_config": {},
566
+ "norm_config": {
567
+ "epsilon": 1e-06,
568
+ "scale_offset": null,
569
+ "upcast_mode": "only_normalization",
570
+ "subtract_mean": false,
571
+ "has_biases": false
572
+ },
573
+ "num_heads": 16,
574
+ "num_groups": 16,
575
+ "head_dim": 128,
576
+ "value_head_dim": 128,
577
+ "kernel_size": 4
578
+ },
579
+ "post_mixer_norm_config": null,
580
+ "pre_mlp_norm_config": {
581
+ "epsilon": 1e-06,
582
+ "scale_offset": 1.0,
583
+ "upcast_mode": "only_normalization",
584
+ "subtract_mean": false,
585
+ "has_biases": false
586
+ },
587
+ "mlp_config": {
588
+ "type": "DenseMLPConfig",
589
+ "linear_config": {},
590
+ "activation": {
591
+ "type": "SiLU",
592
+ "alpha": 1.0
593
+ },
594
+ "has_up_biases": false,
595
+ "has_down_biases": false,
596
+ "gate_clipping": null,
597
+ "up_clipping": null
598
+ },
599
+ "post_mlp_norm_config": null,
600
+ "hidden_dim": null,
601
+ "ple_config": null,
602
+ "has_post_layer_scalar": false,
603
+ "kv_source_layer_index": null,
604
+ "rope_config": null
605
+ },
606
+ {
607
+ "pre_mixer_norm_config": {
608
+ "epsilon": 1e-06,
609
+ "scale_offset": 1.0,
610
+ "upcast_mode": "only_normalization",
611
+ "subtract_mean": false,
612
+ "has_biases": false
613
+ },
614
+ "mixer_config": {
615
+ "type": "DeltaNetConfig",
616
+ "in_proj_config": {},
617
+ "conv_config": {
618
+ "has_biases": false
619
+ },
620
+ "out_proj_config": {},
621
+ "norm_config": {
622
+ "epsilon": 1e-06,
623
+ "scale_offset": null,
624
+ "upcast_mode": "only_normalization",
625
+ "subtract_mean": false,
626
+ "has_biases": false
627
+ },
628
+ "num_heads": 16,
629
+ "num_groups": 16,
630
+ "head_dim": 128,
631
+ "value_head_dim": 128,
632
+ "kernel_size": 4
633
+ },
634
+ "post_mixer_norm_config": null,
635
+ "pre_mlp_norm_config": {
636
+ "epsilon": 1e-06,
637
+ "scale_offset": 1.0,
638
+ "upcast_mode": "only_normalization",
639
+ "subtract_mean": false,
640
+ "has_biases": false
641
+ },
642
+ "mlp_config": {
643
+ "type": "DenseMLPConfig",
644
+ "linear_config": {},
645
+ "activation": {
646
+ "type": "SiLU",
647
+ "alpha": 1.0
648
+ },
649
+ "has_up_biases": false,
650
+ "has_down_biases": false,
651
+ "gate_clipping": null,
652
+ "up_clipping": null
653
+ },
654
+ "post_mlp_norm_config": null,
655
+ "hidden_dim": null,
656
+ "ple_config": null,
657
+ "has_post_layer_scalar": false,
658
+ "kv_source_layer_index": null,
659
+ "rope_config": null
660
+ },
661
+ {
662
+ "pre_mixer_norm_config": {
663
+ "epsilon": 1e-06,
664
+ "scale_offset": 1.0,
665
+ "upcast_mode": "only_normalization",
666
+ "subtract_mean": false,
667
+ "has_biases": false
668
+ },
669
+ "mixer_config": {
670
+ "type": "AttentionConfig",
671
+ "qkv_projection_config": {},
672
+ "out_projection_config": {},
673
+ "query_norm_config": {
674
+ "epsilon": 1e-06,
675
+ "scale_offset": 1.0,
676
+ "upcast_mode": "only_normalization",
677
+ "subtract_mean": false,
678
+ "has_biases": false
679
+ },
680
+ "key_norm_config": {
681
+ "epsilon": 1e-06,
682
+ "scale_offset": 1.0,
683
+ "upcast_mode": "only_normalization",
684
+ "subtract_mean": false,
685
+ "has_biases": false
686
+ },
687
+ "num_heads": 8,
688
+ "num_groups": 2,
689
+ "head_dim": 256,
690
+ "is_causal": true,
691
+ "scale": null,
692
+ "sliding_window_size": null,
693
+ "logit_soft_cap": null,
694
+ "has_sinks": false,
695
+ "has_qkv_biases": false,
696
+ "has_out_biases": false,
697
+ "gate_projection_config": {},
698
+ "normalize_values": false,
699
+ "is_kv_sharing": false
700
+ },
701
+ "post_mixer_norm_config": null,
702
+ "pre_mlp_norm_config": {
703
+ "epsilon": 1e-06,
704
+ "scale_offset": 1.0,
705
+ "upcast_mode": "only_normalization",
706
+ "subtract_mean": false,
707
+ "has_biases": false
708
+ },
709
+ "mlp_config": {
710
+ "type": "DenseMLPConfig",
711
+ "linear_config": {},
712
+ "activation": {
713
+ "type": "SiLU",
714
+ "alpha": 1.0
715
+ },
716
+ "has_up_biases": false,
717
+ "has_down_biases": false,
718
+ "gate_clipping": null,
719
+ "up_clipping": null
720
+ },
721
+ "post_mlp_norm_config": null,
722
+ "hidden_dim": null,
723
+ "ple_config": null,
724
+ "has_post_layer_scalar": false,
725
+ "kv_source_layer_index": null,
726
+ "rope_config": {
727
+ "type": "UnscaledRoPEConfig",
728
+ "base": 10000000.0,
729
+ "max_sequence_length": 262144,
730
+ "head_dim": 64
731
+ }
732
+ },
733
+ {
734
+ "pre_mixer_norm_config": {
735
+ "epsilon": 1e-06,
736
+ "scale_offset": 1.0,
737
+ "upcast_mode": "only_normalization",
738
+ "subtract_mean": false,
739
+ "has_biases": false
740
+ },
741
+ "mixer_config": {
742
+ "type": "DeltaNetConfig",
743
+ "in_proj_config": {},
744
+ "conv_config": {
745
+ "has_biases": false
746
+ },
747
+ "out_proj_config": {},
748
+ "norm_config": {
749
+ "epsilon": 1e-06,
750
+ "scale_offset": null,
751
+ "upcast_mode": "only_normalization",
752
+ "subtract_mean": false,
753
+ "has_biases": false
754
+ },
755
+ "num_heads": 16,
756
+ "num_groups": 16,
757
+ "head_dim": 128,
758
+ "value_head_dim": 128,
759
+ "kernel_size": 4
760
+ },
761
+ "post_mixer_norm_config": null,
762
+ "pre_mlp_norm_config": {
763
+ "epsilon": 1e-06,
764
+ "scale_offset": 1.0,
765
+ "upcast_mode": "only_normalization",
766
+ "subtract_mean": false,
767
+ "has_biases": false
768
+ },
769
+ "mlp_config": {
770
+ "type": "DenseMLPConfig",
771
+ "linear_config": {},
772
+ "activation": {
773
+ "type": "SiLU",
774
+ "alpha": 1.0
775
+ },
776
+ "has_up_biases": false,
777
+ "has_down_biases": false,
778
+ "gate_clipping": null,
779
+ "up_clipping": null
780
+ },
781
+ "post_mlp_norm_config": null,
782
+ "hidden_dim": null,
783
+ "ple_config": null,
784
+ "has_post_layer_scalar": false,
785
+ "kv_source_layer_index": null,
786
+ "rope_config": null
787
+ },
788
+ {
789
+ "pre_mixer_norm_config": {
790
+ "epsilon": 1e-06,
791
+ "scale_offset": 1.0,
792
+ "upcast_mode": "only_normalization",
793
+ "subtract_mean": false,
794
+ "has_biases": false
795
+ },
796
+ "mixer_config": {
797
+ "type": "DeltaNetConfig",
798
+ "in_proj_config": {},
799
+ "conv_config": {
800
+ "has_biases": false
801
+ },
802
+ "out_proj_config": {},
803
+ "norm_config": {
804
+ "epsilon": 1e-06,
805
+ "scale_offset": null,
806
+ "upcast_mode": "only_normalization",
807
+ "subtract_mean": false,
808
+ "has_biases": false
809
+ },
810
+ "num_heads": 16,
811
+ "num_groups": 16,
812
+ "head_dim": 128,
813
+ "value_head_dim": 128,
814
+ "kernel_size": 4
815
+ },
816
+ "post_mixer_norm_config": null,
817
+ "pre_mlp_norm_config": {
818
+ "epsilon": 1e-06,
819
+ "scale_offset": 1.0,
820
+ "upcast_mode": "only_normalization",
821
+ "subtract_mean": false,
822
+ "has_biases": false
823
+ },
824
+ "mlp_config": {
825
+ "type": "DenseMLPConfig",
826
+ "linear_config": {},
827
+ "activation": {
828
+ "type": "SiLU",
829
+ "alpha": 1.0
830
+ },
831
+ "has_up_biases": false,
832
+ "has_down_biases": false,
833
+ "gate_clipping": null,
834
+ "up_clipping": null
835
+ },
836
+ "post_mlp_norm_config": null,
837
+ "hidden_dim": null,
838
+ "ple_config": null,
839
+ "has_post_layer_scalar": false,
840
+ "kv_source_layer_index": null,
841
+ "rope_config": null
842
+ },
843
+ {
844
+ "pre_mixer_norm_config": {
845
+ "epsilon": 1e-06,
846
+ "scale_offset": 1.0,
847
+ "upcast_mode": "only_normalization",
848
+ "subtract_mean": false,
849
+ "has_biases": false
850
+ },
851
+ "mixer_config": {
852
+ "type": "DeltaNetConfig",
853
+ "in_proj_config": {},
854
+ "conv_config": {
855
+ "has_biases": false
856
+ },
857
+ "out_proj_config": {},
858
+ "norm_config": {
859
+ "epsilon": 1e-06,
860
+ "scale_offset": null,
861
+ "upcast_mode": "only_normalization",
862
+ "subtract_mean": false,
863
+ "has_biases": false
864
+ },
865
+ "num_heads": 16,
866
+ "num_groups": 16,
867
+ "head_dim": 128,
868
+ "value_head_dim": 128,
869
+ "kernel_size": 4
870
+ },
871
+ "post_mixer_norm_config": null,
872
+ "pre_mlp_norm_config": {
873
+ "epsilon": 1e-06,
874
+ "scale_offset": 1.0,
875
+ "upcast_mode": "only_normalization",
876
+ "subtract_mean": false,
877
+ "has_biases": false
878
+ },
879
+ "mlp_config": {
880
+ "type": "DenseMLPConfig",
881
+ "linear_config": {},
882
+ "activation": {
883
+ "type": "SiLU",
884
+ "alpha": 1.0
885
+ },
886
+ "has_up_biases": false,
887
+ "has_down_biases": false,
888
+ "gate_clipping": null,
889
+ "up_clipping": null
890
+ },
891
+ "post_mlp_norm_config": null,
892
+ "hidden_dim": null,
893
+ "ple_config": null,
894
+ "has_post_layer_scalar": false,
895
+ "kv_source_layer_index": null,
896
+ "rope_config": null
897
+ },
898
+ {
899
+ "pre_mixer_norm_config": {
900
+ "epsilon": 1e-06,
901
+ "scale_offset": 1.0,
902
+ "upcast_mode": "only_normalization",
903
+ "subtract_mean": false,
904
+ "has_biases": false
905
+ },
906
+ "mixer_config": {
907
+ "type": "AttentionConfig",
908
+ "qkv_projection_config": {},
909
+ "out_projection_config": {},
910
+ "query_norm_config": {
911
+ "epsilon": 1e-06,
912
+ "scale_offset": 1.0,
913
+ "upcast_mode": "only_normalization",
914
+ "subtract_mean": false,
915
+ "has_biases": false
916
+ },
917
+ "key_norm_config": {
918
+ "epsilon": 1e-06,
919
+ "scale_offset": 1.0,
920
+ "upcast_mode": "only_normalization",
921
+ "subtract_mean": false,
922
+ "has_biases": false
923
+ },
924
+ "num_heads": 8,
925
+ "num_groups": 2,
926
+ "head_dim": 256,
927
+ "is_causal": true,
928
+ "scale": null,
929
+ "sliding_window_size": null,
930
+ "logit_soft_cap": null,
931
+ "has_sinks": false,
932
+ "has_qkv_biases": false,
933
+ "has_out_biases": false,
934
+ "gate_projection_config": {},
935
+ "normalize_values": false,
936
+ "is_kv_sharing": false
937
+ },
938
+ "post_mixer_norm_config": null,
939
+ "pre_mlp_norm_config": {
940
+ "epsilon": 1e-06,
941
+ "scale_offset": 1.0,
942
+ "upcast_mode": "only_normalization",
943
+ "subtract_mean": false,
944
+ "has_biases": false
945
+ },
946
+ "mlp_config": {
947
+ "type": "DenseMLPConfig",
948
+ "linear_config": {},
949
+ "activation": {
950
+ "type": "SiLU",
951
+ "alpha": 1.0
952
+ },
953
+ "has_up_biases": false,
954
+ "has_down_biases": false,
955
+ "gate_clipping": null,
956
+ "up_clipping": null
957
+ },
958
+ "post_mlp_norm_config": null,
959
+ "hidden_dim": null,
960
+ "ple_config": null,
961
+ "has_post_layer_scalar": false,
962
+ "kv_source_layer_index": null,
963
+ "rope_config": {
964
+ "type": "UnscaledRoPEConfig",
965
+ "base": 10000000.0,
966
+ "max_sequence_length": 262144,
967
+ "head_dim": 64
968
+ }
969
+ },
970
+ {
971
+ "pre_mixer_norm_config": {
972
+ "epsilon": 1e-06,
973
+ "scale_offset": 1.0,
974
+ "upcast_mode": "only_normalization",
975
+ "subtract_mean": false,
976
+ "has_biases": false
977
+ },
978
+ "mixer_config": {
979
+ "type": "DeltaNetConfig",
980
+ "in_proj_config": {},
981
+ "conv_config": {
982
+ "has_biases": false
983
+ },
984
+ "out_proj_config": {},
985
+ "norm_config": {
986
+ "epsilon": 1e-06,
987
+ "scale_offset": null,
988
+ "upcast_mode": "only_normalization",
989
+ "subtract_mean": false,
990
+ "has_biases": false
991
+ },
992
+ "num_heads": 16,
993
+ "num_groups": 16,
994
+ "head_dim": 128,
995
+ "value_head_dim": 128,
996
+ "kernel_size": 4
997
+ },
998
+ "post_mixer_norm_config": null,
999
+ "pre_mlp_norm_config": {
1000
+ "epsilon": 1e-06,
1001
+ "scale_offset": 1.0,
1002
+ "upcast_mode": "only_normalization",
1003
+ "subtract_mean": false,
1004
+ "has_biases": false
1005
+ },
1006
+ "mlp_config": {
1007
+ "type": "DenseMLPConfig",
1008
+ "linear_config": {},
1009
+ "activation": {
1010
+ "type": "SiLU",
1011
+ "alpha": 1.0
1012
+ },
1013
+ "has_up_biases": false,
1014
+ "has_down_biases": false,
1015
+ "gate_clipping": null,
1016
+ "up_clipping": null
1017
+ },
1018
+ "post_mlp_norm_config": null,
1019
+ "hidden_dim": null,
1020
+ "ple_config": null,
1021
+ "has_post_layer_scalar": false,
1022
+ "kv_source_layer_index": null,
1023
+ "rope_config": null
1024
+ },
1025
+ {
1026
+ "pre_mixer_norm_config": {
1027
+ "epsilon": 1e-06,
1028
+ "scale_offset": 1.0,
1029
+ "upcast_mode": "only_normalization",
1030
+ "subtract_mean": false,
1031
+ "has_biases": false
1032
+ },
1033
+ "mixer_config": {
1034
+ "type": "DeltaNetConfig",
1035
+ "in_proj_config": {},
1036
+ "conv_config": {
1037
+ "has_biases": false
1038
+ },
1039
+ "out_proj_config": {},
1040
+ "norm_config": {
1041
+ "epsilon": 1e-06,
1042
+ "scale_offset": null,
1043
+ "upcast_mode": "only_normalization",
1044
+ "subtract_mean": false,
1045
+ "has_biases": false
1046
+ },
1047
+ "num_heads": 16,
1048
+ "num_groups": 16,
1049
+ "head_dim": 128,
1050
+ "value_head_dim": 128,
1051
+ "kernel_size": 4
1052
+ },
1053
+ "post_mixer_norm_config": null,
1054
+ "pre_mlp_norm_config": {
1055
+ "epsilon": 1e-06,
1056
+ "scale_offset": 1.0,
1057
+ "upcast_mode": "only_normalization",
1058
+ "subtract_mean": false,
1059
+ "has_biases": false
1060
+ },
1061
+ "mlp_config": {
1062
+ "type": "DenseMLPConfig",
1063
+ "linear_config": {},
1064
+ "activation": {
1065
+ "type": "SiLU",
1066
+ "alpha": 1.0
1067
+ },
1068
+ "has_up_biases": false,
1069
+ "has_down_biases": false,
1070
+ "gate_clipping": null,
1071
+ "up_clipping": null
1072
+ },
1073
+ "post_mlp_norm_config": null,
1074
+ "hidden_dim": null,
1075
+ "ple_config": null,
1076
+ "has_post_layer_scalar": false,
1077
+ "kv_source_layer_index": null,
1078
+ "rope_config": null
1079
+ },
1080
+ {
1081
+ "pre_mixer_norm_config": {
1082
+ "epsilon": 1e-06,
1083
+ "scale_offset": 1.0,
1084
+ "upcast_mode": "only_normalization",
1085
+ "subtract_mean": false,
1086
+ "has_biases": false
1087
+ },
1088
+ "mixer_config": {
1089
+ "type": "DeltaNetConfig",
1090
+ "in_proj_config": {},
1091
+ "conv_config": {
1092
+ "has_biases": false
1093
+ },
1094
+ "out_proj_config": {},
1095
+ "norm_config": {
1096
+ "epsilon": 1e-06,
1097
+ "scale_offset": null,
1098
+ "upcast_mode": "only_normalization",
1099
+ "subtract_mean": false,
1100
+ "has_biases": false
1101
+ },
1102
+ "num_heads": 16,
1103
+ "num_groups": 16,
1104
+ "head_dim": 128,
1105
+ "value_head_dim": 128,
1106
+ "kernel_size": 4
1107
+ },
1108
+ "post_mixer_norm_config": null,
1109
+ "pre_mlp_norm_config": {
1110
+ "epsilon": 1e-06,
1111
+ "scale_offset": 1.0,
1112
+ "upcast_mode": "only_normalization",
1113
+ "subtract_mean": false,
1114
+ "has_biases": false
1115
+ },
1116
+ "mlp_config": {
1117
+ "type": "DenseMLPConfig",
1118
+ "linear_config": {},
1119
+ "activation": {
1120
+ "type": "SiLU",
1121
+ "alpha": 1.0
1122
+ },
1123
+ "has_up_biases": false,
1124
+ "has_down_biases": false,
1125
+ "gate_clipping": null,
1126
+ "up_clipping": null
1127
+ },
1128
+ "post_mlp_norm_config": null,
1129
+ "hidden_dim": null,
1130
+ "ple_config": null,
1131
+ "has_post_layer_scalar": false,
1132
+ "kv_source_layer_index": null,
1133
+ "rope_config": null
1134
+ },
1135
+ {
1136
+ "pre_mixer_norm_config": {
1137
+ "epsilon": 1e-06,
1138
+ "scale_offset": 1.0,
1139
+ "upcast_mode": "only_normalization",
1140
+ "subtract_mean": false,
1141
+ "has_biases": false
1142
+ },
1143
+ "mixer_config": {
1144
+ "type": "AttentionConfig",
1145
+ "qkv_projection_config": {},
1146
+ "out_projection_config": {},
1147
+ "query_norm_config": {
1148
+ "epsilon": 1e-06,
1149
+ "scale_offset": 1.0,
1150
+ "upcast_mode": "only_normalization",
1151
+ "subtract_mean": false,
1152
+ "has_biases": false
1153
+ },
1154
+ "key_norm_config": {
1155
+ "epsilon": 1e-06,
1156
+ "scale_offset": 1.0,
1157
+ "upcast_mode": "only_normalization",
1158
+ "subtract_mean": false,
1159
+ "has_biases": false
1160
+ },
1161
+ "num_heads": 8,
1162
+ "num_groups": 2,
1163
+ "head_dim": 256,
1164
+ "is_causal": true,
1165
+ "scale": null,
1166
+ "sliding_window_size": null,
1167
+ "logit_soft_cap": null,
1168
+ "has_sinks": false,
1169
+ "has_qkv_biases": false,
1170
+ "has_out_biases": false,
1171
+ "gate_projection_config": {},
1172
+ "normalize_values": false,
1173
+ "is_kv_sharing": false
1174
+ },
1175
+ "post_mixer_norm_config": null,
1176
+ "pre_mlp_norm_config": {
1177
+ "epsilon": 1e-06,
1178
+ "scale_offset": 1.0,
1179
+ "upcast_mode": "only_normalization",
1180
+ "subtract_mean": false,
1181
+ "has_biases": false
1182
+ },
1183
+ "mlp_config": {
1184
+ "type": "DenseMLPConfig",
1185
+ "linear_config": {},
1186
+ "activation": {
1187
+ "type": "SiLU",
1188
+ "alpha": 1.0
1189
+ },
1190
+ "has_up_biases": false,
1191
+ "has_down_biases": false,
1192
+ "gate_clipping": null,
1193
+ "up_clipping": null
1194
+ },
1195
+ "post_mlp_norm_config": null,
1196
+ "hidden_dim": null,
1197
+ "ple_config": null,
1198
+ "has_post_layer_scalar": false,
1199
+ "kv_source_layer_index": null,
1200
+ "rope_config": {
1201
+ "type": "UnscaledRoPEConfig",
1202
+ "base": 10000000.0,
1203
+ "max_sequence_length": 262144,
1204
+ "head_dim": 64
1205
+ }
1206
+ },
1207
+ {
1208
+ "pre_mixer_norm_config": {
1209
+ "epsilon": 1e-06,
1210
+ "scale_offset": 1.0,
1211
+ "upcast_mode": "only_normalization",
1212
+ "subtract_mean": false,
1213
+ "has_biases": false
1214
+ },
1215
+ "mixer_config": {
1216
+ "type": "DeltaNetConfig",
1217
+ "in_proj_config": {},
1218
+ "conv_config": {
1219
+ "has_biases": false
1220
+ },
1221
+ "out_proj_config": {},
1222
+ "norm_config": {
1223
+ "epsilon": 1e-06,
1224
+ "scale_offset": null,
1225
+ "upcast_mode": "only_normalization",
1226
+ "subtract_mean": false,
1227
+ "has_biases": false
1228
+ },
1229
+ "num_heads": 16,
1230
+ "num_groups": 16,
1231
+ "head_dim": 128,
1232
+ "value_head_dim": 128,
1233
+ "kernel_size": 4
1234
+ },
1235
+ "post_mixer_norm_config": null,
1236
+ "pre_mlp_norm_config": {
1237
+ "epsilon": 1e-06,
1238
+ "scale_offset": 1.0,
1239
+ "upcast_mode": "only_normalization",
1240
+ "subtract_mean": false,
1241
+ "has_biases": false
1242
+ },
1243
+ "mlp_config": {
1244
+ "type": "DenseMLPConfig",
1245
+ "linear_config": {},
1246
+ "activation": {
1247
+ "type": "SiLU",
1248
+ "alpha": 1.0
1249
+ },
1250
+ "has_up_biases": false,
1251
+ "has_down_biases": false,
1252
+ "gate_clipping": null,
1253
+ "up_clipping": null
1254
+ },
1255
+ "post_mlp_norm_config": null,
1256
+ "hidden_dim": null,
1257
+ "ple_config": null,
1258
+ "has_post_layer_scalar": false,
1259
+ "kv_source_layer_index": null,
1260
+ "rope_config": null
1261
+ },
1262
+ {
1263
+ "pre_mixer_norm_config": {
1264
+ "epsilon": 1e-06,
1265
+ "scale_offset": 1.0,
1266
+ "upcast_mode": "only_normalization",
1267
+ "subtract_mean": false,
1268
+ "has_biases": false
1269
+ },
1270
+ "mixer_config": {
1271
+ "type": "DeltaNetConfig",
1272
+ "in_proj_config": {},
1273
+ "conv_config": {
1274
+ "has_biases": false
1275
+ },
1276
+ "out_proj_config": {},
1277
+ "norm_config": {
1278
+ "epsilon": 1e-06,
1279
+ "scale_offset": null,
1280
+ "upcast_mode": "only_normalization",
1281
+ "subtract_mean": false,
1282
+ "has_biases": false
1283
+ },
1284
+ "num_heads": 16,
1285
+ "num_groups": 16,
1286
+ "head_dim": 128,
1287
+ "value_head_dim": 128,
1288
+ "kernel_size": 4
1289
+ },
1290
+ "post_mixer_norm_config": null,
1291
+ "pre_mlp_norm_config": {
1292
+ "epsilon": 1e-06,
1293
+ "scale_offset": 1.0,
1294
+ "upcast_mode": "only_normalization",
1295
+ "subtract_mean": false,
1296
+ "has_biases": false
1297
+ },
1298
+ "mlp_config": {
1299
+ "type": "DenseMLPConfig",
1300
+ "linear_config": {},
1301
+ "activation": {
1302
+ "type": "SiLU",
1303
+ "alpha": 1.0
1304
+ },
1305
+ "has_up_biases": false,
1306
+ "has_down_biases": false,
1307
+ "gate_clipping": null,
1308
+ "up_clipping": null
1309
+ },
1310
+ "post_mlp_norm_config": null,
1311
+ "hidden_dim": null,
1312
+ "ple_config": null,
1313
+ "has_post_layer_scalar": false,
1314
+ "kv_source_layer_index": null,
1315
+ "rope_config": null
1316
+ },
1317
+ {
1318
+ "pre_mixer_norm_config": {
1319
+ "epsilon": 1e-06,
1320
+ "scale_offset": 1.0,
1321
+ "upcast_mode": "only_normalization",
1322
+ "subtract_mean": false,
1323
+ "has_biases": false
1324
+ },
1325
+ "mixer_config": {
1326
+ "type": "DeltaNetConfig",
1327
+ "in_proj_config": {},
1328
+ "conv_config": {
1329
+ "has_biases": false
1330
+ },
1331
+ "out_proj_config": {},
1332
+ "norm_config": {
1333
+ "epsilon": 1e-06,
1334
+ "scale_offset": null,
1335
+ "upcast_mode": "only_normalization",
1336
+ "subtract_mean": false,
1337
+ "has_biases": false
1338
+ },
1339
+ "num_heads": 16,
1340
+ "num_groups": 16,
1341
+ "head_dim": 128,
1342
+ "value_head_dim": 128,
1343
+ "kernel_size": 4
1344
+ },
1345
+ "post_mixer_norm_config": null,
1346
+ "pre_mlp_norm_config": {
1347
+ "epsilon": 1e-06,
1348
+ "scale_offset": 1.0,
1349
+ "upcast_mode": "only_normalization",
1350
+ "subtract_mean": false,
1351
+ "has_biases": false
1352
+ },
1353
+ "mlp_config": {
1354
+ "type": "DenseMLPConfig",
1355
+ "linear_config": {},
1356
+ "activation": {
1357
+ "type": "SiLU",
1358
+ "alpha": 1.0
1359
+ },
1360
+ "has_up_biases": false,
1361
+ "has_down_biases": false,
1362
+ "gate_clipping": null,
1363
+ "up_clipping": null
1364
+ },
1365
+ "post_mlp_norm_config": null,
1366
+ "hidden_dim": null,
1367
+ "ple_config": null,
1368
+ "has_post_layer_scalar": false,
1369
+ "kv_source_layer_index": null,
1370
+ "rope_config": null
1371
+ },
1372
+ {
1373
+ "pre_mixer_norm_config": {
1374
+ "epsilon": 1e-06,
1375
+ "scale_offset": 1.0,
1376
+ "upcast_mode": "only_normalization",
1377
+ "subtract_mean": false,
1378
+ "has_biases": false
1379
+ },
1380
+ "mixer_config": {
1381
+ "type": "AttentionConfig",
1382
+ "qkv_projection_config": {},
1383
+ "out_projection_config": {},
1384
+ "query_norm_config": {
1385
+ "epsilon": 1e-06,
1386
+ "scale_offset": 1.0,
1387
+ "upcast_mode": "only_normalization",
1388
+ "subtract_mean": false,
1389
+ "has_biases": false
1390
+ },
1391
+ "key_norm_config": {
1392
+ "epsilon": 1e-06,
1393
+ "scale_offset": 1.0,
1394
+ "upcast_mode": "only_normalization",
1395
+ "subtract_mean": false,
1396
+ "has_biases": false
1397
+ },
1398
+ "num_heads": 8,
1399
+ "num_groups": 2,
1400
+ "head_dim": 256,
1401
+ "is_causal": true,
1402
+ "scale": null,
1403
+ "sliding_window_size": null,
1404
+ "logit_soft_cap": null,
1405
+ "has_sinks": false,
1406
+ "has_qkv_biases": false,
1407
+ "has_out_biases": false,
1408
+ "gate_projection_config": {},
1409
+ "normalize_values": false,
1410
+ "is_kv_sharing": false
1411
+ },
1412
+ "post_mixer_norm_config": null,
1413
+ "pre_mlp_norm_config": {
1414
+ "epsilon": 1e-06,
1415
+ "scale_offset": 1.0,
1416
+ "upcast_mode": "only_normalization",
1417
+ "subtract_mean": false,
1418
+ "has_biases": false
1419
+ },
1420
+ "mlp_config": {
1421
+ "type": "DenseMLPConfig",
1422
+ "linear_config": {},
1423
+ "activation": {
1424
+ "type": "SiLU",
1425
+ "alpha": 1.0
1426
+ },
1427
+ "has_up_biases": false,
1428
+ "has_down_biases": false,
1429
+ "gate_clipping": null,
1430
+ "up_clipping": null
1431
+ },
1432
+ "post_mlp_norm_config": null,
1433
+ "hidden_dim": null,
1434
+ "ple_config": null,
1435
+ "has_post_layer_scalar": false,
1436
+ "kv_source_layer_index": null,
1437
+ "rope_config": {
1438
+ "type": "UnscaledRoPEConfig",
1439
+ "base": 10000000.0,
1440
+ "max_sequence_length": 262144,
1441
+ "head_dim": 64
1442
+ }
1443
+ }
1444
+ ],
1445
+ "output_norm_config": {
1446
+ "epsilon": 1e-06,
1447
+ "scale_offset": 1.0,
1448
+ "upcast_mode": "only_normalization",
1449
+ "subtract_mean": false,
1450
+ "has_biases": false
1451
+ },
1452
+ "model_dim": 2048,
1453
+ "hidden_dim": 6144
1454
+ },
1455
+ "vocab_size": 248320,
1456
+ "ple_model_config": null
1457
+ },
1458
+ "generation_config": {
1459
+ "stop_token_ids": [
1460
+ 248044,
1461
+ 248046
1462
+ ],
1463
+ "temperature": 0.6,
1464
+ "top_k": 20,
1465
+ "top_p": 0.95,
1466
+ "min_p": null,
1467
+ "banned_tokens": null,
1468
+ "repetition_penalty": null,
1469
+ "presence_penalty": null,
1470
+ "frequency_penalty": null,
1471
+ "suffix_repetition_length": null
1472
+ }
1473
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ce566ccfffb402448676a1992aca202f6fd938623598845033351433d4701fb
3
+ size 1093477744
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87a7830d63fcf43bf241c3c5242e96e62dd3fdc29224ca26fed8ea333db72de4
3
+ size 19989343