Views
No views yet
llama.cpp.| File | Size | Effective bits/weight | vs f16 |
|---|---|---|---|
phi3-text-to-sql-Q4_K_M.gguf ⭐ recommended | 2.40 GB | 5.01 | −68.6% (3.2× smaller) |
phi3-text-to-sql-Q5_K_M.gguf | 2.76 GB | 5.76 | −64.0% (2.8× smaller) |
Note: "Q4" K-quants average ~5 effective bits/weight (embeddings and some tensors stay higher-precision), so the file is larger than a literal 4-bit×params calculation.
Q4_K_M. On this task it matched Q5_K_M on quality while being smaller and faster.llama-bench, build 9637:| Model | Prompt processing (pp256) | Token generation (tg64) |
|---|---|---|
| Q4_K_M | 91.4 tok/s | 20.1 tok/s |
| Q5_K_M | 59.6 tok/s | 18.5 tok/s |
| Model | Execution-match | Valid SQL |
|---|---|---|
| Q4_K_M | 75.0% | 100% |
| Q5_K_M | 75.0% | 100% |
1# CLI
2llama-cli -m phi3-text-to-sql-Q4_K_M.gguf -p "<|user|>\n<schema + question><|end|>\n<|assistant|>\n" -n 150 --temp 0
3
4# Server (OpenAI-compatible)
5llama-server -m phi3-text-to-sql-Q4_K_M.gguf -c 2048 -t 14 --port 8080