GGUF
English
sql
llama
unsloth
sft
conversational
How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf Azzedde/llama3.2-3b-sql-expert-1-epoch-gguf
# Run inference directly in the terminal:
llama cli -hf Azzedde/llama3.2-3b-sql-expert-1-epoch-gguf
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf Azzedde/llama3.2-3b-sql-expert-1-epoch-gguf
# Run inference directly in the terminal:
llama cli -hf Azzedde/llama3.2-3b-sql-expert-1-epoch-gguf
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf Azzedde/llama3.2-3b-sql-expert-1-epoch-gguf
# Run inference directly in the terminal:
./build/bin/llama cli -hf Azzedde/llama3.2-3b-sql-expert-1-epoch-gguf
Use Docker
docker model run hf.co/Azzedde/llama3.2-3b-sql-expert-1-epoch-gguf
Quick Links

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
27
GGUF
Model size
3B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

We're not able to determine the quantization variants.

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

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