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)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("tencent/TCAndon-Router") model = AutoModelForCausalLM.from_pretrained("tencent/TCAndon-Router", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- 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
Commit History
-
Add library_name to metadata (#1)
Verified signature- Add library_name to metadata (c0560b2425f51124ddd2e238e9b017fd71026147) Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>14c2f8f
-
Update README.md
Verified signature5aac730 -
Update README.md
Verified signaturef8a89ec
-
Update README.md
Verified signature3b15cef -
Update README.md
Verified signature0b7b181 -
Create README.md
Verified signature9cd2855 -
Upload 10 files
Verified signature11b8ddf -
Delete README.md
Verified signature03e1d47 -
Create README.md
Verified signature# TCAndon-Router <p align="center"> <img src="https://raw.githubusercontent.com/Tencent/TCAndon-Router/refs/heads/main/assets/router.png?raw=true" width="500"/> </p> <p align="center"> <a href="https://github.com/Tencent/TCAndon-Router">Github</a> | 📑 <a href="https://arxiv.org/abs/TCAndonRouter">Paper</a> </p> ## 🌟 Introduction In multi-agent systems, the ability to select the appropriate agent(s) to handle a user query is a key determinant of overall system performance. TCAndonRouter is a reasoning-centric multi-intent routing module whose primary role is to perform agent routing in multi-agent systems. Beyond agent routing, TCAndonRouter can be applied to any intent-routing scenario, including agent skill selection. The main advantages of TCAndonRouter include: + Designed specifically for real-world enterprise applications + Supports dynamic onboarding of new agents (intents) New agents can be added simply by append…1d8f29b
-
initial commit
Verified signaturee88f00e