Text Generation
Transformers
Safetensors
English
qwen2
search-agent
reinforcement-learning
abstention
refusal
awa-rl
conversational
text-generation-inference
Instructions to use zfj1998/AWA-RL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zfj1998/AWA-RL with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="zfj1998/AWA-RL") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("zfj1998/AWA-RL") model = AutoModelForCausalLM.from_pretrained("zfj1998/AWA-RL", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use zfj1998/AWA-RL with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "zfj1998/AWA-RL" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zfj1998/AWA-RL", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/zfj1998/AWA-RL
- SGLang
How to use zfj1998/AWA-RL 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 "zfj1998/AWA-RL" \ --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": "zfj1998/AWA-RL", "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 "zfj1998/AWA-RL" \ --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": "zfj1998/AWA-RL", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use zfj1998/AWA-RL with Docker Model Runner:
docker model run hf.co/zfj1998/AWA-RL
Link paper and add citation
#1
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
library_name: transformers
|
|
|
|
| 5 |
pipeline_tag: text-generation
|
| 6 |
tags:
|
| 7 |
- search-agent
|
|
@@ -9,7 +10,6 @@ tags:
|
|
| 9 |
- abstention
|
| 10 |
- refusal
|
| 11 |
- awa-rl
|
| 12 |
-
license: other
|
| 13 |
---
|
| 14 |
|
| 15 |
# AWA-RL
|
|
@@ -26,9 +26,7 @@ AWA-RL introduces a **courage factor** that controls the model's willingness to
|
|
| 26 |
|
| 27 |

|
| 28 |
|
| 29 |
-
These results are from the AWA-RL paper. Across both from-scratch and cold-start training, the refusal-rate dynamics respond consistently to the courage factor. The evaluation tables show how this control enables a balance between accuracy, precision, refusal rate, and Reliability-Aware F1 (RA-F1).
|
| 30 |
-
|
| 31 |
-
The paper link will be added after the preprint is available.
|
| 32 |
|
| 33 |
## Usage
|
| 34 |
|
|
@@ -65,4 +63,14 @@ This is a research checkpoint intended for search-agent experiments. Its reliabi
|
|
| 65 |
|
| 66 |
## Citation
|
| 67 |
|
| 68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
library_name: transformers
|
| 5 |
+
license: other
|
| 6 |
pipeline_tag: text-generation
|
| 7 |
tags:
|
| 8 |
- search-agent
|
|
|
|
| 10 |
- abstention
|
| 11 |
- refusal
|
| 12 |
- awa-rl
|
|
|
|
| 13 |
---
|
| 14 |
|
| 15 |
# AWA-RL
|
|
|
|
| 26 |
|
| 27 |

|
| 28 |
|
| 29 |
+
These results are from the [AWA-RL paper](https://arxiv.org/abs/2607.10738). Across both from-scratch and cold-start training, the refusal-rate dynamics respond consistently to the courage factor. The evaluation tables show how this control enables a balance between accuracy, precision, refusal rate, and Reliability-Aware F1 (RA-F1).
|
|
|
|
|
|
|
| 30 |
|
| 31 |
## Usage
|
| 32 |
|
|
|
|
| 63 |
|
| 64 |
## Citation
|
| 65 |
|
| 66 |
+
```bibtex
|
| 67 |
+
@misc{zhang2026answerabstainmitigatingsearchagent,
|
| 68 |
+
title={To Answer or to Abstain: Mitigating Search-Agent Hallucinations via Abstention-Aware Reinforcement Learning},
|
| 69 |
+
author={Fengji Zhang and Tianyu Fan and Yuxiang Zheng and Xinyao Niu and Chengen Huang and Jacky Keung and Bei Chen},
|
| 70 |
+
year={2026},
|
| 71 |
+
eprint={2607.10738},
|
| 72 |
+
archivePrefix={arXiv},
|
| 73 |
+
primaryClass={cs.LG},
|
| 74 |
+
url={https://arxiv.org/abs/2607.10738},
|
| 75 |
+
}
|
| 76 |
+
```
|