Run this model with HF Jobs
Run openeurollm/prelude-reward-models on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/openeurollm/prelude-reward-models. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/openeurollm/prelude-reward-models on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use openeurollm/prelude-reward-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use openeurollm/prelude-reward-models with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("openeurollm/prelude-reward-models", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files64 unmodified lines656667686970717273747576777879808182838485868788899091929394959697982 unmodified lines1011021031041051061071081091101111121131141151161171181191201211221231241256 unmodified lines1321331341351361371381391407 unmodified lines14814915015115215315464 unmodified lineskept only for reproducibility.| Branch | Status | Base model | Format | Context (eval / serving) | Size (bf16) ||---|---|---|---|---|---|| [`gemma-4-31b-v2`](https://huggingface.co/openeurollm/prelude-reward-models/tree/gemma-4-31b-v2) | **Recommended** | [google/gemma-4-31B-it](https://huggingface.co/google/gemma-4-31B-it) | Text-only (`model.*` + `score.*`), `transformers` & `vLLM` ready | 36,864 | 61 GB || [`gemma-4-31b`](https://huggingface.co/openeurollm/prelude-reward-models/tree/gemma-4-31b) | Deprecated (v1) | [google/gemma-4-31B-it](https://huggingface.co/google/gemma-4-31B-it) | Legacy multimodal key layout (`model.language_model.*`) | 16,384 | 61 GB || [`qwen3.8-27b`](https://huggingface.co/openeurollm/prelude-reward-models/tree/qwen3.8-27b) | Deprecated (v1) | [Qwen/Qwen3.8-27B](https://huggingface.co/Qwen/Qwen3.8-27B) | Legacy multimodal key layout (`model.language_model.*`) | 16,384 | 51 GB |`main` holds only this model card.### What changed in v2 (`gemma-4-31b-v2`)The v1 models were trained before several input-contract, precision, and serving fixes needed for stable RL:- **Plain-text prompt and answer tokenization:** all added/control tokens (`<think>`, `</think>`, `<tool_call>`,`<|im_end|>`, `<turn|>`, `<|channel>`, etc.) inside message contents and answers are neutralized before encoding,and answers are stripped. Policy outputs or user text can no longer inject structural control tokens or triggermulti-turn template stripping.- **Uncut training and 36K scoring:** training drops the 1,980 overlong pairs exceeding 16,384 tokens instead oftruncating them (124,939 uncut training pairs), while validation and serving score uncut up to **36,864** tokens(with symmetric prompt capping and head+tail answer truncation as a fallback beyond 36,864).- **Precision and head optimization:** full FP32 residual stream (embeddings + `embed_scale`, RMSNorm weights andoutputs, layer scalars, and residual additions) and a separate reward-head learning rate (`1e-4`, backbone `2e-6`),improving validation soft-label log loss (`0.312 -> 0.308`), English validation accuracy (`87.2 -> 88.2`), andEnglish Opus agreement (`86.9 -> 88.5`).- **Updated labels:** trained on the cleaned 127,927-pair dataset (removing the heuristic `<think>`-tag voteoverride so all judge-readable pairs rely on judge votes).- **Drop-in `transformers` and `vLLM` layout:** exported as a text-only `Gemma4TextConfig` checkpoint with `model.*`weights and float32 `score.weight` / `score.bias`, loadable directly by both `transformers` and `vLLM` poolingwithout key remapping or weight conversion.## Evaluation**Validation** is on 1,008 pairs held out from training: 200 English pairs and 17–50 for each other language, with2 unmodified linesorders. Benchmarks are scored with their official rules (including official subset-weighted M-RewardBench); trainingprompts were decontaminated against all three benchmarks.| | **Gemma 4 31B RM v2** (`gemma-4-31b-v2`) | Gemma 4 31B RM v1 *(deprecated)* | Qwen3.8-27B RM v1 *(deprecated)* ||---|---|---|---|| **Validation, 1,008 pairs, 38 languages** | | | || Accuracy against the judges' majority (even splits left out) | **92.2** | 92.6 | 91.3 || Agreement with Claude Opus 5.5 (935 pairs) | **91.2** | 91.7 | 91.7 || Log loss against the soft labels (calibrated @ T) | **0.308** (0.277 @ 0.56) | 0.312 (0.274 @ 0.53) | 0.313 (0.275 @ 0.52) || **Benchmarks** | | | || [RewardBench 2](https://huggingface.co/datasets/allenai/reward-bench-2) | **80.4** | 81.2 | 79.2 || [RM-Bench](https://huggingface.co/datasets/THU-KEG/RM-Bench), all (hard) | **86.2** (**79.6**) | 86.3 (80.5) | 85.1 (78.7) || [M-RewardBench](https://huggingface.co/datasets/CohereLabsCommunity/multilingual-reward-bench), European languages\* | **90.1** | 89.8 | 89.2 || **Length & probes** | | | || Prefers the longer answer (pairs ≥ 1.5× longer; labels in brackets) | **47.9** (46.6) | 46.9 (46.4) | 47.2 (46.3) || Prefers a good answer over a copy with its last paragraph repeated | **91.7** | 92.7 | 95.1 |*\*Official subset-weighted M-RewardBench across 12 European languages for v2 (`cs, de, el, es, fr, it, nl, pl, pt, ro, tr, uk`; also 90.1 on the 11 languages excluding `tr`) and 11 languages for v1. v2 and v1 Gemma reward differences correlate at `0.991` on the 1,008 validation pairs.***Validation per language tier**, accuracy against the judges' majority:| Tier | Languages | Pairs | **Gemma 4 31B RM v2** | Gemma 4 31B RM v1 *(deprecated)* | Qwen3.8-27B RM v1 *(deprecated)* ||---|---|---|---|---|---|| English | en | 200 | **88.2** | 87.2 | 83.1 || Large | de, es, fr, it, pt | 250 | **91.5** | 91.9 | 92.7 |6 unmodified lines|---|---|---|---|---|---|| Pairs | 935 | 183 | 235 | 283 | 234 || **Reward models** | | | | | || **Gemma 4 31B RM v2 (`gemma-4-31b-v2`)** | **91.2** | **88.5** | **91.5** | **94.7** | **88.9** || Gemma 4 31B RM v1 *(deprecated)* | 91.7 | 86.9 | 92.8 | 96.1 | 88.9 || Qwen3.8-27B RM v1 *(deprecated)* | 91.7 | 85.2 | 94.9 | 95.1 | 89.3 || **Training labels** | | | | | || The judges' pooled votes (in-sample) | 95.0 | 92.3 | 95.7 | 97.3 | 93.6 || **Judges with reasoning, whose votes made the labels** | | | | | |7 unmodified lines| Qwen3.5-122B-A10B, thinking off | 89.9 | 86.9 | 88.7 | 93.8 | 88.7 || gpt-oss-120b, reasoning low | 85.3 | 76.8 | 87.4 | 89.4 | 85.0 || Jev 1.14 | 91.2 | 84.4 | 92.6 | 95.1 | 90.4 || Jev 1.14, probabilities averaged over both orders | 92.1 | 87.4 | 92.6 | 96.1 | 90.6 |**Additional v2 (`gemma-4-31b-v2`) breakdown:**- **Validation by category** (majority acc / Opus agreement): General `92.9 / 91.5` (n=618), Instruction following `92.8 / 90.8` (n=157), Safety benign `91.4 / 90.7` (n=118), Safety harmful `88.3 / 90.8` (n=115).64 unmodified lines656667686970717273747576772 unmodified lines80818283848586878889909192939495969798991006 unmodified lines1071081091101111121131141157 unmodified lines12312412512612712864 unmodified lineskept only for reproducibility.| Branch | Status | Base model | Format | Context (eval / serving) | Size (bf16) ||---|---|---|| [`gemma-4-31b-v2`](https://huggingface.co/openeurollm/prelude-reward-models/tree/gemma-4-31b-v2) | **Recommended** | [google/gemma-4-31B-it](https://huggingface.co/google/gemma-4-31B-it) || [`gemma-4-31b`](https://huggingface.co/openeurollm/prelude-reward-models/tree/gemma-4-31b) | Deprecated (v1) | [google/gemma-4-31B-it](https://huggingface.co/google/gemma-4-31B-it) || [`qwen3.8-27b`](https://huggingface.co/openeurollm/prelude-reward-models/tree/qwen3.8-27b) | Deprecated (v1) | [Qwen/Qwen3.8-27B](https://huggingface.co/Qwen/Qwen3.8-27B) |`main` holds only this model card.## Evaluation**Validation** is on 1,008 pairs held out from training: 200 English pairs and 17–50 for each other language, with2 unmodified linesorders. Benchmarks are scored with their official rules (including official subset-weighted M-RewardBench); trainingprompts were decontaminated against all three benchmarks.| | **Gemma 4 31B RM v2** | Gemma 4 31B RM v1 | Qwen3.8-27B RM v1 ||---|---|---|---|| **Validation, 1,008 pairs, 38 languages** | | | || Accuracy against the judges' majority (even splits left out) | **92.2** | 92.6 | 91.3 || Agreement with Claude Opus 5.5 (935 pairs) | **91.2** | 91.7 | 91.7 || **Benchmarks** | | | || [RewardBench 2](https://huggingface.co/datasets/allenai/reward-bench-2) | **80.4** | 81.2 | 79.2 || [RM-Bench](https://huggingface.co/datasets/THU-KEG/RM-Bench), all (hard) | **86.2** (**79.6**) | 86.3 (80.5) | 85.1 (78.7) || [M-RewardBench](https://huggingface.co/datasets/CohereLabsCommunity/multilingual-reward-bench), European languages\* | **90.1** | 89.8 | 89.2 |*\*Official subset-weighted M-RewardBench across 12 European languages for v2 (`cs, de, el, es, fr, it, nl, pl, pt, ro, tr, uk`; also 90.1 on the 11 languages excluding `tr`) and 11 languages for v1. v2 and v1 Gemma reward differences correlate at `0.991` on the 1,008 validation pairs.***Validation per language tier**, accuracy against the judges' majority:| Tier | Languages | Pairs | **Gemma 4 31B RM v2** | Gemma 4 31B RM v1 | Qwen3.8-27B RM v1 ||---|---|---|---|---|---|| English | en | 200 | **88.2** | 87.2 | 83.1 || Large | de, es, fr, it, pt | 250 | **91.5** | 91.9 | 92.7 |6 unmodified lines|---|---|---|---|---|---|| Pairs | 935 | 183 | 235 | 283 | 234 || **Reward models** | | | | | || **Gemma 4 31B RM v2** | **91.2** | **88.5** | **91.5** | **94.7** | **88.9** || Gemma 4 31B RM v1 | 91.7 | 86.9 | 92.8 | 96.1 | 88.9 || Qwen3.8-27B RM v1 | 91.7 | 85.2 | 94.9 | 95.1 | 89.3 || **Training labels** | | | | | || The judges' pooled votes (in-sample) | 95.0 | 92.3 | 95.7 | 97.3 | 93.6 || **Judges with reasoning, whose votes made the labels** | | | | | |7 unmodified lines| Qwen3.5-122B-A10B, thinking off | 89.9 | 86.9 | 88.7 | 93.8 | 88.7 || gpt-oss-120b, reasoning low | 85.3 | 76.8 | 87.4 | 89.4 | 85.0 || Jev 1.14 | 91.2 | 84.4 | 92.6 | 95.1 | 90.4 |**Additional v2 (`gemma-4-31b-v2`) breakdown:**- **Validation by category** (majority acc / Opus agreement): General `92.9 / 91.5` (n=618), Instruction following `92.8 / 90.8` (n=157), Safety benign `91.4 / 90.7` (n=118), Safety harmful `88.3 / 90.8` (n=115).
README.md+9-35