Instructions to use Bathys/Bathys-27B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Bathys/Bathys-27B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Bathys/Bathys-27B") 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-27B") model = AutoModelForMultimodalLM.from_pretrained("Bathys/Bathys-27B", 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-27B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Bathys/Bathys-27B" # 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-27B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Bathys/Bathys-27B
- SGLang
How to use Bathys/Bathys-27B 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-27B" \ --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-27B", "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-27B" \ --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-27B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Bathys/Bathys-27B with Docker Model Runner:
docker model run hf.co/Bathys/Bathys-27B
Bathys 27B
A 27B 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 27B is a deep search agent post-trained from Qwen3.6-27B. 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.6-27B |
| Parameters | 27B |
| Training context length | 131,072 tokens (128K) |
| Post-training | SFT โ KTO โ CM-GSPO |
| Evaluation languages | English, Chinese |
| Deployment hardware | 4 ร 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 |
|---|---|---|---|---|---|
| Closed-source models | |||||
| GPT-5.5 | โ | 84.40 | โ | 84.00โ | โ |
| Claude-Sonnet-5 | โ | 84.70 | โ | โ | โ |
| Claude-Opus-4.8 | โ | 84.30 | โ | โ | โ |
| Doubao-Seed-2.0-Pro | โ | 77.30 | 82.40 | โ | 49.50 |
| Open-source models | |||||
| DeepSeek-V4-Pro | 1.6T | 83.40 | 85.47ยง | 90.00โ | 61.26ยง |
| Kimi-K2.6 | 1T | 83.20 | โ | โ | โ |
| GLM-5 | 744B | 75.90 | 72.70 | โ | โ |
| Qwen3.5-397B-A17B | 397B | 78.60 | 70.30 | โ | 46.90 |
| Step-3.5-Flash | 199B | 69.00 | 66.90 | 56.30 | โ |
| MiroThinker-1.7-mini | 30B | 67.90 | 72.30 | 57.20 | 48.20 |
| Agents-A1 | 35B | 75.50 | โ | 86.00 | 56.36 |
| Apodex-1.0-mini | 35B | 71.50 | 80.60 | โ | โ |
| Qwen3.6-27B (base) | 27B | 51.97ยง | 52.25ยง | 50.00ยง | 48.65ยง |
| Bathys 27B | 27B | 80.49 | 78.20 | 75.00 | 65.77 |
Scores are accuracies (%). Bold marks the best score in each column 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 27B keeps the architecture of Qwen3.6-27B and can be served with any inference engine that supports it. All three engines below expose an OpenAI-compatible API.
We deploy Bathys 27B on NVIDIA H800 (80 GB) GPUs. The commands below run it on four H800 GPUs with tensor parallelism 4 and a 131,072-token context window.
LightLLM
docker run --rm --gpus all --ipc=host -p 8000:8000 \
-v /path/to/Bathys-27B:/model \
ghcr.io/modeltc/lightllm:main \
python -m lightllm.server.api_server \
--model_dir /model \
--tp 4 \
--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-27B:/model \
vllm/vllm-openai:latest \
--model /model \
--served-model-name Bathys-27B \
--tensor-parallel-size 4 \
--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-27B:/model \
lmsysorg/sglang:latest \
python -m sglang.launch_server \
--model-path /model \
--served-model-name Bathys-27B \
--tp-size 4 \
--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-27B",
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 27B is fine-tuned from Qwen3.6-27B, which is released under the Apache License 2.0. The Bathys 27B weights are likewise released under the Apache License 2.0.
- Downloads last month
- -
Model tree for Bathys/Bathys-27B
Base model
Qwen/Qwen3.6-27B