Instructions to use manoj345/code-llama-3-1-8b-text-to-sql with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use manoj345/code-llama-3-1-8b-text-to-sql with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("manoj345/code-llama-3-1-8b-text-to-sql", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse filesFiles changed (2)
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657---base_model: microsoft/Phi-3-mini-4k-instructlibrary_name: transformersmodel_name: code-llama-3-1-8b-text-to-sqltags:- generated_from_trainer- trl- sftlicence: license---
# Model Card for code-llama-3-1-8b-text-to-sql
This model is a fine-tuned version of [microsoft/Phi-3-mini-4k-instruct](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct).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="manoj345/code-llama-3-1-8b-text-to-sql", 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.12.1- Transformers: 4.46.2- Pytorch: 2.6.0+cu124- Datasets: 3.1.0- Tokenizers: 0.20.3
## 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:0c4b4ac927ea147025758f067f248b4f273c4fe2fb33e484201f4d2497b0603bsize 6307123version https://git-lfs.github.com/spec/v1oid sha256:8849e9bcbc989a126bbb3d3bf89e170acfdff94a4dc8d4ff227d0bf2de50a168size 6655
README.mdAdded+57
runs/May08_10-34-16_2900a2276cca/events.out.tfevents.1746700498.2900a2276cca.981.0+2-2