base_model | library_name | model_name | datasets | tags |
---|---|---|---|---|
HuggingFaceTB/SmolLM2-135M |
transformers |
SmolLM2-FT-MyDataset |
HuggingFaceTB/smoltalk |
generated_from_trainer, smol-course, module_1, trl, sft |
- This model is a fine-tuned version of HuggingFaceTB/SmolLM2-135M.
- It has been trained using TRL.
- It has been trained on the smoltalk dataset.
from transformers import pipeline
question = "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?"
generator = pipeline("text-generation", model="gauri-sharan/SmolLM2-FT-MyDataset", device="cuda")
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
print(output["generated_text"])
This model was trained with SFT.
- TRL: 0.13.0
- Transformers: 4.48.1
- Pytorch: 2.5.0
- Datasets: 3.0.1
- Tokenizers: 0.21.0
Cite TRL as:
@misc{vonwerra2022trl,
title = {{TRL: Transformer Reinforcement Learning}},
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édec},
year = 2020,
journal = {GitHub repository},
publisher = {GitHub},
howpublished = {\url{https://github.com/huggingface/trl}}
}