Views
No views yet
1from llama_cpp import Llama
2
3model = Llama("llama3.2-3b-sql-expert-1-epoch.gguf")
4
5prompt = """### Schema:
6CREATE TABLE employees (id INT PRIMARY KEY, name VARCHAR, salary DECIMAL, department_id INT);
7
8### Question:
9Find the average salary per department.
10
11### SQL Query:
12"""
13
14output = model(prompt, max_tokens=64)
15print(output)1@article{llama3.2-3B-SQL-Expert,
2 author = {Azzedde},
3 title = {Llama3.2-3B-SQL-Expert: An SQL Query Generation Model (GGUF)},
4 year = {2025},
5 url = {https://huggingface.co/Azzedde/llama3.2-3b-sql-expert-1-epoch}
6}