Instructions to use willchow66/ToolRL-DR-Full-Qwen2.5-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use willchow66/ToolRL-DR-Full-Qwen2.5-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="willchow66/ToolRL-DR-Full-Qwen2.5-3B") 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("willchow66/ToolRL-DR-Full-Qwen2.5-3B") model = AutoModelForCausalLM.from_pretrained("willchow66/ToolRL-DR-Full-Qwen2.5-3B", 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 willchow66/ToolRL-DR-Full-Qwen2.5-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "willchow66/ToolRL-DR-Full-Qwen2.5-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "willchow66/ToolRL-DR-Full-Qwen2.5-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/willchow66/ToolRL-DR-Full-Qwen2.5-3B
- SGLang
How to use willchow66/ToolRL-DR-Full-Qwen2.5-3B 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 "willchow66/ToolRL-DR-Full-Qwen2.5-3B" \ --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": "willchow66/ToolRL-DR-Full-Qwen2.5-3B", "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 "willchow66/ToolRL-DR-Full-Qwen2.5-3B" \ --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": "willchow66/ToolRL-DR-Full-Qwen2.5-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use willchow66/ToolRL-DR-Full-Qwen2.5-3B with Docker Model Runner:
docker model run hf.co/willchow66/ToolRL-DR-Full-Qwen2.5-3B
ToolRL-DR-Full-Qwen2.5-3B
ToolRL-DR-Full is a domain-randomized tool-use RL checkpoint released with the paper When Simulation Lies: A Sim-to-Real Benchmark and Domain-Randomized RL Recipe for Tool-Use Agents (NeurIPS 2026 Datasets & Benchmarks), which introduces the AgentRobustBench benchmark.
It follows the public ToolRL GRPO recipe on Qwen/Qwen2.5-3B-Instruct,
changing only the training data: every clean ToolRL training sample is replaced by a perturbation-augmented counterpart. Transition (runtime tool-failure) perturbations are excluded
from training by construction.
Sibling checkpoint: ToolRL-DR-Mixed-Qwen2.5-3B.
Training
- Data: 3,905 train + 79 val, 100% perturbed (uniform across 4 observation / 6 action / 6 reward perturbation types). Training data is derived from ToolRL
rlla_4k(ToolACE / Hammer / xLAM) and is disjoint from the AgentRobustBench evaluation seeds. - Released checkpoint: step 150 (153 optimizer steps, ~9h19m)
| Setting | Value |
|---|---|
| Base model | Qwen/Qwen2.5-3B-Instruct |
| Algorithm | GRPO (ToolRL recipe, structured format + correctness reward, max 4.0) |
| Train batch / PPO mini-batch / micro-batch per GPU | 64 / 32 / 16 |
| Rollout group size K | 4 |
| Max prompt / response length | 2048 / 1024 |
| Learning rate | 1e-6 |
| Epochs | 3 |
| Hardware | 2x NVIDIA RTX 6000 Ada (48 GB) |
Results on AgentRobustBench
Accuracy on 199 clean seeds and their perturbed variants (mean ยฑ 95% bootstrap CI half-width). ฮ = Clean minus mean accuracy on that POMDP component's perturbations (lower is better).
| Clean โ | Pert. Acc. โ | ฮ_Obs โ | ฮ_Act โ | ฮ_Rew โ | ฮ_Trn โ |
|---|---|---|---|---|---|
| 0.643 ยฑ 0.065 | 0.463 ยฑ 0.016 | 0.009 ยฑ 0.075 | 0.147 ยฑ 0.074 | 0.331 ยฑ 0.076 | 0.231 ยฑ 0.071 |
For reference, the public ToolRL checkpoint on the same backbone (chengq9/ToolRL-Qwen2.5-3B) reaches 0.638 ยฑ 0.065 clean accuracy.
Usage
The model was evaluated in prompt mode (tool descriptions embedded in the system prompt, ToolRL output format) with vLLM, bf16, temperature 0.0, max 1024 new tokens, max model length 8192.
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "willchow66/ToolRL-DR-Full-Qwen2.5-3B"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype="bfloat16", device_map="auto")
Credits
Trained by @HeadyZhang (originally uploaded as HeadyZhang/qwen2.5-3b-toolrl-robustbench-perturbed).
Built on ToolRL and Qwen2.5-3B-Instruct.
- Downloads last month
- 79