Instructions to use vindows/qwen2.5-0.5b-text-to-sql-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use vindows/qwen2.5-0.5b-text-to-sql-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="vindows/qwen2.5-0.5b-text-to-sql-gguf", filename="qwen2.5-0.5b-text-to-sql-f16.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use vindows/qwen2.5-0.5b-text-to-sql-gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf vindows/qwen2.5-0.5b-text-to-sql-gguf:F16 # Run inference directly in the terminal: llama-cli -hf vindows/qwen2.5-0.5b-text-to-sql-gguf:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf vindows/qwen2.5-0.5b-text-to-sql-gguf:F16 # Run inference directly in the terminal: llama-cli -hf vindows/qwen2.5-0.5b-text-to-sql-gguf:F16
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 vindows/qwen2.5-0.5b-text-to-sql-gguf:F16 # Run inference directly in the terminal: ./llama-cli -hf vindows/qwen2.5-0.5b-text-to-sql-gguf:F16
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 vindows/qwen2.5-0.5b-text-to-sql-gguf:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf vindows/qwen2.5-0.5b-text-to-sql-gguf:F16
Use Docker
docker model run hf.co/vindows/qwen2.5-0.5b-text-to-sql-gguf:F16
- LM Studio
- Jan
- Ollama
How to use vindows/qwen2.5-0.5b-text-to-sql-gguf with Ollama:
ollama run hf.co/vindows/qwen2.5-0.5b-text-to-sql-gguf:F16
- Unsloth Studio new
How to use vindows/qwen2.5-0.5b-text-to-sql-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 vindows/qwen2.5-0.5b-text-to-sql-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 vindows/qwen2.5-0.5b-text-to-sql-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for vindows/qwen2.5-0.5b-text-to-sql-gguf to start chatting
- Pi new
How to use vindows/qwen2.5-0.5b-text-to-sql-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf vindows/qwen2.5-0.5b-text-to-sql-gguf:F16
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": "vindows/qwen2.5-0.5b-text-to-sql-gguf:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use vindows/qwen2.5-0.5b-text-to-sql-gguf with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf vindows/qwen2.5-0.5b-text-to-sql-gguf:F16
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 vindows/qwen2.5-0.5b-text-to-sql-gguf:F16
Run Hermes
hermes
- Docker Model Runner
How to use vindows/qwen2.5-0.5b-text-to-sql-gguf with Docker Model Runner:
docker model run hf.co/vindows/qwen2.5-0.5b-text-to-sql-gguf:F16
- Lemonade
How to use vindows/qwen2.5-0.5b-text-to-sql-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull vindows/qwen2.5-0.5b-text-to-sql-gguf:F16
Run and chat with the model
lemonade run user.qwen2.5-0.5b-text-to-sql-gguf-F16
List all available models
lemonade list
Qwen2.5-0.5B GGUF for Text-to-SQL (CPU Inference)
This is a GGUF format version optimized for CPU inference with llama.cpp.
Quick Links
- ๐ง LoRA Adapter: vindows/qwen2.5-0.5b-text-to-sql
- ๐ฅ Merged GPU Model: vindows/qwen2.5-0.5b-text-to-sql-merged
Model Details
- Format: GGUF f16 (float16 precision)
- File Size: 949MB
- Optimized For: CPU inference with llama.cpp
- Recommended RAM: 4GB+
Performance
Spider Benchmark (200 examples)
| Metric | Score |
|---|---|
| Exact Match | 0.00% |
| Normalized Match | 0.00% |
| Component Accuracy | 91.94% |
| Average Similarity | 21.78% |
Usage with llama.cpp
Installation
# Clone llama.cpp
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp
make
# Download the model
huggingface-cli download vindows/qwen2.5-0.5b-text-to-sql-gguf qwen2.5-0.5b-text-to-sql-f16.gguf
Run Inference
./llama-cli \
-m qwen2.5-0.5b-text-to-sql-f16.gguf \
-p "Convert the following natural language question to SQL:\n\nDatabase: concert_singer\nQuestion: How many singers do we have?\n\nSQL:" \
-n 128 \
--temp 0.1
Python Usage (llama-cpp-python)
pip install llama-cpp-python
from llama_cpp import Llama
# Load model
llm = Llama(
model_path="qwen2.5-0.5b-text-to-sql-f16.gguf",
n_ctx=2048,
n_threads=8
)
# Generate SQL
prompt = """Convert the following natural language question to SQL:
Database: concert_singer
Question: How many singers do we have?
SQL:"""
output = llm(prompt, max_tokens=128, temperature=0.1, stop=["\n\n"])
sql = output['choices'][0]['text'].strip()
print(sql)
Quantization Options
This model is provided in f16 format. For smaller file sizes with slight quality trade-off, you can quantize further:
# Quantize to Q4_K_M (recommended for most use cases)
./llama-quantize qwen2.5-0.5b-text-to-sql-f16.gguf qwen2.5-0.5b-text-to-sql-Q4_K_M.gguf Q4_K_M
# Quantize to Q8_0 (higher quality, larger size)
./llama-quantize qwen2.5-0.5b-text-to-sql-f16.gguf qwen2.5-0.5b-text-to-sql-Q8_0.gguf Q8_0
Files
qwen2.5-0.5b-text-to-sql-f16.gguf- F16 quantized model (949MB)
Limitations
See main model card for limitations.
License
Apache 2.0
- Downloads last month
- 38
16-bit