Upload config_bk.json with huggingface_hub
Browse files- config_bk.json +106 -0
config_bk.json
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"DeepseekV3ForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"auto_map": {
|
| 8 |
+
"AutoConfig": "configuration_deepseek.DeepseekV3Config",
|
| 9 |
+
"AutoModel": "modeling_deepseek.DeepseekV3Model",
|
| 10 |
+
"AutoModelForCausalLM": "modeling_deepseek.DeepseekV3ForCausalLM"
|
| 11 |
+
},
|
| 12 |
+
"aux_loss_alpha": 0.001,
|
| 13 |
+
"bos_token_id": 0,
|
| 14 |
+
"eos_token_id": 1,
|
| 15 |
+
"ep_size": 1,
|
| 16 |
+
"first_k_dense_replace": 3,
|
| 17 |
+
"hidden_act": "silu",
|
| 18 |
+
"hidden_size": 7168,
|
| 19 |
+
"initializer_range": 0.02,
|
| 20 |
+
"intermediate_size": 18432,
|
| 21 |
+
"kv_lora_rank": 512,
|
| 22 |
+
"max_position_embeddings": 163840,
|
| 23 |
+
"model_type": "deepseek_v3",
|
| 24 |
+
"moe_intermediate_size": 2048,
|
| 25 |
+
"moe_layer_freq": 1,
|
| 26 |
+
"n_group": 8,
|
| 27 |
+
"n_routed_experts": 256,
|
| 28 |
+
"n_shared_experts": 1,
|
| 29 |
+
"norm_topk_prob": true,
|
| 30 |
+
"num_attention_heads": 128,
|
| 31 |
+
"num_experts_per_tok": 8,
|
| 32 |
+
"num_hidden_layers": 61,
|
| 33 |
+
"num_key_value_heads": 128,
|
| 34 |
+
"num_nextn_predict_layers": 1,
|
| 35 |
+
"pretraining_tp": 1,
|
| 36 |
+
"q_lora_rank": 1536,
|
| 37 |
+
"qk_nope_head_dim": 128,
|
| 38 |
+
"qk_rope_head_dim": 64,
|
| 39 |
+
"rms_norm_eps": 1e-06,
|
| 40 |
+
"rope_scaling": {
|
| 41 |
+
"beta_fast": 32,
|
| 42 |
+
"beta_slow": 1,
|
| 43 |
+
"factor": 40,
|
| 44 |
+
"mscale": 1.0,
|
| 45 |
+
"mscale_all_dim": 1.0,
|
| 46 |
+
"original_max_position_embeddings": 4096,
|
| 47 |
+
"type": "yarn"
|
| 48 |
+
},
|
| 49 |
+
"rope_theta": 10000,
|
| 50 |
+
"routed_scaling_factor": 2.5,
|
| 51 |
+
"scoring_func": "sigmoid",
|
| 52 |
+
"seq_aux": true,
|
| 53 |
+
"tie_word_embeddings": false,
|
| 54 |
+
"topk_group": 4,
|
| 55 |
+
"topk_method": "noaux_tc",
|
| 56 |
+
"torch_dtype": "bfloat16",
|
| 57 |
+
"transformers_version": "4.46.3",
|
| 58 |
+
"use_cache": true,
|
| 59 |
+
"v_head_dim": 128,
|
| 60 |
+
"vocab_size": 129280,
|
| 61 |
+
"quantization_config": {
|
| 62 |
+
"_json_file": "/tmp/tmpe3ckugb_.json",
|
| 63 |
+
"allowlist": {
|
| 64 |
+
"names": [],
|
| 65 |
+
"types": [
|
| 66 |
+
"Matmul",
|
| 67 |
+
"Linear",
|
| 68 |
+
"ParallelLMHead",
|
| 69 |
+
"RowParallelLinear",
|
| 70 |
+
"ColumnParallelLinear",
|
| 71 |
+
"MergedColumnParallelLinear",
|
| 72 |
+
"QKVParallelLinear",
|
| 73 |
+
"FalconLinear",
|
| 74 |
+
"KVCache",
|
| 75 |
+
"VLLMKVCache",
|
| 76 |
+
"Conv2d",
|
| 77 |
+
"LoRACompatibleLinear",
|
| 78 |
+
"LoRACompatibleConv",
|
| 79 |
+
"Softmax",
|
| 80 |
+
"ModuleFusedSDPA",
|
| 81 |
+
"MoeMatmul",
|
| 82 |
+
"ReplicatedLinear",
|
| 83 |
+
"FusedMoE",
|
| 84 |
+
"GaudiMixtralSparseMoeBlock",
|
| 85 |
+
"VllmMixtureOfExpertsOp",
|
| 86 |
+
"LinearLayer",
|
| 87 |
+
"LinearAllreduce",
|
| 88 |
+
"ScopedLinearAllReduce",
|
| 89 |
+
"LmHeadLinearAllreduce"
|
| 90 |
+
]
|
| 91 |
+
},
|
| 92 |
+
"blocklist": {},
|
| 93 |
+
"dump_stats_path": "./hqt_output/measure",
|
| 94 |
+
"fake_quant": "False",
|
| 95 |
+
"fp8_config": "E4M3",
|
| 96 |
+
"hp_dtype": "bf16",
|
| 97 |
+
"measure_on_hpu": true,
|
| 98 |
+
"mod_dict": {},
|
| 99 |
+
"mode": "LOAD",
|
| 100 |
+
"observer": "maxabs",
|
| 101 |
+
"scale_format": "const",
|
| 102 |
+
"scale_method": "maxabs_pow2",
|
| 103 |
+
"scale_params": {},
|
| 104 |
+
"use_qdq": "False"
|
| 105 |
+
}
|
| 106 |
+
}
|