Lonepic BoZhang sY713 commited on
Commit
55100f1
·
0 Parent(s):

commit model card and model files

Browse files

Co-authored-by: BoZhang <BoZhang@users.noreply.huggingface.co>
Co-authored-by: sY713 <sY713@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz 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
+ figures/agents-m1-benchmark.png filter=lfs diff=lfs merge=lfs -text
37
+ figures/agents-m1.png filter=lfs diff=lfs merge=lfs -text
38
+ logo_nobg.png filter=lfs diff=lfs merge=lfs -text
39
+ figures/a1_benchmarks_altair_grid.pdf filter=lfs diff=lfs merge=lfs -text
40
+ figures/a1_benchmarks_altair_grid.png filter=lfs diff=lfs merge=lfs -text
41
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,446 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ pipeline_tag: text-generation
5
+ ---
6
+
7
+ <div align="center">
8
+ <img src="./figures/logo_nobg.png" width="20%"/>
9
+ </div>
10
+
11
+ ---
12
+
13
+ <div style="display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: nowrap;">
14
+ <img src="./figures/hf-logo.svg" width="16" height="16" alt="Hugging Face">
15
+ <a href="https://huggingface.co/InternScience/Agents-A1"><b>Hugging Face</b></a>
16
+ <span style="color: #ccc;">|</span>
17
+
18
+ <img src="./figures/github-logo.svg" width="16" height="16" alt="GitHub">
19
+ <a href="https://github.com/InternScience/Agents-A1"><b>Github</b></a>
20
+ <span style="color: #ccc;">|</span>
21
+
22
+ <!-- <img src="./figures/modelscope-logo.svg" width="16" height="16" alt="Model Scope">
23
+ <a href="https://modelscope.cn/models/Shanghai_AI_Laboratory/Agents-A1"><b>ModelScope</b></a>
24
+ <span style="color: #ccc;">|</span> -->
25
+
26
+ <img src="./figures/24px.svg" width="16" height="16" alt="Technical Report" style="filter: invert(0.5);">
27
+ <a href="https://github.com/InternScience/Agents-A1/blob/main/Agents-A1.pdf"><b>Technical Report</b></a>
28
+ </div>
29
+
30
+ # Agents-A1: Scaling the Horizon, Not the Parameters: Reaching Trillion-Parameter Performance with a 35B Agent
31
+
32
+ > [!Note]
33
+ > This repository contains model weights and configuration files for Agents-A1 in the Hugging Face Transformers format.
34
+ >
35
+ > These artifacts are compatible with Hugging Face Transformers, vLLM, SGLang, etc.
36
+
37
+ **Agents‑A1** is a 35B Mixture‑of‑Experts agentic model from [InternScience](https://huggingface.co/InternScience), built to scale heterogeneous agentic abilities across multiple domains including **Long‑horizon Search, Engineering, Scientific Research, Instruction Following, and Tool-calling**. We investigate agent-horizon scaling from two perspectives: scaling long-horizon trajectories and scaling heterogeneous agent abilities.
38
+
39
+ From the scaling of long-horizon trajectories, **Agents‑A1** is trained with the assistance of a domain-grounded knowledge-action infrastructure that jointly constructs actions, observations, and verifier outcomes, turning the agent's process into a trainable target. From the scaling of heterogeneous agent abilities, **Agents‑A1** presents a three-stage training paradigm for building scalable general-purpose agentic model. First, we perform full-domain supervised fine-tuning to align the base model with broad agentic behaviors. Second, we train domain-level teacher models to capture specialized expertise in each domain. Third, we propose multi-teacher multi-domain on-policy distillation with heterogeneity-aware optimization to improve knowledge transfer efficiency across different domains.
40
+
41
+
42
+ ![Agents-A1 Benchmark Overview](./figures/a1_benchmarks_altair_grid.svg)
43
+
44
+ ## Highlights
45
+
46
+ - **Agentic Reasoning**: Agents-A1 excels at decomposing complex tasks into executable sub-steps, planning ahead, and adapting its strategy based on intermediate results.
47
+ - **Tool Use**: Natively supports function calling and tool integration, enabling seamless interaction with APIs, code interpreters, search engines, and other external tools.
48
+ - **Scientific and Professional Reasoning**: Handles tool-integrated scientific reasoning and professional knowledge question answering.
49
+ - **Instruction Following**: Precisely follows detailed, multi-constraint instructions across diverse domains.
50
+
51
+ We welcome developers and enterprises to integrate and try Agents-A1 and share their feedback.
52
+
53
+ ## Performance
54
+
55
+ We evaluate Agents-A1 in real-world agentic and research-oriented workflows across six directions — long-horizon search, engineering tasks, scientific research, instruction following, general agentic tasks, and scientific agentic tasks. Despite operating in the ~35B model class, Agents-A1 delivers highly competitive performance against frontier-scale systems such as GPT-5.5, DeepSeek-V4-pro, and Kimi-K2.6. It achieves overall SOTA results on several challenging benchmarks, including Seal-0 (56.4), HiPhO (46.4), FrontierScience-Olympiad (79.0), FrontierScience-Research (40.00), IFBench (80.6), and IFEval (94.8), while also ranking as the best among comparable models on a broad range of tasks such as BrowseComp (75.5), XBench-DS-2510 (86.0), GAIA (96.0), SciCode (44.3), HLE with tools (47.6), and MolBench-bind (56.8). These results show that Agents-A1 combines strong long-horizon search ability, robust scientific reasoning, and reliable instruction following, establishing it as a highly capable and efficient agentic model that narrows the gap with much larger frontier models.
56
+
57
+
58
+ <p>
59
+ 🥇 Overall SOTA &nbsp;&nbsp;
60
+ 🟢 Best Among Comparable Models (~35B)
61
+ </p>
62
+
63
+ <table>
64
+ <thead>
65
+ <tr>
66
+ <th rowspan="2" align="left">Benchmark</th>
67
+ <th colspan="3" align="center" style="text-align:center;">
68
+ 📏 Comparable Models (~35B)
69
+ </th>
70
+
71
+ <th colspan="4" align="center" style="text-align:center;">
72
+ 🚀 Larger-scale Models
73
+ </th>
74
+
75
+ <th colspan="2" align="center" style="text-align:center;">
76
+ ⭐ Ours
77
+ </th>
78
+ </tr>
79
+
80
+ <tr>
81
+ <th align="center">Qwen3.5-35B-A3B</th>
82
+ <th align="center">Qwen3.6-35B-A3B</th>
83
+ <th align="center">Nex-N2-mini</th>
84
+
85
+ <th align="center">Step-3.5-Flash</th>
86
+ <th align="center">Kimi-K2.6</th>
87
+ <th align="center">DeepSeek-V4-pro(Max)</th>
88
+ <th align="center">GPT-5.5(xhigh)</th>
89
+
90
+ <th align="center">Agents-A1</th>
91
+ </tr>
92
+ </thead>
93
+
94
+ <tbody>
95
+
96
+ <tr>
97
+ <td colspan="9" align="left"><b>🔍 Long-horizon Search</b></td>
98
+ </tr>
99
+
100
+ <tr>
101
+ <td align="left">BrowseComp</td>
102
+ <td align="center">61.0</td>
103
+ <td align="center">67.93</td>
104
+ <td align="center">74.1</td>
105
+ <td align="center">69.0</td>
106
+ <td align="center">83.2</td>
107
+ <td align="center">83.4</td>
108
+ <td align="center">🥇 84.4</td>
109
+ <td align="center">🟢 75.51</td>
110
+ </tr>
111
+
112
+ <tr>
113
+ <td align="left">XBench-DS-2510</td>
114
+ <td align="center">77.0</td>
115
+ <td align="center">71.0</td>
116
+ <td align="center">82.0</td>
117
+ <td align="center">56.3</td>
118
+ <td align="center">🥇 90.0</td>
119
+ <td align="center">🥇 90.0</td>
120
+ <td align="center">84.0</td>
121
+ <td align="center">🟢 86.0</td>
122
+ </tr>
123
+
124
+ <tr>
125
+ <td align="left">Seal0</td>
126
+ <td align="center">41.4</td>
127
+ <td align="center">38.74</td>
128
+ <td align="center">49.55</td>
129
+ <td align="center">36.94</td>
130
+ <td align="center">50.45</td>
131
+ <td align="center">54.95</td>
132
+ <td align="center">42.34</td>
133
+ <td align="center">🥇 56.36</td>
134
+ </tr>
135
+
136
+ <tr>
137
+ <td align="left">GAIA</td>
138
+ <td align="center">59.8</td>
139
+ <td align="center">78.64</td>
140
+ <td align="center">82.52</td>
141
+ <td align="center">84.5</td>
142
+ <td align="center">80.58</td>
143
+ <td align="center">🥇 98.06</td>
144
+ <td align="center">87.38</td>
145
+ <td align="center">🟢 96.04</td>
146
+ </tr>
147
+
148
+ <tr>
149
+ <td colspan="9" align="left"><b>⚙️ Engineering Tasks</b></td>
150
+ </tr>
151
+
152
+ <tr>
153
+ <td align="left">SciCode</td>
154
+ <td align="center">37.7</td>
155
+ <td align="center">35.8</td>
156
+ <td align="center">29.9</td>
157
+ <td align="center">40.4</td>
158
+ <td align="center">53.5</td>
159
+ <td align="center">50.0</td>
160
+ <td align="center">🥇 56.1</td>
161
+ <td align="center">🟢 44.33</td>
162
+ </tr>
163
+
164
+ <tr>
165
+ <td align="left">MLE-Lite</td>
166
+ <td align="center">24.24</td>
167
+ <td align="center">34.85</td>
168
+ <td align="center">34.85</td>
169
+ <td align="center">54.55</td>
170
+ <td align="center">62.12</td>
171
+ <td align="center">63.64</td>
172
+ <td align="center">🥇 72.73</td>
173
+ <td align="center">🟢 43.94</td>
174
+ </tr>
175
+
176
+ <tr>
177
+ <td colspan="9" align="left"><b>🧪 Scientific Research</b></td>
178
+ </tr>
179
+
180
+ <tr>
181
+ <td align="left">HLE w/ tools</td>
182
+ <td align="center">47.4</td>
183
+ <td align="center">36.2</td>
184
+ <td align="center">32.0</td>
185
+ <td align="center">23.1</td>
186
+ <td align="center">🥇 54.0</td>
187
+ <td align="center">48.2</td>
188
+ <td align="center">52.2</td>
189
+ <td align="center">🟢 47.6</td>
190
+ </tr>
191
+
192
+ <tr>
193
+ <td align="left">HiPhO</td>
194
+ <td align="center">37.0</td>
195
+ <td align="center">37.7</td>
196
+ <td align="center">38.5</td>
197
+ <td align="center">38.3</td>
198
+ <td align="center">41.1</td>
199
+ <td align="center">38.7</td>
200
+ <td align="center">43.3</td>
201
+ <td align="center">🥇 46.4</td>
202
+ </tr>
203
+
204
+ <tr>
205
+ <td align="left">FrontierScience-Olympiad</td>
206
+ <td align="center">64.5</td>
207
+ <td align="center">60.3</td>
208
+ <td align="center">52.0</td>
209
+ <td align="center">61.0</td>
210
+ <td align="center">73.0</td>
211
+ <td align="center">76.0</td>
212
+ <td align="center">78.0</td>
213
+ <td align="center">🥇 79.0</td>
214
+ </tr>
215
+
216
+ <tr>
217
+ <td align="left">FrontierScience-Research</td>
218
+ <td align="center">2.5</td>
219
+ <td align="center">2.9</td>
220
+ <td align="center">5.0</td>
221
+ <td align="center">6.7</td>
222
+ <td align="center">17.9</td>
223
+ <td align="center">13.3</td>
224
+ <td align="center">26.7</td>
225
+ <td align="center">🥇 40.0</td>
226
+ </tr>
227
+
228
+ <tr>
229
+ <td colspan="9" align="left"><b>📋 Instruction Following</b></td>
230
+ </tr>
231
+
232
+ <tr>
233
+ <td align="left">IFBench</td>
234
+ <td align="center">70.2</td>
235
+ <td align="center">64.4</td>
236
+ <td align="center">54.08</td>
237
+ <td align="center">64.6</td>
238
+ <td align="center">71.77</td>
239
+ <td align="center">73.47</td>
240
+ <td align="center">75.9</td>
241
+ <td align="center">🥇 80.61</td>
242
+ </tr>
243
+
244
+ <tr>
245
+ <td align="left">LongBench-v2</td>
246
+ <td align="center">59.0</td>
247
+ <td align="center">57.7</td>
248
+ <td align="center">59.6</td>
249
+ <td align="center">57.5</td>
250
+ <td align="center">62.0</td>
251
+ <td align="center">🥇 64.3</td>
252
+ <td align="center">-</td>
253
+ <td align="center">🟢 60.2</td>
254
+ </tr>
255
+
256
+ <tr>
257
+ <td align="left">IFEval</td>
258
+ <td align="center">91.9</td>
259
+ <td align="center">91.3</td>
260
+ <td align="center">88.4</td>
261
+ <td align="center">93.53</td>
262
+ <td align="center">94.45</td>
263
+ <td align="center">93.35</td>
264
+ <td align="center">93.35</td>
265
+ <td align="center">🥇 94.82</td>
266
+ </tr>
267
+
268
+ <tr>
269
+ <td colspan="9" align="left"><b>🤖 General Agentic Tasks</b></td>
270
+ </tr>
271
+
272
+ <tr>
273
+ <td align="left">τ<sup>2</sup>-Bench</td>
274
+ <td align="center">🟢 81.2</td>
275
+ <td align="center">79.0</td>
276
+ <td align="center">74.53</td>
277
+ <td align="center">75.77</td>
278
+ <td align="center">81.93</td>
279
+ <td align="center">🥇 82.2</td>
280
+ <td align="center">81.63</td>
281
+ <td align="center">79.81</td>
282
+ </tr>
283
+
284
+ <tr>
285
+ <td align="left">VitaBench</td>
286
+ <td align="center">31.9</td>
287
+ <td align="center">35.6</td>
288
+ <td align="center">23.0</td>
289
+ <td align="center">30.0</td>
290
+ <td align="center">35.63</td>
291
+ <td align="center">🥇 49.04</td>
292
+ <td align="center">45.0</td>
293
+ <td align="center">🟢 38.75</td>
294
+ </tr>
295
+
296
+ <tr>
297
+ <td colspan="9" align="left"><b>🔬 Scientific Agentic Tasks</b></td>
298
+ </tr>
299
+
300
+ <tr>
301
+ <td align="left">MatTools</td>
302
+ <td align="center">21.0</td>
303
+ <td align="center">15.9</td>
304
+ <td align="center">34.1</td>
305
+ <td align="center">44.93</td>
306
+ <td align="center">63.8</td>
307
+ <td align="center">47.1</td>
308
+ <td align="center">🥇 68.8</td>
309
+ <td align="center">🟢 47.1</td>
310
+ </tr>
311
+
312
+ <tr>
313
+ <td align="left">MolBench-bind</td>
314
+ <td align="center">46.0</td>
315
+ <td align="center">48.7</td>
316
+ <td align="center">51.4</td>
317
+ <td align="center">45.95</td>
318
+ <td align="center">21.6</td>
319
+ <td align="center">37.8</td>
320
+ <td align="center">🥇 62.2</td>
321
+ <td align="center">🟢 56.8</td>
322
+ </tr>
323
+
324
+ </tbody>
325
+ </table>
326
+
327
+
328
+ ## Usage
329
+
330
+ ### SGLang
331
+
332
+ [SGLang](https://github.com/sgl-project/sglang) is a fast serving framework for large language models and vision language models.
333
+
334
+ Install SGLang with uv:
335
+
336
+ ```shell
337
+ uv venv --python 3.12 --seed --managed-python
338
+ source .venv/bin/activate
339
+
340
+ uv pip install sglang
341
+ ```
342
+
343
+ See [its documentation](https://docs.sglang.ai/get_started/install.html) for more details.
344
+
345
+ The following commands create API endpoints at `http://localhost:8000/v1`:
346
+
347
+ - **Standard Version** (1 GPUs, 262K context):
348
+
349
+ ```shell
350
+ python -m sglang.launch_server \
351
+ --model-path InternScience/Agents-A1 \
352
+ --port 8000 \
353
+ --tp-size 1 \
354
+ --mem-fraction-static 0.8 \
355
+ --context-length 262144 \
356
+ --reasoning-parser qwen3
357
+ ```
358
+ - **Tool Use**:
359
+
360
+ ```shell
361
+ python -m sglang.launch_server \
362
+ --model-path InternScience/Agents-A1 \
363
+ --port 8000 \
364
+ --tp-size 1 \
365
+ --mem-fraction-static 0.8 \
366
+ --context-length 262144 \
367
+ --reasoning-parser qwen3 \
368
+ --tool-call-parser qwen3_coder
369
+ ```
370
+
371
+ ### vLLM
372
+
373
+ [vLLM](https://github.com/vllm-project/vllm) is a high-throughput and memory-efficient inference and serving engine for LLMs.
374
+
375
+ Install vLLM from the main branch via uv:
376
+
377
+ ```shell
378
+ uv venv --python 3.12 --seed --managed-python
379
+ source .venv/bin/activate
380
+
381
+ uv pip install vllm --torch-backend=auto
382
+ ```
383
+
384
+ See [its documentation](https://docs.vllm.ai/en/stable/getting_started/installation/index.html) for more details.
385
+
386
+ The following commands create API endpoints at `http://localhost:8000/v1`:
387
+
388
+ - **Standard Version** (1 GPUs, 262K context):
389
+
390
+ ```shell
391
+ vllm serve InternScience/Agents-A1 \
392
+ --port 8000 \
393
+ --tensor-parallel-size 1 \
394
+ --max-model-len 262144 \
395
+ --reasoning-parser qwen3
396
+ ```
397
+ - **Tool Call**:
398
+
399
+ ```shell
400
+ vllm serve InternScience/Agents-A1 \
401
+ --port 8000 \
402
+ --tensor-parallel-size 1 \
403
+ --max-model-len 262144 \
404
+ --reasoning-parser qwen3 \
405
+ --enable-auto-tool-choice \
406
+ --tool-call-parser qwen3_coder
407
+ ```
408
+ - **Text-Only** (skips vision encoder to free KV cache memory):
409
+
410
+ ```shell
411
+ vllm serve InternScience/Agents-A1 \
412
+ --port 8000 \
413
+ --tensor-parallel-size 1 \
414
+ --max-model-len 262144 \
415
+ --reasoning-parser qwen3 \
416
+ --language-model-only
417
+ ```
418
+
419
+ ### Recommended Sampling Parameters
420
+
421
+ For the best generation quality, we recommend the following sampling parameters:
422
+
423
+ - `temperature`: 0.85
424
+ - `top_p`: 0.95
425
+ - `top_k`: 20
426
+ - `min_p`: 0.0
427
+ - `presence_penalty`: 1.1
428
+ - `repetition_penalty`: 1.0
429
+
430
+
431
+ ## Agent Capability Evaluation
432
+
433
+ To provide the community with a unified agent evaluation codebase for fair comparison, we have also open-sourced an evaluation framework for assessing agentic models across core capabilities, including tool use and multi-step reasoning. The evaluation code is included in the [Agents-A1/evaluation](https://github.com/InternScience/Agents-A1/tree/main/evaluation) of this repository.
434
+
435
+ We use this framework to evaluate the released model under a standardized and reproducible setting.
436
+ Specifically, the model is tested on a set of agent-oriented tasks that require it to understand user goals, decompose complex instructions, interact with tools or environments when necessary, and produce final results. The evaluation results reported in [Model Card](https://huggingface.co/InternScience/Agents-A1) are generated using the open-source framework above, so that users can reproduce the experiments, compare other models under the same protocol, and further extend the benchmark for new agent scenarios. (**Note that:** To ensure a fair comparison, we report the benchmark results from their original technical reports. If a model does not report the corresponding benchmark results, we evaluate it using the same evaluation protocol as our model.)
437
+
438
+ For detailed evaluation scripts, task definitions, metrics, and reproduction instructions, please refer to the evaluation codebase.
439
+
440
+ ## Citation
441
+
442
+ If you find our work helpful, feel free to give us a cite.
443
+
444
+ ```
445
+
446
+ ```
chat_template.jinja ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3_5MoeForConditionalGeneration"
4
+ ],
5
+ "image_token_id": 248056,
6
+ "model_type": "qwen3_5_moe",
7
+ "text_config": {
8
+ "attention_bias": false,
9
+ "attention_dropout": 0.0,
10
+ "attn_output_gate": true,
11
+ "dtype": "bfloat16",
12
+ "eos_token_id": 248044,
13
+ "full_attention_interval": 4,
14
+ "head_dim": 256,
15
+ "hidden_act": "silu",
16
+ "hidden_size": 2048,
17
+ "initializer_range": 0.02,
18
+ "layer_types": [
19
+ "linear_attention",
20
+ "linear_attention",
21
+ "linear_attention",
22
+ "full_attention",
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
+ ],
60
+ "linear_conv_kernel_dim": 4,
61
+ "linear_key_head_dim": 128,
62
+ "linear_num_key_heads": 16,
63
+ "linear_num_value_heads": 32,
64
+ "linear_value_head_dim": 128,
65
+ "max_position_embeddings": 262144,
66
+ "mlp_only_layers": [],
67
+ "model_type": "qwen3_5_moe_text",
68
+ "moe_intermediate_size": 512,
69
+ "mtp_num_hidden_layers": 1,
70
+ "mtp_use_dedicated_embeddings": false,
71
+ "num_attention_heads": 16,
72
+ "num_experts": 256,
73
+ "num_experts_per_tok": 8,
74
+ "num_hidden_layers": 40,
75
+ "num_key_value_heads": 2,
76
+ "rms_norm_eps": 1e-06,
77
+ "router_aux_loss_coef": 0.001,
78
+ "shared_expert_intermediate_size": 512,
79
+ "use_cache": true,
80
+ "vocab_size": 248320,
81
+ "mamba_ssm_dtype": "float32",
82
+ "rope_parameters": {
83
+ "mrope_interleaved": true,
84
+ "mrope_section": [
85
+ 11,
86
+ 11,
87
+ 10
88
+ ],
89
+ "rope_type": "default",
90
+ "rope_theta": 10000000,
91
+ "partial_rotary_factor": 0.25
92
+ }
93
+ },
94
+ "tie_word_embeddings": false,
95
+ "transformers_version": "4.57.0.dev0",
96
+ "video_token_id": 248057,
97
+ "vision_config": {
98
+ "deepstack_visual_indexes": [],
99
+ "depth": 27,
100
+ "hidden_act": "gelu_pytorch_tanh",
101
+ "hidden_size": 1152,
102
+ "in_channels": 3,
103
+ "initializer_range": 0.02,
104
+ "intermediate_size": 4304,
105
+ "model_type": "qwen3_5_moe",
106
+ "num_heads": 16,
107
+ "num_position_embeddings": 2304,
108
+ "out_hidden_size": 2048,
109
+ "patch_size": 16,
110
+ "spatial_merge_size": 2,
111
+ "temporal_patch_size": 2
112
+ },
113
+ "vision_end_token_id": 248054,
114
+ "vision_start_token_id": 248053
115
+ }
figures/24px.svg ADDED
figures/a1_benchmarks_altair_grid.svg ADDED
figures/github-logo.svg ADDED
figures/hf-logo.svg ADDED
figures/logo_nobg.png ADDED

Git LFS Details

  • SHA256: 8fa7bbc49686f492b05cfc3920e4dc52614c98edb401243f4ec13e5f4c56e5dd
  • Pointer size: 132 Bytes
  • Size of remote file: 2.33 MB
figures/modelscope-logo.svg ADDED
model-00000-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f09988c74056e06d714526368c8388f79baba471b077227b3a5aa4e633f0065
3
+ size 5368997288
model-00001-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6598947d24f4044047afda042bd0936bd964cd64e5f7caffac736bd749cd7e1f
3
+ size 5369063800
model-00002-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2b9b411a04e087de983085810a058d96cac8dec1d4595a258a8dd3917127024
3
+ size 5369063512
model-00003-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:73202e1796572c9fb96cf83a79d07f2a30db575dc4048de6c04ff76b6868c580
3
+ size 5369065752
model-00004-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dcf3797bbe960f92e9598d3e9a059963396671be717f3a3eacef1bf763668710
3
+ size 5369066360
model-00005-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39508d720158567a65816e98f5da8d1bbb2784846f3470819ff6563c3f604795
3
+ size 5369066072
model-00006-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d84959afb83e3a9c1c5799a478f495f78cc2fabcea83f1d4450fc140811f377
3
+ size 5369066240
model-00007-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2bc1e311cbfc4d0b2f8d7439a40d70a058fb3c8fbb5d73791b9fea825720ffe2
3
+ size 5369066360
model-00008-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:567f86c0575f0aab88e8f78e7d420e0297d4eb016c2def26b523bd759d6f654a
3
+ size 5369066072
model-00009-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b87b80cd71c860e7f78e048c65335a616a44987b471468530716420b270fd422
3
+ size 5369066240
model-00010-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e214ad6b1510c56806daa330aa5e9fd8811b5ed0c362de5af2b6458e6fad54ff
3
+ size 5369066360
model-00011-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46d1034b8098fa018cecd65fd3065bcd4872b24796725477be25f031a724c2ce
3
+ size 5369066072
model-00012-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:991047ab6958a4ac06fe20d64ab8ce2f30cbcfe60639135bbff7f485b4c0a6dc
3
+ size 5364702376
model-00013-of-00014.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ad92841cb0bbd100433ce803c1b63f4b9020facb8da682290ec2a1d51c9300a
3
+ size 425339080
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
preprocessor_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "size": {
3
+ "longest_edge": 16777216,
4
+ "shortest_edge": 65536
5
+ },
6
+ "patch_size": 16,
7
+ "temporal_patch_size": 2,
8
+ "merge_size": 2,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "processor_class": "Qwen3VLProcessor",
20
+ "image_processor_type": "Qwen2VLImageProcessorFast"
21
+ }
processor_config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "do_convert_rgb": true,
4
+ "do_normalize": true,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "image_mean": [
8
+ 0.5,
9
+ 0.5,
10
+ 0.5
11
+ ],
12
+ "image_processor_type": "Qwen2VLImageProcessor",
13
+ "image_std": [
14
+ 0.5,
15
+ 0.5,
16
+ 0.5
17
+ ],
18
+ "merge_size": 2,
19
+ "patch_size": 16,
20
+ "resample": 3,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "size": {
23
+ "longest_edge": 16777216,
24
+ "shortest_edge": 65536
25
+ },
26
+ "temporal_patch_size": 2
27
+ },
28
+ "processor_class": "Qwen3VLProcessor",
29
+ "video_processor": {
30
+ "do_convert_rgb": true,
31
+ "do_normalize": true,
32
+ "do_rescale": true,
33
+ "do_resize": true,
34
+ "do_sample_frames": true,
35
+ "fps": 2,
36
+ "image_mean": [
37
+ 0.5,
38
+ 0.5,
39
+ 0.5
40
+ ],
41
+ "image_std": [
42
+ 0.5,
43
+ 0.5,
44
+ 0.5
45
+ ],
46
+ "max_frames": 768,
47
+ "merge_size": 2,
48
+ "min_frames": 4,
49
+ "patch_size": 16,
50
+ "resample": 3,
51
+ "rescale_factor": 0.00392156862745098,
52
+ "return_metadata": false,
53
+ "size": {
54
+ "longest_edge": 25165824,
55
+ "shortest_edge": 4096
56
+ },
57
+ "temporal_patch_size": 2,
58
+ "video_processor_type": "Qwen3VLVideoProcessor"
59
+ }
60
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87a7830d63fcf43bf241c3c5242e96e62dd3fdc29224ca26fed8ea333db72de4
3
+ size 19989343
tokenizer_config.json ADDED
@@ -0,0 +1,305 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "248044": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "248045": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "248046": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "248047": {
29
+ "content": "<|object_ref_start|>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "248048": {
37
+ "content": "<|object_ref_end|>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "248049": {
45
+ "content": "<|box_start|>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "248050": {
53
+ "content": "<|box_end|>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "248051": {
61
+ "content": "<|quad_start|>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "248052": {
69
+ "content": "<|quad_end|>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "248053": {
77
+ "content": "<|vision_start|>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "248054": {
85
+ "content": "<|vision_end|>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "248055": {
93
+ "content": "<|vision_pad|>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "248056": {
101
+ "content": "<|image_pad|>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "248057": {
109
+ "content": "<|video_pad|>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": true
115
+ },
116
+ "248058": {
117
+ "content": "<tool_call>",
118
+ "lstrip": false,
119
+ "normalized": false,
120
+ "rstrip": false,
121
+ "single_word": false,
122
+ "special": false
123
+ },
124
+ "248059": {
125
+ "content": "</tool_call>",
126
+ "lstrip": false,
127
+ "normalized": false,
128
+ "rstrip": false,
129
+ "single_word": false,
130
+ "special": false
131
+ },
132
+ "248060": {
133
+ "content": "<|fim_prefix|>",
134
+ "lstrip": false,
135
+ "normalized": false,
136
+ "rstrip": false,
137
+ "single_word": false,
138
+ "special": false
139
+ },
140
+ "248061": {
141
+ "content": "<|fim_middle|>",
142
+ "lstrip": false,
143
+ "normalized": false,
144
+ "rstrip": false,
145
+ "single_word": false,
146
+ "special": false
147
+ },
148
+ "248062": {
149
+ "content": "<|fim_suffix|>",
150
+ "lstrip": false,
151
+ "normalized": false,
152
+ "rstrip": false,
153
+ "single_word": false,
154
+ "special": false
155
+ },
156
+ "248063": {
157
+ "content": "<|fim_pad|>",
158
+ "lstrip": false,
159
+ "normalized": false,
160
+ "rstrip": false,
161
+ "single_word": false,
162
+ "special": false
163
+ },
164
+ "248064": {
165
+ "content": "<|repo_name|>",
166
+ "lstrip": false,
167
+ "normalized": false,
168
+ "rstrip": false,
169
+ "single_word": false,
170
+ "special": false
171
+ },
172
+ "248065": {
173
+ "content": "<|file_sep|>",
174
+ "lstrip": false,
175
+ "normalized": false,
176
+ "rstrip": false,
177
+ "single_word": false,
178
+ "special": false
179
+ },
180
+ "248066": {
181
+ "content": "<tool_response>",
182
+ "lstrip": false,
183
+ "normalized": false,
184
+ "rstrip": false,
185
+ "single_word": false,
186
+ "special": false
187
+ },
188
+ "248067": {
189
+ "content": "</tool_response>",
190
+ "lstrip": false,
191
+ "normalized": false,
192
+ "rstrip": false,
193
+ "single_word": false,
194
+ "special": false
195
+ },
196
+ "248068": {
197
+ "content": "<think>",
198
+ "lstrip": false,
199
+ "normalized": false,
200
+ "rstrip": false,
201
+ "single_word": false,
202
+ "special": false
203
+ },
204
+ "248069": {
205
+ "content": "</think>",
206
+ "lstrip": false,
207
+ "normalized": false,
208
+ "rstrip": false,
209
+ "single_word": false,
210
+ "special": false
211
+ },
212
+ "248070": {
213
+ "content": "<|audio_start|>",
214
+ "lstrip": false,
215
+ "normalized": false,
216
+ "rstrip": false,
217
+ "single_word": false,
218
+ "special": true
219
+ },
220
+ "248071": {
221
+ "content": "<|audio_end|>",
222
+ "lstrip": false,
223
+ "normalized": false,
224
+ "rstrip": false,
225
+ "single_word": false,
226
+ "special": true
227
+ },
228
+ "248072": {
229
+ "content": "<tts_pad>",
230
+ "lstrip": false,
231
+ "normalized": false,
232
+ "rstrip": false,
233
+ "single_word": false,
234
+ "special": true
235
+ },
236
+ "248073": {
237
+ "content": "<tts_text_bos>",
238
+ "lstrip": false,
239
+ "normalized": false,
240
+ "rstrip": false,
241
+ "single_word": false,
242
+ "special": true
243
+ },
244
+ "248074": {
245
+ "content": "<tts_text_eod>",
246
+ "lstrip": false,
247
+ "normalized": false,
248
+ "rstrip": false,
249
+ "single_word": false,
250
+ "special": true
251
+ },
252
+ "248075": {
253
+ "content": "<tts_text_bos_single>",
254
+ "lstrip": false,
255
+ "normalized": false,
256
+ "rstrip": false,
257
+ "single_word": false,
258
+ "special": true
259
+ },
260
+ "248076": {
261
+ "content": "<|audio_pad|>",
262
+ "lstrip": false,
263
+ "normalized": false,
264
+ "rstrip": false,
265
+ "single_word": false,
266
+ "special": true
267
+ }
268
+ },
269
+ "additional_special_tokens": [
270
+ "<|im_start|>",
271
+ "<|im_end|>",
272
+ "<|object_ref_start|>",
273
+ "<|object_ref_end|>",
274
+ "<|box_start|>",
275
+ "<|box_end|>",
276
+ "<|quad_start|>",
277
+ "<|quad_end|>",
278
+ "<|vision_start|>",
279
+ "<|vision_end|>",
280
+ "<|vision_pad|>",
281
+ "<|image_pad|>",
282
+ "<|video_pad|>"
283
+ ],
284
+ "bos_token": null,
285
+ "chat_template": "{%- set image_count = namespace(value=0) %}\n{%- set video_count = namespace(value=0) %}\n{%- macro render_content(content, do_vision_count, is_system_content=false) %}\n {%- if content is string %}\n {{- content }}\n {%- elif content is iterable and content is not mapping %}\n {%- for item in content %}\n {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}\n {%- if is_system_content %}\n {{- raise_exception('System message cannot contain images.') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set image_count.value = image_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- 'Picture ' ~ image_count.value ~ ': ' }}\n {%- endif %}\n {{- '<|vision_start|><|image_pad|><|vision_end|>' }}\n {%- elif 'video' in item or item.type == 'video' %}\n {%- if is_system_content %}\n {{- raise_exception('System message cannot contain videos.') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set video_count.value = video_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- 'Video ' ~ video_count.value ~ ': ' }}\n {%- endif %}\n {{- '<|vision_start|><|video_pad|><|vision_end|>' }}\n {%- elif 'text' in item %}\n {{- item.text }}\n {%- else %}\n {{- raise_exception('Unexpected item type in content.') }}\n {%- endif %}\n {%- endfor %}\n {%- elif content is none or content is undefined %}\n {{- '' }}\n {%- else %}\n {{- raise_exception('Unexpected content type.') }}\n {%- endif %}\n{%- endmacro %}\n{%- if not messages %}\n {{- raise_exception('No messages provided.') }}\n{%- endif %}\n{%- if tools and tools is iterable and tools is not mapping %}\n {{- '<|im_start|>system\\n' }}\n {{- \"# Tools\\n\\nYou have access to the following functions:\\n\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\" }}\n {{- '\\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>' }}\n {%- if messages[0].role == 'system' %}\n {%- set content = render_content(messages[0].content, false, true)|trim %}\n {%- if content %}\n {{- '\\n\\n' + content }}\n {%- endif %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {%- set content = render_content(messages[0].content, false, true)|trim %}\n {{- '<|im_start|>system\\n' + 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\" %}\n {%- set content = render_content(message.content, false)|trim %}\n {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if ns.multi_step_tool %}\n {{- raise_exception('No user query found in messages.') }}\n{%- endif %}\n{%- for message in messages %}\n {%- set content = render_content(message.content, true)|trim %}\n {%- if message.role == \"system\" %}\n {%- if not loop.first %}\n {{- raise_exception('System message must be at the beginning.') }}\n {%- endif %}\n {%- elif message.role == \"user\" %}\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 {%- set reasoning_content = reasoning_content|trim %}\n {%- if loop.index0 > ns.last_query_index %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content + '\\n</think>\\n\\n' + content }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {%- if loop.first %}\n {%- if content|trim %}\n {{- '\\n\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- else %}\n {{- '<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- endif %}\n {%- else %}\n {{- '\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- endif %}\n {%- if tool_call.arguments is defined %}\n {%- for args_name, args_value in tool_call.arguments|items %}\n {{- '<parameter=' + args_name + '>\\n' }}\n {%- 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 %}\n {{- args_value }}\n {{- '\\n</parameter>\\n' }}\n {%- endfor %}\n {%- endif %}\n {{- '</function>\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.previtem and loop.previtem.role != \"tool\" %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if not loop.last and loop.nextitem.role != \"tool\" %}\n {{- '<|im_end|>\\n' }}\n {%- elif loop.last %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- else %}\n {{- raise_exception('Unexpected message role.') }}\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 {%- else %}\n {{- '<think>\\n' }}\n {%- endif %}\n{%- endif %}",
286
+ "clean_up_tokenization_spaces": false,
287
+ "eos_token": "<|im_end|>",
288
+ "errors": "replace",
289
+ "model_max_length": 262144,
290
+ "pad_token": "<|endoftext|>",
291
+ "split_special_tokens": false,
292
+ "tokenizer_class": "Qwen2Tokenizer",
293
+ "unk_token": null,
294
+ "add_bos_token": false,
295
+ "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+",
296
+ "extra_special_tokens": {
297
+ "audio_bos_token": "<|audio_start|>",
298
+ "audio_eos_token": "<|audio_end|>",
299
+ "audio_token": "<|audio_pad|>",
300
+ "image_token": "<|image_pad|>",
301
+ "video_token": "<|video_pad|>",
302
+ "vision_bos_token": "<|vision_start|>",
303
+ "vision_eos_token": "<|vision_end|>"
304
+ }
305
+ }
video_preprocessor_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "size": {
3
+ "longest_edge": 25165824,
4
+ "shortest_edge": 4096
5
+ },
6
+ "patch_size": 16,
7
+ "temporal_patch_size": 2,
8
+ "merge_size": 2,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "processor_class": "Qwen3VLProcessor",
20
+ "video_processor_type": "Qwen3VLVideoProcessor"
21
+ }