Text Generation
Transformers
Safetensors
PyTorch
nemotron_h
nvidia
nemotron-3
latent-moe
mtp
conversational
Eval Results
dmax123 commited on
Commit
833b941
·
verified ·
1 Parent(s): 2fd5f83

Add files using upload-large-folder tool

Browse files
Files changed (50) hide show
  1. __init__.py +0 -0
  2. chat_template.jinja +195 -0
  3. config.json +180 -0
  4. generation_config.json +13 -0
  5. model-00006-of-00225.safetensors +3 -0
  6. model-00018-of-00225.safetensors +3 -0
  7. model-00025-of-00225.safetensors +3 -0
  8. model-00034-of-00225.safetensors +3 -0
  9. model-00039-of-00225.safetensors +3 -0
  10. model-00040-of-00225.safetensors +3 -0
  11. model-00047-of-00225.safetensors +3 -0
  12. model-00050-of-00225.safetensors +3 -0
  13. model-00052-of-00225.safetensors +3 -0
  14. model-00054-of-00225.safetensors +3 -0
  15. model-00064-of-00225.safetensors +3 -0
  16. model-00065-of-00225.safetensors +3 -0
  17. model-00078-of-00225.safetensors +3 -0
  18. model-00083-of-00225.safetensors +3 -0
  19. model-00088-of-00225.safetensors +3 -0
  20. model-00091-of-00225.safetensors +3 -0
  21. model-00095-of-00225.safetensors +3 -0
  22. model-00096-of-00225.safetensors +3 -0
  23. model-00099-of-00225.safetensors +3 -0
  24. model-00101-of-00225.safetensors +3 -0
  25. model-00111-of-00225.safetensors +3 -0
  26. model-00116-of-00225.safetensors +3 -0
  27. model-00122-of-00225.safetensors +3 -0
  28. model-00126-of-00225.safetensors +3 -0
  29. model-00127-of-00225.safetensors +3 -0
  30. model-00130-of-00225.safetensors +3 -0
  31. model-00133-of-00225.safetensors +3 -0
  32. model-00139-of-00225.safetensors +3 -0
  33. model-00146-of-00225.safetensors +3 -0
  34. model-00150-of-00225.safetensors +3 -0
  35. model-00152-of-00225.safetensors +3 -0
  36. model-00157-of-00225.safetensors +3 -0
  37. model-00158-of-00225.safetensors +3 -0
  38. model-00164-of-00225.safetensors +3 -0
  39. model-00168-of-00225.safetensors +3 -0
  40. model-00172-of-00225.safetensors +3 -0
  41. model-00174-of-00225.safetensors +3 -0
  42. model-00193-of-00225.safetensors +3 -0
  43. model-00197-of-00225.safetensors +3 -0
  44. model-00205-of-00225.safetensors +3 -0
  45. model-00217-of-00225.safetensors +3 -0
  46. model-00225-of-00225.safetensors +3 -0
  47. model.safetensors.index.json +0 -0
  48. special_tokens_map.json +30 -0
  49. tokenizer_config.json +0 -0
  50. ultra_v3_reasoning_parser.py +28 -0
__init__.py ADDED
File without changes
chat_template.jinja ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {% macro render_extra_keys(json_dict, handled_keys) %}
2
+ {%- if json_dict is mapping %}
3
+ {%- for json_key in json_dict if json_key not in handled_keys %}
4
+ {%- if json_dict[json_key] is mapping or (json_dict[json_key] is sequence and json_dict[json_key] is not string) %}
5
+ {{- '\n<' ~ json_key ~ '>' ~ (json_dict[json_key] | tojson | safe) ~ '</' ~ json_key ~ '>' }}
6
+ {%- else %}
7
+ {{-'\n<' ~ json_key ~ '>' ~ (json_dict[json_key] | string) ~ '</' ~ json_key ~ '>' }}
8
+ {%- endif %}
9
+ {%- endfor %}
10
+ {%- endif %}
11
+ {% endmacro %}
12
+ {%- set enable_thinking = enable_thinking if enable_thinking is defined else True %}
13
+ {%- set medium_effort = medium_effort if medium_effort is defined else False %}
14
+ {%- set truncate_history_thinking = truncate_history_thinking if truncate_history_thinking is defined else True %}
15
+ {%- set ns = namespace(last_user_idx = -1) %}
16
+ {%- set loop_messages = messages %}
17
+ {%- for m in loop_messages %}
18
+ {%- if m["role"] == "user" %}
19
+ {%- set ns.last_user_idx = loop.index0 %}
20
+ {%- endif %}
21
+ {%- endfor %}
22
+ {%- if messages[0]["role"] == "system" %}
23
+ {%- set system_message = messages[0]["content"] %}
24
+ {%- set loop_messages = messages[1:] %}
25
+ {%- else %}
26
+ {%- set system_message = "" %}
27
+ {%- set loop_messages = messages %}
28
+ {%- endif %}
29
+ {%- if not tools is defined %}
30
+ {%- set tools = [] %}
31
+ {%- endif %}
32
+ {%- set ns = namespace(last_user_idx = -1) %}
33
+ {%- for m in loop_messages %}
34
+ {%- if m["role"] == "user" %}
35
+ {%- set ns.last_user_idx = loop.index0 %}
36
+ {%- endif %}
37
+ {%- endfor %}
38
+ {%- if system_message is defined %}
39
+ {{- "<|im_start|>system\n" + system_message }}
40
+ {%- else %}
41
+ {%- if tools is iterable and tools | length > 0 %}
42
+ {{- "<|im_start|>system\n" }}
43
+ {%- endif %}
44
+ {%- endif %}
45
+ {%- if tools is iterable and tools | length > 0 %}
46
+ {%- if system_message is defined and system_message | length > 0 %}
47
+ {{- "\n\n" }}
48
+ {%- endif %}
49
+ {{- "# Tools\n\nYou have access to the following functions:\n\n" }}
50
+ {{- "<tools>" }}
51
+ {%- for tool in tools %}
52
+ {%- if tool.function is defined %}
53
+ {%- set tool = tool.function %}
54
+ {%- endif %}
55
+ {{- "\n<function>\n<name>" ~ tool.name ~ "</name>" }}
56
+ {%- if tool.description is defined %}
57
+ {{- '\n<description>' ~ (tool.description | trim) ~ '</description>' }}
58
+ {%- endif %}
59
+ {{- '\n<parameters>' }}
60
+ {%- if tool.parameters is defined and tool.parameters is mapping and tool.parameters.properties is defined and tool.parameters.properties is mapping %}
61
+ {%- for param_name, param_fields in tool.parameters.properties|items %}
62
+ {{- '\n<parameter>' }}
63
+ {{- '\n<name>' ~ param_name ~ '</name>' }}
64
+ {%- if param_fields.type is defined %}
65
+ {{- '\n<type>' ~ (param_fields.type | string) ~ '</type>' }}
66
+ {%- endif %}
67
+ {%- if param_fields.description is defined %}
68
+ {{- '\n<description>' ~ (param_fields.description | trim) ~ '</description>' }}
69
+ {%- endif %}
70
+ {%- if param_fields.enum is defined %}
71
+ {{- '\n<enum>' ~ (param_fields.enum | tojson | safe) ~ '</enum>' }}
72
+ {%- endif %}
73
+ {%- set handled_keys = ['name', 'type', 'description', 'enum'] %}
74
+ {{- render_extra_keys(param_fields, handled_keys) }}
75
+ {{- '\n</parameter>' }}
76
+ {%- endfor %}
77
+ {%- endif %}
78
+ {% set handled_keys = ['type', 'properties', 'required'] %}
79
+ {{- render_extra_keys(tool.parameters, handled_keys) }}
80
+ {%- if tool.parameters is defined and tool.parameters.required is defined %}
81
+ {{- '\n<required>' ~ (tool.parameters.required | tojson | safe) ~ '</required>' }}
82
+ {%- endif %}
83
+ {{- '\n</parameters>' }}
84
+ {%- set handled_keys = ['type', 'name', 'description', 'parameters'] %}
85
+ {{- render_extra_keys(tool, handled_keys) }}
86
+ {{- '\n</function>' }}
87
+ {%- endfor %}
88
+ {{- "\n</tools>" }}
89
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
90
+ {%- endif %}
91
+ {%- if system_message is defined %}
92
+ {{- '<|im_end|>\n' }}
93
+ {%- else %}
94
+ {%- if tools is iterable and tools | length > 0 %}
95
+ {{- '<|im_end|>\n' }}
96
+ {%- endif %}
97
+ {%- endif %}
98
+ {%- for message in loop_messages %}
99
+ {%- if message.role == "assistant" %}
100
+ {%- if message.reasoning_content is defined and message.reasoning_content is string and message.reasoning_content | trim | length > 0 %}
101
+ {%- set content = "<think>\n" ~ message.reasoning_content ~ "</think>" ~ (message.content | default('', true)) %}
102
+ {%- else %}
103
+ {%- set content = message.content | default('', true) %}
104
+ {%- if content is string -%}
105
+ {%- if '<think>' not in content and '</think>' not in content -%}
106
+ {%- set content = "<think></think>" ~ content -%}
107
+ {%- endif -%}
108
+ {%- else -%}
109
+ {%- set content = content -%}
110
+ {%- endif -%}
111
+ {%- endif %}
112
+ {%- if message.tool_calls is defined and message.tool_calls is iterable and message.tool_calls | length > 0 %}
113
+ {{- '<|im_start|>assistant\n' }}
114
+ {%- set include_content = not (truncate_history_thinking and loop.index0 < ns.last_user_idx) %}
115
+ {%- if content is string and content | trim | length > 0 %}
116
+ {%- if include_content %}
117
+ {{- (content | trim) ~ '\n' -}}
118
+ {%- else %}
119
+ {%- set c = (content | string) %}
120
+ {%- if '</think>' in c %}
121
+ {%- set c = c.split('</think>')[-1] %}
122
+ {%- elif '<think>' in c %}
123
+ {%- set c = c.split('<think>')[0] %}
124
+ {%- endif %}
125
+ {%- set c = "<think></think>" ~ c %}
126
+ {%- if c | length > 0 %}
127
+ {{- c ~ '\n' -}}
128
+ {%- endif %}
129
+ {%- endif %}
130
+ {%- else %}
131
+ {{- "<think></think>" -}}
132
+ {%- endif %}
133
+ {%- for tool_call in message.tool_calls %}
134
+ {%- if tool_call.function is defined %}
135
+ {%- set tool_call = tool_call.function %}
136
+ {%- endif %}
137
+ {{- '<tool_call>\n<function=' ~ tool_call.name ~ '>\n' -}}
138
+ {%- if tool_call.arguments is defined %}
139
+ {%- for args_name, args_value in tool_call.arguments|items %}
140
+ {{- '<parameter=' ~ args_name ~ '>\n' -}}
141
+ {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
142
+ {{- args_value ~ '\n</parameter>\n' -}}
143
+ {%- endfor %}
144
+ {%- endif %}
145
+ {{- '</function>\n</tool_call>\n' -}}
146
+ {%- endfor %}
147
+ {{- '<|im_end|>\n' }}
148
+ {%- else %}
149
+ {%- if not (truncate_history_thinking and loop.index0 < ns.last_user_idx) %}
150
+ {{- '<|im_start|>assistant\n' ~ (content | default('', true) | string | trim) ~ '<|im_end|>\n' }}
151
+ {%- else %}
152
+ {%- set c = (content | default('', true) | string) %}
153
+ {%- if '<think>' in c and '</think>' in c %}
154
+ {%- set c = "<think></think>" ~ c.split('</think>')[-1] %}
155
+ {%- endif %}
156
+ {%- set c = c | trim %}
157
+ {%- if c | length > 0 %}
158
+ {{- '<|im_start|>assistant\n' ~ c ~ '<|im_end|>\n' }}
159
+ {%- else %}
160
+ {{- '<|im_start|>assistant\n<|im_end|>\n' }}
161
+ {%- endif %}
162
+ {%- endif %}
163
+ {%- endif %}
164
+ {%- elif message.role == "user" or message.role == "system" %}
165
+ {{- '<|im_start|>' + message.role + '\n' }}
166
+ {%- set content = message.content | string %}
167
+ {%- if message.role == "user" and loop.index0 == ns.last_user_idx and medium_effort %}
168
+ {{- content + '\n\n{reasoning effort: efficient}' }}
169
+ {%- else %}
170
+ {{- content }}
171
+ {%- endif %}
172
+ {{- '<|im_end|>\n' }}
173
+ {%- elif message.role == "tool" %}
174
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
175
+ {{- '<|im_start|>user\n' }}
176
+ {%- endif %}
177
+ {{- '<tool_response>\n' }}
178
+ {{- message.content }}
179
+ {{- '\n</tool_response>\n' }}
180
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
181
+ {{- '<|im_end|>\n' }}
182
+ {%- elif loop.last %}
183
+ {{- '<|im_end|>\n' }}
184
+ {%- endif %}
185
+ {%- else %}
186
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>\n' }}
187
+ {%- endif %}
188
+ {%- endfor %}
189
+ {%- if add_generation_prompt %}
190
+ {%- if enable_thinking %}
191
+ {{- '<|im_start|>assistant\n<think>\n' }}
192
+ {%- else %}
193
+ {{- '<|im_start|>assistant\n<think></think>' }}
194
+ {%- endif %}
195
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,180 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "NemotronHForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 1,
8
+ "chunk_size": 128,
9
+ "conv_kernel": 4,
10
+ "dtype": "bfloat16",
11
+ "eos_token_id": 2,
12
+ "expand": 2,
13
+ "head_dim": 128,
14
+ "hidden_dropout": 0.0,
15
+ "hidden_size": 8192,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 5120,
18
+ "layer_norm_epsilon": 1e-05,
19
+ "layers_block_type": [
20
+ "mamba",
21
+ "moe",
22
+ "mamba",
23
+ "moe",
24
+ "mamba",
25
+ "moe",
26
+ "mamba",
27
+ "attention",
28
+ "moe",
29
+ "mamba",
30
+ "moe",
31
+ "mamba",
32
+ "moe",
33
+ "mamba",
34
+ "attention",
35
+ "moe",
36
+ "mamba",
37
+ "moe",
38
+ "mamba",
39
+ "moe",
40
+ "mamba",
41
+ "moe",
42
+ "mamba",
43
+ "attention",
44
+ "moe",
45
+ "mamba",
46
+ "moe",
47
+ "mamba",
48
+ "moe",
49
+ "mamba",
50
+ "moe",
51
+ "mamba",
52
+ "attention",
53
+ "moe",
54
+ "mamba",
55
+ "moe",
56
+ "mamba",
57
+ "moe",
58
+ "mamba",
59
+ "attention",
60
+ "moe",
61
+ "mamba",
62
+ "moe",
63
+ "mamba",
64
+ "moe",
65
+ "mamba",
66
+ "moe",
67
+ "mamba",
68
+ "attention",
69
+ "moe",
70
+ "mamba",
71
+ "moe",
72
+ "mamba",
73
+ "moe",
74
+ "mamba",
75
+ "moe",
76
+ "mamba",
77
+ "attention",
78
+ "moe",
79
+ "mamba",
80
+ "moe",
81
+ "mamba",
82
+ "moe",
83
+ "mamba",
84
+ "attention",
85
+ "moe",
86
+ "mamba",
87
+ "moe",
88
+ "mamba",
89
+ "moe",
90
+ "mamba",
91
+ "moe",
92
+ "mamba",
93
+ "attention",
94
+ "moe",
95
+ "mamba",
96
+ "moe",
97
+ "mamba",
98
+ "moe",
99
+ "mamba",
100
+ "moe",
101
+ "mamba",
102
+ "attention",
103
+ "moe",
104
+ "mamba",
105
+ "moe",
106
+ "mamba",
107
+ "moe",
108
+ "mamba",
109
+ "attention",
110
+ "moe",
111
+ "mamba",
112
+ "moe",
113
+ "mamba",
114
+ "moe",
115
+ "mamba",
116
+ "moe",
117
+ "mamba",
118
+ "attention",
119
+ "moe",
120
+ "mamba",
121
+ "moe",
122
+ "mamba",
123
+ "moe",
124
+ "mamba",
125
+ "moe",
126
+ "mamba",
127
+ "moe"
128
+ ],
129
+ "mamba_head_dim": 64,
130
+ "mamba_hidden_act": "silu",
131
+ "mamba_num_heads": 256,
132
+ "mamba_proj_bias": false,
133
+ "mamba_ssm_cache_dtype": "float32",
134
+ "max_position_embeddings": 262144,
135
+ "mlp_bias": false,
136
+ "mlp_hidden_act": "relu2",
137
+ "model_type": "nemotron_h",
138
+ "moe_intermediate_size": 5120,
139
+ "moe_latent_size": 2048,
140
+ "moe_shared_expert_intermediate_size": 10240,
141
+ "moe_shared_expert_overlap": false,
142
+ "mtp_layers_block_type": [
143
+ "attention",
144
+ "moe"
145
+ ],
146
+ "n_group": 1,
147
+ "n_groups": 8,
148
+ "n_routed_experts": 512,
149
+ "n_shared_experts": 1,
150
+ "norm_eps": 1e-05,
151
+ "norm_topk_prob": true,
152
+ "num_attention_heads": 64,
153
+ "num_experts_per_tok": 22,
154
+ "num_key_value_heads": 2,
155
+ "num_logits_to_keep": 1,
156
+ "num_nextn_predict_layers": 1,
157
+ "pad_token_id": 0,
158
+ "partial_rotary_factor": 1.0,
159
+ "rescale_prenorm_residual": true,
160
+ "residual_in_fp32": false,
161
+ "rope_theta": 10000,
162
+ "routed_scaling_factor": 5.0,
163
+ "sliding_window": null,
164
+ "ssm_state_size": 128,
165
+ "tie_word_embeddings": false,
166
+ "time_step_floor": 0.0001,
167
+ "time_step_limit": [
168
+ 0.0,
169
+ Infinity
170
+ ],
171
+ "time_step_max": 0.1,
172
+ "time_step_min": 0.001,
173
+ "topk_group": 1,
174
+ "transformers_version": "4.57.6",
175
+ "use_bias": false,
176
+ "use_cache": true,
177
+ "use_conv_bias": true,
178
+ "use_mamba_kernels": true,
179
+ "vocab_size": 131072
180
+ }
generation_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "do_sample": true,
5
+ "eos_token_id": [
6
+ 2,
7
+ 11
8
+ ],
9
+ "pad_token_id": 0,
10
+ "temperature": 1.0,
11
+ "top_p": 0.95,
12
+ "transformers_version": "4.57.6"
13
+ }
model-00006-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:319a9408a84b564ef3689ca6c9141e8a4e28103a4269cd491ab446bfb26a257f
3
+ size 4995491168
model-00018-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9af5e48c78baf57a51ab1408e09f17d8a4fd0d6a427b3a6eb953b1cba2bb44d
3
+ size 4991252600
model-00025-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6025f91271129e193bd4b2c0509a60d01533286349103d794e3fab88c155c373
3
+ size 4991252776
model-00034-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7185a2149133c63b3bfd8b07e23bc2f2423c90ece859fb3c0c21e0a9d9d5b0fd
3
+ size 4991252736
model-00039-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67646caa4b60c5de98d8bc356df9c44a7111fe4b375238b28e8322773c4ac3fa
3
+ size 4991252840
model-00040-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:779e171252824eb706ed882b6efe8d31093d6556807c98d646ef2427be3008d6
3
+ size 4991252840
model-00047-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f9137068f7bccd8d532a21b48f8aa9285569df10ce74722f690103fda64e95a
3
+ size 4991515392
model-00050-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5bc2e621890f34bb425be2b83582870a51c7a762e4efe58a6364e3642f9be55a
3
+ size 4991252840
model-00052-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7bf7fed796bb204d4218ebe08f23dbc71079a8fb2b3e0e05cf843cc228c46773
3
+ size 4991252664
model-00054-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7262b47af4d740dd41fb135051f97a851259676452f622cc75ba333e4fc02d2f
3
+ size 4991252840
model-00064-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b1861e95a6b4bceed1e7b85edf3122b107a9cd2aefa715bde59ce0a0958c8e1
3
+ size 4991252840
model-00065-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81df978797e268583bb59ffc32a81eb6ed8e8c6a0870ac0b4968dd64605f8c54
3
+ size 4991515400
model-00078-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4e7dbfb487e34d7af04f4035ade1b08e4e60f3f3ce9b99b1d9c89b4407bcf50
3
+ size 4991252840
model-00083-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fdff633053a68c6fecf8f3401177e56d6e8cdba2c39029c853dd646715b06d8d
3
+ size 4987305912
model-00088-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7029e622c0e8fae86a4c098504ea0289ee274dd6271a5e38152faa8dddd6b415
3
+ size 4987305808
model-00091-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c094961fef375b72afc345babe98638c8c74fe5e1891a65ecd894ad990d0327
3
+ size 4991252840
model-00095-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62ab3b512b57a73c9c3ec81f4da26dda82787870ea9e7a0ffdfc440cb4f13dfd
3
+ size 4991252840
model-00096-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb11da5e84c0fa018158aaddef1cbbcffd0e024a02bfefc110c62d68643b7c81
3
+ size 4991252840
model-00099-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a43250768d5ce856b323cc936210d20f1b5d17ec1a74191f2beb6cbff467b5c6
3
+ size 4991252840
model-00101-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:657eee2c7223268d14d4e40571d3835f5f976d34ba0059defad900132db4119c
3
+ size 4941123984
model-00111-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a8b84f1855c2b9c777350e06f56be5a7a6a8fb2cd54f316f0adfd6debd96283
3
+ size 4987305824
model-00116-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec30f5418bece29fb0c97925e418974380c03742fcc478ded80267ba8edef8c4
3
+ size 4991252664
model-00122-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb593db2391122ab0a80d0819e2891481cdfec58f62e89dcf140f0ea53f7b618
3
+ size 4991252840
model-00126-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c69b61ec9eaac7964b375a751b41cfe444c64e70b2392f5563dc93a7ae2cd4c7
3
+ size 4991252840
model-00127-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:91ddf90c768774fcf954f34a3b715fabcd0c0d8d46aa8b44d7eeccda40ac1e1b
3
+ size 4991252840
model-00130-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d1db40df631f1bea9d6e6ef1a41403ab4c799a358a58b111e29e370a1f51673
3
+ size 4991252736
model-00133-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed9d4da503b91de11fcc92e16f4c354757860295ad7f44ce83f520644371baba
3
+ size 4941123984
model-00139-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c44ca65803b016ed4a82266e07f80ce21144380dd2fd9ec8fc06132d1616b65
3
+ size 4991252704
model-00146-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19c66a1f0eae58cd0f7ebd58c76c221bf1c781caf36ae2d58a026f1141d52767
3
+ size 4991252840
model-00150-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f58ccf8d780d38e6754367ce523cc22ad1f80858410f073a1bd34a40ebcb3db
3
+ size 4991252840
model-00152-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:abdfaa85e1235e3efe5b709e1fd9281c77bb5955ea2142e4912ec851b771ad23
3
+ size 4987305808
model-00157-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2f61db13515db18119bc05c882e9631c99f644a603c9f12b9345d296d8586c7
3
+ size 4991252624
model-00158-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:379007ec6008c6745f75040054ad78a713e106e7ef8afc6bc56bd6602f9f8a16
3
+ size 4991252840
model-00164-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cbe513a8a266c31a7c8188eca763c1dfa82610ba20aede6f458643e705c34ade
3
+ size 4991252840
model-00168-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f25819de47ee6a97ff3a4cef748e4f60df20140050db53291d0d60593ea2c235
3
+ size 4991252840
model-00172-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a61fc51c38f5b5d452b25804c036d1d383df4c65f2f6871ead7f7cb7fcf256b
3
+ size 4991252840
model-00174-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe74963526f40353c5d12a0239a11b631f497ef37807830ac63e8d6323140fb6
3
+ size 4991252840
model-00193-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f5ae48a5eb8c08cc7ab5dddc5d2777501befb7fc4e4514982ae8e51fc86656a
3
+ size 4987305848
model-00197-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70fa27ffd962d6e67ce839bbb362d38ef722205853c09e77deb4692cff276763
3
+ size 4962095640
model-00205-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d53be34e4784d5d9e4598df3902eb93854b5b9320359377065e2750adb7634db
3
+ size 4991253080
model-00217-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30119d9e3375f2dc6ced76533b9ba1d8b36e484c2f31264c2e7e8d3dc89d1788
3
+ size 4991253008
model-00225-of-00225.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4bc4634ae9e4ef06ae73896428267364147de05dad5079ec25b3f30f0fbbac98
3
+ size 4605389936
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
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": "<|im_end|>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<|im_end|>",
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_config.json ADDED
The diff for this file is too large to render. See raw diff
 
ultra_v3_reasoning_parser.py ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from vllm.reasoning.abs_reasoning_parsers import ReasoningParserManager
2
+ from vllm.reasoning.deepseek_r1_reasoning_parser import DeepSeekR1ReasoningParser
3
+
4
+
5
+ @ReasoningParserManager.register_module("ultra_v3")
6
+ class UltraV3ReasoningParser(DeepSeekR1ReasoningParser):
7
+ def extract_reasoning(self, model_output, request):
8
+ reasoning_content, final_content = super().extract_reasoning(
9
+ model_output, request
10
+ )
11
+ if (
12
+ hasattr(request, "chat_template_kwargs")
13
+ and request.chat_template_kwargs
14
+ and (
15
+ request.chat_template_kwargs.get("enable_thinking") is False
16
+ or request.chat_template_kwargs.get("force_nonempty_content") is True
17
+ )
18
+ and final_content is None
19
+ ):
20
+ """
21
+ The original `deepseek_r1` reasoning parser this inherits from will automatically put everything in the reasoning content when it cannot parse out reasoning. This was fine for the DeepSeek R1 model that was not intended to be used without reasoning.
22
+ 1. Since the Nemotron 3 Nano and Super both have thinking off modes modulated by "enable_thinking=false" in the chat template kwargs, this change instead which will properly place the content in cases where there is no thinking enabled via config.
23
+ 2. There are rare cases where the model will output only reasoning without an end-think token `</think>` (e.g. reasoning exceeds max length), which results in empty content returned. End users may want to unilaterally avoid such cases and always have a content response even if the model does not finish its reasoning.
24
+ """
25
+ # Put all nonempty content into the content, rather than return content
26
+ reasoning_content, final_content = None, reasoning_content
27
+
28
+ return reasoning_content, final_content