Download config.json from trymirai/Inkling-2-Mini-M: direct link, hf CLI and curl.
- Browser
- Download file 156 kB
-
https://huggingface.co/trymirai/Inkling-2-Mini-M/resolve/main/config.json
- Command line
-
hf download hf://trymirai/Inkling-2-Mini-M/config.json
-
curl -L -o config.json https://huggingface.co/trymirai/Inkling-2-Mini-M/resolve/main/config.json
156 kB
{
"type": "LanguageModelConfig",
"token_codec_config": {
"type": "ChatCodecConfig",
"prompt_template": "{%- set effort_map = {\"none\": 0.0, \"minimal\": 0.1, \"low\": 0.2, \"medium\": 0.7, \"high\": 0.9, \"xhigh\": 0.99, \"max\": 0.99} -%}\n{%- set role_token = {\"user\": \"<|message_user|>\", \"assistant\": \"<|message_model|>\", \"system\": \"<|message_system|>\", \"tool\": \"<|message_tool|>\"} -%}\n\n{%- macro emit_thinking_effort() -%}\n {%- set eff = reasoning_effort if reasoning_effort is defined and reasoning_effort is not none else 0.9 -%}\n {%- if eff is string -%}\n {%- set key = eff | trim -%}\n {%- if key not in effort_map -%}\n {{- raise_exception(\"Unknown reasoning_effort: \" ~ eff) -}}\n {%- endif -%}\n {%- set num = effort_map[key] -%}\n {%- else -%}\n {%- set num = eff | float -%}\n {%- endif -%}\n {%- if num < 0.0 or num > 0.99 -%}\n {{- raise_exception(\"reasoning_effort must be in [0.0, 0.99]\") -}}\n {%- endif -%}\n {{- \"<|message_system|><|content_text|>Thinking effort level: \" -}}\n {%- if num == 0.0 -%}0{%- else -%}{{ num }}{%- endif -%}\n {{- \"<|end_message|>\" -}}\n{%- endmacro -%}\n\n{%- if tools -%}\n {%- set tool_state = namespace(specs=[]) -%}\n {%- for tool in tools -%}\n {%- set fn = tool.function if tool.function is defined else tool -%}\n {%- set spec = {\n \"description\": (fn.description if fn.description is defined and fn.description else \"\"),\n \"name\": fn.name,\n \"parameters\": (fn.parameters if fn.parameters is defined and fn.parameters else {}),\n \"type\": (tool.type if tool.type is defined and tool.type else \"function\"),\n } -%}\n {%- set tool_state.specs = tool_state.specs + [spec] -%}\n {%- endfor -%}\n {{- \"<|message_system|>tool_declare<|content_xml|>\" -}}\n {{- tool_state.specs | tojson(sort_keys=true, separators=(\",\", \":\")) -}}\n {{- \"<|end_message|>\" -}}\n{%- endif -%}\n\n{%- set state = namespace(effort_emitted=false) -%}\n{%- for message in messages -%}\n {%- if message.role not in role_token -%}\n {{- raise_exception(\"Unknown message role: \" ~ message.role) -}}\n {%- endif -%}\n {%- if not state.effort_emitted and message.role != \"system\" -%}\n {{- emit_thinking_effort() -}}\n {%- set state.effort_emitted = true -%}\n {%- endif -%}\n\n {%- set header = namespace(text=role_token[message.role]) -%}\n {%- if message.role == \"tool\" -%}\n {%- if message.name is defined and message.name -%}\n {%- set header.text = header.text ~ message.name -%}\n {%- elif message.tool_call_id is defined and message.tool_call_id -%}\n {%- for prev in messages -%}\n {%- if prev.role == \"assistant\" and prev.tool_calls -%}\n {%- for tc in prev.tool_calls -%}\n {%- if tc.id is defined and tc.id == message.tool_call_id and tc.function.name is defined -%}\n {%- set header.text = header.text ~ tc.function.name -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n {%- elif message.role == \"assistant\" and message.name is defined and message.name -%}\n {%- set header.text = header.text ~ message.name -%}\n {%- endif -%}\n {%- set rtok = header.text -%}\n {%- set rendered -%}\n\n {%- if message.role == \"assistant\" and message.reasoning_content is defined and message.reasoning_content -%}\n {{- rtok ~ \"<|content_thinking|>\" ~ message.reasoning_content ~ \"<|end_message|>\" -}}\n {%- endif -%}\n\n {%- if message.content is string and (message.content or not (message.role == \"assistant\" and (message.tool_calls or message.reasoning_content))) -%}\n {{- rtok ~ \"<|content_text|>\" ~ message.content ~ \"<|end_message|>\" -}}\n {%- elif message.content -%}\n {%- for part in message.content -%}\n {%- if part is string -%}\n {{- rtok ~ \"<|content_text|>\" ~ part ~ \"<|end_message|>\" -}}\n {%- elif part.type is not defined or part.type in (\"text\", \"input_text\") -%}\n {%- set text_part = (part.text if part.text is defined and part.text is string else \"\") -%}\n {{- rtok ~ \"<|content_text|>\" ~ text_part ~ \"<|end_message|>\" -}}\n {%- elif part.type in (\"image\", \"input_image\", \"image_url\") -%}\n {%- if message.role not in (\"user\", \"tool\") -%}\n {{- raise_exception(\"Image content is only supported for user and tool messages\") -}}\n {%- endif -%}\n {{- rtok ~ \"<|content_image|><|unused_200054|><|end_message|>\" -}}\n {%- elif part.type in (\"audio\", \"input_audio\", \"audio_url\") -%}\n {{- raise_exception(\"Inkling 2 does not accept audio input\") -}}\n {%- else -%}\n {{- raise_exception(\"Unsupported content part type: \" ~ part.type) -}}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if message.role == \"assistant\" and message.tool_calls -%}\n {%- for tc in message.tool_calls -%}\n {%- set fn = tc.function -%}\n {%- if fn.name is not defined or fn.name is not string -%}\n {{- raise_exception(\"tool call function name must be a string\") -}}\n {%- endif -%}\n {%- if message.name is defined and message.name and message.name != fn.name -%}\n {{- raise_exception(\"assistant name \" ~ message.name ~ \" does not match its tool call \" ~ fn.name) -}}\n {%- endif -%}\n {%- set args = fn.arguments if fn.arguments is defined and fn.arguments else {} -%}\n {%- if args is string -%}\n {{- raise_exception(\"tool call arguments must be a parsed object, not a JSON string; canonicalize upstream\") -}}\n {%- endif -%}\n {%- if args is not mapping -%}\n {{- raise_exception(\"tool call arguments must be an object\") -}}\n {%- endif -%}\n {{- \"<|message_model|>\" ~ fn.name ~ \"<|content_invoke_tool_json|>\" -}}\n {{- '{\"name\":' ~ (fn.name | tojson(sort_keys=true, separators=(\",\", \":\"))) ~ ',\"args\":' -}}\n {{- \"{\" -}}\n {%- for key, value in args | dictsort(case_sensitive=true) -%}\n {{- (key | tojson) ~ \":\" ~ (value | tojson(separators=(\",\", \":\"))) -}}\n {%- if not loop.last -%},{%- endif -%}\n {%- endfor -%}\n {{- \"}}<|end_message|>\" -}}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if message.role == \"assistant\" -%}\n {{- \"<|content_model_end_sampling|>\" -}}\n {%- endif -%}\n {%- endset -%}\n {%- if message.role == \"assistant\" -%}\n {{- rendered -}}\n {%- else -%}\n {{- rendered -}}\n {%- endif -%}\n{%- endfor -%}\n\n{%- if not state.effort_emitted -%}\n {{- emit_thinking_effort() -}}\n{%- endif -%}\n",
"response_format": {
"reasoning_pattern": null,
"prefixes": [],
"turn_pattern": "\\s*<\\|message_model\\|>[^<]*(?:<\\|content_thinking\\|>(?P<chain_of_thought>.*?)|<\\|content_(?:text|tool_error|invoke_tool_text)\\|>(?P<response>.*?))(?:<\\|end_message\\|>)?(?:<\\|content_model_end_sampling\\|>|(?=<\\|message_model\\|>)|\\Z)",
"tool_calls": null
},
"system_role_name": "system",
"user_role_name": "user",
"assistant_role_name": "assistant",
"eos_token": "<|content_model_end_sampling|>",
"bos_token": null,
"default_system_prompt": null,
"reasoning_config": {
"default_reasoning_effort": "high",
"field_name": "reasoning_effort",
"reasoning_effort_to_field_value": {
"no_reasoning": 0.0,
"low": 0.2,
"medium": 0.7,
"high": 0.9,
"xhigh": 0.99
}
}
},
"decoder_config": {
"embedding_config": {
"type": "UntiedEmbeddingConfig",
"input_scale": null,
"logit_soft_cap": 30.0,
"logit_scale": null
},
"transformer_config": {
"residual_config": {
"type": "BlockAttnResConfig",
"epsilon": 1e-06
},
"layer_configs": [
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "partial",
"starts_block": true,
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": true,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "shared",
"starts_block": false,
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": true,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "shared",
"starts_block": false,
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": true,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "shared",
"starts_block": false,
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": true,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "shared",
"starts_block": false,
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": true,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": null,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": {
"alpha": 0.1,
"position_floor": 8192
},
"stacked_projection_config": {
"layout": "grouped_with_conv_taps",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "separate",
"starts_block": false,
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": true,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "shared",
"starts_block": true,
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": true,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "shared",
"starts_block": false,
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": true,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "shared",
"starts_block": false,
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": true,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "shared",
"starts_block": false,
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": true,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "shared",
"starts_block": false,
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": true,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": null,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": {
"alpha": 0.1,
"position_floor": 8192
},
"stacked_projection_config": {
"layout": "grouped_with_conv_taps",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "separate",
"starts_block": false,
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": true,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "shared",
"starts_block": true,
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": true,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "shared",
"starts_block": false,
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": true,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "shared",
"starts_block": false,
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": true,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "shared",
"starts_block": false,
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": true,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "shared",
"starts_block": false,
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": true,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": null,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": {
"alpha": 0.1,
"position_floor": 8192
},
"stacked_projection_config": {
"layout": "grouped_with_conv_taps",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "separate",
"starts_block": false,
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": true,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": {
"linear_config": {},
"rank": 64
}
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "shared",
"starts_block": true,
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": true,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "shared",
"starts_block": false,
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": true,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "shared",
"starts_block": false,
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "shared",
"starts_block": false,
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "shared",
"starts_block": false,
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
},
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": null,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": {
"alpha": 0.1,
"position_floor": 8192
},
"stacked_projection_config": {
"layout": "grouped_with_conv_taps",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResQKVReadConfig",
"read_mode": "separate",
"starts_block": false,
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"mlp": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "MixtureOfExpertsConfig",
"expert_config": {
"type": "DenseMLPConfig",
"linear_config": {},
"activation": {
"type": "SiLU",
"alpha": 1.0,
"soft_cap": 4.0
},
"has_up_biases": false,
"has_down_biases": false,
"gate_clipping": null,
"up_clipping": null,
"up_soft_cap": 25.0
},
"router_config": {},
"routing_function": {
"type": "SigmoidRouting",
"bias_mode": "gating",
"weight_scale": 8.0
},
"num_routed_experts": 128,
"num_active_routed_experts": 8,
"router_has_biases": false,
"num_shared_experts": 0,
"expert_hidden_dim": 1152,
"gate_config": null
},
"post_norm_config": null,
"connection_config": {
"type": "AttnResReadConfig",
"message_gate_config": null
},
"output_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
},
"epilogue_configs": [],
"hidden_dim": null,
"kv_source_layer_index": null,
"rope_config": null
}
],
"output_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"model_dim": 2304,
"hidden_dim": 1152,
"layer_order": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23
]
},
"vocab_size": 200058,
"ple_model_config": null,
"embedding_norm_config": null
},
"generation_config": {
"stop_token_ids": [
200006
],
"temperature": 1.0,
"top_k": null,
"top_p": null,
"min_p": null,
"banned_tokens": null,
"repetition_penalty": null,
"presence_penalty": null,
"frequency_penalty": null,
"suffix_repetition_length": null
},
"vision_config": null
}
{
"type": "LanguageModelConfig",
"token_codec_config": {
"type": "ChatCodecConfig",
"prompt_template": "{%- set effort_map = {\"none\": 0.0, \"minimal\": 0.1, \"low\": 0.2, \"medium\": 0.7, \"high\": 0.9, \"xhigh\": 0.99, \"max\": 0.99} -%}\n{%- set role_token = {\"user\": \"<|message_user|>\", \"assistant\": \"<|message_model|>\", \"system\": \"<|message_system|>\", \"tool\": \"<|message_tool|>\"} -%}\n\n{%- macro emit_thinking_effort() -%}\n {%- set eff = reasoning_effort if reasoning_effort is defined and reasoning_effort is not none else 0.9 -%}\n {%- if eff is string -%}\n {%- set key = eff | trim -%}\n {%- if key not in effort_map -%}\n {{- raise_exception(\"Unknown reasoning_effort: \" ~ eff) -}}\n {%- endif -%}\n {%- set num = effort_map[key] -%}\n {%- else -%}\n {%- set num = eff | float -%}\n {%- endif -%}\n {%- if num < 0.0 or num > 0.99 -%}\n {{- raise_exception(\"reasoning_effort must be in [0.0, 0.99]\") -}}\n {%- endif -%}\n {{- \"<|message_system|><|content_text|>Thinking effort level: \" -}}\n {%- if num == 0.0 -%}0{%- else -%}{{ num }}{%- endif -%}\n {{- \"<|end_message|>\" -}}\n{%- endmacro -%}\n\n{%- if tools -%}\n {%- set tool_state = namespace(specs=[]) -%}\n {%- for tool in tools -%}\n {%- set fn = tool.function if tool.function is defined else tool -%}\n {%- set spec = {\n \"description\": (fn.description if fn.description is defined and fn.description else \"\"),\n \"name\": fn.name,\n \"parameters\": (fn.parameters if fn.parameters is defined and fn.parameters else {}),\n \"type\": (tool.type if tool.type is defined and tool.type else \"function\"),\n } -%}\n {%- set tool_state.specs = tool_state.specs + [spec] -%}\n {%- endfor -%}\n {{- \"<|message_system|>tool_declare<|content_xml|>\" -}}\n {{- tool_state.specs | tojson(sort_keys=true, separators=(\",\", \":\")) -}}\n {{- \"<|end_message|>\" -}}\n{%- endif -%}\n\n{%- set state = namespace(effort_emitted=false) -%}\n{%- for message in messages -%}\n {%- if message.role not in role_token -%}\n {{- raise_exception(\"Unknown message role: \" ~ message.role) -}}\n {%- endif -%}\n {%- if not state.effort_emitted and message.role != \"system\" -%}\n {{- emit_thinking_effort() -}}\n {%- set state.effort_emitted = true -%}\n {%- endif -%}\n\n {%- set header = namespace(text=role_token[message.role]) -%}\n {%- if message.role == \"tool\" -%}\n {%- if message.name is defined and message.name -%}\n {%- set header.text = header.text ~ message.name -%}\n {%- elif message.tool_call_id is defined and message.tool_call_id -%}\n {%- for prev in messages -%}\n {%- if prev.role == \"assistant\" and prev.tool_calls -%}\n {%- for tc in prev.tool_calls -%}\n {%- if tc.id is defined and tc.id == message.tool_call_id and tc.function.name is defined -%}\n {%- set header.text = header.text ~ tc.function.name -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n {%- elif message.role == \"assistant\" and message.name is defined and message.name -%}\n {%- set header.text = header.text ~ message.name -%}\n {%- endif -%}\n {%- set rtok = header.text -%}\n {%- set rendered -%}\n\n {%- if message.role == \"assistant\" and message.reasoning_content is defined and message.reasoning_content -%}\n {{- rtok ~ \"<|content_thinking|>\" ~ message.reasoning_content ~ \"<|end_message|>\" -}}\n {%- endif -%}\n\n {%- if message.content is string and (message.content or not (message.role == \"assistant\" and (message.tool_calls or message.reasoning_content))) -%}\n {{- rtok ~ \"<|content_text|>\" ~ message.content ~ \"<|end_message|>\" -}}\n {%- elif message.content -%}\n {%- for part in message.content -%}\n {%- if part is string -%}\n {{- rtok ~ \"<|content_text|>\" ~ part ~ \"<|end_message|>\" -}}\n {%- elif part.type is not defined or part.type in (\"text\", \"input_text\") -%}\n {%- set text_part = (part.text if part.text is defined and part.text is string else \"\") -%}\n {{- rtok ~ \"<|content_text|>\" ~ text_part ~ \"<|end_message|>\" -}}\n {%- elif part.type in (\"image\", \"input_image\", \"image_url\") -%}\n {%- if message.role not in (\"user\", \"tool\") -%}\n {{- raise_exception(\"Image content is only supported for user and tool messages\") -}}\n {%- endif -%}\n {{- rtok ~ \"<|content_image|><|unused_200054|><|end_message|>\" -}}\n {%- elif part.type in (\"audio\", \"input_audio\", \"audio_url\") -%}\n {{- raise_exception(\"Inkling 2 does not accept audio input\") -}}\n {%- else -%}\n {{- raise_exception(\"Unsupported content part type: \" ~ part.type) -}}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if message.role == \"assistant\" and message.tool_calls -%}\n {%- for tc in message.tool_calls -%}\n {%- set fn = tc.function -%}\n {%- if fn.name is not defined or fn.name is not string -%}\n {{- raise_exception(\"tool call function name must be a string\") -}}\n {%- endif -%}\n {%- if message.name is defined and message.name and message.name != fn.name -%}\n {{- raise_exception(\"assistant name \" ~ message.name ~ \" does not match its tool call \" ~ fn.name) -}}\n {%- endif -%}\n {%- set args = fn.arguments if fn.arguments is defined and fn.arguments else {} -%}\n {%- if args is string -%}\n {{- raise_exception(\"tool call arguments must be a parsed object, not a JSON string; canonicalize upstream\") -}}\n {%- endif -%}\n {%- if args is not mapping -%}\n {{- raise_exception(\"tool call arguments must be an object\") -}}\n {%- endif -%}\n {{- \"<|message_model|>\" ~ fn.name ~ \"<|content_invoke_tool_json|>\" -}}\n {{- '{\"name\":' ~ (fn.name | tojson(sort_keys=true, separators=(\",\", \":\"))) ~ ',\"args\":' -}}\n {{- \"{\" -}}\n {%- for key, value in args | dictsort(case_sensitive=true) -%}\n {{- (key | tojson) ~ \":\" ~ (value | tojson(separators=(\",\", \":\"))) -}}\n {%- if not loop.last -%},{%- endif -%}\n {%- endfor -%}\n {{- \"}}<|end_message|>\" -}}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if message.role == \"assistant\" -%}\n {{- \"<|content_model_end_sampling|>\" -}}\n {%- endif -%}\n {%- endset -%}\n {%- if message.role == \"assistant\" -%}\n {{- rendered -}}\n {%- else -%}\n {{- rendered -}}\n {%- endif -%}\n{%- endfor -%}\n\n{%- if not state.effort_emitted -%}\n {{- emit_thinking_effort() -}}\n{%- endif -%}\n",
"response_format": {
"reasoning_pattern": null,
"prefixes": [],
"turn_pattern": "\\s*<\\|message_model\\|>[^<]*(?:<\\|content_thinking\\|>(?P<chain_of_thought>.*?)|<\\|content_(?:text|tool_error|invoke_tool_text)\\|>(?P<response>.*?))(?:<\\|end_message\\|>)?(?:<\\|content_model_end_sampling\\|>|(?=<\\|message_model\\|>)|\\Z)",
"tool_calls": null
},
"system_role_name": "system",
"user_role_name": "user",
"assistant_role_name": "assistant",
"eos_token": "<|content_model_end_sampling|>",
"bos_token": null,
"default_system_prompt": null,
"reasoning_config": {
"default_reasoning_effort": "high",
"field_name": "reasoning_effort",
"reasoning_effort_to_field_value": {
"no_reasoning": 0.0,
"low": 0.2,
"medium": 0.7,
"high": 0.9,
"xhigh": 0.99
}
}
},
"decoder_config": {
"embedding_config": {
"type": "UntiedEmbeddingConfig",
"input_scale": null,
"logit_soft_cap": 30.0,
"logit_scale": null
},
"transformer_config": {
"residual_config": {
"type": "BlockAttnResConfig",
"epsilon": 1e-06
},
"layer_configs": [
{
"prologue_configs": [],
"mixer": {
"pre_norm_config": {
"epsilon": 1e-06,
"scale_offset": null,
"upcast_mode": "full_layer",
"subtract_mean": false,
"has_scale": false,
"has_biases": false
},
"conv_config": null,
"body_config": {
"type": "AttentionConfig",
"qkvg_projection_config": {},
"out_projection_config": {},
"query_norm_config": {
"threshold": 2.0000000000000004,
"epsilon": 1e-06
},
"key_norm_config": {
"threshold": 22.627416997969522,
"epsilon": 1e-06
},
"num_heads": 24,
"num_groups": 8,
"head_dim": 128,
"is_causal": true,
"scale": 1.0,
"sliding_window_size": 1024,
"logit_soft_cap": null,
"has_sinks": true,
"has_qkvg_biases": false,
"has_out_biases": false,
"has_gate": true,
"normalize_values": true,
"is_kv_sharing": false,
"log_scaling_config": null,
"stacked_projection_config": {
"layout": "stacked_query_first",
"relative_bias_config": {
"num_channels": 16,
"extent": 1024,
"clip_config": {
"threshold": 8.0,
"epsilon": 1e-06
}
},
"key_value_conv_config": {
"conv_config": {
"has_biases": false
},
"kernel_size": 4
}
}
},
"post_norm_config": null,
"connection_config": {