Text Generation
Transformers
Safetensors
qwen3_5_moe
image-text-to-text
Mixture of Experts
vlm
vision
agentic
conversational
Eval Results
Instructions to use InternScience/Agents-A1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use InternScience/Agents-A1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="InternScience/Agents-A1") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("InternScience/Agents-A1") model = AutoModelForMultimodalLM.from_pretrained("InternScience/Agents-A1", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use InternScience/Agents-A1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "InternScience/Agents-A1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "InternScience/Agents-A1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/InternScience/Agents-A1
- SGLang
How to use InternScience/Agents-A1 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "InternScience/Agents-A1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "InternScience/Agents-A1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "InternScience/Agents-A1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "InternScience/Agents-A1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use InternScience/Agents-A1 with Docker Model Runner:
docker model run hf.co/InternScience/Agents-A1
File size: 16,954 Bytes
55100f1 c6f7b81 55100f1 2337d18 55100f1 bda11b8 9e2d06a bda11b8 ccae8f3 bda11b8 07a7e0c bda11b8 55100f1 8e2ca06 15d8b48 addff08 604894d 8e2ca06 55100f1 e489d93 55100f1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 | ---
library_name: transformers
license: apache-2.0
pipeline_tag: text-generation
tags:
- moe
- vlm
- vision
- agentic
---
# Agents-A1: Scaling the Horizon, Not the Parameters: Reaching Trillion-Parameter Performance with a 35B Agent
<div style="display: flex; flex-direction: column; align-items: center; line-height: 1.2;">
<div style="display: flex; justify-content: center; align-items: center; gap: 10px; height: 30px;">
<span style="font-size: 16px;" role="img" aria-label="Homepage">π </span>
<a href="https://internscience.github.io/Agents-A1/"><b>Homepage</b></a>
<span style="color: #ccc;">|</span>
<img src="./figures/24px.svg" width="16" height="16" alt="Technical Report" style="filter: invert(0.5);">
<a href="https://arxiv.org/abs/2606.30616"><b>Technical Report</b></a>
</div>
<div style="display: flex; justify-content: center; align-items: center; gap: 10px; height: 30px; margin-top: 2px;">
<img src="./figures/hf-logo.svg" width="16" height="16" alt="Hugging Face">
<a href="https://huggingface.co/InternScience/Agents-A1"><b>Hugging Face</b></a>
<span style="color: #ccc;">|</span>
<img src="./figures/github-logo.svg" width="16" height="16" alt="GitHub">
<a href="https://github.com/InternScience/Agents-A1"><b>Github</b></a>
<span style="color: #ccc;">|</span>
<img src="./figures/modelscope-logo.svg" width="16" height="16" alt="Model Scope">
<a href="https://modelscope.cn/models/InternScience/Agents-A1"><b>ModelScope</b></a>
</div>
</div>
> [!Note]
> This repository contains model weights and configuration files for Agents-A1 in the Hugging Face Transformers format.
>
> These artifacts are compatible with Hugging Face Transformers, vLLM, SGLang, etc.
---
## π₯ News
- **2026.7.14**: π₯π₯ The 4B model has been released.
- **2026.7.8**: π₯π₯ By popular demand from the community, our 4B model is coming in the next few days β making it faster and easier to build your own local AI assistant.
- **2026.7.2**: π₯π₯ Based on Agents-A1, we have released a series of quantized model variants. Please refer to the [Agents-A1 collection](https://huggingface.co/collections/InternScience/agents-a1). Besides, weβd like to thank the [mlx-community](https://huggingface.co/collections/mlx-community/agents-a1) for providing quantized versions at multiple scales. Try running Agents-A1 on your Mac!
- **2026.6.26**: π₯π₯ We have open-sourced the Agents-A1 35B-A3B model, along with the evaluation code for selected domains and the technical report.
---
**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.
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.

## Highlights
- **Agentic Reasoning**: Agents-A1 excels at decomposing complex tasks into executable sub-steps, planning ahead, and adapting its strategy based on intermediate results.
- **Tool Use**: Natively supports function calling and tool integration, enabling seamless interaction with APIs, code interpreters, search engines, and other external tools.
- **Scientific and Professional Reasoning**: Handles tool-integrated scientific reasoning and professional knowledge question answering.
- **Instruction Following**: Precisely follows detailed, multi-constraint instructions across diverse domains.
We welcome developers and enterprises to integrate and try Agents-A1 and share their feedback.
## Performance
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.
<p>
π₯ Overall SOTA
π’ Best Among Comparable Models (~35B)
</p>
<table>
<thead>
<tr>
<th rowspan="2" align="left">Benchmark</th>
<th colspan="3" align="center" style="text-align:center;">
π Comparable Models (~35B)
</th>
<th colspan="4" align="center" style="text-align:center;">
π Larger-scale Models
</th>
<th colspan="2" align="center" style="text-align:center;">
β Ours
</th>
</tr>
<tr>
<th align="center">Qwen3.5-35B-A3B</th>
<th align="center">Qwen3.6-35B-A3B</th>
<th align="center">Nex-N2-mini</th>
<th align="center">Step-3.5-Flash</th>
<th align="center">Kimi-K2.6</th>
<th align="center">DeepSeek-V4-pro(Max)</th>
<th align="center">GPT-5.5(xhigh)</th>
<th align="center">Agents-A1</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="9" align="left"><b>π Long-horizon Search</b></td>
</tr>
<tr>
<td align="left">BrowseComp</td>
<td align="center">61.0</td>
<td align="center">67.93</td>
<td align="center">74.1</td>
<td align="center">69.0</td>
<td align="center">83.2</td>
<td align="center">83.4</td>
<td align="center">π₯ 84.4</td>
<td align="center">π’ 75.51</td>
</tr>
<tr>
<td align="left">XBench-DS-2510</td>
<td align="center">77.0</td>
<td align="center">71.0</td>
<td align="center">82.0</td>
<td align="center">56.3</td>
<td align="center">π₯ 90.0</td>
<td align="center">π₯ 90.0</td>
<td align="center">84.0</td>
<td align="center">π’ 86.0</td>
</tr>
<tr>
<td align="left">Seal0</td>
<td align="center">41.4</td>
<td align="center">38.74</td>
<td align="center">49.55</td>
<td align="center">36.94</td>
<td align="center">50.45</td>
<td align="center">54.95</td>
<td align="center">42.34</td>
<td align="center">π₯ 56.36</td>
</tr>
<tr>
<td align="left">GAIA</td>
<td align="center">59.8</td>
<td align="center">78.64</td>
<td align="center">82.52</td>
<td align="center">84.5</td>
<td align="center">80.58</td>
<td align="center">π₯ 98.06</td>
<td align="center">87.38</td>
<td align="center">π’ 96.04</td>
</tr>
<tr>
<td colspan="9" align="left"><b>βοΈ Engineering Tasks</b></td>
</tr>
<tr>
<td align="left">SciCode</td>
<td align="center">37.7</td>
<td align="center">35.8</td>
<td align="center">29.9</td>
<td align="center">40.4</td>
<td align="center">53.5</td>
<td align="center">50.0</td>
<td align="center">π₯ 56.1</td>
<td align="center">π’ 44.33</td>
</tr>
<tr>
<td align="left">MLE-Lite</td>
<td align="center">24.24</td>
<td align="center">34.85</td>
<td align="center">34.85</td>
<td align="center">54.55</td>
<td align="center">62.12</td>
<td align="center">63.64</td>
<td align="center">π₯ 72.73</td>
<td align="center">π’ 43.94</td>
</tr>
<tr>
<td colspan="9" align="left"><b>π§ͺ Scientific Research</b></td>
</tr>
<tr>
<td align="left">HLE w/ tools</td>
<td align="center">47.4</td>
<td align="center">36.2</td>
<td align="center">32.0</td>
<td align="center">23.1</td>
<td align="center">π₯ 54.0</td>
<td align="center">48.2</td>
<td align="center">52.2</td>
<td align="center">π’ 47.6</td>
</tr>
<tr>
<td align="left">HiPhO</td>
<td align="center">37.0</td>
<td align="center">37.7</td>
<td align="center">38.5</td>
<td align="center">38.3</td>
<td align="center">41.1</td>
<td align="center">38.7</td>
<td align="center">43.3</td>
<td align="center">π₯ 46.4</td>
</tr>
<tr>
<td align="left">FrontierScience-Olympiad</td>
<td align="center">64.5</td>
<td align="center">60.3</td>
<td align="center">52.0</td>
<td align="center">61.0</td>
<td align="center">73.0</td>
<td align="center">76.0</td>
<td align="center">78.0</td>
<td align="center">π₯ 79.0</td>
</tr>
<tr>
<td align="left">FrontierScience-Research</td>
<td align="center">2.5</td>
<td align="center">2.9</td>
<td align="center">5.0</td>
<td align="center">6.7</td>
<td align="center">17.9</td>
<td align="center">13.3</td>
<td align="center">26.7</td>
<td align="center">π₯ 40.0</td>
</tr>
<tr>
<td colspan="9" align="left"><b>π Instruction Following</b></td>
</tr>
<tr>
<td align="left">IFBench</td>
<td align="center">70.2</td>
<td align="center">64.4</td>
<td align="center">54.08</td>
<td align="center">64.6</td>
<td align="center">71.77</td>
<td align="center">73.47</td>
<td align="center">75.9</td>
<td align="center">π₯ 80.61</td>
</tr>
<tr>
<td align="left">LongBench-v2</td>
<td align="center">59.0</td>
<td align="center">57.7</td>
<td align="center">59.6</td>
<td align="center">57.5</td>
<td align="center">62.0</td>
<td align="center">π₯ 64.3</td>
<td align="center">-</td>
<td align="center">π’ 60.2</td>
</tr>
<tr>
<td align="left">IFEval</td>
<td align="center">91.9</td>
<td align="center">91.3</td>
<td align="center">88.4</td>
<td align="center">93.53</td>
<td align="center">94.45</td>
<td align="center">93.35</td>
<td align="center">93.35</td>
<td align="center">π₯ 94.82</td>
</tr>
<tr>
<td colspan="9" align="left"><b>π€ General Agentic Tasks</b></td>
</tr>
<tr>
<td align="left">Ο<sup>2</sup>-Bench</td>
<td align="center">π’ 81.2</td>
<td align="center">79.0</td>
<td align="center">74.53</td>
<td align="center">75.77</td>
<td align="center">81.93</td>
<td align="center">π₯ 82.2</td>
<td align="center">81.63</td>
<td align="center">79.81</td>
</tr>
<tr>
<td align="left">VitaBench</td>
<td align="center">31.9</td>
<td align="center">35.6</td>
<td align="center">23.0</td>
<td align="center">30.0</td>
<td align="center">35.63</td>
<td align="center">π₯ 49.04</td>
<td align="center">45.0</td>
<td align="center">π’ 38.75</td>
</tr>
<tr>
<td colspan="9" align="left"><b>π¬ Scientific Agentic Tasks</b></td>
</tr>
<tr>
<td align="left">MatTools</td>
<td align="center">21.0</td>
<td align="center">15.9</td>
<td align="center">34.1</td>
<td align="center">44.93</td>
<td align="center">63.8</td>
<td align="center">47.1</td>
<td align="center">π₯ 68.8</td>
<td align="center">π’ 47.1</td>
</tr>
<tr>
<td align="left">MolBench-bind</td>
<td align="center">46.0</td>
<td align="center">48.7</td>
<td align="center">51.4</td>
<td align="center">45.95</td>
<td align="center">21.6</td>
<td align="center">37.8</td>
<td align="center">π₯ 62.2</td>
<td align="center">π’ 56.8</td>
</tr>
</tbody>
</table>
## Usage
### SGLang
[SGLang](https://github.com/sgl-project/sglang) is a fast serving framework for large language models and vision language models.
Install SGLang with uv:
```shell
uv venv --python 3.12 --seed --managed-python
source .venv/bin/activate
uv pip install sglang
```
See [its documentation](https://docs.sglang.ai/get_started/install.html) for more details.
The following commands create API endpoints at `http://localhost:8000/v1`:
- **Standard Version** (1 GPUs, 262K context):
```shell
python -m sglang.launch_server \
--model-path InternScience/Agents-A1 \
--port 8000 \
--tp-size 1 \
--mem-fraction-static 0.8 \
--context-length 262144 \
--reasoning-parser qwen3
```
- **Tool Use**:
```shell
python -m sglang.launch_server \
--model-path InternScience/Agents-A1 \
--port 8000 \
--tp-size 1 \
--mem-fraction-static 0.8 \
--context-length 262144 \
--reasoning-parser qwen3 \
--tool-call-parser qwen3_coder
```
### vLLM
[vLLM](https://github.com/vllm-project/vllm) is a high-throughput and memory-efficient inference and serving engine for LLMs.
Install vLLM from the main branch via uv:
```shell
uv venv --python 3.12 --seed --managed-python
source .venv/bin/activate
uv pip install vllm --torch-backend=auto
```
See [its documentation](https://docs.vllm.ai/en/stable/getting_started/installation/index.html) for more details.
The following commands create API endpoints at `http://localhost:8000/v1`:
- **Standard Version** (1 GPUs, 262K context):
```shell
vllm serve InternScience/Agents-A1 \
--port 8000 \
--tensor-parallel-size 1 \
--max-model-len 262144 \
--reasoning-parser qwen3
```
- **Tool Call**:
```shell
vllm serve InternScience/Agents-A1 \
--port 8000 \
--tensor-parallel-size 1 \
--max-model-len 262144 \
--reasoning-parser qwen3 \
--enable-auto-tool-choice \
--tool-call-parser qwen3_coder
```
- **Text-Only** (skips vision encoder to free KV cache memory):
```shell
vllm serve InternScience/Agents-A1 \
--port 8000 \
--tensor-parallel-size 1 \
--max-model-len 262144 \
--reasoning-parser qwen3 \
--language-model-only
```
### Recommended Sampling Parameters
For the best generation quality, we recommend the following sampling parameters:
- `temperature`: 0.85
- `top_p`: 0.95
- `top_k`: 20
- `min_p`: 0.0
- `presence_penalty`: 1.1
- `repetition_penalty`: 1.0
## Agent Capability Evaluation
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.
We use this framework to evaluate the released model under a standardized and reproducible setting.
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.)
For detailed evaluation scripts, task definitions, metrics, and reproduction instructions, please refer to the evaluation codebase.
## Citation
If you find our work helpful, feel free to give us a cite.
```
@misc{bai2026scalinghorizonparametersreaching,
title={Scaling the Horizon, Not the Parameters: Reaching Trillion-Parameter Performance with a 35B Agent},
author={Lei Bai and Zongsheng Cao and Yang Chen and Zhiyao Cui and Shangheng Du and Yue Fan and Shiyang Feng and Zijie Guo and Haonan He and Liang He and Xiaohan He and Shuyue Hu and Yusong Hu and Songtao Huang and Yichen Jiang and Hao Li and Xin Li and Dahua Lin and Weihao Lin and Fenghua Ling and Dongrui Liu and Zhuo Liu and Runmin Ma and Chunjiang Mu and Haoyang Peng and Tianshuo Peng and Jinxin Shi and Luohe Shi and Boyuan Sun and Zelin Tan and Shengji Tang and Qianyi Wang and Yiming Wu and Yi Xie and Xiangchao Yan and Jingqi Ye and Peng Ye and Fangchen Yu and Jiakang Yuan and Bihao Zhan and Bo Zhang and Chen Zhang and Shufei Zhang and Shuaiyu Zhang and Wenlong Zhang and Yiqun Zhang and Junpeng Zhao and Zhijie Zhong and Bowen Zhou and Yuhao Zhou},
year={2026},
eprint={2606.30616},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2606.30616},
}
```
|