Instructions to use surogate/Surogate3.7-35B-A3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use surogate/Surogate3.7-35B-A3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="surogate/Surogate3.7-35B-A3B") 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("surogate/Surogate3.7-35B-A3B") model = AutoModelForMultimodalLM.from_pretrained("surogate/Surogate3.7-35B-A3B", 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 surogate/Surogate3.7-35B-A3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "surogate/Surogate3.7-35B-A3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "surogate/Surogate3.7-35B-A3B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/surogate/Surogate3.7-35B-A3B
- SGLang
How to use surogate/Surogate3.7-35B-A3B 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 "surogate/Surogate3.7-35B-A3B" \ --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": "surogate/Surogate3.7-35B-A3B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "surogate/Surogate3.7-35B-A3B" \ --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": "surogate/Surogate3.7-35B-A3B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use surogate/Surogate3.7-35B-A3B with Docker Model Runner:
docker model run hf.co/surogate/Surogate3.7-35B-A3B
Surogate 3.7 is a SOTA model built for enterprise agentic applications that significantly outperforms all models in its existing category and it closely tails frontier models like DeepSeek V4 Flash and GLM 5.2 on agentic use-cases.
It builds on the Qwen3.5-35B-A3B-Base architecture and applies extensive post-training with an agentic-first objective: tool-connected workflows, structured interactions, and complex tasks that unfold across multiple steps, with 1M context with RoPE scaling. The model provides an MTP head and is optimized to be served on consumer GPUs and the DGX Spark.
- Agentic-first post-training. Fine-tuning and RL focused on behavior needed in tool-connected, multi-stage workflows.
- Built for real work. Targeted at practical enterprise-agent patterns such as task decomposition, tool interaction, and structured execution.
- Efficient by architecture. The MoE design activates approximately 3B parameters per token out of a ~35B-parameter model.
- Designed for work. A foundation for custom agents, workflow automation, and systems that combine model inference with external tools.
It is the supporting model for the local deployment of our Local AI platform surogate.ai . It fits on a single DGX Spark with 1M context using the Surogate Engine and can accomodate up to 8 concurrent agentic users, making it ideal for deploying fully local enterprise agents inside organizations.
The model was trained in FP4 precision on boxes with NVIDIA RTX 5090 GPUs using our Surogate Engine.
| Benchmark | Surogate3.7-35B-A3B | DeepSeek V4 Flash (0731) | GLM-5.2 | Ornith-1.5-35B-A3B | LFM2.5-24B-A2B | MiniCPM-V-4.7-35B-A3B | Sage-A1.5-35B-A3B |
|---|---|---|---|---|---|---|---|
| AutomationBench | 34.3 | 25.1 | 28.0 | 18.5 | 27.69 | 2.7 | 8.7 |
| Terminal-Bench 2.1 | 76.4 | 82.7 | 82.7 | 58.4 | 13.5 | 31.5 | 60.6 |
| BFCL v4 | 68.7 | 67.3 | 70.3 | 68.5 | 65.01 | 60.06 | 55.5 |
| IFEval | 94.1 | 92.5 | 93.9 | 81.8 | 96.75 | 89.6 | 92.9 |
| SWE-bench Verified | 78.0 | 79.7 | 78.7 | 79.0 | 51.00 | 54.6 | 76.2 |
| OfficeQA Pro | 51.9 | 46.6 | 66.20 | 45.9 | 3.0 | 18.0 | 45.1 |
| τ²-Bench | 93.4 | 95.2 | 99.4 | 81.5 | 72.1 | 84.65 | 81.8 |
| Claw-Eval (average) | 82.4 | 79.7 | 81.60 | 64.40 | 60.8 | 75.1 | 77.3 |
| GPQA Diamond | 91.4 | 88.1 | 91.2 | 89.2 | 74.42 | 77.8 | 87.4 |
| EnterpriseOps-Gym | 38.1 | 43.3 | 42.7 | 28.8 | 12.1 | 28.6 | 29.2 |
| WildClawBench | 54.6 | 33.2 | 52.14 | 45.91 | 9.4 | 35.3 | 50.0 |
| CommerceAgentBench | 39.4 | 38.4 | 39.30 | 37.40 | 1.9 | 14.0 | 25.2 |
Terminal-Bench 2.1, Surogate3.7-35B-A3B: tasks that failed the first attempt were run once more with a 3-hour agent time limit; a task counts as passed if either attempt passed (the first attempt alone: 61.8).
Intended Applications
Surogate 3.7 is oriented toward developers and teams building enterprise assistants, tool-using agents, workflow automation, and multi-step task systems. Its post-training focus should not be interpreted as a guarantee of correctness or autonomous reliability: validate behavior against your own tools, data, safety boundaries, and production workloads before deployment.
Usage
vLLM
vllm serve surogate/Surogate3.7-35B-A3B \
--dtype bfloat16 --kv-cache-dtype fp8 --max-model-len 131072 \
--reasoning-parser qwen3 --enable-auto-tool-choice --tool-call-parser qwen3_coder \
--speculative-config '{"method": "mtp", "num_speculative_tokens": 2}'
Recommended sampling: temperature=1.0, top_p=0.95, top_k=20. Thinking is on by default; to keep earlier reasoning
in multi-turn agent loops pass chat_template_kwargs={"enable_thinking": true, "preserve_thinking": true}.
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="x")
r = client.chat.completions.create(
model="surogate/Surogate3.7-35B-A3B",
messages=[{"role": "user", "content": "List the five largest files under /var/log and explain what they are."}],
temperature=1.0, top_p=0.95,
extra_body={"top_k": 20, "chat_template_kwargs": {"enable_thinking": True, "preserve_thinking": True}},
)
print(r.choices[0].message.content)
License
Apache 2.0
- Downloads last month
- 230
