Smol-Course-Models
Collection
The collection of models that I trained for different chapters and datasets provided in the smol-course
•
1 item
•
Updated
This model is a fine-tuned version of HuggingFaceTB/SmolLM2-135M. It has been trained using TRL.
from transformers import pipeline
question = "Can you write a python function to add 2 numbers?"
generator = pipeline("text-generation", model="peaceAsh/smolcourse_chapter1", 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.
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}}
}
Base model
HuggingFaceTB/SmolLM2-135M