GGUF
text-to-sql
lora
conversational

tiny-sql (GGUF, Q8_0)

Qwen2.5-Coder-1.5B-Instruct fine-tuned with LoRA on 30,000 SQLite-executable examples from gretelai/synthetic_text_to_sql, to turn English questions into SQLite queries.

Execution accuracy on 499 held-out test questions (same prompt, greedy decoding):

Model Accuracy
Qwen2.5-Coder-1.5B-Instruct (base) 55.1%
tiny-sql 1.5B (this model) 69.5%
Qwen2.5-Coder-7B-Instruct 61.3%

Demo: https://huggingface.co/spaces/islao2/tiny-sql

Prompt format: a system message asking for a single SQLite query, then a user message Schema:\n<CREATE TABLE ...>\n\nQuestion: <question>.

Downloads last month
58
GGUF
Model size
2B params
Architecture
qwen2
Hardware compatibility
Log In to add your hardware

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for islao2/tiny-sql-GGUF

Adapter
(219)
this model

Dataset used to train islao2/tiny-sql-GGUF