trl/templates/rm_model_card.md
This model is a fine-tuned version of [{{ base_model }}](https://huggingface.co/{{ base_model }}){% if dataset_name %} on the [{{ dataset_name }}](https://huggingface.co/datasets/{{ dataset_name }}) dataset{% endif %}. It has been trained using TRL.
from transformers import pipeline
text = "The capital of France is Paris."
rewarder = pipeline(model="{{ hub_model_id }}", device="cuda")
output = rewarder(text)[0]
print(output["score"])
{% if wandb_url %}[]({{ wandb_url }}){% endif %} {% if trackio_url %}[]({{ trackio_url }}){% endif %} {% if comet_url %}[]({{ comet_url }}){% endif %}
This model was trained with {{ trainer_name }}{% if paper_id %}, a method introduced in [{{ paper_title }}](https://huggingface.co/papers/{{ paper_id }}){% endif %}.
{% if trainer_citation %}Cite {{ trainer_name }} as:
{{ trainer_citation }}
```{% endif %}
Cite TRL as:
```bibtex
{% raw %}@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}
}{% endraw %}