yuzhe commited on
Commit
ab203cc
·
verified ·
1 Parent(s): aa774d8

Add files using upload-large-folder tool

Browse files
Figures/Figure3.png CHANGED

Git LFS Details

  • SHA256: a4b4760ca3325ba6d19a496318a874ce58a515b3317f839a2b0b8659b22cc595
  • Pointer size: 131 Bytes
  • Size of remote file: 460 kB

Git LFS Details

  • SHA256: c16b60bdd2b6ffaeeb9524826fb488c1833fbd826331d2236576baceded7db9d
  • Pointer size: 131 Bytes
  • Size of remote file: 461 kB
Modelfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ollama modelfile auto-generated by llamafactory
2
+
3
+ FROM .
4
+
5
+ TEMPLATE """{{ if .System }}<|im_start|>system
6
+ {{ .System }}<|im_end|>
7
+ {{ end }}{{ range .Messages }}{{ if eq .Role "user" }}<|im_start|>user
8
+ {{ .Content }}<|im_end|>
9
+ <|im_start|>assistant
10
+ {{ else if eq .Role "assistant" }}{{ .Content }}<|im_end|>
11
+ {{ end }}{{ end }}"""
12
+
13
+ PARAMETER stop "<|im_end|>"
14
+ PARAMETER num_ctx 4096
chat_template.jinja CHANGED
@@ -1,331 +1,154 @@
1
- {#-
2
- In addition to the normal inputs of `messages` and `tools`, this template also accepts the
3
- following kwargs:
4
- - "builtin_tools": A list, can contain "browser" and/or "python".
5
- - "model_identity": A string that optionally describes the model identity.
6
- - "reasoning_effort": A string that describes the reasoning effort, defaults to "medium".
7
- #}
8
-
9
- {#- Tool Definition Rendering ============================================== #}
10
- {%- macro render_typescript_type(param_spec, required_params, is_nullable=false) -%}
11
- {%- if param_spec.type == "array" -%}
12
- {%- if param_spec['items'] -%}
13
- {%- if param_spec['items']['type'] == "string" -%}
14
- {{- "string[]" }}
15
- {%- elif param_spec['items']['type'] == "number" -%}
16
- {{- "number[]" }}
17
- {%- elif param_spec['items']['type'] == "integer" -%}
18
- {{- "number[]" }}
19
- {%- elif param_spec['items']['type'] == "boolean" -%}
20
- {{- "boolean[]" }}
21
- {%- else -%}
22
- {%- set inner_type = render_typescript_type(param_spec['items'], required_params) -%}
23
- {%- if inner_type == "object | object" or inner_type|length > 50 -%}
24
- {{- "any[]" }}
25
- {%- else -%}
26
- {{- inner_type + "[]" }}
27
- {%- endif -%}
28
- {%- endif -%}
29
- {%- if param_spec.nullable -%}
30
- {{- " | null" }}
31
- {%- endif -%}
32
- {%- else -%}
33
- {{- "any[]" }}
34
- {%- if param_spec.nullable -%}
35
- {{- " | null" }}
36
- {%- endif -%}
37
- {%- endif -%}
38
- {%- elif param_spec.type is defined and param_spec.type is iterable and param_spec.type is not string and param_spec.type is not mapping and param_spec.type[0] is defined -%}
39
- {#- Handle array of types like ["object", "object"] from Union[dict, list] #}
40
- {%- if param_spec.type | length > 1 -%}
41
- {{- param_spec.type | join(" | ") }}
42
- {%- else -%}
43
- {{- param_spec.type[0] }}
44
- {%- endif -%}
45
- {%- elif param_spec.oneOf -%}
46
- {#- Handle oneOf schemas - check for complex unions and fallback to any #}
47
- {%- set has_object_variants = false -%}
48
- {%- for variant in param_spec.oneOf -%}
49
- {%- if variant.type == "object" -%}
50
- {%- set has_object_variants = true -%}
51
- {%- endif -%}
52
- {%- endfor -%}
53
- {%- if has_object_variants and param_spec.oneOf|length > 1 -%}
54
- {{- "any" }}
55
- {%- else -%}
56
- {%- for variant in param_spec.oneOf -%}
57
- {{- render_typescript_type(variant, required_params) -}}
58
- {%- if variant.description %}
59
- {{- "// " + variant.description }}
60
- {%- endif -%}
61
- {%- if variant.default is defined %}
62
- {{ "// default: " + variant.default|tojson }}
63
- {%- endif -%}
64
- {%- if not loop.last %}
65
- {{- " | " }}
66
- {% endif -%}
67
- {%- endfor -%}
68
- {%- endif -%}
69
- {%- elif param_spec.type == "string" -%}
70
- {%- if param_spec.enum -%}
71
- {{- '"' + param_spec.enum|join('" | "') + '"' -}}
72
- {%- else -%}
73
- {{- "string" }}
74
- {%- if param_spec.nullable %}
75
- {{- " | null" }}
76
- {%- endif -%}
77
- {%- endif -%}
78
- {%- elif param_spec.type == "number" -%}
79
- {{- "number" }}
80
- {%- elif param_spec.type == "integer" -%}
81
- {{- "number" }}
82
- {%- elif param_spec.type == "boolean" -%}
83
- {{- "boolean" }}
84
-
85
- {%- elif param_spec.type == "object" -%}
86
- {%- if param_spec.properties -%}
87
- {{- "{\n" }}
88
- {%- for prop_name, prop_spec in param_spec.properties.items() -%}
89
- {{- prop_name -}}
90
- {%- if prop_name not in (param_spec.required or []) -%}
91
- {{- "?" }}
92
- {%- endif -%}
93
- {{- ": " }}
94
- {{ render_typescript_type(prop_spec, param_spec.required or []) }}
95
- {%- if not loop.last -%}
96
- {{-", " }}
97
- {%- endif -%}
98
- {%- endfor -%}
99
- {{- "}" }}
100
- {%- else -%}
101
- {{- "object" }}
102
- {%- endif -%}
103
- {%- else -%}
104
- {{- "any" }}
105
- {%- endif -%}
106
- {%- endmacro -%}
107
-
108
- {%- macro render_tool_namespace(namespace_name, tools) -%}
109
- {{- "## " + namespace_name + "\n\n" }}
110
- {{- "namespace " + namespace_name + " {\n\n" }}
111
- {%- for tool in tools %}
112
- {%- set tool = tool.function %}
113
- {{- "// " + tool.description + "\n" }}
114
- {{- "type "+ tool.name + " = " }}
115
- {%- if tool.parameters and tool.parameters.properties %}
116
- {{- "(_: {\n" }}
117
- {%- for param_name, param_spec in tool.parameters.properties.items() %}
118
- {%- if param_spec.description %}
119
- {{- "// " + param_spec.description + "\n" }}
120
  {%- endif %}
121
- {{- param_name }}
122
- {%- if param_name not in (tool.parameters.required or []) -%}
123
- {{- "?" }}
124
- {%- endif -%}
125
- {{- ": " }}
126
- {{- render_typescript_type(param_spec, tool.parameters.required or []) }}
127
- {%- if param_spec.default is defined -%}
128
- {%- if param_spec.enum %}
129
- {{- ", // default: " + param_spec.default }}
130
- {%- elif param_spec.oneOf %}
131
- {{- "// default: " + param_spec.default }}
132
- {%- else %}
133
- {{- ", // default: " + param_spec.default|tojson }}
134
- {%- endif -%}
135
- {%- endif -%}
136
- {%- if not loop.last %}
137
- {{- ",\n" }}
138
- {%- else %}
139
- {{- ",\n" }}
140
- {%- endif -%}
141
- {%- endfor %}
142
- {{- "}) => any;\n\n" }}
143
- {%- else -%}
144
- {{- "() => any;\n\n" }}
145
- {%- endif -%}
146
- {%- endfor %}
147
- {{- "} // namespace " + namespace_name }}
148
- {%- endmacro -%}
149
-
150
- {%- macro render_builtin_tools(browser_tool, python_tool) -%}
151
- {%- if browser_tool %}
152
- {{- "## browser\n\n" }}
153
- {{- "// Tool for browsing.\n" }}
154
- {{- "// The `cursor` appears in brackets before each browsing display: `[{cursor}]`.\n" }}
155
- {{- "// Cite information from the tool using the following format:\n" }}
156
- {{- "// `【{cursor}†L{line_start}(-L{line_end})?】`, for example: `【6†L9-L11】` or `【8†L3】`.\n" }}
157
- {{- "// Do not quote more than 10 words directly from the tool output.\n" }}
158
- {{- "// sources=web (default: web)\n" }}
159
- {{- "namespace browser {\n\n" }}
160
- {{- "// Searches for information related to `query` and displays `topn` results.\n" }}
161
- {{- "type search = (_: {\n" }}
162
- {{- "query: string,\n" }}
163
- {{- "topn?: number, // default: 10\n" }}
164
- {{- "source?: string,\n" }}
165
- {{- "}) => any;\n\n" }}
166
- {{- "// Opens the link `id` from the page indicated by `cursor` starting at line number `loc`, showing `num_lines` lines.\n" }}
167
- {{- "// Valid link ids are displayed with the formatting: `【{id}†.*】`.\n" }}
168
- {{- "// If `cursor` is not provided, the most recent page is implied.\n" }}
169
- {{- "// If `id` is a string, it is treated as a fully qualified URL associated with `source`.\n" }}
170
- {{- "// If `loc` is not provided, the viewport will be positioned at the beginning of the document or centered on the most relevant passage, if available.\n" }}
171
- {{- "// Use this function without `id` to scroll to a new location of an opened page.\n" }}
172
- {{- "type open = (_: {\n" }}
173
- {{- "id?: number | string, // default: -1\n" }}
174
- {{- "cursor?: number, // default: -1\n" }}
175
- {{- "loc?: number, // default: -1\n" }}
176
- {{- "num_lines?: number, // default: -1\n" }}
177
- {{- "view_source?: boolean, // default: false\n" }}
178
- {{- "source?: string,\n" }}
179
- {{- "}) => any;\n\n" }}
180
- {{- "// Finds exact matches of `pattern` in the current page, or the page given by `cursor`.\n" }}
181
- {{- "type find = (_: {\n" }}
182
- {{- "pattern: string,\n" }}
183
- {{- "cursor?: number, // default: -1\n" }}
184
- {{- "}) => any;\n\n" }}
185
- {{- "} // namespace browser\n\n" }}
186
- {%- endif -%}
187
-
188
- {%- if python_tool %}
189
- {{- "## python\n\n" }}
190
- {{- "Use this tool to execute Python code in your chain of thought. The code will not be shown to the user. This tool should be used for internal reasoning, but not for code that is intended to be visible to the user (e.g. when creating plots, tables, or files).\n\n" }}
191
- {{- "When you send a message containing Python code to python, it will be executed in a stateful Jupyter notebook environment. python will respond with the output of the execution or time out after 120.0 seconds. The drive at '/mnt/data' can be used to save and persist user files. Internet access for this session is UNKNOWN. Depends on the cluster.\n\n" }}
192
- {%- endif -%}
193
- {%- endmacro -%}
194
-
195
- {#- System Message Construction ============================================ #}
196
- {%- macro build_system_message() -%}
197
- {%- if model_identity is not defined %}
198
- {%- set model_identity = "You are ChatGPT, a large language model trained by OpenAI." %}
199
- {%- endif %}
200
- {{- model_identity + "\n" }}
201
- {{- "Knowledge cutoff: 2024-06\n" }}
202
- {{- "Current date: " + strftime_now("%Y-%m-%d") + "\n\n" }}
203
- {%- if reasoning_effort is not defined %}
204
- {%- set reasoning_effort = "medium" %}
205
- {%- endif %}
206
- {{- "Reasoning: " + reasoning_effort + "\n\n" }}
207
- {%- if builtin_tools %}
208
- {{- "# Tools\n\n" }}
209
- {%- set available_builtin_tools = namespace(browser=false, python=false) %}
210
- {%- for tool in builtin_tools %}
211
- {%- if tool == "browser" %}
212
- {%- set available_builtin_tools.browser = true %}
213
- {%- elif tool == "python" %}
214
- {%- set available_builtin_tools.python = true %}
215
  {%- endif %}
216
  {%- endfor %}
217
- {{- render_builtin_tools(available_builtin_tools.browser, available_builtin_tools.python) }}
218
- {%- endif -%}
219
- {{- "# Valid channels: analysis, commentary, final. Channel must be included for every message." }}
220
- {%- if tools -%}
221
- {{- "\nCalls to these tools must go to the commentary channel: 'functions'." }}
222
- {%- endif -%}
223
- {%- endmacro -%}
224
-
225
- {#- Main Template Logic ================================================= #}
226
- {#- Set defaults #}
227
-
228
- {#- Render system message #}
229
- {{- "<|start|>system<|message|>" }}
230
- {{- build_system_message() }}
231
- {{- "<|end|>" }}
232
-
233
- {#- Extract developer message #}
234
- {%- if messages[0].role == "developer" or messages[0].role == "system" %}
235
- {%- set developer_message = messages[0].content %}
236
- {%- set loop_messages = messages[1:] %}
 
 
 
 
 
237
  {%- else %}
238
- {%- set developer_message = "" %}
239
- {%- set loop_messages = messages %}
 
 
240
  {%- endif %}
241
-
242
- {#- Render developer message #}
243
- {%- if developer_message or tools %}
244
- {{- "<|start|>developer<|message|>" }}
245
- {%- if developer_message %}
246
- {{- "# Instructions\n\n" }}
247
- {{- developer_message }}
248
- {{- "\n\n" }}
 
249
  {%- endif %}
250
- {%- if tools -%}
251
- {{- "# Tools\n\n" }}
252
- {{- render_tool_namespace("functions", tools) }}
253
- {%- endif -%}
254
- {{- "<|end|>" }}
255
  {%- endif %}
256
-
257
- {#- Render messages #}
258
- {%- set last_tool_call = namespace(name=none) %}
259
- {%- for message in loop_messages -%}
260
- {#- At this point only assistant/user/tool messages should remain #}
261
- {%- if message.role == 'assistant' -%}
262
- {#- Checks to ensure the messages are being passed in the format we expect #}
263
- {%- if "content" in message %}
264
- {%- if "<|channel|>analysis<|message|>" in message.content or "<|channel|>final<|message|>" in message.content %}
265
- {{- raise_exception("You have passed a message containing <|channel|> tags in the content field. Instead of doing this, you should pass analysis messages (the string between '<|message|>' and '<|end|>') in the 'thinking' field, and final messages (the string between '<|message|>' and '<|end|>') in the 'content' field.") }}
266
- {%- endif %}
267
  {%- endif %}
268
- {%- if "thinking" in message %}
269
- {%- if "<|channel|>analysis<|message|>" in message.thinking or "<|channel|>final<|message|>" in message.thinking %}
270
- {{- raise_exception("You have passed a message containing <|channel|> tags in the thinking field. Instead of doing this, you should pass analysis messages (the string between '<|message|>' and '<|end|>') in the 'thinking' field, and final messages (the string between '<|message|>' and '<|end|>') in the 'content' field.") }}
 
 
 
 
 
 
 
271
  {%- endif %}
272
  {%- endif %}
273
- {%- if "tool_calls" in message %}
274
- {#- We need very careful handling here - we want to drop the tool call analysis message if the model #}
275
- {#- has output a later <|final|> message, but otherwise we want to retain it. This is the only case #}
276
- {#- when we render CoT/analysis messages in inference. #}
277
- {%- set future_final_message = namespace(found=false) %}
278
- {%- for future_message in loop_messages[loop.index:] %}
279
- {%- if future_message.role == 'assistant' and "tool_calls" not in future_message %}
280
- {%- set future_final_message.found = true %}
 
 
 
 
 
 
 
 
 
 
 
281
  {%- endif %}
 
 
 
 
 
 
 
 
 
282
  {%- endfor %}
283
- {#- We assume max 1 tool call per message, and so we infer the tool call name #}
284
- {#- in "tool" messages from the most recent assistant tool call name #}
285
- {%- set tool_call = message.tool_calls[0] %}
286
- {%- if tool_call.function %}
287
- {%- set tool_call = tool_call.function %}
288
- {%- endif %}
289
- {%- if message.content and message.thinking %}
290
- {{- raise_exception("Cannot pass both content and thinking in an assistant message with tool calls! Put the analysis message in one or the other, but not both.") }}
291
- {%- elif message.content and not future_final_message.found %}
292
- {{- "<|start|>assistant<|channel|>analysis<|message|>" + message.content + "<|end|>" }}
293
- {%- elif message.thinking and not future_final_message.found %}
294
- {{- "<|start|>assistant<|channel|>analysis<|message|>" + message.thinking + "<|end|>" }}
295
- {%- endif %}
296
- {{- "<|start|>assistant to=" }}
297
- {{- "functions." + tool_call.name + "<|channel|>commentary " }}
298
- {{- (tool_call.content_type if tool_call.content_type is defined else "json") + "<|message|>" }}
299
- {{- tool_call.arguments|tojson }}
300
- {{- "<|call|>" }}
301
- {%- set last_tool_call.name = tool_call.name %}
302
- {%- elif loop.last and not add_generation_prompt %}
303
- {#- Only render the CoT if the final turn is an assistant turn and add_generation_prompt is false #}
304
- {#- This is a situation that should only occur in training, never in inference. #}
305
- {%- if "thinking" in message %}
306
- {{- "<|start|>assistant<|channel|>analysis<|message|>" + message.thinking + "<|end|>" }}
307
- {%- endif %}
308
- {#- <|return|> indicates the end of generation, but <|end|> does not #}
309
- {#- <|return|> should never be an input to the model, but we include it as the final token #}
310
- {#- when training, so the model learns to emit it. #}
311
- {{- "<|start|>assistant<|channel|>final<|message|>" + message.content + "<|return|>" }}
312
- {%- else %}
313
- {#- CoT is dropped during all previous turns, so we never render it for inference #}
314
- {{- "<|start|>assistant<|channel|>final<|message|>" + message.content + "<|end|>" }}
315
- {%- set last_tool_call.name = none %}
316
  {%- endif %}
317
- {%- elif message.role == 'tool' -%}
318
- {%- if last_tool_call.name is none %}
319
- {{- raise_exception("Message has tool role, but there was no previous assistant message with a tool call!") }}
 
 
 
 
 
 
 
 
 
320
  {%- endif %}
321
- {{- "<|start|>functions." + last_tool_call.name }}
322
- {{- " to=assistant<|channel|>commentary<|message|>" + message.content|tojson + "<|end|>" }}
323
- {%- elif message.role == 'user' -%}
324
- {{- "<|start|>user<|message|>" + message.content + "<|end|>" }}
325
- {%- endif -%}
326
- {%- endfor -%}
327
-
328
- {#- Generation prompt #}
329
- {%- if add_generation_prompt -%}
330
- <|start|>assistant
331
- {%- endif -%}
 
 
1
+ {%- set image_count = namespace(value=0) %}
2
+ {%- set video_count = namespace(value=0) %}
3
+ {%- macro render_content(content, do_vision_count, is_system_content=false) %}
4
+ {%- if content is string %}
5
+ {{- content }}
6
+ {%- elif content is iterable and content is not mapping %}
7
+ {%- for item in content %}
8
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
9
+ {%- if is_system_content %}
10
+ {{- raise_exception('System message cannot contain images.') }}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  {%- endif %}
12
+ {%- if do_vision_count %}
13
+ {%- set image_count.value = image_count.value + 1 %}
14
+ {%- endif %}
15
+ {%- if add_vision_id %}
16
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
17
+ {%- endif %}
18
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
19
+ {%- elif 'video' in item or item.type == 'video' %}
20
+ {%- if is_system_content %}
21
+ {{- raise_exception('System message cannot contain videos.') }}
22
+ {%- endif %}
23
+ {%- if do_vision_count %}
24
+ {%- set video_count.value = video_count.value + 1 %}
25
+ {%- endif %}
26
+ {%- if add_vision_id %}
27
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
28
+ {%- endif %}
29
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
30
+ {%- elif 'text' in item %}
31
+ {{- item.text }}
32
+ {%- else %}
33
+ {{- raise_exception('Unexpected item type in content.') }}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  {%- endif %}
35
  {%- endfor %}
36
+ {%- elif content is none or content is undefined %}
37
+ {{- '' }}
38
+ {%- else %}
39
+ {{- raise_exception('Unexpected content type.') }}
40
+ {%- endif %}
41
+ {%- endmacro %}
42
+ {%- if not messages %}
43
+ {{- raise_exception('No messages provided.') }}
44
+ {%- endif %}
45
+ {%- if tools and tools is iterable and tools is not mapping %}
46
+ {{- '<|im_start|>system\n' }}
47
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
48
+ {%- for tool in tools %}
49
+ {{- "\n" }}
50
+ {{- tool | tojson }}
51
+ {%- endfor %}
52
+ {{- "\n</tools>" }}
53
+ {{- '\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>' }}
54
+ {%- if messages[0].role == 'system' %}
55
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
56
+ {%- if content %}
57
+ {{- '\n\n' + content }}
58
+ {%- endif %}
59
+ {%- endif %}
60
+ {{- '<|im_end|>\n' }}
61
  {%- else %}
62
+ {%- if messages[0].role == 'system' %}
63
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
64
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
65
+ {%- endif %}
66
  {%- endif %}
67
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
68
+ {%- for message in messages[::-1] %}
69
+ {%- set index = (messages|length - 1) - loop.index0 %}
70
+ {%- if ns.multi_step_tool and message.role == "user" %}
71
+ {%- set content = render_content(message.content, false)|trim %}
72
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
73
+ {%- set ns.multi_step_tool = false %}
74
+ {%- set ns.last_query_index = index %}
75
+ {%- endif %}
76
  {%- endif %}
77
+ {%- endfor %}
78
+ {%- if ns.multi_step_tool %}
79
+ {{- raise_exception('No user query found in messages.') }}
 
 
80
  {%- endif %}
81
+ {%- for message in messages %}
82
+ {%- set content = render_content(message.content, true)|trim %}
83
+ {%- if message.role == "system" %}
84
+ {%- if not loop.first %}
85
+ {{- raise_exception('System message must be at the beginning.') }}
 
 
 
 
 
 
86
  {%- endif %}
87
+ {%- elif message.role == "user" %}
88
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
89
+ {%- elif message.role == "assistant" %}
90
+ {%- set reasoning_content = '' %}
91
+ {%- if message.reasoning_content is string %}
92
+ {%- set reasoning_content = message.reasoning_content %}
93
+ {%- else %}
94
+ {%- if '</think>' in content %}
95
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
96
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
97
  {%- endif %}
98
  {%- endif %}
99
+ {%- set reasoning_content = reasoning_content|trim %}
100
+ {%- if loop.index0 > ns.last_query_index %}
101
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
102
+ {%- else %}
103
+ {{- '<|im_start|>' + message.role + '\n' + content }}
104
+ {%- endif %}
105
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
106
+ {%- for tool_call in message.tool_calls %}
107
+ {%- if tool_call.function is defined %}
108
+ {%- set tool_call = tool_call.function %}
109
+ {%- endif %}
110
+ {%- if loop.first %}
111
+ {%- if content|trim %}
112
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
113
+ {%- else %}
114
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
115
+ {%- endif %}
116
+ {%- else %}
117
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
118
  {%- endif %}
119
+ {%- if tool_call.arguments is defined %}
120
+ {%- for args_name, args_value in tool_call.arguments|items %}
121
+ {{- '<parameter=' + args_name + '>\n' }}
122
+ {%- 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 %}
123
+ {{- args_value }}
124
+ {{- '\n</parameter>\n' }}
125
+ {%- endfor %}
126
+ {%- endif %}
127
+ {{- '</function>\n</tool_call>' }}
128
  {%- endfor %}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  {%- endif %}
130
+ {{- '<|im_end|>\n' }}
131
+ {%- elif message.role == "tool" %}
132
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
133
+ {{- '<|im_start|>user' }}
134
+ {%- endif %}
135
+ {{- '\n<tool_response>\n' }}
136
+ {{- content }}
137
+ {{- '\n</tool_response>' }}
138
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
139
+ {{- '<|im_end|>\n' }}
140
+ {%- elif loop.last %}
141
+ {{- '<|im_end|>\n' }}
142
  {%- endif %}
143
+ {%- else %}
144
+ {{- raise_exception('Unexpected message role.') }}
145
+ {%- endif %}
146
+ {%- endfor %}
147
+ {%- if add_generation_prompt %}
148
+ {{- '<|im_start|>assistant\n' }}
149
+ {%- if enable_thinking is defined and enable_thinking is false %}
150
+ {{- '<think>\n\n</think>\n\n' }}
151
+ {%- else %}
152
+ {{- '<think>\n' }}
153
+ {%- endif %}
154
+ {%- endif %}
config.json CHANGED
@@ -1,68 +1,143 @@
1
  {
2
  "architectures": [
3
- "GptOssForCausalLM"
4
  ],
5
- "attention_bias": true,
6
- "attention_dropout": 0.0,
7
  "dtype": "bfloat16",
8
- "eos_token_id": 200002,
9
- "experts_per_token": 4,
10
- "head_dim": 64,
11
- "hidden_act": "silu",
12
- "hidden_size": 2880,
13
- "initial_context_length": 4096,
14
- "initializer_range": 0.02,
15
- "intermediate_size": 2880,
16
- "layer_types": [
17
- "sliding_attention",
18
- "full_attention",
19
- "sliding_attention",
20
- "full_attention",
21
- "sliding_attention",
22
- "full_attention",
23
- "sliding_attention",
24
- "full_attention",
25
- "sliding_attention",
26
- "full_attention",
27
- "sliding_attention",
28
- "full_attention",
29
- "sliding_attention",
30
- "full_attention",
31
- "sliding_attention",
32
- "full_attention",
33
- "sliding_attention",
34
- "full_attention",
35
- "sliding_attention",
36
- "full_attention",
37
- "sliding_attention",
38
- "full_attention",
39
- "sliding_attention",
40
- "full_attention"
41
- ],
42
- "max_position_embeddings": 131072,
43
- "model_type": "gpt_oss",
44
- "num_attention_heads": 64,
45
- "num_experts_per_tok": 4,
46
- "num_hidden_layers": 24,
47
- "num_key_value_heads": 8,
48
- "num_local_experts": 32,
49
- "output_router_logits": false,
50
- "pad_token_id": 199999,
51
- "rms_norm_eps": 1e-05,
52
- "rope_scaling": {
53
- "beta_fast": 32.0,
54
- "beta_slow": 1.0,
55
- "factor": 32.0,
56
- "original_max_position_embeddings": 4096,
57
- "rope_type": "yarn",
58
- "truncate": false
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  },
60
- "rope_theta": 150000,
61
- "router_aux_loss_coef": 0.9,
62
- "sliding_window": 128,
63
- "swiglu_limit": 7.0,
64
  "tie_word_embeddings": false,
65
- "transformers_version": "4.57.1",
66
  "use_cache": true,
67
- "vocab_size": 201088
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  }
 
1
  {
2
  "architectures": [
3
+ "Qwen3_5ForConditionalGeneration"
4
  ],
 
 
5
  "dtype": "bfloat16",
6
+ "hidden_size": 5120,
7
+ "image_token_id": 248056,
8
+ "model_type": "qwen3_5",
9
+ "text_config": {
10
+ "attention_bias": false,
11
+ "attention_dropout": 0.0,
12
+ "attn_output_gate": true,
13
+ "bos_token_id": null,
14
+ "dtype": "bfloat16",
15
+ "eos_token_id": 248044,
16
+ "full_attention_interval": 4,
17
+ "head_dim": 256,
18
+ "hidden_act": "silu",
19
+ "hidden_size": 5120,
20
+ "initializer_range": 0.02,
21
+ "intermediate_size": 17408,
22
+ "layer_types": [
23
+ "linear_attention",
24
+ "linear_attention",
25
+ "linear_attention",
26
+ "full_attention",
27
+ "linear_attention",
28
+ "linear_attention",
29
+ "linear_attention",
30
+ "full_attention",
31
+ "linear_attention",
32
+ "linear_attention",
33
+ "linear_attention",
34
+ "full_attention",
35
+ "linear_attention",
36
+ "linear_attention",
37
+ "linear_attention",
38
+ "full_attention",
39
+ "linear_attention",
40
+ "linear_attention",
41
+ "linear_attention",
42
+ "full_attention",
43
+ "linear_attention",
44
+ "linear_attention",
45
+ "linear_attention",
46
+ "full_attention",
47
+ "linear_attention",
48
+ "linear_attention",
49
+ "linear_attention",
50
+ "full_attention",
51
+ "linear_attention",
52
+ "linear_attention",
53
+ "linear_attention",
54
+ "full_attention",
55
+ "linear_attention",
56
+ "linear_attention",
57
+ "linear_attention",
58
+ "full_attention",
59
+ "linear_attention",
60
+ "linear_attention",
61
+ "linear_attention",
62
+ "full_attention",
63
+ "linear_attention",
64
+ "linear_attention",
65
+ "linear_attention",
66
+ "full_attention",
67
+ "linear_attention",
68
+ "linear_attention",
69
+ "linear_attention",
70
+ "full_attention",
71
+ "linear_attention",
72
+ "linear_attention",
73
+ "linear_attention",
74
+ "full_attention",
75
+ "linear_attention",
76
+ "linear_attention",
77
+ "linear_attention",
78
+ "full_attention",
79
+ "linear_attention",
80
+ "linear_attention",
81
+ "linear_attention",
82
+ "full_attention",
83
+ "linear_attention",
84
+ "linear_attention",
85
+ "linear_attention",
86
+ "full_attention"
87
+ ],
88
+ "linear_conv_kernel_dim": 4,
89
+ "linear_key_head_dim": 128,
90
+ "linear_num_key_heads": 16,
91
+ "linear_num_value_heads": 48,
92
+ "linear_value_head_dim": 128,
93
+ "mamba_ssm_dtype": "float32",
94
+ "max_position_embeddings": 262144,
95
+ "mlp_only_layers": [],
96
+ "model_type": "qwen3_5_text",
97
+ "mtp_num_hidden_layers": 1,
98
+ "mtp_use_dedicated_embeddings": false,
99
+ "num_attention_heads": 24,
100
+ "num_hidden_layers": 64,
101
+ "num_key_value_heads": 4,
102
+ "pad_token_id": null,
103
+ "partial_rotary_factor": 0.25,
104
+ "rms_norm_eps": 1e-06,
105
+ "rope_parameters": {
106
+ "mrope_interleaved": true,
107
+ "mrope_section": [
108
+ 11,
109
+ 11,
110
+ 10
111
+ ],
112
+ "partial_rotary_factor": 0.25,
113
+ "rope_theta": 10000000,
114
+ "rope_type": "default"
115
+ },
116
+ "tie_word_embeddings": false,
117
+ "use_cache": true,
118
+ "vocab_size": 248320
119
  },
 
 
 
 
120
  "tie_word_embeddings": false,
121
+ "transformers_version": "5.2.0",
122
  "use_cache": true,
123
+ "video_token_id": 248057,
124
+ "vision_config": {
125
+ "deepstack_visual_indexes": [],
126
+ "depth": 27,
127
+ "dtype": "bfloat16",
128
+ "hidden_act": "gelu_pytorch_tanh",
129
+ "hidden_size": 1152,
130
+ "in_channels": 3,
131
+ "initializer_range": 0.02,
132
+ "intermediate_size": 4304,
133
+ "model_type": "qwen3_5",
134
+ "num_heads": 16,
135
+ "num_position_embeddings": 2304,
136
+ "out_hidden_size": 5120,
137
+ "patch_size": 16,
138
+ "spatial_merge_size": 2,
139
+ "temporal_patch_size": 2
140
+ },
141
+ "vision_end_token_id": 248054,
142
+ "vision_start_token_id": 248053
143
  }
generation_config.json CHANGED
@@ -1,11 +1,13 @@
1
  {
2
- "bos_token_id": 199998,
3
  "do_sample": true,
4
  "eos_token_id": [
5
- 200002,
6
- 199999,
7
- 200012
8
  ],
9
- "pad_token_id": 199999,
10
- "transformers_version": "4.57.1"
 
 
 
11
  }
 
1
  {
2
+ "bos_token_id": 248044,
3
  "do_sample": true,
4
  "eos_token_id": [
5
+ 248046,
6
+ 248044
 
7
  ],
8
+ "pad_token_id": 248044,
9
+ "temperature": 0.6,
10
+ "top_k": 20,
11
+ "top_p": 0.95,
12
+ "transformers_version": "5.2.0"
13
  }
model-00001-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c1ebaabbaca559789304b32d41530fb890cb406d30b4113f2e0e754a05dc93d
3
+ size 2542796928
model-00002-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d629fb8735dac8804c6fe507578919b9c625a6a614815caf754e36af47f55e8d
3
+ size 4842451920
model-00003-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:834ae094c1ad25c736cb48095d54322c225a0b97a17d1fafc88e5bb4dfe60c93
3
+ size 4965227944
model-00004-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e59e895a1a01ab73edc7f030969791d4a940356e1e3e945719450e3ce678e846
3
+ size 4912819264
model-00005-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c6e241fa148a9c613805498b13acf75e0091397584d7ea3f4e79efb76a62163
3
+ size 4986198544
model-00006-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:805839c1de04e02748a77f58e045049947b2f6d4ba7e6d602068f265d7b244a5
3
+ size 4912819320
model-00007-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e1afe018c79bcadf0ff8d019e2a594006baad763c38e8f0b8e14017f9a53446
3
+ size 4932703272
model-00008-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58570f2def6f8560e0651a5fac429a87bb7c7605c63751e2f94f3350e36bf94b
3
+ size 4966314576
model-00009-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cba9b16d8773a0c09a8dcdf7698cc8cb9fb344c8d3590fcb5b8076701bb55ce0
3
+ size 4964162248
model-00010-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5aaf0d821cfdfddcb3bb8a8f2b2b95206a4253d79ae1c10ac302ef2e86f7fc61
3
+ size 4933789824
model-00011-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7087dc51feb32dffab3ee308257788578ee7aee4f3301fd6afdc80a801e38c43
3
+ size 4965228032
model-00012-of-00012.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:037747d082435956eebea9ebe0da3e6f8409a71c7e19061583ff3ee74bada8fb
3
+ size 2789094896
model.safetensors.index.json CHANGED
The diff for this file is too large to render. See raw diff
 
processor_config.json ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "data_format": "channels_first",
4
+ "do_convert_rgb": true,
5
+ "do_normalize": true,
6
+ "do_rescale": true,
7
+ "do_resize": true,
8
+ "image_mean": [
9
+ 0.5,
10
+ 0.5,
11
+ 0.5
12
+ ],
13
+ "image_processor_type": "Qwen2VLImageProcessorFast",
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "merge_size": 2,
20
+ "patch_size": 16,
21
+ "resample": 3,
22
+ "rescale_factor": 0.00392156862745098,
23
+ "size": {
24
+ "longest_edge": 16777216,
25
+ "shortest_edge": 65536
26
+ },
27
+ "temporal_patch_size": 2
28
+ },
29
+ "processor_class": "Qwen3VLProcessor",
30
+ "video_processor": {
31
+ "data_format": "channels_first",
32
+ "default_to_square": true,
33
+ "do_convert_rgb": true,
34
+ "do_normalize": true,
35
+ "do_rescale": true,
36
+ "do_resize": true,
37
+ "do_sample_frames": true,
38
+ "fps": 2,
39
+ "image_mean": [
40
+ 0.5,
41
+ 0.5,
42
+ 0.5
43
+ ],
44
+ "image_std": [
45
+ 0.5,
46
+ 0.5,
47
+ 0.5
48
+ ],
49
+ "max_frames": 768,
50
+ "merge_size": 2,
51
+ "min_frames": 4,
52
+ "patch_size": 16,
53
+ "resample": 3,
54
+ "rescale_factor": 0.00392156862745098,
55
+ "return_metadata": false,
56
+ "size": {
57
+ "longest_edge": 25165824,
58
+ "shortest_edge": 4096
59
+ },
60
+ "temporal_patch_size": 2,
61
+ "video_processor_type": "Qwen3VLVideoProcessor"
62
+ }
63
+ }
tokenizer.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0614fe83cadab421296e664e1f48f4261fa8fef6e03e63bb75c20f38e37d07d3
3
- size 27868174
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87a7830d63fcf43bf241c3c5242e96e62dd3fdc29224ca26fed8ea333db72de4
3
+ size 19989343
tokenizer_config.json CHANGED
@@ -1,185 +1,33 @@
1
  {
2
- "added_tokens_decoder": {
3
- "199998": {
4
- "content": "<|startoftext|>",
5
- "lstrip": false,
6
- "normalized": false,
7
- "rstrip": false,
8
- "single_word": false,
9
- "special": true
10
- },
11
- "199999": {
12
- "content": "<|endoftext|>",
13
- "lstrip": false,
14
- "normalized": false,
15
- "rstrip": false,
16
- "single_word": false,
17
- "special": true
18
- },
19
- "200000": {
20
- "content": "<|reserved_200000|>",
21
- "lstrip": false,
22
- "normalized": false,
23
- "rstrip": false,
24
- "single_word": false,
25
- "special": true
26
- },
27
- "200001": {
28
- "content": "<|reserved_200001|>",
29
- "lstrip": false,
30
- "normalized": false,
31
- "rstrip": false,
32
- "single_word": false,
33
- "special": true
34
- },
35
- "200002": {
36
- "content": "<|return|>",
37
- "lstrip": false,
38
- "normalized": false,
39
- "rstrip": false,
40
- "single_word": false,
41
- "special": true
42
- },
43
- "200003": {
44
- "content": "<|constrain|>",
45
- "lstrip": false,
46
- "normalized": false,
47
- "rstrip": false,
48
- "single_word": false,
49
- "special": true
50
- },
51
- "200004": {
52
- "content": "<|reserved_200004|>",
53
- "lstrip": false,
54
- "normalized": false,
55
- "rstrip": false,
56
- "single_word": false,
57
- "special": true
58
- },
59
- "200005": {
60
- "content": "<|channel|>",
61
- "lstrip": false,
62
- "normalized": false,
63
- "rstrip": false,
64
- "single_word": false,
65
- "special": true
66
- },
67
- "200006": {
68
- "content": "<|start|>",
69
- "lstrip": false,
70
- "normalized": false,
71
- "rstrip": false,
72
- "single_word": false,
73
- "special": true
74
- },
75
- "200007": {
76
- "content": "<|end|>",
77
- "lstrip": false,
78
- "normalized": false,
79
- "rstrip": false,
80
- "single_word": false,
81
- "special": true
82
- },
83
- "200008": {
84
- "content": "<|message|>",
85
- "lstrip": false,
86
- "normalized": false,
87
- "rstrip": false,
88
- "single_word": false,
89
- "special": true
90
- },
91
- "200009": {
92
- "content": "<|reserved_200009|>",
93
- "lstrip": false,
94
- "normalized": false,
95
- "rstrip": false,
96
- "single_word": false,
97
- "special": true
98
- },
99
- "200010": {
100
- "content": "<|reserved_200010|>",
101
- "lstrip": false,
102
- "normalized": false,
103
- "rstrip": false,
104
- "single_word": false,
105
- "special": true
106
- },
107
- "200011": {
108
- "content": "<|reserved_200011|>",
109
- "lstrip": false,
110
- "normalized": false,
111
- "rstrip": false,
112
- "single_word": false,
113
- "special": true
114
- },
115
- "200012": {
116
- "content": "<|call|>",
117
- "lstrip": false,
118
- "normalized": false,
119
- "rstrip": false,
120
- "single_word": false,
121
- "special": true
122
- },
123
- "200013": {
124
- "content": "<|reserved_200013|>",
125
- "lstrip": false,
126
- "normalized": false,
127
- "rstrip": false,
128
- "single_word": false,
129
- "special": true
130
- },
131
- "200014": {
132
- "content": "<|reserved_200014|>",
133
- "lstrip": false,
134
- "normalized": false,
135
- "rstrip": false,
136
- "single_word": false,
137
- "special": true
138
- },
139
- "200015": {
140
- "content": "<|reserved_200015|>",
141
- "lstrip": false,
142
- "normalized": false,
143
- "rstrip": false,
144
- "single_word": false,
145
- "special": true
146
- },
147
- "200016": {
148
- "content": "<|reserved_200016|>",
149
- "lstrip": false,
150
- "normalized": false,
151
- "rstrip": false,
152
- "single_word": false,
153
- "special": true
154
- },
155
- "200017": {
156
- "content": "<|reserved_200017|>",
157
- "lstrip": false,
158
- "normalized": false,
159
- "rstrip": false,
160
- "single_word": false,
161
- "special": true
162
- },
163
- "200018": {
164
- "content": "<|endofprompt|>",
165
- "lstrip": false,
166
- "normalized": false,
167
- "rstrip": false,
168
- "single_word": false,
169
- "special": true
170
- }
171
- },
172
- "bos_token": "<|startoftext|>",
173
  "clean_up_tokenization_spaces": false,
174
- "eos_token": "<|return|>",
175
- "extra_special_tokens": {},
176
- "model_input_names": [
177
- "input_ids",
178
- "attention_mask"
179
- ],
180
- "model_max_length": 1000000000000000019884624838656,
 
 
 
 
 
 
 
181
  "pad_token": "<|endoftext|>",
182
  "padding_side": "left",
 
 
183
  "split_special_tokens": false,
184
- "tokenizer_class": "PreTrainedTokenizerFast"
 
 
 
 
185
  }
 
1
  {
2
+ "add_prefix_space": false,
3
+ "audio_bos_token": "<|audio_start|>",
4
+ "audio_eos_token": "<|audio_end|>",
5
+ "audio_token": "<|audio_pad|>",
6
+ "backend": "tokenizers",
7
+ "bos_token": null,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  "clean_up_tokenization_spaces": false,
9
+ "eos_token": "<|im_end|>",
10
+ "errors": "replace",
11
+ "image_token": "<|image_pad|>",
12
+ "is_local": true,
13
+ "model_max_length": 262144,
14
+ "model_specific_special_tokens": {
15
+ "audio_bos_token": "<|audio_start|>",
16
+ "audio_eos_token": "<|audio_end|>",
17
+ "audio_token": "<|audio_pad|>",
18
+ "image_token": "<|image_pad|>",
19
+ "video_token": "<|video_pad|>",
20
+ "vision_bos_token": "<|vision_start|>",
21
+ "vision_eos_token": "<|vision_end|>"
22
+ },
23
  "pad_token": "<|endoftext|>",
24
  "padding_side": "left",
25
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
26
+ "processor_class": "Qwen3VLProcessor",
27
  "split_special_tokens": false,
28
+ "tokenizer_class": "TokenizersBackend",
29
+ "unk_token": null,
30
+ "video_token": "<|video_pad|>",
31
+ "vision_bos_token": "<|vision_start|>",
32
+ "vision_eos_token": "<|vision_end|>"
33
  }