Model Card for Llama3.2-3B-SQL-Expert-1Epoch (GGUF)

Model Details

  • Model Name: Llama3.2-3B-SQL-Expert-1Epoch (GGUF)
  • Developer: Azzedine (GitHub: Azzedde)
  • Base Model: Meta-Llama-3.1-3B-Instruct
  • Format: GGUF
  • License: Apache 2.0
  • Language: English
  • Purpose: SQL query generation from natural language input

Model Sources

Use Cases

  • Generating SQL queries from natural language prompts
  • Assisting developers with database management
  • Supporting SQL education and analytics automation

Limitations

  • May generate suboptimal or incorrect SQL queries
  • Does not validate database schema relationships
  • Primarily supports English

How to Use

from llama_cpp import Llama  

model = Llama("llama3.2-3b-sql-expert-1-epoch.gguf")  

prompt = """### Schema:
CREATE TABLE employees (id INT PRIMARY KEY, name VARCHAR, salary DECIMAL, department_id INT);

### Question:
Find the average salary per department.

### SQL Query:
"""

output = model(prompt, max_tokens=64)  
print(output)

Training Details

  • Data: Public SQL datasets + synthetic SQL queries
  • Epochs: 1
  • Fine-tuned with: Unsloth
  • Hardware: Tesla T4

Citation

@article{llama3.2-3B-SQL-Expert,
  author    = {Azzedde},
  title     = {Llama3.2-3B-SQL-Expert: An SQL Query Generation Model (GGUF)},
  year      = {2025},
  url       = {https://huggingface.co/Azzedde/llama3.2-3b-sql-expert-1-epoch}
}
Downloads last month
28
GGUF
Model size
3.21B params
Architecture
llama
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.
The model cannot be deployed to the HF Inference API: The model has no library tag.

Model tree for Azzedde/llama3.2-3b-sql-expert-1-epoch-gguf

Quantized
(1)
this model

Dataset used to train Azzedde/llama3.2-3b-sql-expert-1-epoch-gguf