Views
No views yet
| Model Name | Size | Base Model | Download | Notes |
|---|---|---|---|---|
| 👉 CompassJudger-2-7B-Instruct | 7B | Qwen2.5-7B-Instruct | 🤗 Model | Fine-tuned for generalist judge capabilities. |
| 👉 CompassJudger-2-32B-Instruct | 32B | Qwen2.5-32B-Instruct | 🤗 Model | A larger, more powerful judge model. |
1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4model_path = "opencompass/CompassJudger-2-7B-Instruct"
5
6model = AutoModelForCausalLM.from_pretrained(
7 model_path,
8 torch_dtype="auto",
9 device_map="auto"
10)
11tokenizer = AutoTokenizer.from_pretrained(model_path)
12
13# Example: Pair-wise Comparison
14prompt = """
15Please act as an impartial judge to evaluate the responses provided by two AI assistants to the user question below. Your evaluation should focus on the following criteria: helpfulness, relevance, accuracy, depth, creativity, and level of detail.
16
17- Do not let the order of presentation, response length, or assistant names influence your judgment.
18- Base your decision solely on how well each response addresses the user’s question and adheres to the instructions.
19
20Your final reply must be structured in the following format:
21{
22 "Choice": "[Model A or Model B]"
23}
24
25User Question: {question}
26
27Model A's Response: {answerA}
28
29Model B's Response: {answerB}
30
31Now it's your turn. Please provide selection result as required:
32"""
33
34messages = [
35 {"role": "user", "content": prompt}
36]
37
38text = tokenizer.apply_chat_template(
39 messages,
40 tokenize=False,
41 add_generation_prompt=True
42)
43model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
44
45generated_ids = model.generate(
46 **model_inputs,
47 max_new_tokens=2048
48)
49generated_ids = [
50 output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
51]
52
53response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
54print(response)| Model | JudgerBench V2 | JudgeBench | RMB | RewardBench | Average |
|---|---|---|---|---|---|
| 7B Judge Models | |||||
| CompassJudger-1-7B-Instruct | 57.96 | 46.00 | 38.18 | 80.74 | 55.72 |
| Con-J-7B-Instruct | 52.35 | 38.06 | 71.50 | 87.10 | 62.25 |
| RISE-Judge-Qwen2.5-7B | 46.12 | 40.48 | 72.64 | 88.20 | 61.61 |
| CompassJudger-2-7B-Instruct | 60.52 | 63.06 | 73.90 | 90.96 | 72.11 |
| 32B+ Judge Models | |||||
| CompassJudger-1-32B-Instruct | 60.33 | 62.29 | 77.63 | 86.17 | 71.61 |
| Skywork-Critic-Llama-3.1-70B | 52.41 | 50.65 | 65.50 | 93.30 | 65.47 |
| RISE-Judge-Qwen2.5-32B | 56.42 | 63.87 | 73.70 | 92.70 | 71.67 |
| CompassJudger-2-32B-Instruct | 62.21 | 65.48 | 72.98 | 92.62 | 73.32 |
| General Models (for reference) | |||||
| Qwen2.5-32B-Instruct | 62.97 | 59.84 | 74.99 | 85.61 | 70.85 |
| DeepSeek-V3-0324 | 64.43 | 59.68 | 78.16 | 85.17 | 71.86 |
| Qwen3-235B-A22B | 61.40 | 65.97 | 75.59 | 84.68 | 71.91 |
1@article{zhang2025compassjudger,
2 title={CompassJudger-2: Towards Generalist Judge Model via Verifiable Rewards},
3 author={Zhang, Taolin and Cao, Maosong and Lam, Alexander and Zhang, Songyang and Chen, Kai},
4 journal={arXiv preprint arXiv:2507.09104},
5 year={2025}
6}