cloud19 commited on
Commit
8a0fcbf
·
verified ·
1 Parent(s): a4e740c

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -35,3 +35,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
  trtllm_checkpoint/tokenizer.json filter=lfs diff=lfs merge=lfs -text
 
 
 
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
  trtllm_checkpoint/tokenizer.json filter=lfs diff=lfs merge=lfs -text
38
+ engine/rank0.engine filter=lfs diff=lfs merge=lfs -text
39
+ engine/tokenizer.json filter=lfs diff=lfs merge=lfs -text
engine/chat_template.jinja ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] | trim + '
2
+
3
+ ' %}{% set messages = messages[1:] %}{% else %}{% set system_message = '' %}{% endif %}{{- bos_token + system_message}}{% for message in messages %}{% if message['role'] == 'user' %}{{ '[INST]' + message['content'] | trim + '[/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] | trim + eos_token }}{% endif %}{% endfor %}
engine/config.json ADDED
@@ -0,0 +1,231 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "mistral",
3
+ "version": "1.1.0",
4
+ "pretrained_config": {
5
+ "mlp_bias": false,
6
+ "attn_bias": false,
7
+ "rotary_base": 1000000.0,
8
+ "rotary_scaling": null,
9
+ "residual_mlp": false,
10
+ "disable_weight_only_quant_plugin": false,
11
+ "moe": {
12
+ "num_experts": 0,
13
+ "shared_expert_intermediate_size": 0,
14
+ "top_k": 0,
15
+ "normalization_mode": null,
16
+ "sparse_mixer_epsilon": 0.01,
17
+ "tp_mode": 0,
18
+ "device_limited_n_group": 0,
19
+ "device_limited_topk_group": 0,
20
+ "device_limited_routed_scaling_factor": 1.0
21
+ },
22
+ "remove_duplicated_kv_heads": false,
23
+ "fc_after_embed": false,
24
+ "use_input_layernorm_in_first_layer": true,
25
+ "use_last_layernorm": true,
26
+ "layer_idx_offset": 0,
27
+ "embedding_multiplier": 1.0,
28
+ "attention_multiplier": 1.0,
29
+ "residual_multiplier": 1.0,
30
+ "output_multiplier_scale": 1.0,
31
+ "has_partial_lora_mask": false,
32
+ "architecture": "MistralForCausalLM",
33
+ "architectures": [
34
+ "MistralForCausalLM"
35
+ ],
36
+ "dtype": "bfloat16",
37
+ "vocab_size": 131072,
38
+ "hidden_size": 5120,
39
+ "num_hidden_layers": 40,
40
+ "num_attention_heads": 32,
41
+ "hidden_act": "silu",
42
+ "logits_dtype": "float16",
43
+ "norm_epsilon": 1e-05,
44
+ "runtime_defaults": null,
45
+ "position_embedding_type": "rope_gpt_neox",
46
+ "num_key_value_heads": 8,
47
+ "intermediate_size": 14336,
48
+ "max_position_embeddings": 1024000,
49
+ "mapping": {
50
+ "world_size": 1,
51
+ "gpus_per_node": 8,
52
+ "cp_size": 1,
53
+ "tp_size": 1,
54
+ "pp_size": 1,
55
+ "moe_tp_size": 1,
56
+ "moe_cluster_size": 1,
57
+ "moe_ep_size": 1,
58
+ "attn_tp_size": 1,
59
+ "attn_cp_size": 1,
60
+ "cp_config": {},
61
+ "auto_parallel": false,
62
+ "enable_attention_dp": false,
63
+ "enable_lm_head_tp_in_adp": false
64
+ },
65
+ "quantization": {
66
+ "quant_algo": "NVFP4",
67
+ "kv_cache_quant_algo": null,
68
+ "group_size": 16,
69
+ "smoothquant_val": 0.5,
70
+ "clamp_val": null,
71
+ "use_meta_recipe": false,
72
+ "has_zero_point": false,
73
+ "pre_quant_scale": false,
74
+ "exclude_modules": [
75
+ "lm_head"
76
+ ],
77
+ "mamba_ssm_cache_dtype": null
78
+ },
79
+ "use_parallel_embedding": true,
80
+ "embedding_sharding_dim": 0,
81
+ "head_size": 128,
82
+ "qk_layernorm": false,
83
+ "rotary_embedding_dim": 128,
84
+ "producer": {
85
+ "name": "modelopt",
86
+ "version": "0.37.0"
87
+ },
88
+ "share_embedding_table": false,
89
+ "bias": false,
90
+ "rotary_pct": 1.0,
91
+ "rank": 0,
92
+ "decoder": "mistral",
93
+ "rmsnorm": true,
94
+ "lm_head_bias": false,
95
+ "tie_word_embeddings": false
96
+ },
97
+ "build_config": {
98
+ "max_input_len": 1024,
99
+ "max_seq_len": 1024000,
100
+ "opt_batch_size": 8,
101
+ "max_batch_size": 2048,
102
+ "max_beam_width": 1,
103
+ "max_num_tokens": 8192,
104
+ "opt_num_tokens": 2048,
105
+ "max_prompt_embedding_table_size": 0,
106
+ "kv_cache_type": "PAGED",
107
+ "gather_context_logits": false,
108
+ "gather_generation_logits": false,
109
+ "strongly_typed": true,
110
+ "force_num_profiles": null,
111
+ "profiling_verbosity": "layer_names_only",
112
+ "enable_debug_output": false,
113
+ "max_draft_len": 0,
114
+ "speculative_decoding_mode": 1,
115
+ "use_refit": false,
116
+ "input_timing_cache": null,
117
+ "output_timing_cache": "model.cache",
118
+ "lora_config": {
119
+ "lora_dir": [],
120
+ "lora_ckpt_source": "hf",
121
+ "max_lora_rank": 64,
122
+ "lora_target_modules": [],
123
+ "trtllm_modules_to_hf_modules": {},
124
+ "max_loras": null,
125
+ "max_cpu_loras": null,
126
+ "swap_gate_up_proj_lora_b_weight": true
127
+ },
128
+ "auto_parallel_config": {
129
+ "world_size": 1,
130
+ "gpus_per_node": 8,
131
+ "cluster_key": "NVIDIA-RTX-PRO-6000-Blackwell-Max-Q-Workstation-Edition",
132
+ "cluster_info": {
133
+ "inter_node_bw_per_device": 25,
134
+ "intra_node_bw_per_device": 5,
135
+ "inter_node_latency": 10,
136
+ "intra_node_latency": 10,
137
+ "intra_node_sharp": false,
138
+ "inter_node_sharp": true,
139
+ "memory_bw": 1792,
140
+ "memory_budget_per_device": 95,
141
+ "math_throughput": {
142
+ "int4": 0,
143
+ "int8": 0,
144
+ "fp8": 0,
145
+ "float16": 0,
146
+ "bfloat16": 0,
147
+ "float32": 0
148
+ },
149
+ "memory_efficiency": 1.0,
150
+ "math_efficiency": 1.0,
151
+ "communication_efficiency": 1.0
152
+ },
153
+ "sharding_cost_model": "alpha_beta",
154
+ "comm_cost_model": "alpha_beta",
155
+ "enable_pipeline_parallelism": false,
156
+ "enable_shard_unbalanced_shape": false,
157
+ "enable_shard_dynamic_shape": false,
158
+ "enable_reduce_scatter": true,
159
+ "builder_flags": null,
160
+ "debug_mode": false,
161
+ "infer_shape": true,
162
+ "validation_mode": false,
163
+ "same_buffer_io": {
164
+ "past_key_value_(\\d+)": "present_key_value_\\1"
165
+ },
166
+ "same_spec_io": {},
167
+ "sharded_io_allowlist": [
168
+ "past_key_value_\\d+",
169
+ "present_key_value_\\d*"
170
+ ],
171
+ "fill_weights": false,
172
+ "parallel_config_cache": null,
173
+ "profile_cache": null,
174
+ "dump_path": null,
175
+ "debug_outputs": []
176
+ },
177
+ "weight_sparsity": false,
178
+ "weight_streaming": false,
179
+ "plugin_config": {
180
+ "dtype": "bfloat16",
181
+ "bert_attention_plugin": "auto",
182
+ "gpt_attention_plugin": "auto",
183
+ "gemm_plugin": "nvfp4",
184
+ "explicitly_disable_gemm_plugin": false,
185
+ "gemm_swiglu_plugin": null,
186
+ "fp8_rowwise_gemm_plugin": null,
187
+ "qserve_gemm_plugin": null,
188
+ "identity_plugin": null,
189
+ "nccl_plugin": null,
190
+ "lora_plugin": null,
191
+ "dora_plugin": false,
192
+ "weight_only_groupwise_quant_matmul_plugin": null,
193
+ "weight_only_quant_matmul_plugin": null,
194
+ "smooth_quant_plugins": true,
195
+ "smooth_quant_gemm_plugin": null,
196
+ "layernorm_quantization_plugin": null,
197
+ "rmsnorm_quantization_plugin": null,
198
+ "quantize_per_token_plugin": false,
199
+ "quantize_tensor_plugin": false,
200
+ "moe_plugin": "auto",
201
+ "mamba_conv1d_plugin": "auto",
202
+ "low_latency_gemm_plugin": null,
203
+ "low_latency_gemm_swiglu_plugin": null,
204
+ "gemm_allreduce_plugin": null,
205
+ "context_fmha": true,
206
+ "bert_context_fmha_fp32_acc": false,
207
+ "paged_kv_cache": true,
208
+ "remove_input_padding": true,
209
+ "norm_quant_fusion": false,
210
+ "reduce_fusion": false,
211
+ "user_buffer": false,
212
+ "tokens_per_block": 32,
213
+ "use_paged_context_fmha": true,
214
+ "use_fp8_context_fmha": false,
215
+ "fuse_fp4_quant": false,
216
+ "multiple_profiles": false,
217
+ "paged_state": false,
218
+ "streamingllm": false,
219
+ "manage_weights": false,
220
+ "use_fused_mlp": true,
221
+ "pp_reduce_scatter": false
222
+ },
223
+ "use_strip_plan": false,
224
+ "max_encoder_input_len": 1024,
225
+ "monitor_memory": false,
226
+ "use_mrope": false
227
+ },
228
+ "architectures": [
229
+ "MistralForCausalLM"
230
+ ]
231
+ }
engine/rank0.engine ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40bd4659c4be35116f97f076b64ba49be4970eeaee517c8d7c782eff734cc6ba
3
+ size 9360956092
engine/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": "<pad>",
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
+ }
engine/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8771d3c14b4206fd6b54c60d037eeafce2f37382046c2369c36cd2edd2f099d7
3
+ size 17078391
engine/tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff