This model is a fine-tuned version of
HuggingFaceTB/SmolLM-135M-Instruct on the
HumanLLMs/Human-Like-DPO-Dataset dataset.
It has been trained using
TRL.
1from transformers import pipeline
2question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
3generator = pipeline("text-generation", model="liuhailin0123/trainer_output", device="cuda")
4output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
5print(output["generated_text"])
We trained a reward model based on HuggingFaceTB/SmolLM-135M-Instruct model on Human-Like-DPO-Dataset, in order to get a positive score on the chosen response, and a negetive score on the rejected response, which is necessarily to train a policy model in the PPO stage.
This model was trained with Reward.
As we can see, the model was indeed trained and able to issue rewards based on the references from current dataset.