mlfoundations-dev/putnam_bench_r1
Viewer • Updated • 492 • 24 • 1
How to use dkjo8/Tars with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("dkjo8/Tars", dtype="auto")This model is a fine-tuned version of Qwen/Qwen2.5-Math-7B-Instruct on the mlfoundations-dev/putnam_bench_r1 dataset. It has been trained using TRL.
from transformers import pipeline
text = "The capital of France is Paris."
rewarder = pipeline(model="dkjo8/Tars", 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}
}