Instructions to use jk200201/qwen2.5-coder-7b-bird-cot-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use jk200201/qwen2.5-coder-7b-bird-cot-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="jk200201/qwen2.5-coder-7b-bird-cot-GGUF", filename="qwen2.5-coder-7b-bird-cot-Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use jk200201/qwen2.5-coder-7b-bird-cot-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 jk200201/qwen2.5-coder-7b-bird-cot-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf jk200201/qwen2.5-coder-7b-bird-cot-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 jk200201/qwen2.5-coder-7b-bird-cot-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf jk200201/qwen2.5-coder-7b-bird-cot-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 jk200201/qwen2.5-coder-7b-bird-cot-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf jk200201/qwen2.5-coder-7b-bird-cot-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 jk200201/qwen2.5-coder-7b-bird-cot-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf jk200201/qwen2.5-coder-7b-bird-cot-GGUF:Q4_K_M
Use Docker
docker model run hf.co/jk200201/qwen2.5-coder-7b-bird-cot-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use jk200201/qwen2.5-coder-7b-bird-cot-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jk200201/qwen2.5-coder-7b-bird-cot-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jk200201/qwen2.5-coder-7b-bird-cot-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jk200201/qwen2.5-coder-7b-bird-cot-GGUF:Q4_K_M
- Ollama
How to use jk200201/qwen2.5-coder-7b-bird-cot-GGUF with Ollama:
ollama run hf.co/jk200201/qwen2.5-coder-7b-bird-cot-GGUF:Q4_K_M
- Unsloth Studio
How to use jk200201/qwen2.5-coder-7b-bird-cot-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 jk200201/qwen2.5-coder-7b-bird-cot-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 jk200201/qwen2.5-coder-7b-bird-cot-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for jk200201/qwen2.5-coder-7b-bird-cot-GGUF to start chatting
- Pi
How to use jk200201/qwen2.5-coder-7b-bird-cot-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jk200201/qwen2.5-coder-7b-bird-cot-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": "jk200201/qwen2.5-coder-7b-bird-cot-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use jk200201/qwen2.5-coder-7b-bird-cot-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 jk200201/qwen2.5-coder-7b-bird-cot-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 jk200201/qwen2.5-coder-7b-bird-cot-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use jk200201/qwen2.5-coder-7b-bird-cot-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jk200201/qwen2.5-coder-7b-bird-cot-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 "jk200201/qwen2.5-coder-7b-bird-cot-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 jk200201/qwen2.5-coder-7b-bird-cot-GGUF with Docker Model Runner:
docker model run hf.co/jk200201/qwen2.5-coder-7b-bird-cot-GGUF:Q4_K_M
- Lemonade
How to use jk200201/qwen2.5-coder-7b-bird-cot-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull jk200201/qwen2.5-coder-7b-bird-cot-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.qwen2.5-coder-7b-bird-cot-GGUF-Q4_K_M
List all available models
lemonade list
Qwen2.5-Coder-7B BIRD CoT (Text-to-SQL) GGUF
GGUF quantizations of jk200201/qwen2.5-coder-7b-bird-cot, a 7B text-to-SQL model that reasons step by step over a database schema and then writes the SQL. Runs locally on CPU or a single consumer GPU with llama.cpp or Ollama.
On BIRD dev (realistic, messy schemas, the harder text-to-SQL benchmark) the full-precision model reaches 52.1% greedy result accuracy and 58.5% with self-consistency (Best-of-N, K=8). With self-consistency it matches DeepSeek V4-Pro (1.6T parameters) at roughly 0.4% of the size, running locally.
Files
| File | Quant | Size | Notes |
|---|---|---|---|
qwen2.5-coder-7b-bird-cot-Q4_K_M.gguf |
Q4_K_M | 4.4 GB | Recommended. Best size/quality trade-off. |
qwen2.5-coder-7b-bird-cot-Q5_K_M.gguf |
Q5_K_M | 5.1 GB | Higher fidelity, slightly larger. |
qwen2.5-coder-7b-bird-cot-Q8_0.gguf |
Q8_0 | 7.6 GB | Near lossless. |
qwen2.5-coder-7b-bird-cot-f16.gguf |
F16 | 15 GB | Full precision reference. |
Start with Q4_K_M. Move up to Q5_K_M or Q8_0 if you have the memory and want to close the small accuracy gap.
Quick start (Ollama)
# Download the Q4_K_M file, then from the same directory:
ollama create bird-cot -f Modelfile
ollama run bird-cot
Modelfile:
FROM ./qwen2.5-coder-7b-bird-cot-Q4_K_M.gguf
TEMPLATE """{{ if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}{{ if .Prompt }}<|im_start|>user
{{ .Prompt }}<|im_end|>
{{ end }}<|im_start|>assistant
{{ .Response }}<|im_end|>
"""
SYSTEM """You are an expert SQLite query writer. Reason step by step about the schema and the question, then output the final query in a fenced sql code block."""
PARAMETER temperature 0
PARAMETER num_ctx 8192
PARAMETER stop "<|im_start|>"
PARAMETER stop "<|im_end|>"
Then send a schema and a question:
Given the database schema and question, work out the correct SQLite query step by step.
Database Schema:
CREATE TABLE singer (Singer_ID INT, Name TEXT, Age INT);
Question: How many singers are older than 40?
Think step by step, then give the final answer in a fenced sql block.
The model returns its reasoning followed by a fenced SQL block. Take the last SQL block as the query.
Quick start (llama.cpp)
./llama-cli -m qwen2.5-coder-7b-bird-cot-Q4_K_M.gguf -no-cnv --temp 0 -n 512 \
-p $'<|im_start|>system\nYou are an expert SQLite query writer. Reason step by step about the schema and the question, then output the final query in a fenced sql code block.<|im_end|>\n<|im_start|>user\nGiven the database schema and question, work out the correct SQLite query step by step.\n\nDatabase Schema:\nCREATE TABLE singer (Singer_ID INT, Name TEXT, Age INT);\n\nQuestion: How many singers are older than 40?\n\nThink step by step, then give the final answer in a fenced sql block.<|im_end|>\n<|im_start|>assistant\n'
Results: BIRD dev (execution result accuracy)
All models use a single chain-of-thought sample unless noted, so the comparison is like for like.
| Model | Params | Result accuracy |
|---|---|---|
| Base Qwen2.5-Coder-7B-Instruct | 7B | 27.0% |
| This model, greedy | 7B | 52.1% |
| This model, self-consistency (K=8) | 7B | 58.5% |
| DeepSeek V4-Pro | 1.6T | 58.7% |
| GLM 5.2 | 744B | 63.0% |
Result accuracy is the fraction of queries whose SQL executes to the same rows as the gold query (BIRD's official execution metric). The reported figures are for the full-precision model. Quantization retains most of that accuracy; Q4_K_M is the recommended balance.
Training
Reasoning distillation (CoT-SFT). A strong teacher (Qwen3-Coder-480B) generated step-by-step CoT solutions on BIRD train. Only execution-verified-correct chains were kept (5,593 examples), then supervised fine-tuned into the 7B. Distilling the teacher's reasoning generalized across BIRD's cross-domain dev databases better than distilling SQL answers directly.
Config: QLoRA (4-bit NF4, LoRA rank 32, alpha 64), 2 epochs, learning rate 2e-4 cosine, max sequence length 8192.
Model family
| Artifact | Repo |
|---|---|
| GGUF (this repo) | jk200201/qwen2.5-coder-7b-bird-cot-GGUF |
| Merged model | jk200201/qwen2.5-coder-7b-bird-cot |
| LoRA adapter | jk200201/qwen2.5-coder-7b-bird-cot-lora |
| Training data | jk200201/bird-cot-sft |
Limitations
- Tuned for BIRD-style analytic SQL over realistic schemas. Unusual dialects or domains may need adaptation. It emits SQLite dialect.
- Greedy (52.1%) is the deployable single-shot number. The 58.5% figure needs K=8 self-consistency (roughly 8x inference).
- This is a 7B model. Review generated SQL before running it on production data.
Acknowledgements
Base model: Qwen2.5-Coder by Alibaba Qwen. Teacher: Qwen3-Coder-480B. Benchmark: BIRD (bird-bench.github.io).
- Downloads last month
- 437
4-bit
5-bit
8-bit
16-bit
Model tree for jk200201/qwen2.5-coder-7b-bird-cot-GGUF
Base model
Qwen/Qwen2.5-7B