dantepalacio
commited on
Upload openchat-fp16/config.json with huggingface_hub
Browse files- openchat-fp16/config.json +114 -0
openchat-fp16/config.json
ADDED
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"version": "0.9.0.dev2024030500",
|
3 |
+
"pretrained_config": {
|
4 |
+
"architecture": "MistralForCausalLM",
|
5 |
+
"dtype": "float16",
|
6 |
+
"logits_dtype": "float32",
|
7 |
+
"vocab_size": 32002,
|
8 |
+
"max_position_embeddings": 8192,
|
9 |
+
"hidden_size": 4096,
|
10 |
+
"num_hidden_layers": 32,
|
11 |
+
"num_attention_heads": 32,
|
12 |
+
"num_key_value_heads": 8,
|
13 |
+
"head_size": 128,
|
14 |
+
"hidden_act": "silu",
|
15 |
+
"intermediate_size": 14336,
|
16 |
+
"norm_epsilon": 1e-05,
|
17 |
+
"position_embedding_type": "rope_gpt_neox",
|
18 |
+
"use_prompt_tuning": false,
|
19 |
+
"use_parallel_embedding": false,
|
20 |
+
"embedding_sharding_dim": 0,
|
21 |
+
"share_embedding_table": false,
|
22 |
+
"mapping": {
|
23 |
+
"world_size": 1,
|
24 |
+
"tp_size": 1,
|
25 |
+
"pp_size": 1
|
26 |
+
},
|
27 |
+
"quantization": {
|
28 |
+
"quant_algo": null,
|
29 |
+
"kv_cache_quant_algo": null,
|
30 |
+
"group_size": 128,
|
31 |
+
"has_zero_point": false,
|
32 |
+
"pre_quant_scale": false,
|
33 |
+
"exclude_modules": [
|
34 |
+
"lm_head"
|
35 |
+
],
|
36 |
+
"sq_use_plugin": false
|
37 |
+
},
|
38 |
+
"kv_dtype": "float16",
|
39 |
+
"max_lora_rank": 64,
|
40 |
+
"rotary_base": 10000.0,
|
41 |
+
"rotary_scaling": null,
|
42 |
+
"moe_num_experts": 0,
|
43 |
+
"moe_top_k": 0,
|
44 |
+
"moe_tp_mode": 2,
|
45 |
+
"moe_normalization_mode": 1,
|
46 |
+
"enable_pos_shift": false,
|
47 |
+
"dense_context_fmha": false,
|
48 |
+
"lora_target_modules": [],
|
49 |
+
"hf_modules_to_trtllm_modules": {
|
50 |
+
"q_proj": "attn_q",
|
51 |
+
"k_proj": "attn_k",
|
52 |
+
"v_proj": "attn_v",
|
53 |
+
"o_proj": "attn_dense",
|
54 |
+
"gate_proj": "mlp_h_to_4h",
|
55 |
+
"down_proj": "mlp_4h_to_h",
|
56 |
+
"up_proj": "mlp_gate"
|
57 |
+
},
|
58 |
+
"trtllm_modules_to_hf_modules": {
|
59 |
+
"attn_q": "q_proj",
|
60 |
+
"attn_k": "k_proj",
|
61 |
+
"attn_v": "v_proj",
|
62 |
+
"attn_dense": "o_proj",
|
63 |
+
"mlp_h_to_4h": "gate_proj",
|
64 |
+
"mlp_4h_to_h": "down_proj",
|
65 |
+
"mlp_gate": "up_proj"
|
66 |
+
},
|
67 |
+
"disable_weight_only_quant_plugin": false,
|
68 |
+
"mlp_bias": false,
|
69 |
+
"attn_bias": false
|
70 |
+
},
|
71 |
+
"build_config": {
|
72 |
+
"max_input_len": 1024,
|
73 |
+
"max_output_len": 1024,
|
74 |
+
"max_batch_size": 1,
|
75 |
+
"max_beam_width": 1,
|
76 |
+
"max_num_tokens": 1024,
|
77 |
+
"max_prompt_embedding_table_size": 0,
|
78 |
+
"gather_context_logits": false,
|
79 |
+
"gather_generation_logits": false,
|
80 |
+
"strongly_typed": false,
|
81 |
+
"builder_opt": null,
|
82 |
+
"profiling_verbosity": "layer_names_only",
|
83 |
+
"enable_debug_output": false,
|
84 |
+
"max_draft_len": 0,
|
85 |
+
"plugin_config": {
|
86 |
+
"bert_attention_plugin": "float16",
|
87 |
+
"gpt_attention_plugin": "float16",
|
88 |
+
"gemm_plugin": "float16",
|
89 |
+
"smooth_quant_gemm_plugin": null,
|
90 |
+
"identity_plugin": null,
|
91 |
+
"layernorm_quantization_plugin": null,
|
92 |
+
"rmsnorm_quantization_plugin": null,
|
93 |
+
"nccl_plugin": null,
|
94 |
+
"lookup_plugin": null,
|
95 |
+
"lora_plugin": null,
|
96 |
+
"weight_only_groupwise_quant_matmul_plugin": null,
|
97 |
+
"weight_only_quant_matmul_plugin": null,
|
98 |
+
"quantize_per_token_plugin": false,
|
99 |
+
"quantize_tensor_plugin": false,
|
100 |
+
"moe_plugin": "float16",
|
101 |
+
"context_fmha": true,
|
102 |
+
"context_fmha_fp32_acc": false,
|
103 |
+
"paged_kv_cache": true,
|
104 |
+
"remove_input_padding": true,
|
105 |
+
"use_custom_all_reduce": true,
|
106 |
+
"multi_block_mode": false,
|
107 |
+
"enable_xqa": true,
|
108 |
+
"attention_qk_half_accumulation": false,
|
109 |
+
"tokens_per_block": 128,
|
110 |
+
"use_paged_context_fmha": false,
|
111 |
+
"use_context_fmha_for_generation": false
|
112 |
+
}
|
113 |
+
}
|
114 |
+
}
|