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 build-small-hackathon/lfed-qwen2.5-coder-7b-sql-gguf:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf build-small-hackathon/lfed-qwen2.5-coder-7b-sql-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf build-small-hackathon/lfed-qwen2.5-coder-7b-sql-gguf:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf build-small-hackathon/lfed-qwen2.5-coder-7b-sql-gguf:Q4_K_M
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf build-small-hackathon/lfed-qwen2.5-coder-7b-sql-gguf:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf build-small-hackathon/lfed-qwen2.5-coder-7b-sql-gguf:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf build-small-hackathon/lfed-qwen2.5-coder-7b-sql-gguf:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf build-small-hackathon/lfed-qwen2.5-coder-7b-sql-gguf:Q4_K_M
Use Docker
docker model run hf.co/build-small-hackathon/lfed-qwen2.5-coder-7b-sql-gguf:Q4_K_M
Quick Links

LFED โ€” Qwen2.5-Coder-7B Text-to-SQL (GGUF)

Fine-tuned on Q4_K_M for duckdb SQL generation from natural-language questions about school district data (enrollment, attendance, chronic absenteeism).

Base model: Qwen2.5-Coder-7B-Instruct Fine-tuning: Unsloth QLoRA (r=16, alpha=16) on 1,200 synthetic NLโ†’SQL pairs Format: GGUF Q4_K_M (4.4 GB) Use with: llama.cpp, Ollama, LM Studio

Usage

from llama_cpp import Llama

llm = Llama(
    model_path="lfed-qwen2.5-coder-7b-sql-Q4_K_M.gguf",
    n_ctx=4096,
)

Schema

  • enrollment(school_year, school_name, grade_level, student_count)
  • attendance(student_id, school_name, school_year, absence_count, is_chronically_absent)
Downloads last month
356
GGUF
Model size
8B params
Architecture
qwen2
Hardware compatibility
Log In to add your hardware

4-bit

16-bit

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