pankajroark commited on
Commit
8ffa5b4
1 Parent(s): a574027

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. config.json +165 -0
config.json ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "0.11.0.dev2024061800",
3
+ "pretrained_config": {
4
+ "mlp_bias": false,
5
+ "attn_bias": false,
6
+ "rotary_base": 1000000.0,
7
+ "rotary_scaling": null,
8
+ "residual_mlp": false,
9
+ "disable_weight_only_quant_plugin": false,
10
+ "moe": {
11
+ "num_experts": 0,
12
+ "top_k": 0,
13
+ "normalization_mode": null
14
+ },
15
+ "architecture": "LlamaForCausalLM",
16
+ "dtype": "float16",
17
+ "vocab_size": 32000,
18
+ "hidden_size": 4096,
19
+ "num_hidden_layers": 32,
20
+ "num_attention_heads": 32,
21
+ "hidden_act": "silu",
22
+ "logits_dtype": "float32",
23
+ "norm_epsilon": 1e-05,
24
+ "position_embedding_type": "rope_gpt_neox",
25
+ "max_position_embeddings": 32768,
26
+ "num_key_value_heads": 8,
27
+ "intermediate_size": 14336,
28
+ "mapping": {
29
+ "world_size": 1,
30
+ "gpus_per_node": 8,
31
+ "tp_size": 1,
32
+ "pp_size": 1,
33
+ "moe_tp_size": 1,
34
+ "moe_ep_size": 1
35
+ },
36
+ "quantization": {
37
+ "quant_algo": null,
38
+ "kv_cache_quant_algo": null,
39
+ "group_size": 128,
40
+ "smoothquant_val": null,
41
+ "has_zero_point": false,
42
+ "pre_quant_scale": false,
43
+ "exclude_modules": null
44
+ },
45
+ "use_parallel_embedding": false,
46
+ "embedding_sharding_dim": 0,
47
+ "share_embedding_table": false,
48
+ "head_size": 128,
49
+ "qk_layernorm": false
50
+ },
51
+ "build_config": {
52
+ "max_input_len": 1024,
53
+ "max_seq_len": 2048,
54
+ "opt_batch_size": null,
55
+ "max_batch_size": 64,
56
+ "max_beam_width": 1,
57
+ "max_num_tokens": 8192,
58
+ "opt_num_tokens": 64,
59
+ "max_prompt_embedding_table_size": 0,
60
+ "gather_context_logits": false,
61
+ "gather_generation_logits": false,
62
+ "strongly_typed": true,
63
+ "builder_opt": null,
64
+ "profiling_verbosity": "layer_names_only",
65
+ "enable_debug_output": false,
66
+ "max_draft_len": 0,
67
+ "speculative_decoding_mode": 1,
68
+ "use_refit": false,
69
+ "input_timing_cache": null,
70
+ "output_timing_cache": "model.cache",
71
+ "lora_config": {
72
+ "lora_dir": [],
73
+ "lora_ckpt_source": "hf",
74
+ "max_lora_rank": 16,
75
+ "lora_target_modules": [
76
+ "attn_q",
77
+ "attn_k",
78
+ "attn_v",
79
+ "attn_dense"
80
+ ],
81
+ "trtllm_modules_to_hf_modules": {
82
+ "attn_q": "q_proj",
83
+ "attn_k": "k_proj",
84
+ "attn_v": "v_proj",
85
+ "attn_dense": "o_proj",
86
+ "mlp_h_to_4h": "gate_proj",
87
+ "mlp_4h_to_h": "down_proj",
88
+ "mlp_gate": "up_proj",
89
+ "moe_h_to_4h": "w1",
90
+ "moe_4h_to_h": "w2",
91
+ "moe_gate": "w3",
92
+ "moe_router": "gate"
93
+ }
94
+ },
95
+ "auto_parallel_config": {
96
+ "world_size": 1,
97
+ "gpus_per_node": 8,
98
+ "cluster_key": "A100-SXM-80GB",
99
+ "cluster_info": null,
100
+ "sharding_cost_model": "alpha_beta",
101
+ "comm_cost_model": "alpha_beta",
102
+ "enable_pipeline_parallelism": false,
103
+ "enable_shard_unbalanced_shape": false,
104
+ "enable_shard_dynamic_shape": false,
105
+ "enable_reduce_scatter": true,
106
+ "builder_flags": null,
107
+ "debug_mode": false,
108
+ "infer_shape": true,
109
+ "validation_mode": false,
110
+ "same_buffer_io": {
111
+ "past_key_value_(\\d+)": "present_key_value_\\1"
112
+ },
113
+ "same_spec_io": {},
114
+ "sharded_io_allowlist": [
115
+ "past_key_value_\\d+",
116
+ "present_key_value_\\d*"
117
+ ],
118
+ "fill_weights": false,
119
+ "parallel_config_cache": null,
120
+ "profile_cache": null,
121
+ "dump_path": null,
122
+ "debug_outputs": []
123
+ },
124
+ "weight_sparsity": false,
125
+ "weight_streaming": false,
126
+ "plugin_config": {
127
+ "dtype": "float16",
128
+ "bert_attention_plugin": "auto",
129
+ "gpt_attention_plugin": "auto",
130
+ "gemm_plugin": "float16",
131
+ "gemm_swiglu_plugin": null,
132
+ "smooth_quant_gemm_plugin": null,
133
+ "identity_plugin": null,
134
+ "layernorm_quantization_plugin": null,
135
+ "rmsnorm_quantization_plugin": null,
136
+ "nccl_plugin": null,
137
+ "lookup_plugin": null,
138
+ "lora_plugin": "float16",
139
+ "weight_only_groupwise_quant_matmul_plugin": null,
140
+ "weight_only_quant_matmul_plugin": null,
141
+ "quantize_per_token_plugin": false,
142
+ "quantize_tensor_plugin": false,
143
+ "moe_plugin": "auto",
144
+ "mamba_conv1d_plugin": "auto",
145
+ "context_fmha": true,
146
+ "context_fmha_fp32_acc": false,
147
+ "paged_kv_cache": true,
148
+ "remove_input_padding": true,
149
+ "use_custom_all_reduce": true,
150
+ "reduce_fusion": false,
151
+ "multi_block_mode": false,
152
+ "enable_xqa": true,
153
+ "attention_qk_half_accumulation": false,
154
+ "tokens_per_block": 64,
155
+ "use_paged_context_fmha": true,
156
+ "use_fp8_context_fmha": false,
157
+ "multiple_profiles": false,
158
+ "paged_state": true,
159
+ "streamingllm": false
160
+ },
161
+ "use_strip_plan": false,
162
+ "max_encoder_input_len": 1024,
163
+ "use_fused_mlp": false
164
+ }
165
+ }