Upload config.json with huggingface_hub
Browse files- config.json +91 -0
config.json
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_classification_head": false,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"HunYuanDenseV1ForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"attention_bias": false,
|
| 7 |
+
"attention_dropout": 0.1,
|
| 8 |
+
"attention_head_dim": 128,
|
| 9 |
+
"bos_token_id": 1,
|
| 10 |
+
"cla_share_factor": 2,
|
| 11 |
+
"class_num": 0,
|
| 12 |
+
"dense_list": [
|
| 13 |
+
4096,
|
| 14 |
+
0
|
| 15 |
+
],
|
| 16 |
+
"eod_token_id": 127967,
|
| 17 |
+
"eos_token_id": 127960,
|
| 18 |
+
"head_dim": 128,
|
| 19 |
+
"hidden_act": "silu",
|
| 20 |
+
"hidden_size": 4096,
|
| 21 |
+
"im_end_id": 5,
|
| 22 |
+
"im_newline_id": 11,
|
| 23 |
+
"im_start_id": 4,
|
| 24 |
+
"initializer_range": 0.02,
|
| 25 |
+
"intermediate_size": 14336,
|
| 26 |
+
"mask_init_id": 12,
|
| 27 |
+
"max_position_embeddings": 32768,
|
| 28 |
+
"mlp_bias": false,
|
| 29 |
+
"model_type": "hunyuan_v1_dense",
|
| 30 |
+
"norm_type": "rms",
|
| 31 |
+
"num_attention_heads": 32,
|
| 32 |
+
"num_hidden_layers": 32,
|
| 33 |
+
"num_key_value_heads": 8,
|
| 34 |
+
"org_vocab_size": 128167,
|
| 35 |
+
"pad_id": 127961,
|
| 36 |
+
"pad_token_id": 127961,
|
| 37 |
+
"pool_type": "last",
|
| 38 |
+
"pretraining_tp": 1,
|
| 39 |
+
"quantization_config": {
|
| 40 |
+
"config_groups": {
|
| 41 |
+
"group_0": {
|
| 42 |
+
"input_activations": {
|
| 43 |
+
"dynamic": false,
|
| 44 |
+
"num_bits": 8,
|
| 45 |
+
"strategy": "tensor",
|
| 46 |
+
"type": "float"
|
| 47 |
+
},
|
| 48 |
+
"output_activations": null,
|
| 49 |
+
"targets": [
|
| 50 |
+
"Linear"
|
| 51 |
+
],
|
| 52 |
+
"weights": {
|
| 53 |
+
"dynamic": false,
|
| 54 |
+
"num_bits": 8,
|
| 55 |
+
"strategy": "tensor",
|
| 56 |
+
"type": "float"
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
},
|
| 60 |
+
"format": "naive-quantized",
|
| 61 |
+
"ignored_layers": [
|
| 62 |
+
"lm_head",
|
| 63 |
+
"model.embed_tokens"
|
| 64 |
+
],
|
| 65 |
+
"kv_cache_scheme": null,
|
| 66 |
+
"quant_method": "compressed-tensors",
|
| 67 |
+
"quantization_status": "compressed"
|
| 68 |
+
},
|
| 69 |
+
"rms_norm_eps": 1e-05,
|
| 70 |
+
"rope_scaling": {
|
| 71 |
+
"alpha": 1000.0,
|
| 72 |
+
"beta_fast": 32,
|
| 73 |
+
"beta_slow": 1,
|
| 74 |
+
"factor": 1.0,
|
| 75 |
+
"mscale": 1.0,
|
| 76 |
+
"mscale_all_dim": 1.0,
|
| 77 |
+
"type": "dynamic"
|
| 78 |
+
},
|
| 79 |
+
"rope_theta": 10000.0,
|
| 80 |
+
"sep_token_id": 127962,
|
| 81 |
+
"text_end_id": 7,
|
| 82 |
+
"text_start_id": 6,
|
| 83 |
+
"tie_word_embeddings": true,
|
| 84 |
+
"torch_dtype": "bfloat16",
|
| 85 |
+
"transformers_version": "4.52.4",
|
| 86 |
+
"use_cache": false,
|
| 87 |
+
"use_cla": false,
|
| 88 |
+
"use_qk_norm": true,
|
| 89 |
+
"use_rotary_pos_emb": true,
|
| 90 |
+
"vocab_size": 128167
|
| 91 |
+
}
|