mariasandu/python_coding_assistant
0
1---2base_model: codellama/CodeLlama-7b-hf3library_name: transformers4model_name: outputs5tags:6- generated_from_trainer7- trl8- sft9licence: license10---11 12# Model Card for outputs13 14This model is a fine-tuned version of [codellama/CodeLlama-7b-hf](https://huggingface.co/codellama/CodeLlama-7b-hf).15It has been trained using [TRL](https://github.com/huggingface/trl).16 17## Quick start18 19```python20from transformers import pipeline21 22question = "Write a Python function that takes a list of numbers and returns the list sorted in ascending order without using the built-in `sorted()` function."23generator = pipeline("text-generation", model="mariasandu/python-coding-assistant", device="cuda")24output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]25print(output["generated_text"])26```27 28## Training procedure29 30[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/mos7589-prompt-inversion/huggingface/runs/v6s17rve) 31 32 33This model was trained with SFT.34 35### Framework versions36 37- TRL: 0.25.038- Transformers: 4.57.139- Pytorch: 2.8.0+cu12640- Datasets: 4.0.041- Tokenizers: 0.22.142 43## Citations44 45 46 47Cite TRL as:48 49```bibtex50@misc{vonwerra2022trl,51 title = {{TRL: Transformer Reinforcement Learning}},52 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},53 year = 2020,54 journal = {GitHub repository},55 publisher = {GitHub},56 howpublished = {\url{https://github.com/huggingface/trl}}57}58```