Downloads · 30 days
6
7% of all-time downloads
Gansaw98/qwen2.5-coder-7b-text2sql-spider
qwen2.5-coder-7b-text2sql-spider is a machine learning model from Gansaw98. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft.
LoRA adapter fine-tuned on the Spider benchmark.
Downloads · 30 days
6
7% of all-time downloads
All-time downloads
81
Public
Repo size
173 MB
Likes
0
Public
Click a slice to open those files.
.safetensors162 MB · 91%
From the Hugging Face model README
LoRA adapter fine-tuned on the Spider benchmark.
GitHub: text-to-sql-spider | Demo: Gradio Space
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
import torch
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-Coder-7B-Instruct")
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-7B-Instruct", torch_dtype=torch.float16)
model = PeftModel.from_pretrained(base, "Gansaw98/qwen2.5-coder-7b-text2sql-spider")