Instructions to use asimali004/CodeLlamaPython_final with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use asimali004/CodeLlamaPython_final with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("asimali004/CodeLlamaPython_final", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (3)
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758---base_model: meta-llama/CodeLlama-7b-Python-hflibrary_name: transformersmodel_name: CodeLlamaPython_finaltags:- generated_from_trainer- trl- sftlicence: license---
# Model Card for CodeLlamaPython_final
This model is a fine-tuned version of [meta-llama/CodeLlama-7b-Python-hf](https://huggingface.co/meta-llama/CodeLlama-7b-Python-hf).It has been trained using [TRL](https://github.com/huggingface/trl).
## Quick start
```pythonfrom 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="asimali004/CodeLlamaPython_final", device="cuda")output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]print(output["generated_text"])```
## Training procedure
This model was trained with SFT.
### Framework versions
- TRL: 0.13.0- Transformers: 4.48.0.dev0- Pytorch: 2.5.1+cu121- Datasets: 3.2.0- Tokenizers: 0.21.0
## Citations
Cite TRL as: ```bibtex@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}}}```123version https://git-lfs.github.com/spec/v1oid sha256:9b552ac476ba700d72ca2c80de2d4720d30be4eec50e4b528ecfbf8526fdf0c9size 67143296123version https://git-lfs.github.com/spec/v1oid sha256:c29427f4114818382578dd32698279fab00d45fef59b2949444d8b53fbcf12aasize 67143296
123version https://git-lfs.github.com/spec/v1oid sha256:f9c83baf39da89a5672d1a319c246e32f41121023f438ff631b6ebac834e57ccsize 9573123version https://git-lfs.github.com/spec/v1oid sha256:84bee2a315f9fd756c2d9b857a7096f48f6e3390306da513b981f1a898e7f5f2size 9921
README.mdAdded+58
adapter_model.safetensors+1-1
runs/Dec29_17-07-58_e111144b2ddf/events.out.tfevents.1735492086.e111144b2ddf.795.0+2-2