Text Generation
Transformers
Safetensors
English
Chinese
chatglm
feature-extraction
instruction-finetuning
conversational
custom_code
Instructions to use IAAR-Shanghai/xVerify-9B-C with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IAAR-Shanghai/xVerify-9B-C with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="IAAR-Shanghai/xVerify-9B-C", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("IAAR-Shanghai/xVerify-9B-C", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use IAAR-Shanghai/xVerify-9B-C with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "IAAR-Shanghai/xVerify-9B-C" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IAAR-Shanghai/xVerify-9B-C", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/IAAR-Shanghai/xVerify-9B-C
- SGLang
How to use IAAR-Shanghai/xVerify-9B-C 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 "IAAR-Shanghai/xVerify-9B-C" \ --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": "IAAR-Shanghai/xVerify-9B-C", "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 "IAAR-Shanghai/xVerify-9B-C" \ --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": "IAAR-Shanghai/xVerify-9B-C", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use IAAR-Shanghai/xVerify-9B-C with Docker Model Runner:
docker model run hf.co/IAAR-Shanghai/xVerify-9B-C
Add metadata and link to paper
Browse filesThis PR improves the model card by:
- Adding `library_name: transformers` and `pipeline_tag: text-generation` to the YAML metadata. This enables the "Use in Transformers" button and improves discoverability.
- Adding a link to the research paper: [xVerify: Efficient Answer Verifier for Reasoning Model Evaluations](https://huggingface.co/papers/2504.10481).
- Including a paper badge in the header.
Cc: @Hush-cd @Duguce @deflinhec
README.md
CHANGED
|
@@ -1,15 +1,17 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
- zh
|
|
|
|
| 6 |
tags:
|
| 7 |
- instruction-finetuning
|
|
|
|
| 8 |
task_categories:
|
| 9 |
- text-generation
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
license: cc-by-nc-nd-4.0
|
| 13 |
---
|
| 14 |
|
| 15 |
<h1 align="center">
|
|
@@ -24,10 +26,15 @@ license: cc-by-nc-nd-4.0
|
|
| 24 |
<a href="https://huggingface.co/IAAR-Shanghai/xVerify-9B-C">
|
| 25 |
<img src="https://img.shields.io/badge/🤗%20Hugging%20Face-xVerify--9B--C-yellow" alt="Hugging Face"/>
|
| 26 |
</a>
|
|
|
|
|
|
|
|
|
|
| 27 |
</div>
|
| 28 |
</p>
|
| 29 |
|
| 30 |
-
xVerify is an evaluation tool fine-tuned from a pre-trained large language model, designed specifically for objective questions with a single correct answer. It
|
|
|
|
|
|
|
| 31 |
|
| 32 |
---
|
| 33 |
|
|
@@ -60,4 +67,4 @@ Primarily handles Chinese and English responses while remaining compatible with
|
|
| 60 |
journal={arXiv preprint arXiv:2504.10481},
|
| 61 |
year={2025},
|
| 62 |
}
|
| 63 |
-
```
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model:
|
| 3 |
+
- THUDM/glm-4-9b-chat
|
| 4 |
language:
|
| 5 |
- en
|
| 6 |
- zh
|
| 7 |
+
license: cc-by-nc-nd-4.0
|
| 8 |
tags:
|
| 9 |
- instruction-finetuning
|
| 10 |
+
inference: false
|
| 11 |
task_categories:
|
| 12 |
- text-generation
|
| 13 |
+
pipeline_tag: text-generation
|
| 14 |
+
library_name: transformers
|
|
|
|
| 15 |
---
|
| 16 |
|
| 17 |
<h1 align="center">
|
|
|
|
| 26 |
<a href="https://huggingface.co/IAAR-Shanghai/xVerify-9B-C">
|
| 27 |
<img src="https://img.shields.io/badge/🤗%20Hugging%20Face-xVerify--9B--C-yellow" alt="Hugging Face"/>
|
| 28 |
</a>
|
| 29 |
+
<a href="https://huggingface.co/papers/2504.10481">
|
| 30 |
+
<img src="https://img.shields.io/badge/Paper-Arxiv-red" alt="Paper"/>
|
| 31 |
+
</a>
|
| 32 |
</div>
|
| 33 |
</p>
|
| 34 |
|
| 35 |
+
xVerify is an evaluation tool fine-tuned from a pre-trained large language model, designed specifically for objective questions with a single correct answer. It was introduced in the paper [xVerify: Efficient Answer Verifier for Reasoning Model Evaluations](https://huggingface.co/papers/2504.10481).
|
| 36 |
+
|
| 37 |
+
It accurately extracts the final answer from lengthy reasoning processes and efficiently identifies equivalence across different forms of expressions.
|
| 38 |
|
| 39 |
---
|
| 40 |
|
|
|
|
| 67 |
journal={arXiv preprint arXiv:2504.10481},
|
| 68 |
year={2025},
|
| 69 |
}
|
| 70 |
+
```
|