Text Classification
Transformers
PyTorch
English
deberta-v2
reward-model
reward_model
RLHF
text-embeddings-inference
Run this model with HF Jobs
Run OpenAssistant/reward-model-deberta-v3-base 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/OpenAssistant/reward-model-deberta-v3-base. 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/OpenAssistant/reward-model-deberta-v3-base 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 OpenAssistant/reward-model-deberta-v3-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenAssistant/reward-model-deberta-v3-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="OpenAssistant/reward-model-deberta-v3-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("OpenAssistant/reward-model-deberta-v3-base") model = AutoModelForSequenceClassification.from_pretrained("OpenAssistant/reward-model-deberta-v3-base", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Reward model trained from human feedback
Reward model (RM) trained to predict which generated answer is better judged by a human, given a question.
RM are useful in these domain:
QA model evaluation
serves as reward score in RLHF
All models are train on these dataset with a same split seed across datasets (if validation split wasn't available)
How to use
from transformers import AutoModelForSequenceClassification, AutoTokenizer
reward_name = "OpenAssistant/reward-model-deberta-v3-base"
rank_model, tokenizer = AutoModelForSequenceClassification.from_pretrained(reward_name), AutoTokenizer.from_pretrained(reward_name)
question, answer = "Explain nuclear fusion like I am five", "Nuclear fusion is the process by which two or more protons and neutrons combine to form a single nucleus. It is a very important process in the universe, as it is the source of energy for stars and galaxies. Nuclear fusion is also a key process in the production of energy for nuclear power plants."
inputs = tokenizer(question, answer, return_tensors='pt')
score = rank_model(**inputs).logits[0].cpu().detach()
print(score)
Performance
Validation split accuracy
| Model | WebGPT | Summary | SytheticGPT |
|---|---|---|---|
| electra-large-discriminator | 59.30 | 68.66 | 99.85 |
| deberta-v3-large | 61.13 | 72.23 | 99.94 |
| deberta-v3-base | 59.07 | 66.84 | 99.85 |
Its likely SytheticGPT has somekind of surface pattern on the choosen-rejected pair which makes it trivial to differentiate between better the answer.
- Downloads last month
- 3,326
Model tree for OpenAssistant/reward-model-deberta-v3-base
Datasets used to train OpenAssistant/reward-model-deberta-v3-base
Updated • 2.82k • 221
openai/webgpt_comparisons
Viewer • Updated • 19.6k • 1.02k • 240
Dahoas/instruct-synthetic-prompt-responses
Viewer • Updated • 33.2k • 78 • 16