OpenAssistant / reward-model-deberta-v3-large-v2

huggingface.co
Total runs: 11.9K
24-hour runs: 1
7-day runs: -553
30-day runs: -4.0K
Model's Last Updated: February 01 2023
text-classification

Introduction of reward-model-deberta-v3-large-v2

Model Details of reward-model-deberta-v3-large-v2

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

  • detect potential toxic response via ranking

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-large-v2"
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)

Toxic response detection

from transformers import AutoModelForSequenceClassification, AutoTokenizer
reward_name = "OpenAssistant/reward-model-deberta-v3-large-v2"
rank_model, tokenizer = AutoModelForSequenceClassification.from_pretrained(reward_name), AutoTokenizer.from_pretrained(reward_name)

question = "I just came out of from jail, any suggestion of my future?"
helpful = "It's great to hear that you have been released from jail."
bad = "Go back to jail you scum"

inputs = tokenizer(question, helpful, return_tensors='pt')
good_score = rank_model(**inputs).logits[0].cpu().detach()

inputs = tokenizer(question, bad, return_tensors='pt')
bad_score = rank_model(**inputs).logits[0].cpu().detach()
print(good_score > bad_score) # tensor([True])

Performance

Validation split accuracy

Model WebGPT Summary SytheticGPT Anthropic RLHF
electra-large-discriminator 59.30 68.66 99.85 54.33
deberta-v3-large-v2 61.57 71.47 99.88 69.25
deberta-v3-large 61.13 72.23 99.94 55.62
deberta-v3-base 59.07 66.84 99.85 54.51
deberta-v2-xxlarge 58.67 73.27 99.77 66.74

Its likely SytheticGPT has somekind of surface pattern on the choosen-rejected pair which makes it trivial to differentiate between better the answer.

Other

Sincere thanks to stability.ai for their unwavering support in terms of A100 computational resources. Their contribution was crucial in ensuring the smooth completion of this research project.

Runs of OpenAssistant reward-model-deberta-v3-large-v2 on huggingface.co

11.9K
Total runs
1
24-hour runs
-225
3-day runs
-553
7-day runs
-4.0K
30-day runs

More Information About reward-model-deberta-v3-large-v2 huggingface.co Model

More reward-model-deberta-v3-large-v2 license Visit here:

https://choosealicense.com/licenses/mit

reward-model-deberta-v3-large-v2 huggingface.co

reward-model-deberta-v3-large-v2 huggingface.co is an AI model on huggingface.co that provides reward-model-deberta-v3-large-v2's model effect (), which can be used instantly with this OpenAssistant reward-model-deberta-v3-large-v2 model. huggingface.co supports a free trial of the reward-model-deberta-v3-large-v2 model, and also provides paid use of the reward-model-deberta-v3-large-v2. Support call reward-model-deberta-v3-large-v2 model through api, including Node.js, Python, http.

reward-model-deberta-v3-large-v2 huggingface.co Url

https://huggingface.co/OpenAssistant/reward-model-deberta-v3-large-v2

OpenAssistant reward-model-deberta-v3-large-v2 online free

reward-model-deberta-v3-large-v2 huggingface.co is an online trial and call api platform, which integrates reward-model-deberta-v3-large-v2's modeling effects, including api services, and provides a free online trial of reward-model-deberta-v3-large-v2, you can try reward-model-deberta-v3-large-v2 online for free by clicking the link below.

OpenAssistant reward-model-deberta-v3-large-v2 online free url in huggingface.co:

https://huggingface.co/OpenAssistant/reward-model-deberta-v3-large-v2

reward-model-deberta-v3-large-v2 install

reward-model-deberta-v3-large-v2 is an open source model from GitHub that offers a free installation service, and any user can find reward-model-deberta-v3-large-v2 on GitHub to install. At the same time, huggingface.co provides the effect of reward-model-deberta-v3-large-v2 install, users can directly use reward-model-deberta-v3-large-v2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

reward-model-deberta-v3-large-v2 install url in huggingface.co:

https://huggingface.co/OpenAssistant/reward-model-deberta-v3-large-v2

Url of reward-model-deberta-v3-large-v2

reward-model-deberta-v3-large-v2 huggingface.co Url

Provider of reward-model-deberta-v3-large-v2 huggingface.co

OpenAssistant
ORGANIZATIONS

Other API from OpenAssistant