GGUF
text-to-sql
lora
conversational
How to use from
Pi
Start the llama.cpp server
# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama serve -hf islao2/tiny-sql-GGUF:Q8_0
Configure the model in Pi
# Install Pi:
npm install -g @earendil-works/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
  "providers": {
    "llama-cpp": {
      "baseUrl": "http://localhost:8080/v1",
      "api": "openai-completions",
      "apiKey": "none",
      "models": [
        {
          "id": "islao2/tiny-sql-GGUF:Q8_0"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
Quick Links

tiny-sql (GGUF, Q8_0)

Qwen2.5-Coder-1.5B-Instruct fine-tuned with LoRA on 30,000 SQLite-executable examples from gretelai/synthetic_text_to_sql, to turn English questions into SQLite queries.

Execution accuracy on 499 held-out test questions (same prompt, greedy decoding):

Model Accuracy
Qwen2.5-Coder-1.5B-Instruct (base) 55.1%
tiny-sql 1.5B (this model) 69.5%
Qwen2.5-Coder-7B-Instruct 61.3%

Demo: https://huggingface.co/spaces/islao2/tiny-sql

Prompt format: a system message asking for a single SQLite query, then a user message Schema:\n<CREATE TABLE ...>\n\nQuestion: <question>.

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

8-bit

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

Model tree for islao2/tiny-sql-GGUF

Adapter
(224)
this model

Dataset used to train islao2/tiny-sql-GGUF