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>.
Qwen/Qwen2.5-Coder-1.5B-Instruct