mahmoudhas9 commited on
Commit
7e66a6e
·
verified ·
1 Parent(s): 1d36c44

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ 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
37
+ tokenization/tokenizer.json filter=lfs diff=lfs merge=lfs -text
config.json ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "0.18.1",
3
+ "pretrained_config": {
4
+ "mlp_bias": false,
5
+ "attn_bias": false,
6
+ "rotary_base": 1000000,
7
+ "rotary_scaling": null,
8
+ "disable_weight_only_quant_plugin": false,
9
+ "num_labels": 1,
10
+ "use_logn_attn": false,
11
+ "moe": {
12
+ "num_experts": 0,
13
+ "shared_expert_intermediate_size": 0,
14
+ "top_k": 0,
15
+ "normalization_mode": 0,
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
+ "architecture": "Qwen3ForCausalLM",
23
+ "dtype": "bfloat16",
24
+ "vocab_size": 151936,
25
+ "hidden_size": 1024,
26
+ "num_hidden_layers": 28,
27
+ "num_attention_heads": 16,
28
+ "hidden_act": "silu",
29
+ "logits_dtype": "float16",
30
+ "norm_epsilon": 1e-06,
31
+ "runtime_defaults": null,
32
+ "position_embedding_type": "rope_gpt_neox",
33
+ "num_key_value_heads": 8,
34
+ "intermediate_size": 3072,
35
+ "max_position_embeddings": 40960,
36
+ "mapping": {
37
+ "world_size": 1,
38
+ "gpus_per_node": 8,
39
+ "cp_size": 1,
40
+ "tp_size": 1,
41
+ "pp_size": 1,
42
+ "moe_tp_size": 1,
43
+ "moe_ep_size": 1,
44
+ "auto_parallel": false
45
+ },
46
+ "quantization": {
47
+ "quant_algo": "FP8",
48
+ "kv_cache_quant_algo": null,
49
+ "group_size": 128,
50
+ "smoothquant_val": 0.5,
51
+ "clamp_val": null,
52
+ "use_meta_recipe": false,
53
+ "has_zero_point": false,
54
+ "pre_quant_scale": false,
55
+ "exclude_modules": [
56
+ "lm_head"
57
+ ]
58
+ },
59
+ "use_parallel_embedding": true,
60
+ "embedding_sharding_dim": 0,
61
+ "head_size": 128,
62
+ "qk_layernorm": false,
63
+ "rotary_embedding_dim": 128,
64
+ "producer": {
65
+ "name": "modelopt",
66
+ "version": "0.27.1"
67
+ },
68
+ "share_embedding_table": false,
69
+ "residual_mlp": false,
70
+ "bias": false,
71
+ "rotary_pct": 1.0,
72
+ "rank": 0,
73
+ "decoder": "qwen",
74
+ "rmsnorm": true,
75
+ "lm_head_bias": false,
76
+ "seq_length": 8192,
77
+ "qwen_type": "qwen3",
78
+ "moe_intermediate_size": 0,
79
+ "moe_shared_expert_intermediate_size": 0,
80
+ "tie_word_embeddings": true,
81
+ "model_type": "qwen"
82
+ },
83
+ "build_config": {
84
+ "max_input_len": 40960,
85
+ "max_seq_len": 40989,
86
+ "opt_batch_size": 8,
87
+ "max_batch_size": 64,
88
+ "max_beam_width": 1,
89
+ "max_num_tokens": 8192,
90
+ "opt_num_tokens": null,
91
+ "max_prompt_embedding_table_size": 0,
92
+ "kv_cache_type": "PAGED",
93
+ "gather_context_logits": false,
94
+ "gather_generation_logits": false,
95
+ "strongly_typed": true,
96
+ "force_num_profiles": null,
97
+ "profiling_verbosity": "layer_names_only",
98
+ "enable_debug_output": false,
99
+ "max_draft_len": 29,
100
+ "speculative_decoding_mode": 8,
101
+ "use_refit": false,
102
+ "input_timing_cache": null,
103
+ "output_timing_cache": "model.cache",
104
+ "lora_config": {
105
+ "lora_dir": [],
106
+ "lora_ckpt_source": "hf",
107
+ "max_lora_rank": 64,
108
+ "lora_target_modules": [],
109
+ "trtllm_modules_to_hf_modules": {}
110
+ },
111
+ "auto_parallel_config": {
112
+ "world_size": 1,
113
+ "gpus_per_node": 8,
114
+ "cluster_key": null,
115
+ "cluster_info": null,
116
+ "sharding_cost_model": "alpha_beta",
117
+ "comm_cost_model": "alpha_beta",
118
+ "enable_pipeline_parallelism": false,
119
+ "enable_shard_unbalanced_shape": false,
120
+ "enable_shard_dynamic_shape": false,
121
+ "enable_reduce_scatter": true,
122
+ "builder_flags": null,
123
+ "debug_mode": false,
124
+ "infer_shape": true,
125
+ "validation_mode": false,
126
+ "same_buffer_io": {},
127
+ "same_spec_io": {},
128
+ "sharded_io_allowlist": [],
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": "bfloat16",
139
+ "bert_attention_plugin": "auto",
140
+ "gpt_attention_plugin": "auto",
141
+ "gemm_plugin": null,
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
+ "weight_only_groupwise_quant_matmul_plugin": null,
150
+ "weight_only_quant_matmul_plugin": null,
151
+ "smooth_quant_plugins": true,
152
+ "smooth_quant_gemm_plugin": null,
153
+ "layernorm_quantization_plugin": null,
154
+ "rmsnorm_quantization_plugin": null,
155
+ "quantize_per_token_plugin": false,
156
+ "quantize_tensor_plugin": false,
157
+ "moe_plugin": "auto",
158
+ "mamba_conv1d_plugin": "auto",
159
+ "low_latency_gemm_plugin": null,
160
+ "low_latency_gemm_swiglu_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
+ "user_buffer": false,
167
+ "tokens_per_block": 64,
168
+ "use_paged_context_fmha": true,
169
+ "use_fp8_context_fmha": false,
170
+ "multiple_profiles": true,
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
+ "monitor_memory": false,
180
+ "use_mrope": false
181
+ }
182
+ }
rank0.engine ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48f63920641f623e8eebcbf5f1421fffd35993c90615f6c16da1fb5aff8409d7
3
+ size 846098092
tokenization/config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 151643,
8
+ "eos_token_id": 151645,
9
+ "head_dim": 128,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 1024,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "max_position_embeddings": 40960,
15
+ "max_window_layers": 28,
16
+ "model_type": "qwen3",
17
+ "num_attention_heads": 16,
18
+ "num_hidden_layers": 28,
19
+ "num_key_value_heads": 8,
20
+ "rms_norm_eps": 1e-06,
21
+ "rope_scaling": null,
22
+ "rope_theta": 1000000,
23
+ "sliding_window": null,
24
+ "tie_word_embeddings": true,
25
+ "torch_dtype": "bfloat16",
26
+ "transformers_version": "4.51.0",
27
+ "use_cache": true,
28
+ "use_sliding_window": false,
29
+ "vocab_size": 151936
30
+ }
tokenization/generation_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 151645,
6
+ 151643
7
+ ],
8
+ "pad_token_id": 151643,
9
+ "temperature": 0.6,
10
+ "top_k": 20,
11
+ "top_p": 0.95,
12
+ "transformers_version": "4.51.0"
13
+ }
tokenization/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
tokenization/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
3
+ size 11422654
tokenization/tokenizer_config.json ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ },
181
+ "151665": {
182
+ "content": "<tool_response>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": false
188
+ },
189
+ "151666": {
190
+ "content": "</tool_response>",
191
+ "lstrip": false,
192
+ "normalized": false,
193
+ "rstrip": false,
194
+ "single_word": false,
195
+ "special": false
196
+ },
197
+ "151667": {
198
+ "content": "<think>",
199
+ "lstrip": false,
200
+ "normalized": false,
201
+ "rstrip": false,
202
+ "single_word": false,
203
+ "special": false
204
+ },
205
+ "151668": {
206
+ "content": "</think>",
207
+ "lstrip": false,
208
+ "normalized": false,
209
+ "rstrip": false,
210
+ "single_word": false,
211
+ "special": false
212
+ }
213
+ },
214
+ "additional_special_tokens": [
215
+ "<|im_start|>",
216
+ "<|im_end|>",
217
+ "<|object_ref_start|>",
218
+ "<|object_ref_end|>",
219
+ "<|box_start|>",
220
+ "<|box_end|>",
221
+ "<|quad_start|>",
222
+ "<|quad_end|>",
223
+ "<|vision_start|>",
224
+ "<|vision_end|>",
225
+ "<|vision_pad|>",
226
+ "<|image_pad|>",
227
+ "<|video_pad|>"
228
+ ],
229
+ "bos_token": null,
230
+ "chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {{- messages[0].content + '\\n\\n' }}\n {%- endif %}\n {{- \"# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0].content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n{%- endfor %}\n{%- for message in messages %}\n {%- if message.content is string %}\n {%- set content = message.content %}\n {%- else %}\n {%- set content = '' %}\n {%- endif %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) %}\n {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- set content = content.split('</think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- if loop.index0 > ns.last_query_index %}\n {%- if loop.last or (not loop.last and reasoning_content) %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content.strip('\\n') + '\\n</think>\\n\\n' + content.lstrip('\\n') }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and content) or (not loop.first) %}\n {{- '\\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- endif %}\n{%- endif %}",
231
+ "clean_up_tokenization_spaces": false,
232
+ "eos_token": "<|im_end|>",
233
+ "errors": "replace",
234
+ "model_max_length": 131072,
235
+ "pad_token": "<|endoftext|>",
236
+ "split_special_tokens": false,
237
+ "tokenizer_class": "Qwen2Tokenizer",
238
+ "unk_token": null
239
+ }
tokenization/vocab.json ADDED
The diff for this file is too large to render. See raw diff