htrivedi99 commited on
Commit
d9efe77
·
verified ·
1 Parent(s): 81fd91b

Upload compiled-model/config.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. compiled-model/config.json +115 -0
compiled-model/config.json ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "0.8.0.dev2024013000",
3
+ "pretrained_config": {
4
+ "architecture": "MistralForCausalLM",
5
+ "dtype": "float16",
6
+ "logits_dtype": "float32",
7
+ "vocab_size": 32000,
8
+ "max_position_embeddings": 32768,
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
+ "kv_dtype": "float16",
28
+ "max_lora_rank": 64,
29
+ "rotary_base": 10000.0,
30
+ "rotary_scaling": null,
31
+ "moe_config": {
32
+ "num_experts": 0,
33
+ "top_k": 0,
34
+ "tp_mode": 2,
35
+ "normalization_mode": 1
36
+ },
37
+ "moe_num_experts": 0,
38
+ "moe_top_k": 0,
39
+ "moe_tp_mode": 2,
40
+ "moe_normalization_mode": 1,
41
+ "use_fused_mlp": false,
42
+ "enable_pos_shift": false,
43
+ "dense_context_fmha": false,
44
+ "lora_target_modules": null,
45
+ "hf_modules_to_trtllm_modules": {
46
+ "q_proj": "attn_q",
47
+ "k_proj": "attn_k",
48
+ "v_proj": "attn_v",
49
+ "o_proj": "attn_dense",
50
+ "gate_proj": "mlp_h_to_4h",
51
+ "down_proj": "mlp_4h_to_h",
52
+ "up_proj": "mlp_gate"
53
+ },
54
+ "trtllm_modules_to_hf_modules": {
55
+ "attn_q": "q_proj",
56
+ "attn_k": "k_proj",
57
+ "attn_v": "v_proj",
58
+ "attn_dense": "o_proj",
59
+ "mlp_h_to_4h": "gate_proj",
60
+ "mlp_4h_to_h": "down_proj",
61
+ "mlp_gate": "up_proj"
62
+ },
63
+ "disable_weight_only_quant_plugin": false,
64
+ "mlp_bias": false,
65
+ "attn_bias": false,
66
+ "quantization": {
67
+ "quant_algo": null,
68
+ "kv_cache_quant_algo": null,
69
+ "group_size": 128,
70
+ "has_zero_point": false,
71
+ "pre_quant_scale": false,
72
+ "exclude_modules": null
73
+ }
74
+ },
75
+ "build_config": {
76
+ "max_input_len": 32256,
77
+ "max_output_len": 1024,
78
+ "max_batch_size": 1,
79
+ "max_beam_width": 1,
80
+ "max_num_tokens": 32256,
81
+ "max_prompt_embedding_table_size": 0,
82
+ "gather_context_logits": false,
83
+ "gather_generation_logits": false,
84
+ "strongly_typed": false,
85
+ "builder_opt": null,
86
+ "profiling_verbosity": "layer_names_only",
87
+ "plugin_config": {
88
+ "bert_attention_plugin": "float16",
89
+ "gpt_attention_plugin": "float16",
90
+ "gemm_plugin": "float16",
91
+ "smooth_quant_gemm_plugin": null,
92
+ "identity_plugin": null,
93
+ "layernorm_quantization_plugin": null,
94
+ "rmsnorm_quantization_plugin": null,
95
+ "nccl_plugin": null,
96
+ "lookup_plugin": null,
97
+ "lora_plugin": null,
98
+ "weight_only_groupwise_quant_matmul_plugin": null,
99
+ "weight_only_quant_matmul_plugin": null,
100
+ "quantize_per_token_plugin": false,
101
+ "quantize_tensor_plugin": false,
102
+ "context_fmha": true,
103
+ "context_fmha_fp32_acc": false,
104
+ "paged_kv_cache": true,
105
+ "remove_input_padding": true,
106
+ "use_custom_all_reduce": true,
107
+ "multi_block_mode": false,
108
+ "enable_xqa": true,
109
+ "attention_qk_half_accumulation": false,
110
+ "tokens_per_block": 128,
111
+ "use_paged_context_fmha": false,
112
+ "use_context_fmha_for_generation": false
113
+ }
114
+ }
115
+ }