Unofficial GGUF quantization of Qwen/Qwen2.5-0.5B-Instruct
for llama.cpp, produced with an importance matrix.
This is not a Qwen release and is not endorsed by or affiliated with Alibaba / the Qwen team.
| File | Bits/weight | Size | Quality |
|---|---|---|---|
qwen2.5-0.5b-instruct-iq1_s.gguf |
1.5625 bpw | 316 MB (295.5 MiB) | coherent, usable for testing |
SHA256: 9ac157e45563bbbea7413e4679a5ef3f9719f6b8f1174c262a945f09dc5ec130
(also in CHECKSUMS.txt)
Q4_K_M. Do not use it where a wrong answer is expensive.llama-quantize silently falls back to higher-precision
types for 144 of 290 tensors (attention/FFN shapes that IQ types cannot express at
256-wide rows). The effective rate is ~5.0 bpw. That is why this file is 316 MB rather
than ~85 MB. It is still the smallest file of this model that produces coherent text.DISCLAIMER.md. You are
responsible for how you use it.Measured locally with llama-perplexity / llama-bench, llama.cpp build 50f068f,
RTX 5060 Laptop (8 GB), full GPU offload:
| Quant | Size | PPL (sample¹) | Text quality |
|---|---|---|---|
| Q4_K_M | 398 MB | 1.026 | coherent |
| Q4_0 | 352 MB | 1.024 | coherent |
| IQ1_S (this file) | 316 MB | 1.121 | coherent |
| TQ1_0 | 315 MB | 2502 | unusable |
| Q2_0 | 251 MB | 3.3 M | unusable |
| Q1_0 | 201 MB | 18.7 M | word salad |
| Q1_0 (all tensors, incl. embeddings) | 76 MB | 5.5 M | word salad |
¹ The perplexity sample was a short repeated plain-text passage, so absolute values are not comparable to published WikiText numbers. Only the relative ordering is meaningful. The 1-bit Q1_0 rows are the point: raw sign-only 1-bit quantization destroys a post-training model, while IQ1_S with an importance matrix survives.
Speed (this file, 0.5B, full offload): ~25,900 tok/s prompt, ~566 tok/s generation.
# one-off chat
llama-cli -m qwen2.5-0.5b-instruct-iq1_s.gguf -p "Explain quantization in one sentence." -n 128
# OpenAI-compatible server + web UI at http://127.0.0.1:8080
llama-server -m qwen2.5-0.5b-instruct-iq1_s.gguf \
--ctx-size 32768 --n-gpu-layers 999 --jinja --host 127.0.0.1 --port 8080
from llama_cpp import Llama
llm = Llama(model_path="qwen2.5-0.5b-instruct-iq1_s.gguf", n_ctx=4096, n_gpu_layers=-1)
print(llm.create_chat_completion(
messages=[{"role": "user", "content": "Hello!"}],
max_tokens=128,
)["choices"][0]["message"]["content"])
cat > Modelfile <<'EOF'
FROM ./qwen2.5-0.5b-instruct-iq1_s.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|>
"""
PARAMETER stop "<|im_end|>"
EOF
ollama create qwen2.5-0.5b-iq1s -f Modelfile
Use --jinja with llama-server so the chat template embedded in the GGUF is applied;
without it you get raw completion formatting.
See PROVENANCE.md for exact commands, the importance matrix, and the verification
steps. Short version: fp16 safetensors → GGUF fp16 → llama-quantize --imatrix ... IQ1_S.
<|im_start|> / <|im_end|>)LICENSE.If you redistribute this file, keep LICENSE, this attribution, and a statement of the
changes — that is what Apache 2.0 §4 asks of you.
This model is provided as is, without warranty of any kind, express or implied,
including but not limited to the warranties of merchantability, fitness for a particular
purpose, and non-infringement. The author accepts no liability for any use, misuse,
or consequence of using this model or its outputs, to the maximum extent permitted by
applicable law. Outputs may be wrong, biased, offensive, or fabricated. Do not use this
model for medical, legal, financial, safety-critical, or any other decision where an
error could cause harm. Full text in DISCLAIMER.md.