Deepseek-v3-mlc / mlc-chat-config.json
ruihanglai's picture
add weights
f9b309b
{
"version": "0.1.0",
"model_type": "deepseek_v3",
"quantization": "fp8_e4m3fn_f16_block_scale",
"model_config": {
"vocab_size": 129280,
"hidden_size": 7168,
"intermediate_size": 18432,
"moe_intermediate_size": 2048,
"num_hidden_layers": 61,
"num_attention_heads": 128,
"num_key_value_heads": 128,
"n_shared_experts": 1,
"n_routed_experts": 256,
"num_experts_per_tok": 8,
"norm_topk_prob": true,
"first_k_dense_replace": 3,
"moe_layer_freq": 1,
"routed_scaling_factor": 2.5,
"attention_bias": false,
"kv_lora_rank": 512,
"qk_rope_head_dim": 64,
"v_head_dim": 128,
"qk_nope_head_dim": 128,
"rms_norm_eps": 1e-06,
"rope_theta": 10000,
"q_lora_rank": 1536,
"rope_scaling": {
"beta_fast": 32,
"beta_slow": 1,
"factor": 40,
"mscale": 1.0,
"mscale_all_dim": 1.0,
"original_max_position_embeddings": 4096,
"type": "yarn"
},
"context_window_size": 163840,
"prefill_chunk_size": 2048,
"tensor_parallel_shards": 8,
"dtype": "float32",
"max_batch_size": 128,
"weight_block_size": [
128,
128
]
},
"vocab_size": 129280,
"context_window_size": 163840,
"sliding_window_size": -1,
"prefill_chunk_size": 2048,
"attention_sink_size": -1,
"tensor_parallel_shards": 8,
"pipeline_parallel_stages": 1,
"temperature": 1.0,
"presence_penalty": 0.0,
"frequency_penalty": 0.0,
"repetition_penalty": 1.0,
"top_p": 1.0,
"tokenizer_files": [
"tokenizer.json",
"tokenizer_config.json"
],
"tokenizer_info": {
"token_postproc_method": "byte_level",
"prepend_space_in_encode": false,
"strip_space_in_decode": false
},
"conv_template": {
"name": "deepseek_v3",
"system_template": "<\uff5cbegin\u2581of\u2581sentence\uff5c>{system_message}",
"system_message": "You are Deepseek-V3, an AI assistant created exclusively by the Chinese Company DeepSeek. You'll provide helpful, harmless, and detailed responses to all user inquiries.",
"system_prefix_token_ids": null,
"add_role_after_system_message": true,
"roles": {
"user": "<\uff5cUser\uff5c>",
"assistant": "<\uff5cAssistant\uff5c>"
},
"role_templates": {
"user": "{user_message}",
"assistant": "{assistant_message}",
"tool": "{tool_message}"
},
"messages": [],
"seps": [
"",
"<\uff5cend\u2581of\u2581sentence\uff5c>"
],
"role_content_sep": "",
"role_empty_sep": "",
"stop_str": [],
"stop_token_ids": [
1
],
"function_string": "",
"use_function_calling": false
},
"pad_token_id": 0,
"bos_token_id": 0,
"eos_token_id": 1
}