Downloads · 30 days
6
12% of all-time downloads
sodeniZz/llm-course-hw2-reward-model
llm-course-hw2-reward-model is a text classification model from sodeniZz. Use it when you need a label for a piece of text. It is set up for transformers.
This model was trained as part of Homework 2 in the HSE LLM Course. It serves as a Reward Model (RM) for PPO-style RLHF training. The model learns to score pairs of (chosen, rejected) responses and assign higher rewar…
Downloads · 30 days
6
12% of all-time downloads
All-time downloads
50
Public
Parameters
135M
538 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors538 MB · 99%
From the Hugging Face model README
This model was trained as part of Homework 2 in the HSE LLM Course.
It serves as a Reward Model (RM) for PPO-style RLHF training.
The model learns to score pairs of (chosen, rejected) responses and assign higher reward to preferred outputs.
The model is used together with PPO policy/value models during alignment training.
This model is intended for educational purposes, including:
Not intended for production use.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model_id = "sodeniZz/llm-course-hw2-reward-model"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)