/ Модель

Характеристики

Контекст
131 072 токена
Параметры
29,7 млрд
Размер весов
65,5 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3 · dense
Базовая модель
Qwen3-32B
Библиотека
transformers
Опубликована
29 янв 2026

HER-RM-32B

Генерация текстаТекст → текст3 профессии

Генеративная reward-модель на базе Qwen3 для контекстного сравнения и подробной оценки ответов в ролевых диалогах.

97скачиваний за 30 дней9лайковвеса обновлены4 фев 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

HER-RM-32B — генеративная reward-модель для оценки ответов в ролевых диалогах, разработанная авторами проекта HER. Вместо единой числовой оценки она формулирует принципы оценки с учётом контекста диалога, сравнивает два варианта ответа и выдаёт разбор с обоснованием. Модель основана на дообученной плотной авторегрессионной архитектуре Qwen3 с 29,7 млрд параметров и контекстным окном до 131 072 токенов.

Модель предназначена для попарного ранжирования ролевых ответов и анализа качества персонажей по 12 измерениям, включая соответствие характеру, естественность взаимодействия и развитие сюжета, а также противоречия контексту, повторы и нарушения логики. По карточке, обучение включало более 300 тысяч пар предпочтений и 107 оценочных принципов. Указаны китайский и английский языки; модель распространяется в формате safetensors для Transformers.

Лицензия — Apache-2.0. Это специализированная модель оценки и сравнения ответов, а не универсальная модель для генерации ролевых реплик; её выводы следует рассматривать как оценку предпочтений, а не как объективную гарантию качества.

Сценарии применения

  • сравнение двух вариантов реплики персонажа
  • оценка соответствия ответа заданному характеру персонажа
  • проверка ролевого ответа на противоречия с историей диалога
  • анализ естественности и эмоциональной достоверности диалога
  • ранжирование ответов для отбора предпочтительного варианта

Ограничения

Модель специализирована на оценке ответов в ролевых сценариях и не предназначена как универсальный оценщик качества. Сравнение двух кандидатов и подробные объяснения не гарантируют объективность предпочтений.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

🎭 HER-RM: Generative Reward Model for Role-Playing

HER: Human-like Reasoning and Reinforcement Learning for LLM Role-playing

HER introduces dual-layer thinking that distinguishes characters' first-person thinking from LLMs' third-person thinking for cognitive-level persona simulation.

Overview

HER-RM is a Generative Reward Model (GenRM) specifically designed for evaluating role-playing responses. Unlike traditional reward models that output a single scalar score, HER-RM generates by-case evaluation principles based on the dialogue context and provides detailed comparative analysis.

Key Features

  • 🎯 Context-Aware Evaluation: Generates evaluation principles dynamically based on dialogue context
  • 📝 Detailed Analysis: Provides principle-by-principle comparison with reasoning
  • 🔄 Pairwise Comparison: Compares two candidate responses and determines the winner
  • 📊 107 Distilled Principles: Trained on principles covering 12 evaluation dimensions

How It Works

HER-RM identifies implicit human preferences from the dialogue context and generates by-case principles to guide its own scoring. This approach enables more nuanced evaluation compared to fixed rubrics.

How to Use

Input Format

The model expects a structured prompt with:

  1. Dialogue Context: The conversation history
  2. Response Candidate 1: First response to evaluate
  3. Response Candidate 2: Second response to evaluate

Prompt Template

##prompt info 
### Role
You are the world's best data annotator, specializing in distinguishing differences between different responses in the same role-playing scenario.

### Background
You will receive content information including **character background settings**, **dialogue context**, **dialogue continuation**, **response candidate 1**, and **response candidate 2**. You must generate relevant evaluation principles based on the dialogue context and compare the two candidate responses.

The format of **dialogue history** is as follows, where "(system)" after the character name represents system output, "(assistant)" represents model output, and "(user)" represents user output:

id:1, npc_name1(system): (background settings...)
id:2, npc_name2(assistant): (dialogue content...)
id:3, npc_name3(user): (dialogue content...)

### Key Concepts: Dimensions vs Principles

The evaluation schema contains two hierarchical levels:
- **Dimensions**: broad categories used to organize principles (structural labels only)
- **Principles**: concrete judgment rules under each dimension (actual units for comparison)

Each principle includes:
- **definition**: the rule you must apply
- **level**: "sentence" (judged from current utterance) or "session" (requires full dialogue history)

You must:
- Generate principles relevant to the current dialogue context
- Always evaluate negative principles (if applicable)
- Use positive principles only when they meaningfully distinguish the two responses
- Generate 3-5 principles that best capture the differences
- For each generated principle, compare cand_1 and cand_2 and decide the winner

### Evaluation Process

1. Carefully read the entire dialogue history, sentence by sentence
2. Evaluate all negative principles first (violations → immediate winner/tie)
3. Generate relevant positive principles only for meaningful differences
4. For each principle: analyze both candidates, provide evidence, decide winner
5. Consider: number of wins, principle importance, degree of difference
6. Make final decision: "cand_1", "cand_2", or "tie"

### Output Format

Return JSON format:

{
  "result": [
    {
      "cand_1": "Response candidate 1 original text",
      "cand_2": "Response candidate 2 original text",
      "principle": {
        "Principle 1": {
          "principle_name": "Name of the principle",
          "dimension_name": "Dimension category",
          "principle_level": "sentence or session",
          "main_content": "Principle description",
          "reason_for_choosing": "Why this principle matters for this context"
        }
      },
      "analysis": {
        "principle_comparisons": [
          {
            "principle_name": "Principle name",
            "principle_level": "sentence or session",
            "cand_1_performance": "Analysis of Response 1",
            "cand_2_performance": "Analysis of Response 2",
            "comparison_reason": "Detailed comparison with degree of difference",
            "winner": "cand_1 or cand_2 or tie"
          }
        ],
        "overall_analysis": "Overall analysis of all principles",
        "principle_summary": "Statistics of wins/losses with weights and degrees"
      },
      "better_response": "cand_1 or cand_2 or tie"
    }
  ]
}

### Input

**Dialogue Context**  
{context}

**Response Candidate 1**  
{cand_1}

**Response Candidate 2**  
{cand_2}

Usage Example

from transformers import AutoModelForCausalLM, AutoTokenizer
import json
import re

model_name = "ChengyuDu0123/HER-RM-32B"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto"
)

# Prepare input
context = """System: You are Elizabeth Bennet from Pride and Prejudice. 
A witty, intelligent young woman who values honesty and integrity.

User: Mr. Darcy approaches you at the ball. What do you say?"""

cand_1 = """<role_thinking>He looks so proud, standing there as if he owns the room.</role_thinking>
<role_action>raises an eyebrow slightly</role_action>
Mr. Darcy. I did not expect to see you here tonight."""

cand_2 = """Hello Mr. Darcy! How are you doing? Nice weather we're having!"""

# Build prompt (simplified version, see full template above)
prompt = f"""##prompt info 
### Role
You are the world's best data annotator, specializing in distinguishing differences between different responses in the same role-playing scenario.

### Input

**Dialogue Context**  
{context}

**Response Candidate 1**  
{cand_1}

**Response Candidate 2**  
{cand_2}

Please generate evaluation principles and compare the two responses."""

messages = [{"role": "user", "content": prompt}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer([text], return_tensors="pt").to(model.device)

# Generate
outputs = model.generate(
    **inputs,
    max_new_tokens=2048,
    temperature=0.7,
    top_p=0.9
)
response = tokenizer.decode(outputs[0][len(inputs.input_ids[0]):], skip_special_tokens=True)

# Parse result
match = re.search(r'"better_response":\s*"(\w+)"', response)
if match:
    print(f"Winner: {match.group(1)}")

Evaluation Dimensions

HER-RM evaluates responses across 12 dimensions, organized into:

Negative Dimensions (Detect Flaws)

  • Language mixing / code-switching issues
  • Physical logic violations
  • Reference confusion
  • Contradiction with context
  • Plot repetition
  • Character OOC (Out of Character)

Positive Dimensions (Evaluate Quality)

  • Character fidelity
  • Emotional authenticity
  • Narrative quality
  • Interaction naturalness
  • Story progression
  • User preference alignment

Training Data

The reward model was trained on:

  • 300,000+ preference pairs from role-playing scenarios
  • 107 distilled evaluation principles across 12 dimensions
  • Balanced data to avoid position bias, length bias, and pattern collapse

🎓 Citation

@article{her2025,
  title={HER: Human-like Reasoning and Reinforcement Learning for LLM Role-playing},
  author={Chengyu Du, Xintao Wang, Aili Chen, Weiyuan Li, Rui Xu, Junteng Liu, Zishan Huang, Rong Tian, Zijun Sun, Yuhao Li, Liheng Feng, Deming Ding, Pengyu Zhao, Yanghua Xiao},
  journal={arXiv preprint arXiv:2601.21459},
  year={2026}
}

📄 License

This project is licensed under the Apache 2.0 License.

🤝 Acknowledgments

  • CoSER for the evaluation benchmark
  • MiniMax for the evaluation benchmark

Paper | HER-RL Model | Dataset | GitHub

Made with ❤️ for better AI role-playing

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3ForCausalLM
Ревизия весов
2f89027

0 моделей