Views
No views yet
1from transformers import pipeline
2
3text = "The capital of France is Paris."
4rewarder = pipeline(model="ianyang02/aita_qwen3-4b_2", device="cuda")
5output = rewarder(text)[0]
6print(output["score"])1@misc{vonwerra2022trl,
2 title = {{TRL: Transformer Reinforcement Learning}},
3 author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec},
4 year = 2020,
5 journal = {GitHub repository},
6 publisher = {GitHub},
7 howpublished = {\url{https://github.com/huggingface/trl}}
8}