Skip to main content

RM-Gallery Logo

A unified platform for building, evaluating, and applying reward models.

Python 3.10+ PyPI Documentation

Documentation | Examples | 中文

News

Installation

RM-Gallery requires Python 3.10 or higher (< 3.13).

pip install rm-gallery

Or install from source:

git clone https://github.com/modelscope/RM-Gallery.git
cd RM-Gallery
pip install .

Quick Start

from rm_gallery.core.reward.registry import RewardRegistry
from rm_gallery.core.data.schema import DataSample

# Choose from 35+ pre-built reward models
rm = RewardRegistry.get("safety_listwise_reward")

# Evaluate your data
sample = DataSample(...)
result = rm.evaluate(sample)

See the quickstart guide for a complete example, or try our interactive notebooks.

Features

Pre-built Reward Models

Access 35+ reward models for different domains:

rm = RewardRegistry.get("math_correctness_reward")
rm = RewardRegistry.get("code_quality_reward")
rm = RewardRegistry.get("helpfulness_listwise_reward")

View all reward models

Custom Reward Models

Build your own reward models with simple APIs:

from rm_gallery.core.reward import BasePointWiseReward

class CustomReward(BasePointWiseReward):
    def _evaluate(self, sample, **kwargs):
        # Your evaluation logic
        return RewardResult(...)

Learn more about building custom RMs

Benchmarking

Evaluate models on standard benchmarks:

  • RewardBench2 - Latest reward model benchmark
  • RM-Bench - Comprehensive evaluation suite
  • Conflict Detector - Detect evaluation inconsistencies
  • JudgeBench - Judge capability assessment

Read the evaluation guide

Applications

  • Best-of-N Selection - Choose optimal responses from candidates
  • Data Refinement - Improve dataset quality with reward signals
  • RLHF Integration - Use rewards in reinforcement learning pipelines
  • High-Performance Serving - Deploy models with fault-tolerant infrastructure

Documentation

Contributing

We welcome contributions! Please install pre-commit hooks before submitting pull requests:

pip install -e .
pre-commit install

See our contribution guide for details.

Citation

If you use RM-Gallery in your research, please cite:

@software{
title = {RM-Gallery: A One-Stop Reward Model Platform},
author = {The RM-Gallery Team},
url = {https://github.com/modelscope/RM-Gallery},
month = {07},
year = {2025}
}

Metadata

Release files for rm-gallery 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rm-gallery 0.1.7
File Size Uploaded
rm_gallery-0.1.7.tar.gz 180.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rm-gallery 0.1.7
File Interpreter ABI Platform
rm_gallery-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 430.3 kB

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page