How to use from
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 liodon-ai/sqlcoder-7b-2-imatrix-GGUF:
# Run inference directly in the terminal:
llama cli -hf liodon-ai/sqlcoder-7b-2-imatrix-GGUF:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf liodon-ai/sqlcoder-7b-2-imatrix-GGUF:
# Run inference directly in the terminal:
llama cli -hf liodon-ai/sqlcoder-7b-2-imatrix-GGUF:
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf liodon-ai/sqlcoder-7b-2-imatrix-GGUF:
# Run inference directly in the terminal:
./build/bin/llama cli -hf liodon-ai/sqlcoder-7b-2-imatrix-GGUF:
Use Docker
docker model run hf.co/liodon-ai/sqlcoder-7b-2-imatrix-GGUF:
Quick Links

sqlcoder-7b-2 β€” iMatrix GGUF

GGUF quantizations of defog/sqlcoder-7b-2, published by Liodon AI.

Quick Start

llama.cpp

llama-cli -hf liodon-ai/sqlcoder-7b-2-imatrix-GGUF:Q4_K_M

Ollama

ollama run hf.co/liodon-ai/sqlcoder-7b-2-imatrix-GGUF:Q4_K_M

LM Studio / Jan β€” search liodon-ai/sqlcoder-7b-2-imatrix-GGUF and pick your quant.

Quants

Quant Size VRAM est. Notes
IQ2_M 2.36 GB ~3 GB 2-bit, iMatrix β€” smallest usable
IQ3_M 3.11 GB ~4 GB 3-bit, iMatrix β€” great quality/size tradeoff
IQ4_XS 3.62 GB ~4 GB 4-bit extra-small, iMatrix
Q4_K_M 4.08 GB ~5 GB 4-bit, iMatrix-calibrated (recommended)
Q5_K_M 4.78 GB ~6 GB 5-bit, iMatrix-calibrated
Q6_K 5.53 GB ~6 GB 6-bit, iMatrix-calibrated, near-lossless
Q8_0 7.16 GB ~8 GB 8-bit, essentially lossless

What is iMatrix?

Standard quantization treats all weights equally. iMatrix runs 128 calibration chunks through the full-precision model to find which weights matter most, then allocates more precision where it counts. At Q2/Q3/Q4 this means noticeably better coherence and instruction-following β€” same file size, better output.

Calibration: 2M tokens of WikiText-103.

Also see plain (non-iMatrix) quants: liodon-ai/sqlcoder-7b-2-GGUF

Source

Citation

@misc{liodonai_sqlcoder_7b_2_imatrix_gguf,
  title        = {sqlcoder-7b-2 β€” iMatrix GGUF},
  author       = {{Liodon AI}},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/liodon-ai/sqlcoder-7b-2-imatrix-GGUF}},
  note         = {iMatrix GGUF quantization of defog/sqlcoder-7b-2}
}

Quantized by Liodon AI

Downloads last month
174
GGUF
Model size
7B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

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

Model tree for liodon-ai/sqlcoder-7b-2-imatrix-GGUF

Quantized
(28)
this model