πŸ“‹ Model Description


base_model: Qwen/Qwen2-0.5B-Instruct inference: false language:
  • en
library_name: gguf license: apache-2.0 pipeline_tag: text-generation quantized_by: legraphista tags:
  • chat
  • quantized
  • GGUF
  • imatrix
  • quantization
  • imat
  • imatrix
  • static
  • 16bit
  • 8bit
  • 6bit
  • 5bit
  • 4bit
  • 3bit
  • 2bit
  • 1bit

Qwen2-0.5B-Instruct-IMat-GGUF

Llama.cpp imatrix quantization of Qwen/Qwen2-0.5B-Instruct

Original Model: Qwen/Qwen2-0.5B-Instruct
Original dtype: BF16 (bfloat16)
Quantized by: llama.cpp b3091
IMatrix dataset: here

- IMatrix - Common Quants - All Quants - Simple chat template - Chat template with system prompt - Llama.cpp - Why is the IMatrix not applied everywhere? - How do I merge a split GGUF?

Files

IMatrix

Status: βœ… Available Link: here

Common Quants

FilenameQuant typeFile SizeStatusUses IMatrixIs Split
Qwen2-0.5B-Instruct.Q80.ggufQ80531.07MBβœ… Availableβšͺ Static
πŸ“¦ No | Qwen2-0.5B-Instruct.Q6K.gguf | Q6K | 505.73MB | βœ… Available | βšͺ Static | πŸ“¦ No | Qwen2-0.5B-Instruct.Q4K.gguf | Q4K | 397.81MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-0.5B-Instruct.Q3K.gguf | Q3K | 355.46MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-0.5B-Instruct.Q2K.gguf | Q2K | 338.60MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No

All Quants

FilenameQuant typeFile SizeStatusUses IMatrixIs Split
Qwen2-0.5B-Instruct.BF16.ggufBF16994.15MBβœ… Availableβšͺ Static
πŸ“¦ No | Qwen2-0.5B-Instruct.FP16.gguf | F16 | 994.15MB | βœ… Available | βšͺ Static | πŸ“¦ No | Qwen2-0.5B-Instruct.Q80.gguf | Q80 | 531.07MB | βœ… Available | βšͺ Static | πŸ“¦ No | Qwen2-0.5B-Instruct.Q6K.gguf | Q6K | 505.73MB | βœ… Available | βšͺ Static | πŸ“¦ No | Qwen2-0.5B-Instruct.Q5K.gguf | Q5K | 420.08MB | βœ… Available | βšͺ Static | πŸ“¦ No | Qwen2-0.5B-Instruct.Q5KS.gguf | Q5K_S | 412.71MB | βœ… Available | βšͺ Static | πŸ“¦ No | Qwen2-0.5B-Instruct.Q4K.gguf | Q4K | 397.81MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-0.5B-Instruct.Q4KS.gguf | Q4K_S | 385.47MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-0.5B-Instruct.IQ4NL.gguf | IQ4NL | 352.67MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-0.5B-Instruct.IQ4XS.gguf | IQ4XS | 349.40MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-0.5B-Instruct.Q3K.gguf | Q3K | 355.46MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-0.5B-Instruct.Q3KL.gguf | Q3K_L | 369.36MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-0.5B-Instruct.Q3KS.gguf | Q3K_S | 338.26MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-0.5B-Instruct.IQ3M.gguf | IQ3M | 342.75MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-0.5B-Instruct.IQ3S.gguf | IQ3S | 338.60MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-0.5B-Instruct.IQ3XS.gguf | IQ3XS | 338.60MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-0.5B-Instruct.IQ3XXS.gguf | IQ3XXS | 333.70MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-0.5B-Instruct.Q2K.gguf | Q2K | 338.60MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-0.5B-Instruct.Q2KS.gguf | Q2K_S | 331.05MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-0.5B-Instruct.IQ2M.gguf | IQ2M | 328.59MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-0.5B-Instruct.IQ2S.gguf | IQ2S | 325.73MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-0.5B-Instruct.IQ2XS.gguf | IQ2XS | 324.41MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-0.5B-Instruct.IQ2XXS.gguf | IQ2XXS | 321.55MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-0.5B-Instruct.IQ1M.gguf | IQ1M | 317.97MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-0.5B-Instruct.IQ1S.gguf | IQ1S | 315.83MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No

Downloading using huggingface-cli

If you do not have hugginface-cli installed:
pip install -U "huggingface_hub[cli]"
Download the specific file you want:
huggingface-cli download legraphista/Qwen2-0.5B-Instruct-IMat-GGUF --include "Qwen2-0.5B-Instruct.Q8_0.gguf" --local-dir ./
If the model file is big, it has been split into multiple files. In order to download them all to a local folder, run:
huggingface-cli download legraphista/Qwen2-0.5B-Instruct-IMat-GGUF --include "Qwen2-0.5B-Instruct.Q8_0/*" --local-dir ./

see FAQ for merging GGUF's


Inference

Simple chat template

<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
{userprompt}<|imend|>
<|im_start|>assistant
{assistantresponse}<|imend|>
<|im_start|>user
{nextuserprompt}<|im_end|>

Chat template with system prompt

<|im_start|>system
{systemprompt}<|imend|>
<|im_start|>user
{userprompt}<|imend|>
<|im_start|>assistant
{assistantresponse}<|imend|>
<|im_start|>user
{nextuserprompt}<|im_end|>

Llama.cpp

llama.cpp/main -m Qwen2-0.5B-Instruct.Q8_0.gguf --color -i -p "prompt here (according to the chat template)"

FAQ

Why is the IMatrix not applied everywhere?

According to this investigation, it appears that lower quantizations are the only ones that benefit from the imatrix input (as per hellaswag results).

How do I merge a split GGUF?

  1. Make sure you have gguf-split available
- To get hold of gguf-split, navigate to https://github.com/ggerganov/llama.cpp/releases - Download the appropriate zip for your system from the latest release - Unzip the archive and you should be able to find gguf-split
  1. Locate your GGUF chunks folder (ex: Qwen2-0.5B-Instruct.Q80)
  2. Run gguf-split --merge Qwen2-0.5B-Instruct.Q80/Qwen2-0.5B-Instruct.Q80-00001-of-XXXXX.gguf Qwen2-0.5B-Instruct.Q80.gguf
- Make sure to point gguf-split to the first chunk of the split.

Got a suggestion? Ping me @legraphista!

πŸ“‚ GGUF File List

πŸ“ Filename πŸ“¦ Size ⚑ Download
Qwen2-0.5B-Instruct.BF16.gguf
Recommended LFS FP16
948.1 MB Download
Qwen2-0.5B-Instruct.FP16.gguf
LFS FP16
948.1 MB Download
Qwen2-0.5B-Instruct.IQ1_M.gguf
LFS
303.24 MB Download
Qwen2-0.5B-Instruct.IQ1_S.gguf
LFS
301.2 MB Download
Qwen2-0.5B-Instruct.IQ2_M.gguf
LFS Q2
313.37 MB Download
Qwen2-0.5B-Instruct.IQ2_S.gguf
LFS Q2
310.64 MB Download
Qwen2-0.5B-Instruct.IQ2_XS.gguf
LFS Q2
309.38 MB Download
Qwen2-0.5B-Instruct.IQ2_XXS.gguf
LFS Q2
306.65 MB Download
Qwen2-0.5B-Instruct.IQ3_M.gguf
LFS Q3
326.87 MB Download
Qwen2-0.5B-Instruct.IQ3_S.gguf
LFS Q3
322.92 MB Download
Qwen2-0.5B-Instruct.IQ3_XS.gguf
LFS Q3
322.92 MB Download
Qwen2-0.5B-Instruct.IQ3_XXS.gguf
LFS Q3
318.24 MB Download
Qwen2-0.5B-Instruct.IQ4_NL.gguf
LFS Q4
336.33 MB Download
Qwen2-0.5B-Instruct.IQ4_XS.gguf
LFS Q4
333.21 MB Download
Qwen2-0.5B-Instruct.Q2_K.gguf
LFS Q2
322.92 MB Download
Qwen2-0.5B-Instruct.Q2_K_S.gguf
LFS Q2
315.71 MB Download
Qwen2-0.5B-Instruct.Q3_K.gguf
LFS Q3
339 MB Download
Qwen2-0.5B-Instruct.Q3_K_L.gguf
LFS Q3
352.24 MB Download
Qwen2-0.5B-Instruct.Q3_K_S.gguf
LFS Q3
322.59 MB Download
Qwen2-0.5B-Instruct.Q4_K.gguf
LFS Q4
379.38 MB Download
Qwen2-0.5B-Instruct.Q4_K_S.gguf
LFS Q4
367.61 MB Download
Qwen2-0.5B-Instruct.Q5_K.gguf
LFS Q5
400.62 MB Download
Qwen2-0.5B-Instruct.Q5_K_S.gguf
LFS Q5
393.59 MB Download
Qwen2-0.5B-Instruct.Q6_K.gguf
LFS Q6
482.31 MB Download
Qwen2-0.5B-Instruct.Q8_0.gguf
LFS Q8
506.46 MB Download