Downloads · 30 days
10
32% of all-time downloads
bilalfaye/flan-t5-large-rpo
flan-t5-large-rpo is a machine learning model from bilalfaye. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
🔬 Fine-tuned with Reward Partitioning Optimization (RPO) — a value-free, stable method for single-trajectory reinforcement learning with scalar feedback.
Downloads · 30 days
10
32% of all-time downloads
All-time downloads
31
Public
Parameters
783M
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
🔬 Fine-tuned with Reward Partitioning Optimization (RPO) — a value-free, stable method for single-trajectory reinforcement learning with scalar feedback.
This model is a fine-tuned variant of the Flan-T5 {Small|Large|XL} checkpoint, trained using Reward Partitioning Optimization (RPO). RPO is a new method designed for learning from single-trajectory scalar feedback (e.g., thumbs up/down), and eliminates the need for learning value functions or preference pairs.
flan-t5-{small|large|xl}from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
import torch
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model_name = "bilalfaye/flan-t5-{small|large|xl}-rpo"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name).to(device)
prompt = "How can I improve my productivity working from home?"
inputs = tokenizer(prompt, return_tensors="pt").to(device)
outputs = model.generate(
input_ids=inputs["input_ids"],
max_new_tokens=128,
do_sample=True,
temperature=0.7,
top_k=50,
top_p=0.95,
repetition_penalty=1.2,
no_repeat_ngram_size=3,
)
response = tokenizer.batch_decode(outputs, skip_special_tokens=True)[0]
print(response)
| Judge | Win Rate vs DRO | Win Rate vs KTO | Win Rate vs SFT |
|---|---|---|---|
| Mistral | ✅ 83–93% | ✅ 82–93% | ✅ 82–84% |
| LLaMA | ✅ 67–74% | ✅ 65–72% | ✅ 63–73% |
If you use this model, please cite the following paper:
@article{faye2025rpo,
title = {Value-Free Policy Optimization via Reward Partitioning},
author = {Bilal Faye and Hanane Azzag and Mustapha Lebbah},
journal = {arXiv preprint arXiv:2406.XXXX},
year = {2025}
}
bilalfaye/flan-t5-small-rpobilalfaye/flan-t5-large-rpobilalfaye/flan-t5-xl-rpo