Text Generation
Transformers
Safetensors
qwen3
agent
tool-use
function-calling
reflection
reinforcement-learning
conversational
text-generation-inference
Instructions to use dongguanting/Agent-Reflex-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dongguanting/Agent-Reflex-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dongguanting/Agent-Reflex-8B") 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("dongguanting/Agent-Reflex-8B") model = AutoModelForCausalLM.from_pretrained("dongguanting/Agent-Reflex-8B", 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 dongguanting/Agent-Reflex-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dongguanting/Agent-Reflex-8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dongguanting/Agent-Reflex-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/dongguanting/Agent-Reflex-8B
- SGLang
How to use dongguanting/Agent-Reflex-8B 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 "dongguanting/Agent-Reflex-8B" \ --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": "dongguanting/Agent-Reflex-8B", "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 "dongguanting/Agent-Reflex-8B" \ --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": "dongguanting/Agent-Reflex-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use dongguanting/Agent-Reflex-8B with Docker Model Runner:
docker model run hf.co/dongguanting/Agent-Reflex-8B
Update results and citation
Browse files
README.md
CHANGED
|
@@ -30,8 +30,9 @@ Training: Qwen3-8B → **ReSFT** (54,663 reflective trajectories, 5,127 steps)
|
|
| 30 |
| Model | VitaBench | τ²-Bench | BFCL V4 | ACEBench | ToolSandbox | **Overall** | AgentNoiseBench |
|
| 31 |
| --- | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
|
| 32 |
| Qwen3-8B | 11.4 | 26.2 | 40.4 | 54.0 | 69.1 | 40.2 | 12.3 |
|
| 33 |
-
| EnvScaler-8B | 15.8 | 37.9 | 47.6 |
|
| 34 |
-
|
|
|
|
|
| 35 |
|
| 36 |
## Usage
|
| 37 |
|
|
@@ -48,9 +49,10 @@ The full evaluation suite (τ²-Bench, BFCL V4, ACEBench, VitaBench, AgentNoiseB
|
|
| 48 |
## Citation
|
| 49 |
|
| 50 |
```bibtex
|
| 51 |
-
@article{
|
| 52 |
title = {Agent-Reflex: Teaching Language Agents to Act Reflectively},
|
| 53 |
-
author = {
|
|
|
|
| 54 |
year = {2026}
|
| 55 |
}
|
| 56 |
```
|
|
|
|
| 30 |
| Model | VitaBench | τ²-Bench | BFCL V4 | ACEBench | ToolSandbox | **Overall** | AgentNoiseBench |
|
| 31 |
| --- | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
|
| 32 |
| Qwen3-8B | 11.4 | 26.2 | 40.4 | 54.0 | 69.1 | 40.2 | 12.3 |
|
| 33 |
+
| EnvScaler-8B | 15.8 | 37.9 | 47.6 | 72.5 | 80.5 | 50.9 | 18.2 |
|
| 34 |
+
| Agent-World-8B | 14.5 | 54.6 | 51.4 | 72.0 | 75.6 | 53.6 | – |
|
| 35 |
+
| **Agent-Reflex-8B** | **17.5** | **62.1** | **52.9** | **78.0** | **81.8** | **58.5** | **29.1** |
|
| 36 |
|
| 37 |
## Usage
|
| 38 |
|
|
|
|
| 49 |
## Citation
|
| 50 |
|
| 51 |
```bibtex
|
| 52 |
+
@article{dong2026agentreflex,
|
| 53 |
title = {Agent-Reflex: Teaching Language Agents to Act Reflectively},
|
| 54 |
+
author = {Dong, Guanting and Yang, Xinyu and Jin, Jiajie and Hu, Yuyang and Song, Xiaoshuai and Chen, Yifei and Li, Xiaoxi and Tan, Jiejun and Zhu, Yutao and Chua, Tat-Seng and Wen, Ji-Rong and Dou, Zhicheng},
|
| 55 |
+
journal = {arXiv preprint},
|
| 56 |
year = {2026}
|
| 57 |
}
|
| 58 |
```
|