Downloads · 30 days
630
16% of all-time downloads
yavuz-ai/qwen2.5-1.5b-rm-ultrafeedback
qwen2.5-1.5b-rm-ultrafeedback is a text classification model from yavuz-ai. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
A reward model: Qwen2.5-1.5B-Instruct with a scalar head, trained on 10k UltraFeedback preference pairs (Bradley-Terry) so the preferred response scores higher. LoRA, merged into a standalone model. Part of reward-mod…
Downloads · 30 days
630
16% of all-time downloads
All-time downloads
3.9K
Public
Parameters
1.5B
3.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.1 GB · 100%
From the Hugging Face model README
A reward model: Qwen2.5-1.5B-Instruct with a scalar head, trained on 10k UltraFeedback preference
pairs (Bradley-Terry) so the preferred response scores higher. LoRA, merged into a standalone model.
Part of reward-model-ppo (the classic RLHF loop).
Held-out accuracy 0.757 (n=1000): on a held-out pair it scores the preferred response higher 76% of the time. This is a clean, reusable artifact (unlike the PPO policy trained against it, which is a research artifact - see the repo).
import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer
tok = AutoTokenizer.from_pretrained("yavuz-ai/qwen2.5-1.5b-rm-ultrafeedback")
rm = AutoModelForSequenceClassification.from_pretrained("yavuz-ai/qwen2.5-1.5b-rm-ultrafeedback", num_labels=1)
msgs = [{"role": "user", "content": "..."}, {"role": "assistant", "content": "..."}]
enc = tok.apply_chat_template(msgs, return_tensors="pt", return_dict=True)
reward = rm(**enc).logits[0, 0].item() # higher = better
LoRA (r=16, alpha=32, all-linear) RewardTrainer, 1 epoch over 10k pairs, lr 1e-4, bf16, 1x A100.