Team Ai
Modelpublic

StellaYoon/data-sql-7b-oracle-postgresql-v2

sourceHugging Faceupdated 10mo agoView on Hugging Face
1likes44downloads
README.md58 linesDownload Raw Back to root
1---2base_model: Chinastark/DatA-SQL-7B3library_name: transformers4model_name: data-sql-7b-oracle-postgresql-v25tags:6- generated_from_trainer7- sft8- trl9licence: license10---11 12# Model Card for data-sql-7b-oracle-postgresql-v213 14This model is a fine-tuned version of [Chinastark/DatA-SQL-7B](https://huggingface.co/Chinastark/DatA-SQL-7B).15It has been trained using [TRL](https://github.com/huggingface/trl).16 17## Quick start18 19```python20from transformers import pipeline21 22question = "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?"23generator = pipeline("text-generation", model="StellaYoon/data-sql-7b-oracle-postgresql-v2", 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 31 32 33This model was trained with SFT.34 35### Framework versions36 37- TRL: 0.26.238- Transformers: 4.57.339- Pytorch: 2.9.0+cu12640- Datasets: 4.4.241- 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```