Instructions to use xxwu/Agent-STAR-RL-1.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xxwu/Agent-STAR-RL-1.5B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="xxwu/Agent-STAR-RL-1.5B", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("xxwu/Agent-STAR-RL-1.5B") model = AutoModelForCausalLM.from_pretrained("xxwu/Agent-STAR-RL-1.5B", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use xxwu/Agent-STAR-RL-1.5B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "xxwu/Agent-STAR-RL-1.5B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xxwu/Agent-STAR-RL-1.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/xxwu/Agent-STAR-RL-1.5B
- SGLang
How to use xxwu/Agent-STAR-RL-1.5B 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 "xxwu/Agent-STAR-RL-1.5B" \ --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": "xxwu/Agent-STAR-RL-1.5B", "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 "xxwu/Agent-STAR-RL-1.5B" \ --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": "xxwu/Agent-STAR-RL-1.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use xxwu/Agent-STAR-RL-1.5B with Docker Model Runner:
docker model run hf.co/xxwu/Agent-STAR-RL-1.5B
Add model card for Agent-STAR-RL-1.5B
Browse filesHi! I'm Niels from the community science team at Hugging Face.
This PR improves the model card for **Agent-STAR-RL-1.5B**. Key updates include:
- Adding relevant metadata (`pipeline_tag`, `library_name`, `base_model`).
- Linking the model to the original research paper: [Demystifying Reinforcement Learning for Long-Horizon Tool-Using Agents: A Comprehensive Recipe](https://huggingface.co/papers/2603.21972).
- Providing a link to the official GitHub repository and related datasets.
- Including a sample inference usage snippet found in the GitHub documentation.
- Adding the BibTeX citation.
|
@@ -1,3 +1,65 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: transformers
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
base_model: Qwen/Qwen2.5-1.5B-Instruct
|
| 6 |
+
tags:
|
| 7 |
+
- tool-use
|
| 8 |
+
- reinforcement-learning
|
| 9 |
+
- agent
|
| 10 |
+
- travel-planning
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Agent-STAR-RL-1.5B
|
| 14 |
+
|
| 15 |
+
This repository contains the **Agent-STAR-RL-1.5B** model, which is part of the research presented in the paper "[Demystifying Reinforcement Learning for Long-Horizon Tool-Using Agents: A Comprehensive Recipe](https://huggingface.co/papers/2603.21972)".
|
| 16 |
+
|
| 17 |
+
Agent-STAR is a systematic study of the reinforcement learning (RL) design space for long-horizon tool-using agents using the [TravelPlanner](https://github.com/OSU-NLP-Group/TravelPlanner/) testbed. The model is trained using the **STAR** pipeline: **Data Synthesis → SFT → RL**.
|
| 18 |
+
|
| 19 |
+
## Model Details
|
| 20 |
+
|
| 21 |
+
- **Backbone:** Qwen2.5-1.5B-Instruct
|
| 22 |
+
- **Training Stage:** Reinforcement Learning (RL)
|
| 23 |
+
- **Primary Task:** Long-horizon tool orchestration and planning.
|
| 24 |
+
- **Paper:** [Demystifying Reinforcement Learning for Long-Horizon Tool-Using Agents: A Comprehensive Recipe](https://huggingface.co/papers/2603.21972)
|
| 25 |
+
- **Repository:** [GitHub - Agent-STAR](https://github.com/WxxShirley/Agent-STAR)
|
| 26 |
+
- **Dataset:** [Agent-STAR-TravelDataset](https://huggingface.co/datasets/xxwu/Agent-STAR-TravelDataset)
|
| 27 |
+
|
| 28 |
+
According to the paper's findings, smaller models like this 1.5B variant benefit from scale-aware recipes including staged (curriculum-style) rewards and enhanced exploration to handle the complex constraints of multi-turn environments.
|
| 29 |
+
|
| 30 |
+
## Usage
|
| 31 |
+
|
| 32 |
+
To run ReAct inference using the official implementation, you can use the following command structure:
|
| 33 |
+
|
| 34 |
+
```shell
|
| 35 |
+
cd Inference
|
| 36 |
+
python3 -u main.py \
|
| 37 |
+
--model xxwu/Agent-STAR-RL-1.5B \
|
| 38 |
+
--save_suffix your_suffix \
|
| 39 |
+
--max_workers 20 \
|
| 40 |
+
--split validation \
|
| 41 |
+
--max_context 32768 \
|
| 42 |
+
--max_turns 60
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
Note: You will need to prepare the [travel database](https://huggingface.co/datasets/xxwu/Agent-STAR-TravelDatabase) as described in the GitHub repository.
|
| 46 |
+
|
| 47 |
+
## Citation
|
| 48 |
+
|
| 49 |
+
If you find Agent-STAR helpful to your work, please cite the following:
|
| 50 |
+
|
| 51 |
+
```bibtex
|
| 52 |
+
@misc{wu2026agentstar,
|
| 53 |
+
title={Demystifying Reinforcement Learning for Long-Horizon Tool-Using Agents: A Comprehensive Recipe},
|
| 54 |
+
author={Xixi Wu and Qianguo Sun and Ruiyang Zhang and Chao Song and Junlong Wu and Yiyan Qi and Hong Cheng},
|
| 55 |
+
year={2026},
|
| 56 |
+
eprint={2603.21972},
|
| 57 |
+
archivePrefix={arXiv},
|
| 58 |
+
primaryClass={cs.LG},
|
| 59 |
+
url={https://arxiv.org/abs/2603.21972},
|
| 60 |
+
}
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
## Acknowledgements
|
| 64 |
+
|
| 65 |
+
We thank the authors of [TravelPlanner](https://github.com/OSU-NLP-Group/TravelPlanner/) for their benchmark and the [rLLM](https://github.com/rllm-org/rllm/) framework contributors for supporting the RL training process.
|