Upload folder using huggingface_hub
Browse files- config.json +25 -230
- eval_results.json +16 -0
- generation_config.json +7 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +40 -0
config.json
CHANGED
@@ -1,231 +1,26 @@
|
|
1 |
{
|
2 |
-
|
3 |
-
"
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
"attention_multiplier": 1.0,
|
28 |
-
"residual_multiplier": 1.0,
|
29 |
-
"output_multiplier_scale": 1.0,
|
30 |
-
"architecture": "LlamaForCausalLM",
|
31 |
-
"dtype": "bfloat16",
|
32 |
-
"vocab_size": 32000,
|
33 |
-
"hidden_size": 2048,
|
34 |
-
"num_hidden_layers": 22,
|
35 |
-
"num_attention_heads": 32,
|
36 |
-
"hidden_act": "silu",
|
37 |
-
"logits_dtype": "float16",
|
38 |
-
"norm_epsilon": 1e-05,
|
39 |
-
"runtime_defaults": null,
|
40 |
-
"position_embedding_type": "rope_gpt_neox",
|
41 |
-
"num_key_value_heads": 4,
|
42 |
-
"intermediate_size": 5632,
|
43 |
-
"max_position_embeddings": 2048,
|
44 |
-
"mapping": {
|
45 |
-
"world_size": 1,
|
46 |
-
"gpus_per_node": 8,
|
47 |
-
"cp_size": 1,
|
48 |
-
"tp_size": 1,
|
49 |
-
"pp_size": 1,
|
50 |
-
"moe_tp_size": 1,
|
51 |
-
"moe_ep_size": 1,
|
52 |
-
"auto_parallel": false
|
53 |
-
},
|
54 |
-
"quantization": {
|
55 |
-
"quant_algo": "FP8",
|
56 |
-
"kv_cache_quant_algo": "FP8",
|
57 |
-
"group_size": 128,
|
58 |
-
"smoothquant_val": 0.5,
|
59 |
-
"clamp_val": null,
|
60 |
-
"use_meta_recipe": false,
|
61 |
-
"has_zero_point": false,
|
62 |
-
"pre_quant_scale": false,
|
63 |
-
"exclude_modules": [
|
64 |
-
"transformer.layers.14.post_layernorm",
|
65 |
-
"transformer.layers.4.post_layernorm",
|
66 |
-
"transformer.layers.2.input_layernorm",
|
67 |
-
"transformer.vocab_embedding",
|
68 |
-
"transformer.layers.7.input_layernorm",
|
69 |
-
"transformer.layers.18.input_layernorm",
|
70 |
-
"lm_head",
|
71 |
-
"transformer.layers.20.input_layernorm",
|
72 |
-
"transformer.layers.10.post_layernorm",
|
73 |
-
"transformer.layers.16.input_layernorm",
|
74 |
-
"transformer.layers.8.input_layernorm",
|
75 |
-
"transformer.layers.1.input_layernorm",
|
76 |
-
"transformer.layers.20.post_layernorm",
|
77 |
-
"transformer.layers.14.input_layernorm",
|
78 |
-
"transformer.layers.3.post_layernorm",
|
79 |
-
"transformer.layers.17.input_layernorm",
|
80 |
-
"transformer.layers.17.post_layernorm",
|
81 |
-
"transformer.layers.13.input_layernorm",
|
82 |
-
"transformer.layers.21.input_layernorm",
|
83 |
-
"transformer.layers.5.input_layernorm",
|
84 |
-
"transformer.layers.6.post_layernorm",
|
85 |
-
"transformer.layers.19.input_layernorm",
|
86 |
-
"transformer.layers.12.post_layernorm",
|
87 |
-
"transformer.layers.21.post_layernorm",
|
88 |
-
"transformer.layers.11.input_layernorm",
|
89 |
-
"transformer.layers.0.post_layernorm",
|
90 |
-
"transformer.layers.16.post_layernorm",
|
91 |
-
"transformer.layers.4.input_layernorm",
|
92 |
-
"transformer.layers.11.post_layernorm",
|
93 |
-
"transformer.layers.8.post_layernorm",
|
94 |
-
"transformer.layers.6.input_layernorm",
|
95 |
-
"transformer.layers.3.input_layernorm",
|
96 |
-
"transformer.layers.10.input_layernorm",
|
97 |
-
"transformer.layers.1.post_layernorm",
|
98 |
-
"transformer.layers.15.input_layernorm",
|
99 |
-
"transformer.layers.0.input_layernorm",
|
100 |
-
"transformer.layers.9.input_layernorm",
|
101 |
-
"transformer.layers.15.post_layernorm",
|
102 |
-
"transformer.layers.18.post_layernorm",
|
103 |
-
"transformer.layers.2.post_layernorm",
|
104 |
-
"transformer.layers.13.post_layernorm",
|
105 |
-
"transformer.layers.7.post_layernorm",
|
106 |
-
"transformer.layers.12.input_layernorm",
|
107 |
-
"transformer.ln_f",
|
108 |
-
"transformer.layers.9.post_layernorm",
|
109 |
-
"transformer.layers.5.post_layernorm",
|
110 |
-
"transformer.layers.19.post_layernorm"
|
111 |
-
]
|
112 |
-
},
|
113 |
-
"use_parallel_embedding": true,
|
114 |
-
"embedding_sharding_dim": 0,
|
115 |
-
"head_size": 64,
|
116 |
-
"qk_layernorm": false,
|
117 |
-
"rotary_embedding_dim": 64,
|
118 |
-
"producer": {
|
119 |
-
"name": "modelopt",
|
120 |
-
"version": "0.23.2"
|
121 |
-
},
|
122 |
-
"share_embedding_table": false,
|
123 |
-
"bias": false,
|
124 |
-
"rotary_pct": 1.0,
|
125 |
-
"rank": 0,
|
126 |
-
"decoder": "llama",
|
127 |
-
"rmsnorm": true,
|
128 |
-
"lm_head_bias": false,
|
129 |
-
"tie_word_embeddings": false,
|
130 |
-
"model_type": "llama"
|
131 |
-
},
|
132 |
-
"build_config": {
|
133 |
-
"max_input_len": 4096,
|
134 |
-
"max_seq_len": 4096,
|
135 |
-
"opt_batch_size": 8,
|
136 |
-
"max_batch_size": 1,
|
137 |
-
"max_beam_width": 1,
|
138 |
-
"max_num_tokens": 4096,
|
139 |
-
"opt_num_tokens": null,
|
140 |
-
"max_prompt_embedding_table_size": 0,
|
141 |
-
"kv_cache_type": "PAGED",
|
142 |
-
"gather_context_logits": false,
|
143 |
-
"gather_generation_logits": false,
|
144 |
-
"strongly_typed": true,
|
145 |
-
"force_num_profiles": null,
|
146 |
-
"profiling_verbosity": "layer_names_only",
|
147 |
-
"enable_debug_output": false,
|
148 |
-
"max_draft_len": 0,
|
149 |
-
"speculative_decoding_mode": 1,
|
150 |
-
"use_refit": false,
|
151 |
-
"input_timing_cache": null,
|
152 |
-
"output_timing_cache": "model.cache",
|
153 |
-
"lora_config": {
|
154 |
-
"lora_dir": [],
|
155 |
-
"lora_ckpt_source": "hf",
|
156 |
-
"max_lora_rank": 64,
|
157 |
-
"lora_target_modules": [],
|
158 |
-
"trtllm_modules_to_hf_modules": {}
|
159 |
-
},
|
160 |
-
"auto_parallel_config": {
|
161 |
-
"world_size": 1,
|
162 |
-
"gpus_per_node": 8,
|
163 |
-
"cluster_key": null,
|
164 |
-
"cluster_info": null,
|
165 |
-
"sharding_cost_model": "alpha_beta",
|
166 |
-
"comm_cost_model": "alpha_beta",
|
167 |
-
"enable_pipeline_parallelism": false,
|
168 |
-
"enable_shard_unbalanced_shape": false,
|
169 |
-
"enable_shard_dynamic_shape": false,
|
170 |
-
"enable_reduce_scatter": true,
|
171 |
-
"builder_flags": null,
|
172 |
-
"debug_mode": false,
|
173 |
-
"infer_shape": true,
|
174 |
-
"validation_mode": false,
|
175 |
-
"same_buffer_io": {},
|
176 |
-
"same_spec_io": {},
|
177 |
-
"sharded_io_allowlist": [],
|
178 |
-
"fill_weights": false,
|
179 |
-
"parallel_config_cache": null,
|
180 |
-
"profile_cache": null,
|
181 |
-
"dump_path": null,
|
182 |
-
"debug_outputs": []
|
183 |
-
},
|
184 |
-
"weight_sparsity": false,
|
185 |
-
"weight_streaming": false,
|
186 |
-
"plugin_config": {
|
187 |
-
"dtype": "bfloat16",
|
188 |
-
"bert_attention_plugin": "auto",
|
189 |
-
"gpt_attention_plugin": "auto",
|
190 |
-
"gemm_plugin": null,
|
191 |
-
"explicitly_disable_gemm_plugin": false,
|
192 |
-
"gemm_swiglu_plugin": null,
|
193 |
-
"fp8_rowwise_gemm_plugin": null,
|
194 |
-
"qserve_gemm_plugin": null,
|
195 |
-
"identity_plugin": null,
|
196 |
-
"nccl_plugin": null,
|
197 |
-
"lora_plugin": null,
|
198 |
-
"weight_only_groupwise_quant_matmul_plugin": null,
|
199 |
-
"weight_only_quant_matmul_plugin": null,
|
200 |
-
"smooth_quant_plugins": true,
|
201 |
-
"smooth_quant_gemm_plugin": null,
|
202 |
-
"layernorm_quantization_plugin": null,
|
203 |
-
"rmsnorm_quantization_plugin": null,
|
204 |
-
"quantize_per_token_plugin": false,
|
205 |
-
"quantize_tensor_plugin": false,
|
206 |
-
"moe_plugin": "auto",
|
207 |
-
"mamba_conv1d_plugin": "auto",
|
208 |
-
"low_latency_gemm_plugin": null,
|
209 |
-
"low_latency_gemm_swiglu_plugin": null,
|
210 |
-
"context_fmha": true,
|
211 |
-
"bert_context_fmha_fp32_acc": false,
|
212 |
-
"paged_kv_cache": true,
|
213 |
-
"remove_input_padding": true,
|
214 |
-
"reduce_fusion": false,
|
215 |
-
"user_buffer": false,
|
216 |
-
"tokens_per_block": 64,
|
217 |
-
"use_paged_context_fmha": true,
|
218 |
-
"use_fp8_context_fmha": true,
|
219 |
-
"multiple_profiles": true,
|
220 |
-
"paged_state": false,
|
221 |
-
"streamingllm": false,
|
222 |
-
"manage_weights": false,
|
223 |
-
"use_fused_mlp": true,
|
224 |
-
"pp_reduce_scatter": false
|
225 |
-
},
|
226 |
-
"use_strip_plan": false,
|
227 |
-
"max_encoder_input_len": 1024,
|
228 |
-
"monitor_memory": false,
|
229 |
-
"use_mrope": false
|
230 |
-
}
|
231 |
-
}
|
|
|
1 |
{
|
2 |
+
"architectures": [
|
3 |
+
"LlamaForCausalLM"
|
4 |
+
],
|
5 |
+
"attention_bias": false,
|
6 |
+
"bos_token_id": 1,
|
7 |
+
"eos_token_id": 2,
|
8 |
+
"hidden_act": "silu",
|
9 |
+
"hidden_size": 2048,
|
10 |
+
"initializer_range": 0.02,
|
11 |
+
"intermediate_size": 5632,
|
12 |
+
"max_position_embeddings": 2048,
|
13 |
+
"model_type": "llama",
|
14 |
+
"num_attention_heads": 32,
|
15 |
+
"num_hidden_layers": 22,
|
16 |
+
"num_key_value_heads": 4,
|
17 |
+
"pretraining_tp": 1,
|
18 |
+
"rms_norm_eps": 1e-05,
|
19 |
+
"rope_scaling": null,
|
20 |
+
"rope_theta": 10000.0,
|
21 |
+
"tie_word_embeddings": false,
|
22 |
+
"torch_dtype": "bfloat16",
|
23 |
+
"transformers_version": "4.35.0",
|
24 |
+
"use_cache": true,
|
25 |
+
"vocab_size": 32000
|
26 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
eval_results.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"eval_logits/chosen": -2.707406759262085,
|
4 |
+
"eval_logits/rejected": -2.656524419784546,
|
5 |
+
"eval_logps/chosen": -370.1297607421875,
|
6 |
+
"eval_logps/rejected": -296.0738525390625,
|
7 |
+
"eval_loss": 0.513750433921814,
|
8 |
+
"eval_rewards/accuracies": 0.738095223903656,
|
9 |
+
"eval_rewards/chosen": -0.02744222804903984,
|
10 |
+
"eval_rewards/margins": 1.0087225437164307,
|
11 |
+
"eval_rewards/rejected": -1.03616464138031,
|
12 |
+
"eval_runtime": 93.5908,
|
13 |
+
"eval_samples": 2000,
|
14 |
+
"eval_samples_per_second": 21.37,
|
15 |
+
"eval_steps_per_second": 0.673
|
16 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 1,
|
3 |
+
"eos_token_id": 2,
|
4 |
+
"max_length": 2048,
|
5 |
+
"pad_token_id": 0,
|
6 |
+
"transformers_version": "4.35.0"
|
7 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "</s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": {
|
17 |
+
"content": "</s>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"unk_token": {
|
24 |
+
"content": "<unk>",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
}
|
30 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
|
3 |
+
size 499723
|
tokenizer_config.json
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "<unk>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "<s>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "</s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
}
|
27 |
+
},
|
28 |
+
"bos_token": "<s>",
|
29 |
+
"chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
|
30 |
+
"clean_up_tokenization_spaces": false,
|
31 |
+
"eos_token": "</s>",
|
32 |
+
"legacy": false,
|
33 |
+
"model_max_length": 2048,
|
34 |
+
"pad_token": "</s>",
|
35 |
+
"padding_side": "right",
|
36 |
+
"sp_model_kwargs": {},
|
37 |
+
"tokenizer_class": "LlamaTokenizer",
|
38 |
+
"unk_token": "<unk>",
|
39 |
+
"use_default_system_prompt": false
|
40 |
+
}
|