Instructions to use Bathys/Bathys-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Bathys/Bathys-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Bathys/Bathys-9B") 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)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Bathys/Bathys-9B") model = AutoModelForMultimodalLM.from_pretrained("Bathys/Bathys-9B", 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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Bathys/Bathys-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Bathys/Bathys-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Bathys/Bathys-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Bathys/Bathys-9B
- SGLang
How to use Bathys/Bathys-9B 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 "Bathys/Bathys-9B" \ --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": "Bathys/Bathys-9B", "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 "Bathys/Bathys-9B" \ --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": "Bathys/Bathys-9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Bathys/Bathys-9B with Docker Model Runner:
docker model run hf.co/Bathys/Bathys-9B
Bathys 9B
A 9B deep search agent built around a training framework that spans verifiable question synthesis, post-training, and online reinforcement learning under context compression
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. 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.
| Attribute | Details |
|---|---|
| Base model | Qwen3.5-9B |
| Parameters | 9B |
| Training context length | 131,072 tokens (128K) |
| Post-training | SFT โ KTO โ CM-GSPO |
| Evaluation languages | English, Chinese |
| Deployment hardware | 2 ร NVIDIA H800 (80 GB) |
| License | Apache 2.0 |
Performance
Main benchmark results for selected models. Each panel shows a subset of the baselines. Bathys models are highlighted in purple.
| Model | Size | BrowseComp | BrowseComp-ZH | Xbench-DeepSearch-2510 | Seal-0 |
|---|---|---|---|---|---|
| Open-source models (โค 9B) | |||||
| Qwen3.5-9B (base) | 9B | 18.33ยง | 32.18ยง | 36.00ยง | 28.83ยง |
| MiroThinker-v1.0-8B | 8B | 31.10 | 40.20 | 34.00โ | 40.40 |
| Marco-DeepResearch-8B | 8B | 31.40 | 47.10 | 42.00 | โ |
| QUEST-9B-SFT | 9B | 45.40 | โ | โ | โ |
| Bathys 9B | 9B | 66.51 | 67.82 | 59.00 | 61.26 |
| Larger models (for reference) | |||||
| Qwen3.6-27B | 27B | 51.97ยง | 52.25ยง | 50.00ยง | 48.65ยง |
| MiroThinker-1.7-mini | 30B | 67.90 | 72.30 | 57.20 | 48.20 |
| Agents-A1 | 35B | 75.50 | โ | 86.00 | 56.36 |
| Qwen3.5-397B-A17B | 397B | 78.60 | 70.30 | โ | 46.90 |
| DeepSeek-V4-Pro | 1.6T | 83.40 | 85.47ยง | 90.00โ | 61.26ยง |
| Bathys 27B | 27B | 80.49 | 78.20 | 75.00 | 65.77 |
Scores are accuracies (%). Within the โค 9B group, bold marks the best score and underline the second best. ยง Measured by us under our harness, because the corresponding releases do not report these benchmarks. โ 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.
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
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
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
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).
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, which is released under the Apache License 2.0. The Bathys 9B weights are likewise released under the Apache License 2.0.
- Downloads last month
- -
# Gated model: Login with a HF token with gated access permission hf auth login