pankajroark commited on
Commit
59b46cb
·
verified ·
1 Parent(s): 02b136c

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ rank0.engine filter=lfs diff=lfs merge=lfs -text
config.json ADDED
@@ -0,0 +1,186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "0.20.0",
3
+ "pretrained_config": {
4
+ "mlp_bias": false,
5
+ "attn_bias": false,
6
+ "rotary_base": 10000.0,
7
+ "rotary_scaling": null,
8
+ "residual_mlp": false,
9
+ "disable_weight_only_quant_plugin": false,
10
+ "moe": {
11
+ "num_experts": 0,
12
+ "shared_expert_intermediate_size": 0,
13
+ "top_k": 0,
14
+ "normalization_mode": null,
15
+ "sparse_mixer_epsilon": 0.01,
16
+ "tp_mode": 0,
17
+ "device_limited_n_group": 0,
18
+ "device_limited_topk_group": 0,
19
+ "device_limited_routed_scaling_factor": 1.0
20
+ },
21
+ "remove_duplicated_kv_heads": false,
22
+ "fc_after_embed": false,
23
+ "use_input_layernorm_in_first_layer": true,
24
+ "use_last_layernorm": true,
25
+ "layer_idx_offset": 0,
26
+ "embedding_multiplier": 1.0,
27
+ "attention_multiplier": 1.0,
28
+ "residual_multiplier": 1.0,
29
+ "output_multiplier_scale": 1.0,
30
+ "has_partial_lora_mask": false,
31
+ "architecture": "LlamaForCausalLM",
32
+ "dtype": "float16",
33
+ "vocab_size": 32000,
34
+ "hidden_size": 2048,
35
+ "num_hidden_layers": 22,
36
+ "num_attention_heads": 32,
37
+ "hidden_act": "silu",
38
+ "logits_dtype": "float32",
39
+ "norm_epsilon": 1e-05,
40
+ "runtime_defaults": null,
41
+ "position_embedding_type": "rope_gpt_neox",
42
+ "num_key_value_heads": 4,
43
+ "intermediate_size": 5632,
44
+ "max_position_embeddings": 2048,
45
+ "mapping": {
46
+ "world_size": 1,
47
+ "gpus_per_node": 8,
48
+ "cp_size": 1,
49
+ "tp_size": 1,
50
+ "pp_size": 1,
51
+ "moe_tp_size": 1,
52
+ "moe_cluster_size": 1,
53
+ "moe_ep_size": 1,
54
+ "attn_tp_size": 1,
55
+ "attn_cp_size": 1,
56
+ "auto_parallel": false
57
+ },
58
+ "quantization": {
59
+ "quant_algo": null,
60
+ "kv_cache_quant_algo": null,
61
+ "group_size": 128,
62
+ "smoothquant_val": 0.5,
63
+ "clamp_val": null,
64
+ "use_meta_recipe": false,
65
+ "has_zero_point": false,
66
+ "pre_quant_scale": false,
67
+ "exclude_modules": null
68
+ },
69
+ "use_parallel_embedding": false,
70
+ "embedding_sharding_dim": 0,
71
+ "head_size": 64,
72
+ "qk_layernorm": false,
73
+ "rotary_embedding_dim": 64,
74
+ "tie_word_embeddings": false
75
+ },
76
+ "build_config": {
77
+ "max_input_len": 1024,
78
+ "max_seq_len": 8192,
79
+ "opt_batch_size": 8,
80
+ "max_batch_size": 256,
81
+ "max_beam_width": 1,
82
+ "max_num_tokens": 8192,
83
+ "opt_num_tokens": 256,
84
+ "max_prompt_embedding_table_size": 0,
85
+ "kv_cache_type": "PAGED",
86
+ "gather_context_logits": false,
87
+ "gather_generation_logits": false,
88
+ "strongly_typed": true,
89
+ "force_num_profiles": null,
90
+ "profiling_verbosity": "layer_names_only",
91
+ "enable_debug_output": false,
92
+ "max_draft_len": 0,
93
+ "speculative_decoding_mode": 1,
94
+ "use_refit": false,
95
+ "input_timing_cache": null,
96
+ "output_timing_cache": "model.cache",
97
+ "lora_config": {
98
+ "lora_dir": [],
99
+ "lora_ckpt_source": "hf",
100
+ "max_lora_rank": 64,
101
+ "lora_target_modules": [],
102
+ "trtllm_modules_to_hf_modules": {},
103
+ "max_loras": 4,
104
+ "max_cpu_loras": 4
105
+ },
106
+ "auto_parallel_config": {
107
+ "world_size": 1,
108
+ "gpus_per_node": 8,
109
+ "cluster_key": "A10G",
110
+ "cluster_info": null,
111
+ "sharding_cost_model": "alpha_beta",
112
+ "comm_cost_model": "alpha_beta",
113
+ "enable_pipeline_parallelism": false,
114
+ "enable_shard_unbalanced_shape": false,
115
+ "enable_shard_dynamic_shape": false,
116
+ "enable_reduce_scatter": true,
117
+ "builder_flags": null,
118
+ "debug_mode": false,
119
+ "infer_shape": true,
120
+ "validation_mode": false,
121
+ "same_buffer_io": {
122
+ "past_key_value_(\\d+)": "present_key_value_\\1"
123
+ },
124
+ "same_spec_io": {},
125
+ "sharded_io_allowlist": [
126
+ "past_key_value_\\d+",
127
+ "present_key_value_\\d*"
128
+ ],
129
+ "fill_weights": false,
130
+ "parallel_config_cache": null,
131
+ "profile_cache": null,
132
+ "dump_path": null,
133
+ "debug_outputs": []
134
+ },
135
+ "weight_sparsity": false,
136
+ "weight_streaming": false,
137
+ "plugin_config": {
138
+ "dtype": "float16",
139
+ "bert_attention_plugin": "auto",
140
+ "gpt_attention_plugin": "float16",
141
+ "gemm_plugin": "float16",
142
+ "explicitly_disable_gemm_plugin": false,
143
+ "gemm_swiglu_plugin": null,
144
+ "fp8_rowwise_gemm_plugin": null,
145
+ "qserve_gemm_plugin": null,
146
+ "identity_plugin": null,
147
+ "nccl_plugin": null,
148
+ "lora_plugin": null,
149
+ "dora_plugin": false,
150
+ "weight_only_groupwise_quant_matmul_plugin": null,
151
+ "weight_only_quant_matmul_plugin": null,
152
+ "smooth_quant_plugins": true,
153
+ "smooth_quant_gemm_plugin": null,
154
+ "layernorm_quantization_plugin": null,
155
+ "rmsnorm_quantization_plugin": null,
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
+ "low_latency_gemm_swiglu_plugin": null,
162
+ "gemm_allreduce_plugin": null,
163
+ "context_fmha": true,
164
+ "bert_context_fmha_fp32_acc": false,
165
+ "paged_kv_cache": true,
166
+ "remove_input_padding": true,
167
+ "norm_quant_fusion": false,
168
+ "reduce_fusion": false,
169
+ "user_buffer": false,
170
+ "tokens_per_block": 32,
171
+ "use_paged_context_fmha": true,
172
+ "use_fp8_context_fmha": false,
173
+ "fuse_fp4_quant": false,
174
+ "multiple_profiles": false,
175
+ "paged_state": false,
176
+ "streamingllm": false,
177
+ "manage_weights": false,
178
+ "use_fused_mlp": true,
179
+ "pp_reduce_scatter": false
180
+ },
181
+ "use_strip_plan": false,
182
+ "max_encoder_input_len": 1024,
183
+ "monitor_memory": false,
184
+ "use_mrope": false
185
+ }
186
+ }
rank0.engine ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18039792b2c553a2f410c4940d43f4211622d323e4647b585364b510a440a0c3
3
+ size 2205734572
tokenization/config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ }
tokenization/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
+ }
tokenization/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
+ }
tokenization/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
+ }
tokenization/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenization/tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenization/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
+ }