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 4 |
+
"add_cross_attention": false,
|
| 5 |
+
"architectures": [
|
| 6 |
+
"DeepseekV3ForCausalLM"
|
| 7 |
+
],
|
| 8 |
+
"attention_bias": false,
|
| 9 |
+
"attention_dropout": 0.0,
|
| 10 |
+
"auto_map": {
|
| 11 |
+
"AutoConfig": "configuration_deepseek.DeepseekV3Config",
|
| 12 |
+
"AutoModel": "modeling_deepseek.DeepseekV3Model",
|
| 13 |
+
"AutoModelForCausalLM": "modeling_deepseek.DeepseekV3ForCausalLM"
|
| 14 |
+
},
|
| 15 |
+
"aux_loss_alpha": 0.001,
|
| 16 |
+
"bad_words_ids": null,
|
| 17 |
+
"begin_suppress_tokens": null,
|
| 18 |
+
"bos_token_id": 163584,
|
| 19 |
+
"chunk_size_feed_forward": 0,
|
| 20 |
+
"cross_attention_hidden_size": null,
|
| 21 |
+
"decoder_start_token_id": null,
|
| 22 |
+
"diversity_penalty": 0.0,
|
| 23 |
+
"do_sample": false,
|
| 24 |
+
"early_stopping": false,
|
| 25 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 26 |
+
"eos_token_id": 163586,
|
| 27 |
+
"ep_size": 1,
|
| 28 |
+
"exponential_decay_length_penalty": null,
|
| 29 |
+
"finetuning_task": null,
|
| 30 |
+
"first_k_dense_replace": 1,
|
| 31 |
+
"forced_bos_token_id": null,
|
| 32 |
+
"forced_eos_token_id": null,
|
| 33 |
+
"hidden_act": "silu",
|
| 34 |
+
"hidden_size": 7168,
|
| 35 |
+
"id2label": {
|
| 36 |
+
"0": "LABEL_0",
|
| 37 |
+
"1": "LABEL_1"
|
| 38 |
+
},
|
| 39 |
+
"initializer_range": 0.02,
|
| 40 |
+
"intermediate_size": 18432,
|
| 41 |
+
"is_decoder": false,
|
| 42 |
+
"is_encoder_decoder": false,
|
| 43 |
+
"kv_lora_rank": 512,
|
| 44 |
+
"label2id": {
|
| 45 |
+
"LABEL_0": 0,
|
| 46 |
+
"LABEL_1": 1
|
| 47 |
+
},
|
| 48 |
+
"length_penalty": 1.0,
|
| 49 |
+
"max_length": 20,
|
| 50 |
+
"max_position_embeddings": 262144,
|
| 51 |
+
"min_length": 0,
|
| 52 |
+
"model_type": "kimi_k2",
|
| 53 |
+
"moe_intermediate_size": 2048,
|
| 54 |
+
"moe_layer_freq": 1,
|
| 55 |
+
"n_group": 1,
|
| 56 |
+
"n_routed_experts": 384,
|
| 57 |
+
"n_shared_experts": 1,
|
| 58 |
+
"no_repeat_ngram_size": 0,
|
| 59 |
+
"norm_topk_prob": true,
|
| 60 |
+
"num_attention_heads": 64,
|
| 61 |
+
"num_beam_groups": 1,
|
| 62 |
+
"num_beams": 1,
|
| 63 |
+
"num_experts_per_tok": 8,
|
| 64 |
+
"num_hidden_layers": 61,
|
| 65 |
+
"num_key_value_heads": 64,
|
| 66 |
+
"num_nextn_predict_layers": 0,
|
| 67 |
+
"num_return_sequences": 1,
|
| 68 |
+
"output_attentions": false,
|
| 69 |
+
"output_hidden_states": false,
|
| 70 |
+
"output_scores": false,
|
| 71 |
+
"pad_token_id": 163839,
|
| 72 |
+
"prefix": null,
|
| 73 |
+
"pretraining_tp": 1,
|
| 74 |
+
"problem_type": null,
|
| 75 |
+
"pruned_heads": {},
|
| 76 |
+
"q_lora_rank": 1536,
|
| 77 |
+
"qk_nope_head_dim": 128,
|
| 78 |
+
"qk_rope_head_dim": 64,
|
| 79 |
+
"quantization_config___": {
|
| 80 |
+
"config_groups": {
|
| 81 |
+
"group_0": {
|
| 82 |
+
"input_activations": null,
|
| 83 |
+
"output_activations": null,
|
| 84 |
+
"targets": [
|
| 85 |
+
"Linear"
|
| 86 |
+
],
|
| 87 |
+
"weights": {
|
| 88 |
+
"actorder": null,
|
| 89 |
+
"block_structure": null,
|
| 90 |
+
"dynamic": false,
|
| 91 |
+
"group_size": 32,
|
| 92 |
+
"num_bits": 4,
|
| 93 |
+
"observer": "minmax",
|
| 94 |
+
"observer_kwargs": {},
|
| 95 |
+
"strategy": "group",
|
| 96 |
+
"symmetric": true,
|
| 97 |
+
"type": "int"
|
| 98 |
+
}
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"format": "pack-quantized",
|
| 102 |
+
"ignore": [
|
| 103 |
+
"lm_head",
|
| 104 |
+
"re:.*self_attn.*",
|
| 105 |
+
"re:.*shared_experts.*",
|
| 106 |
+
"re:.*mlp\\.(gate|up|gate_up|down)_proj.*"
|
| 107 |
+
],
|
| 108 |
+
"kv_cache_scheme": null,
|
| 109 |
+
"quant_method": "compressed-tensors",
|
| 110 |
+
"quantization_status": "compressed"
|
| 111 |
+
},
|
| 112 |
+
"remove_invalid_values": false,
|
| 113 |
+
"repetition_penalty": 1.0,
|
| 114 |
+
"return_dict": true,
|
| 115 |
+
"return_dict_in_generate": false,
|
| 116 |
+
"rms_norm_eps": 1e-05,
|
| 117 |
+
"rope_scaling": {
|
| 118 |
+
"beta_fast": 1.0,
|
| 119 |
+
"beta_slow": 1.0,
|
| 120 |
+
"factor": 64.0,
|
| 121 |
+
"mscale": 1.0,
|
| 122 |
+
"mscale_all_dim": 1.0,
|
| 123 |
+
"original_max_position_embeddings": 4096,
|
| 124 |
+
"type": "yarn"
|
| 125 |
+
},
|
| 126 |
+
"rope_theta": 50000.0,
|
| 127 |
+
"routed_scaling_factor": 2.827,
|
| 128 |
+
"scoring_func": "sigmoid",
|
| 129 |
+
"sep_token_id": null,
|
| 130 |
+
"seq_aux": true,
|
| 131 |
+
"suppress_tokens": null,
|
| 132 |
+
"task_specific_params": null,
|
| 133 |
+
"temperature": 1.0,
|
| 134 |
+
"tf_legacy_loss": false,
|
| 135 |
+
"tie_encoder_decoder": false,
|
| 136 |
+
"tie_word_embeddings": false,
|
| 137 |
+
"tokenizer_class": null,
|
| 138 |
+
"top_k": 50,
|
| 139 |
+
"top_p": 1.0,
|
| 140 |
+
"topk_group": 1,
|
| 141 |
+
"topk_method": "noaux_tc",
|
| 142 |
+
"torch_dtype": "bfloat16",
|
| 143 |
+
"torchscript": false,
|
| 144 |
+
"transformers_version": "4.51.3",
|
| 145 |
+
"typical_p": 1.0,
|
| 146 |
+
"use_bfloat16": false,
|
| 147 |
+
"use_cache": true,
|
| 148 |
+
"v_head_dim": 128,
|
| 149 |
+
"vocab_size": 163840
|
| 150 |
+
}
|