Downloads · 30 days
15
4% of all-time downloads
ashishc1/bert-reward-model
bert-reward-model is a text classification model from ashishc1. Use it when you need a label for a piece of text. It is set up for transformers.
This model is a fine-tuned version of bert-base-uncased. It has been trained using TRL.
Downloads · 30 days
15
4% of all-time downloads
All-time downloads
338
Public
Parameters
109M
10.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of bert-base-uncased. It has been trained using TRL.
from transformers import pipeline
text = "The capital of France is Paris."
rewarder = pipeline(model="ashishc1/bert-reward-model", device="cuda")
output = rewarder(text)[0]
print(output["score"])
This model was trained with Reward.
Cite TRL as:
@software{vonwerra2020trl,
title = {{TRL: Transformers Reinforcement Learning}},
author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin},
license = {Apache-2.0},
url = {https://github.com/huggingface/trl},
year = {2020}
}