dimitribarbot
commited on
Commit
•
038026c
1
Parent(s):
b877c76
Upload 4 files
Browse files- config.json +182 -0
- special_tokens_map.json +23 -0
- tokenizer.json +0 -0
- tokenizer_config.json +35 -0
config.json
ADDED
@@ -0,0 +1,182 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"version": "0.15.0.dev2024101500",
|
3 |
+
"pretrained_config": {
|
4 |
+
"mlp_bias": false,
|
5 |
+
"attn_bias": false,
|
6 |
+
"rotary_base": 1000000,
|
7 |
+
"rotary_scaling": null,
|
8 |
+
"residual_mlp": false,
|
9 |
+
"disable_weight_only_quant_plugin": false,
|
10 |
+
"moe": {
|
11 |
+
"num_experts": 0,
|
12 |
+
"moe_intermediate_size": 0,
|
13 |
+
"num_shared_experts": 0,
|
14 |
+
"top_k": 0,
|
15 |
+
"normalization_mode": null,
|
16 |
+
"sparse_mixer_epsilon": 0.01,
|
17 |
+
"tp_mode": 0
|
18 |
+
},
|
19 |
+
"remove_duplicated_kv_heads": false,
|
20 |
+
"fc_after_embed": false,
|
21 |
+
"use_input_layernorm_in_first_layer": true,
|
22 |
+
"architecture": "LlamaForCausalLM",
|
23 |
+
"dtype": "float16",
|
24 |
+
"vocab_size": 32016,
|
25 |
+
"hidden_size": 5120,
|
26 |
+
"num_hidden_layers": 40,
|
27 |
+
"num_attention_heads": 40,
|
28 |
+
"hidden_act": "silu",
|
29 |
+
"logits_dtype": "float32",
|
30 |
+
"norm_epsilon": 1e-05,
|
31 |
+
"position_embedding_type": "rope_gpt_neox",
|
32 |
+
"max_position_embeddings": 16384,
|
33 |
+
"num_key_value_heads": 40,
|
34 |
+
"intermediate_size": 13824,
|
35 |
+
"mapping": {
|
36 |
+
"world_size": 1,
|
37 |
+
"gpus_per_node": 8,
|
38 |
+
"cp_size": 1,
|
39 |
+
"tp_size": 1,
|
40 |
+
"pp_size": 1,
|
41 |
+
"moe_tp_size": 1,
|
42 |
+
"moe_ep_size": 1
|
43 |
+
},
|
44 |
+
"quantization": {
|
45 |
+
"quant_algo": "W4A16_GPTQ",
|
46 |
+
"kv_cache_quant_algo": null,
|
47 |
+
"group_size": 128,
|
48 |
+
"smoothquant_val": 0.5,
|
49 |
+
"clamp_val": null,
|
50 |
+
"has_zero_point": true,
|
51 |
+
"pre_quant_scale": false,
|
52 |
+
"exclude_modules": null
|
53 |
+
},
|
54 |
+
"use_parallel_embedding": false,
|
55 |
+
"embedding_sharding_dim": 0,
|
56 |
+
"share_embedding_table": false,
|
57 |
+
"head_size": 128,
|
58 |
+
"qk_layernorm": false
|
59 |
+
},
|
60 |
+
"build_config": {
|
61 |
+
"max_input_len": 8192,
|
62 |
+
"max_seq_len": 8192,
|
63 |
+
"opt_batch_size": null,
|
64 |
+
"max_batch_size": 2048,
|
65 |
+
"max_beam_width": 1,
|
66 |
+
"max_num_tokens": 8192,
|
67 |
+
"opt_num_tokens": 2048,
|
68 |
+
"max_prompt_embedding_table_size": 0,
|
69 |
+
"kv_cache_type": "PAGED",
|
70 |
+
"gather_context_logits": false,
|
71 |
+
"gather_generation_logits": false,
|
72 |
+
"strongly_typed": true,
|
73 |
+
"force_num_profiles": null,
|
74 |
+
"profiling_verbosity": "layer_names_only",
|
75 |
+
"enable_debug_output": false,
|
76 |
+
"max_draft_len": 0,
|
77 |
+
"speculative_decoding_mode": 1,
|
78 |
+
"use_refit": false,
|
79 |
+
"input_timing_cache": null,
|
80 |
+
"output_timing_cache": "model.cache",
|
81 |
+
"lora_config": {
|
82 |
+
"lora_dir": [],
|
83 |
+
"lora_ckpt_source": "hf",
|
84 |
+
"max_lora_rank": 64,
|
85 |
+
"lora_target_modules": [],
|
86 |
+
"trtllm_modules_to_hf_modules": {}
|
87 |
+
},
|
88 |
+
"auto_parallel_config": {
|
89 |
+
"world_size": 1,
|
90 |
+
"gpus_per_node": 8,
|
91 |
+
"cluster_key": "NVIDIA-GeForce-RTX-4090",
|
92 |
+
"cluster_info": {
|
93 |
+
"inter_node_bw_per_device": 25,
|
94 |
+
"intra_node_bw_per_device": 32,
|
95 |
+
"inter_node_latency": 10,
|
96 |
+
"intra_node_latency": 10,
|
97 |
+
"intra_node_sharp": false,
|
98 |
+
"inter_node_sharp": true,
|
99 |
+
"memory_bw": 1008,
|
100 |
+
"memory_budget_per_device": 23,
|
101 |
+
"math_throughput": {
|
102 |
+
"int4": 821,
|
103 |
+
"int8": 410,
|
104 |
+
"fp8": 410,
|
105 |
+
"float16": 205,
|
106 |
+
"bfloat16": 205,
|
107 |
+
"float32": 102
|
108 |
+
},
|
109 |
+
"memory_efficiency": 1.0,
|
110 |
+
"math_efficiency": 1.0,
|
111 |
+
"communication_efficiency": 1.0
|
112 |
+
},
|
113 |
+
"sharding_cost_model": "alpha_beta",
|
114 |
+
"comm_cost_model": "alpha_beta",
|
115 |
+
"enable_pipeline_parallelism": false,
|
116 |
+
"enable_shard_unbalanced_shape": false,
|
117 |
+
"enable_shard_dynamic_shape": false,
|
118 |
+
"enable_reduce_scatter": true,
|
119 |
+
"builder_flags": null,
|
120 |
+
"debug_mode": false,
|
121 |
+
"infer_shape": true,
|
122 |
+
"validation_mode": false,
|
123 |
+
"same_buffer_io": {
|
124 |
+
"past_key_value_(\\d+)": "present_key_value_\\1"
|
125 |
+
},
|
126 |
+
"same_spec_io": {},
|
127 |
+
"sharded_io_allowlist": [
|
128 |
+
"past_key_value_\\d+",
|
129 |
+
"present_key_value_\\d*"
|
130 |
+
],
|
131 |
+
"fill_weights": false,
|
132 |
+
"parallel_config_cache": null,
|
133 |
+
"profile_cache": null,
|
134 |
+
"dump_path": null,
|
135 |
+
"debug_outputs": []
|
136 |
+
},
|
137 |
+
"weight_sparsity": false,
|
138 |
+
"weight_streaming": false,
|
139 |
+
"plugin_config": {
|
140 |
+
"dtype": "float16",
|
141 |
+
"bert_attention_plugin": "auto",
|
142 |
+
"gpt_attention_plugin": "auto",
|
143 |
+
"gemm_plugin": "float16",
|
144 |
+
"gemm_swiglu_plugin": null,
|
145 |
+
"fp8_rowwise_gemm_plugin": null,
|
146 |
+
"smooth_quant_gemm_plugin": null,
|
147 |
+
"identity_plugin": null,
|
148 |
+
"layernorm_quantization_plugin": null,
|
149 |
+
"rmsnorm_quantization_plugin": null,
|
150 |
+
"nccl_plugin": null,
|
151 |
+
"lookup_plugin": null,
|
152 |
+
"lora_plugin": null,
|
153 |
+
"weight_only_groupwise_quant_matmul_plugin": "float16",
|
154 |
+
"weight_only_quant_matmul_plugin": null,
|
155 |
+
"smooth_quant_plugins": true,
|
156 |
+
"quantize_per_token_plugin": false,
|
157 |
+
"quantize_tensor_plugin": false,
|
158 |
+
"moe_plugin": "auto",
|
159 |
+
"mamba_conv1d_plugin": "auto",
|
160 |
+
"low_latency_gemm_plugin": null,
|
161 |
+
"context_fmha": true,
|
162 |
+
"bert_context_fmha_fp32_acc": false,
|
163 |
+
"paged_kv_cache": true,
|
164 |
+
"remove_input_padding": true,
|
165 |
+
"reduce_fusion": false,
|
166 |
+
"enable_xqa": true,
|
167 |
+
"tokens_per_block": 64,
|
168 |
+
"use_paged_context_fmha": false,
|
169 |
+
"use_fp8_context_fmha": false,
|
170 |
+
"multiple_profiles": false,
|
171 |
+
"paged_state": false,
|
172 |
+
"streamingllm": false,
|
173 |
+
"manage_weights": false,
|
174 |
+
"use_fused_mlp": true,
|
175 |
+
"pp_reduce_scatter": false
|
176 |
+
},
|
177 |
+
"use_strip_plan": false,
|
178 |
+
"max_encoder_input_len": 1024,
|
179 |
+
"use_fused_mlp": false,
|
180 |
+
"monitor_memory": false
|
181 |
+
}
|
182 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "</s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"unk_token": {
|
17 |
+
"content": "<unk>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": true,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
}
|
23 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>\\n' + system_message + '\\n<</SYS>>\\n\\n' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ bos_token + '[INST] ' + content | trim + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content | trim + ' ' + eos_token }}{% endif %}{% endfor %}",
|
3 |
+
"add_bos_token": true,
|
4 |
+
"add_eos_token": false,
|
5 |
+
"bos_token": {
|
6 |
+
"__type": "AddedToken",
|
7 |
+
"content": "<s>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": true,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false
|
12 |
+
},
|
13 |
+
"clean_up_tokenization_spaces": false,
|
14 |
+
"eos_token": {
|
15 |
+
"__type": "AddedToken",
|
16 |
+
"content": "</s>",
|
17 |
+
"lstrip": false,
|
18 |
+
"normalized": true,
|
19 |
+
"rstrip": false,
|
20 |
+
"single_word": false
|
21 |
+
},
|
22 |
+
"legacy": null,
|
23 |
+
"model_max_length": 1000000000000000019884624838656,
|
24 |
+
"pad_token": null,
|
25 |
+
"sp_model_kwargs": {},
|
26 |
+
"tokenizer_class": "CodeLlamaTokenizer",
|
27 |
+
"unk_token": {
|
28 |
+
"__type": "AddedToken",
|
29 |
+
"content": "<unk>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": true,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false
|
34 |
+
}
|
35 |
+
}
|