Text Generation
Transformers
Safetensors
English
Chinese
qwen3
casual-lm
conversational
text-generation-inference
Instructions to use bmbgsj/ProRAG with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bmbgsj/ProRAG with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bmbgsj/ProRAG") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bmbgsj/ProRAG") model = AutoModelForCausalLM.from_pretrained("bmbgsj/ProRAG") 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 bmbgsj/ProRAG with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bmbgsj/ProRAG" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bmbgsj/ProRAG", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/bmbgsj/ProRAG
- SGLang
How to use bmbgsj/ProRAG 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 "bmbgsj/ProRAG" \ --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": "bmbgsj/ProRAG", "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 "bmbgsj/ProRAG" \ --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": "bmbgsj/ProRAG", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use bmbgsj/ProRAG with Docker Model Runner:
docker model run hf.co/bmbgsj/ProRAG
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- zh
|
| 5 |
+
license: apache-2.0
|
| 6 |
+
library_name: transformers
|
| 7 |
+
tags:
|
| 8 |
+
- qwen3
|
| 9 |
+
- text-generation
|
| 10 |
+
- casual-lm
|
| 11 |
+
base_model: Qwen/Qwen3-8B
|
| 12 |
+
pipeline_tag: text-generation
|
| 13 |
+
arxiv: 2601.21912
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# Model Card for ProRAG
|
| 17 |
+
|
| 18 |
+
This model is a fine-tuned version of [Qwen/Qwen3-8B](https://huggingface.co/Qwen/Qwen3-8B) based on the methodology described in the paper associated with arXiv ID: **2601.21912**.
|
| 19 |
+
|
| 20 |
+
## Model Details
|
| 21 |
+
|
| 22 |
+
- **Base Model:** Qwen3-8B
|
| 23 |
+
- **Language:** English, Chinese (and others supported by Qwen3)
|
| 24 |
+
- **Paper:** [View on arXiv](https://arxiv.org/abs/2601.21912)
|
| 25 |
+
- **Library:** Transformers
|
| 26 |
+
|
| 27 |
+
## 💻 Code & Inference
|
| 28 |
+
|
| 29 |
+
For inference code, usage examples, and reproduction scripts, please refer to our GitHub repository:
|
| 30 |
+
|
| 31 |
+
👉 **[Click here to view the GitHub Repository](https://github.com/lilinwz/ProRAG/tree/main)**
|
| 32 |
+
|
| 33 |
+
*(Please verify the details and instructions on the GitHub page.)*
|
| 34 |
+
|
| 35 |
+
## Citation
|
| 36 |
+
|
| 37 |
+
If you use this model or the associated paper in your research, please cite:
|
| 38 |
+
|
| 39 |
+
```bibtex
|
| 40 |
+
@misc{wang2026proragprocesssupervisedreinforcementlearning,
|
| 41 |
+
title={ProRAG: Process-Supervised Reinforcement Learning for Retrieval-Augmented Generation},
|
| 42 |
+
author={Zhao Wang and Ziliang Zhao and Zhicheng Dou},
|
| 43 |
+
year={2026},
|
| 44 |
+
eprint={2601.21912},
|
| 45 |
+
archivePrefix={arXiv},
|
| 46 |
+
primaryClass={cs.AI},
|
| 47 |
+
url={https://arxiv.org/abs/2601.21912},
|
| 48 |
+
}
|
| 49 |
+
```
|