Instructions to use TanQT24/ATOD_ckpt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TanQT24/ATOD_ckpt with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TanQT24/ATOD_ckpt")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("TanQT24/ATOD_ckpt", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TanQT24/ATOD_ckpt with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TanQT24/ATOD_ckpt" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TanQT24/ATOD_ckpt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TanQT24/ATOD_ckpt
- SGLang
How to use TanQT24/ATOD_ckpt 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 "TanQT24/ATOD_ckpt" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TanQT24/ATOD_ckpt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "TanQT24/ATOD_ckpt" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TanQT24/ATOD_ckpt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TanQT24/ATOD_ckpt with Docker Model Runner:
docker model run hf.co/TanQT24/ATOD_ckpt
ATOD Teacher Checkpoints
Teacher checkpoints for ATOD (Annealed Turn-aware On-policy Distillation), a hybrid online distillation algorithm that combines OPD and GRPO with a smoothly annealed schedule and turn-level disagreement-uncertainty reweighting (T-DUR) for training small language-model agents on long-horizon, multi-turn tasks.
- ๐ Paper: arXiv:2606.27814
- ๐ป Code: ATOD repository
Every model here is a Qwen3 policy trained with GRPO in its target agentic environment, and is used as the teacher during ATOD distillation of Qwen3-0.6B / 1.7B / 4B students.
Contents
Each subfolder contains a standard transformers / vLLM-loadable model directory under actor_hf/ (weights in safetensors, plus tokenizer and config files).
| Environment | Teacher | Subfolder |
|---|---|---|
| ALFWorld | Qwen3-4B (GRPO) | alfworld_grpo_qwen3_4b/actor_hf |
| ALFWorld | Qwen3-30B-A3B (GRPO) | alfworld_grpo_qwen3_30ba3b/actor_hf |
| WebShop | Qwen3-4B (GRPO) | webshop_grpo_qwen3_4b/actor_hf |
| WebShop | Qwen3-30B-A3B (GRPO) | webshop_grpo_qwen3_30ba3b/actor_hf |
| Search-QA | Qwen3-4B (GRPO) | search_grpo_qwen3_4b/actor_hf |
| Search-QA | Qwen3-30B-A3B (GRPO) | search_grpo_qwen3_30ba3b/actor_hf |
Download
Download one checkpoint (recommended โ the 30B-A3B models are large):
pip install -U "huggingface_hub[cli]"
hf download TanQT24/ATOD_ckpt \
--include "alfworld_grpo_qwen3_4b/*" \
--local-dir ~/ckpts/ATOD_ckpt
Download everything:
hf download TanQT24/ATOD_ckpt --local-dir ~/ckpts/ATOD_ckpt
Python API:
from huggingface_hub import snapshot_download
path = snapshot_download(
repo_id="TanQT24/ATOD_ckpt",
allow_patterns=["search_grpo_qwen3_4b/*"],
local_dir="~/ckpts/ATOD_ckpt",
)
Usage
transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "TanQT24/ATOD_ckpt"
sub = "alfworld_grpo_qwen3_4b/actor_hf"
tokenizer = AutoTokenizer.from_pretrained(repo, subfolder=sub)
model = AutoModelForCausalLM.from_pretrained(
repo, subfolder=sub, torch_dtype="bfloat16", device_map="auto"
)
vLLM
vllm serve ~/ckpts/ATOD_ckpt/alfworld_grpo_qwen3_4b/actor_hf \
--served-model-name atod-teacher-alfworld-4b
As an ATOD teacher
In the ATOD repo, point teacher_model_path in examples/atod_trainer/*.sh at the downloaded actor_hf directory:
student_model_path=Qwen/Qwen3-1.7B
teacher_model_path=~/ckpts/ATOD_ckpt/alfworld_grpo_qwen3_4b/actor_hf
Using these checkpoints lets you skip teacher GRPO training and run ATOD distillation directly.
Notes
- Models are task-specific agents: use the ALFWorld teacher for ALFWorld, the WebShop teacher for WebShop, and the Search teacher for Search-QA. They expect the prompt / action formats produced by the environments in the ATOD repo.
- Checkpoint names encode the environment and the base model, e.g.
webshop_grpo_qwen3_4bis the Qwen3-4B GRPO teacher for WebShop.
Citation
@misc{atod2026,
title={ATOD: Annealed Turn-Aware On-Policy Distillation for Multi-Turn Agentic Tasks},
year={2026},
eprint={2606.27814},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2606.27814},
}