GGUF
English
text-to-sql
sql
qwen2
conversational

text2sql-qwen2.5-coder-1.5b-gguf

Fine-tuned (QLoRA) text-to-SQL model, quantized to Q4_K_M GGUF for local use.

Prompt format (important)

System: You are a text-to-SQL assistant. Given a database schema and a question, reply with one valid SQL query and nothing else.

User: Schema: CREATE TABLE employees (id INTEGER, name TEXT, salary REAL)

Question: Who are the 3 highest paid employees?

Use temperature 0.

Results (held-out schemas)

model exact_match valid_sql
base X X
fine-tuned X X

Limitations

  • Trained mainly on simple, single-table queries (WikiSQL / Spider style).
  • Not evaluated by execution on real databases.
  • Review generated SQL before running it, and use a read-only connection.

Credits

Training data: b-mc2/sql-create-context (CC-BY-4.0). Base model: Qwen2.5-Coder-1.5B-Instruct.

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

4-bit

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

Model tree for ragul6606/text2sql-qwen2.5-coder-1.5b-gguf

Quantized
(199)
this model

Dataset used to train ragul6606/text2sql-qwen2.5-coder-1.5b-gguf