Bathys-9B / README.md
skyblooms's picture
Update README.md
be71846 verified
|
Raw History Blame Contribute Delete
9.29 kB
---
license: apache-2.0
language:
- en
- zh
base_model:
- Qwen/Qwen3.5-9B
pipeline_tag: text-generation
library_name: transformers
tags:
- deep-search
- agent
- web-search
- tool-use
- bathys
---
<p align="center">
<img src="assets/bathys-logo.png" alt="Bathys" width="300">
</p>
<h1 align="center">Bathys 9B</h1>
<p align="center">
<b>A 9B deep search agent built around a training framework that spans verifiable question synthesis, post-training, and online reinforcement learning under context compression</b>
</p>
<p align="center">
<a href="https://arxiv.org/abs/2611.32660"><img src="https://img.shields.io/badge/Technical_Report-Bathys-6C42E8" alt="Technical Report"></a>
<a href="https://huggingface.co/Qwen/Qwen3.5-9B"><img src="https://img.shields.io/badge/Base_Model-Qwen3.5--9B-6B7E95" alt="Base Model"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache_2.0-0BBF8C" alt="License"></a>
</p>
## Introduction
Deep search has become a core capability of language-model agents, because many real-world questions can only be answered by chaining multiple searches and combining evidence scattered across sources. A single question may require dozens of tool calls, and the accumulated interaction history can exceed the context window before the agent reaches an answer.
**Bathys 9B** is a deep search agent post-trained from [Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B). It iteratively plans, issues search queries, reads web pages, reformulates its queries, and verifies candidate answers against the collected evidence. The model is trained with high-quality data construction that ensures both search depth and reliability, followed by an SFT → KTO → CM-GSPO post-training pipeline that ends with online reinforcement learning under context compression.
<table align="center">
<thead>
<tr>
<th align="left">Attribute</th>
<th align="left">Details</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">Base model</td>
<td align="left"><a href="https://huggingface.co/Qwen/Qwen3.5-9B">Qwen3.5-9B</a></td>
</tr>
<tr>
<td align="left">Parameters</td>
<td align="left">9B</td>
</tr>
<tr>
<td align="left">Training context length</td>
<td align="left">131,072 tokens (128K)</td>
</tr>
<tr>
<td align="left">Post-training</td>
<td align="left">SFT → KTO → CM-GSPO</td>
</tr>
<tr>
<td align="left">Evaluation languages</td>
<td align="left">English, Chinese</td>
</tr>
<tr>
<td align="left">Deployment hardware</td>
<td align="left">2 × NVIDIA H800 (80 GB)</td>
</tr>
<tr>
<td align="left">License</td>
<td align="left">Apache 2.0</td>
</tr>
</tbody>
</table>
## Performance
<p align="center">
<img src="assets/bathys-main-results.png" alt="Bathys main benchmark results" width="100%">
</p>
<p align="center"><sub>Main benchmark results for selected models. Each panel shows a subset of the baselines. Bathys models are highlighted in purple.</sub></p>
<table align="center">
<thead>
<tr>
<th align="left">Model</th>
<th align="center">Size</th>
<th align="center">BrowseComp</th>
<th align="center">BrowseComp-ZH</th>
<th align="center">Xbench-DeepSearch-2510</th>
<th align="center">Seal-0</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="6" align="left"><b>Open-source models (≤ 9B)</b></td>
</tr>
<tr>
<td align="left">Qwen3.5-9B (base)</td>
<td align="center">9B</td>
<td align="center">18.33<sup>§</sup></td>
<td align="center">32.18<sup>§</sup></td>
<td align="center">36.00<sup>§</sup></td>
<td align="center">28.83<sup>§</sup></td>
</tr>
<tr>
<td align="left">MiroThinker-v1.0-8B</td>
<td align="center">8B</td>
<td align="center">31.10</td>
<td align="center">40.20</td>
<td align="center">34.00<sup>†</sup></td>
<td align="center"><u>40.40</u></td>
</tr>
<tr>
<td align="left">Marco-DeepResearch-8B</td>
<td align="center">8B</td>
<td align="center">31.40</td>
<td align="center"><u>47.10</u></td>
<td align="center"><u>42.00</u></td>
<td align="center">–</td>
</tr>
<tr>
<td align="left">QUEST-9B-SFT</td>
<td align="center">9B</td>
<td align="center"><u>45.40</u></td>
<td align="center">–</td>
<td align="center">–</td>
<td align="center">–</td>
</tr>
<tr>
<td align="left"><b>Bathys 9B</b></td>
<td align="center"><b>9B</b></td>
<td align="center"><b>66.51</b></td>
<td align="center"><b>67.82</b></td>
<td align="center"><b>59.00</b></td>
<td align="center"><b>61.26</b></td>
</tr>
<tr>
<td colspan="6" align="left"><b>Larger models (for reference)</b></td>
</tr>
<tr>
<td align="left">Qwen3.6-27B</td>
<td align="center">27B</td>
<td align="center">51.97<sup>§</sup></td>
<td align="center">52.25<sup>§</sup></td>
<td align="center">50.00<sup>§</sup></td>
<td align="center">48.65<sup>§</sup></td>
</tr>
<tr>
<td align="left">MiroThinker-1.7-mini</td>
<td align="center">30B</td>
<td align="center">67.90</td>
<td align="center">72.30</td>
<td align="center">57.20</td>
<td align="center">48.20</td>
</tr>
<tr>
<td align="left">Agents-A1</td>
<td align="center">35B</td>
<td align="center">75.50</td>
<td align="center">–</td>
<td align="center">86.00</td>
<td align="center">56.36</td>
</tr>
<tr>
<td align="left">Qwen3.5-397B-A17B</td>
<td align="center">397B</td>
<td align="center">78.60</td>
<td align="center">70.30</td>
<td align="center">–</td>
<td align="center">46.90</td>
</tr>
<tr>
<td align="left">DeepSeek-V4-Pro</td>
<td align="center">1.6T</td>
<td align="center">83.40</td>
<td align="center">85.47<sup>§</sup></td>
<td align="center">90.00<sup>†</sup></td>
<td align="center">61.26<sup>§</sup></td>
</tr>
<tr>
<td align="left">Bathys 27B</td>
<td align="center">27B</td>
<td align="center">80.49</td>
<td align="center">78.20</td>
<td align="center">75.00</td>
<td align="center">65.77</td>
</tr>
</tbody>
</table>
<sub>Scores are accuracies (%). Within the ≤ 9B group, **bold** marks the best score and <u>underline</u> the second best. <sup>§</sup> Measured by us under our harness, because the corresponding releases do not report these benchmarks. <sup>†</sup> Reported by a third party rather than by the model's own release. All other baseline scores are taken from the models' own release materials, so cross-model comparisons should be read as indicative rather than strictly controlled.</sub>
## Deployment
Bathys 9B keeps the architecture of Qwen3.5-9B and can be served with any inference engine that supports it. All three engines below expose an OpenAI-compatible API.
We deploy Bathys 9B on NVIDIA H800 (80 GB) GPUs. The commands below run it on two H800 GPUs with tensor parallelism 2 and a 131,072-token context window.
### LightLLM
```bash
docker run --rm --gpus all --ipc=host -p 8000:8000 \
-v /path/to/Bathys-9B:/model \
ghcr.io/modeltc/lightllm:main \
python -m lightllm.server.api_server \
--model_dir /model \
--tp 2 \
--max_req_total_len 131072 \
--tool_call_parser qwen3_coder \
--reasoning_parser qwen3 \
--host 0.0.0.0 --port 8000
```
### vLLM
```bash
docker run --rm --gpus all --ipc=host -p 8000:8000 \
-v /path/to/Bathys-9B:/model \
vllm/vllm-openai:latest \
--model /model \
--served-model-name Bathys-9B \
--tensor-parallel-size 2 \
--max-model-len 131072 \
--reasoning-parser qwen3 \
--enable-auto-tool-choice \
--tool-call-parser qwen3_coder \
--host 0.0.0.0 --port 8000
```
### SGLang
```bash
docker run --rm --gpus all --ipc=host -p 8000:8000 \
-v /path/to/Bathys-9B:/model \
lmsysorg/sglang:latest \
python -m sglang.launch_server \
--model-path /model \
--served-model-name Bathys-9B \
--tp-size 2 \
--context-length 131072 \
--reasoning-parser qwen3 \
--tool-call-parser qwen3_coder \
--host 0.0.0.0 --port 8000
```
### Usage
Once a server is running, the model can be used with any OpenAI-compatible client. To reproduce the deep-search behavior, connect it to an agent harness that provides web search and webpage-fetching tools (we use Hermes with Serper search and Jina fetch).
```python
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
response = client.chat.completions.create(
model="Bathys-9B",
messages=[{"role": "user", "content": "Your question here"}],
tools=[...], # e.g. search and fetch tool schemas from your agent harness
)
print(response.choices[0].message)
```
## License
Bathys 9B is fine-tuned from [Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B), which is released under the Apache License 2.0. The Bathys 9B weights are likewise released under the [Apache License 2.0](LICENSE).