Instructions to use Krsna444/text2sql-hinglish-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Krsna444/text2sql-hinglish-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen2.5-Coder-3B-Instruct-bnb-4bit") model = PeftModel.from_pretrained(base_model, "Krsna444/text2sql-hinglish-lora") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Desktop
|
Download checkpoints/README.md from Krsna444/text2sql-hinglish-lora: direct link, hf CLI and curl.
- Browser
- Download file 1.51 kB
-
https://huggingface.co/Krsna444/text2sql-hinglish-lora/resolve/main/checkpoints/README.md
- Command line
-
hf download hf://Krsna444/text2sql-hinglish-lora/checkpoints/README.md
-
curl -L -o README.md https://huggingface.co/Krsna444/text2sql-hinglish-lora/resolve/main/checkpoints/README.md
1.51 kB
metadata
base_model: unsloth/Qwen2.5-Coder-3B-Instruct-bnb-4bit
library_name: transformers
model_name: checkpoints
tags:
- generated_from_trainer
- unsloth
- sft
- trl
licence: license
Model Card for checkpoints
This model is a fine-tuned version of unsloth/Qwen2.5-Coder-3B-Instruct-bnb-4bit. It has been trained using TRL.
Quick start
from 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="None", 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.23.1
- Transformers: 5.5.0
- Pytorch: 2.6.0+cu124
- Datasets: 4.3.0
- Tokenizers: 0.22.2
Citations
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{\'e}dec},
year = 2020,
journal = {GitHub repository},
publisher = {GitHub},
howpublished = {\url{https://github.com/huggingface/trl}}
}