Instructions to use SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf", filename="Qwen2.5-Coder-1.5B-Instruct.Q4_K_M.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf with 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 SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-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 SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-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 SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-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 SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf:Q4_K_M
Use Docker
docker model run hf.co/SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf with Ollama:
ollama run hf.co/SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf:Q4_K_M
- Unsloth Studio
How to use SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf to start chatting
- Pi
How to use SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf with Docker Model Runner:
docker model run hf.co/SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf:Q4_K_M
- Lemonade
How to use SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf:Q4_K_M
Run and chat with the model
lemonade run user.qwen2.5-coder-1.5b-t2sql-gguf-Q4_K_M
List all available models
lemonade list
SQLCoder โ Text2SQL on a small LLM
Fine-tune a small open LLM (Qwen2.5-Coder-1.5B, โค 3B) to turn natural-language questions into executable SQLite queries โ the engine for a fintech chatbot that lets non-technical teams pull data without writing SQL.
The whole project is built around free resources: training on a Google Colab T4, inference on an ordinary laptop CPU via a quantized GGUF served through Ollama โ no GPU required to run it. A LoRA adapter (~1% of parameters trained) sits on top of the frozen base model and is exported to a ~1 GB GGUF for local use.
- What it does: given a database schema (DDL) + a question, it returns one runnable SQLite query.
- What it's for: a data-access chatbot โ plain English in, executable SQL out.
Result of the fine-tune
Evaluated on 200 held-out test examples, greedy decoding, identical prompts for both models.
The numbers below are the final max_new_tokens=512 run (Result/*_preds_512.json).
| Model | Valid rate | Executable rate |
|---|---|---|
| Baseline (no fine-tune) | 99.0% | 42.5% |
| Fine-tuned (LoRA, 512-tok) | 99.5% | 75.5% |
| Gold queries (ceiling) | 100.0% | 99.5% |
Fine-tuning raised the executable-query rate from 42.5% โ 75.5% (+33 pp absolute, +78% relative), recovering roughly half the gap to the gold ceiling.
Using the model (Ollama)
The published artifacts on the Hugging Face Hub:
| Artifact | Repo | Use |
|---|---|---|
| Quantized GGUF | SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf |
local CPU inference |
| LoRA adapter | SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-lora |
GPU / further training |
Fastest path โ pull straight from the Hub
Ollama downloads the GGUF for you, no manual steps:
ollama run hf.co/SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf
Recommended โ build with the baked-in system prompt
This applies the Text2SQL system prompt and temperature 0 from report/Modelfile,
so you get deterministic, prompt-correct output:
# 1. download just the GGUF (~1 GB)
huggingface-cli download SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf \
--include "*.gguf" --local-dir ./gguf
# 2. build a local Ollama model from the Modelfile
ollama create t2sql -f report/Modelfile
# 3. run it
ollama run t2sql
You then also get an OpenAI-compatible HTTP API on localhost:11434. Prompt it with the schema DDL
followed by the question (same order used in training).
Compute requirements
To run it (inference) โ no GPU needed:
| Resource | Minimum | Comfortable |
|---|---|---|
| RAM | 4 GB free | 8 GB |
| Disk | 2 GB | 5 GB |
| CPU | any x86-64 with AVX2, 2 cores | 4โ8 cores (Apple Silicon works natively) |
| GPU | none | optional (llama.cpp offloads layers if present) |
- Downloads last month
- 360
4-bit
Model tree for SkibidiBreaddd/qwen2.5-coder-1.5b-t2sql-gguf
Base model
Qwen/Qwen2.5-1.5B