Text Generation
Transformers
Safetensors
Chinese
English
qwen3
conversational
text-generation-inference
Instructions to use tencent/TCAndon-Router with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tencent/TCAndon-Router with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tencent/TCAndon-Router") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("tencent/TCAndon-Router") model = AutoModelForCausalLM.from_pretrained("tencent/TCAndon-Router") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use tencent/TCAndon-Router with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tencent/TCAndon-Router" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tencent/TCAndon-Router", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tencent/TCAndon-Router
- SGLang
How to use tencent/TCAndon-Router 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 "tencent/TCAndon-Router" \ --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": "tencent/TCAndon-Router", "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 "tencent/TCAndon-Router" \ --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": "tencent/TCAndon-Router", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use tencent/TCAndon-Router with Docker Model Runner:
docker model run hf.co/tencent/TCAndon-Router
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,6 +10,7 @@ base_model:
|
|
| 10 |
- Qwen/Qwen3-4B-Instruct-2507
|
| 11 |
pipeline_tag: text-generation
|
| 12 |
---
|
|
|
|
| 13 |
# TCAndon-Router
|
| 14 |
|
| 15 |
<p align="center">
|
|
@@ -17,7 +18,7 @@ pipeline_tag: text-generation
|
|
| 17 |
</p>
|
| 18 |
|
| 19 |
<p align="center">
|
| 20 |
-
<a href="https://github.com/Tencent/TCAndon-Router">Github</a> | 📑 <a href="https://arxiv.org/
|
| 21 |
</p>
|
| 22 |
|
| 23 |
|
|
@@ -79,10 +80,10 @@ python generate_agent_desc.py --dataset hwu64 --limit 50
|
|
| 79 |
If you use TCAndonRouter in your work, please cite our paper:
|
| 80 |
|
| 81 |
```
|
| 82 |
-
@article{
|
| 83 |
title={TCAndonRouter: Adaptive Reasoning Router for Multi-Agent Collaboration},
|
| 84 |
-
author={Jiuzhou Zhao
|
| 85 |
-
journal={arXiv},
|
| 86 |
-
year={
|
| 87 |
}
|
| 88 |
```
|
|
|
|
| 10 |
- Qwen/Qwen3-4B-Instruct-2507
|
| 11 |
pipeline_tag: text-generation
|
| 12 |
---
|
| 13 |
+
|
| 14 |
# TCAndon-Router
|
| 15 |
|
| 16 |
<p align="center">
|
|
|
|
| 18 |
</p>
|
| 19 |
|
| 20 |
<p align="center">
|
| 21 |
+
<a href="https://github.com/Tencent/TCAndon-Router">Github</a> | 📑 <a href="https://arxiv.org/pdf/2601.04544">Paper</a>
|
| 22 |
</p>
|
| 23 |
|
| 24 |
|
|
|
|
| 80 |
If you use TCAndonRouter in your work, please cite our paper:
|
| 81 |
|
| 82 |
```
|
| 83 |
+
@article{zhao2026TCAndonRouter,
|
| 84 |
title={TCAndonRouter: Adaptive Reasoning Router for Multi-Agent Collaboration},
|
| 85 |
+
author={Jiuzhou Zhao, Chunrong Chen, Chenqi Qiao, Lebin Zheng, Minqi Han, Yanchi Liu, Yongzhou Xu, Xiaochuan Xu, Min Zhang},
|
| 86 |
+
journal={arXiv preprint:2601.04544},
|
| 87 |
+
year={2026}
|
| 88 |
}
|
| 89 |
```
|