πŸ“‹ Model Description


base_model: Qwen/Qwen2-1.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-1.5B-Instruct-IMat-GGUF

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

Original Model: Qwen/Qwen2-1.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-1.5B-Instruct.Q80.ggufQ801.65GBβœ… Availableβšͺ Static
πŸ“¦ No | Qwen2-1.5B-Instruct.Q6K.gguf | Q6K | 1.27GB | βœ… Available | βšͺ Static | πŸ“¦ No | Qwen2-1.5B-Instruct.Q4K.gguf | Q4K | 986.05MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-1.5B-Instruct.Q3K.gguf | Q3K | 824.18MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-1.5B-Instruct.Q2K.gguf | Q2K | 676.30MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No

All Quants

FilenameQuant typeFile SizeStatusUses IMatrixIs Split
Qwen2-1.5B-Instruct.BF16.ggufBF163.09GBβœ… Availableβšͺ Static
πŸ“¦ No | Qwen2-1.5B-Instruct.FP16.gguf | F16 | 3.09GB | βœ… Available | βšͺ Static | πŸ“¦ No | Qwen2-1.5B-Instruct.Q80.gguf | Q80 | 1.65GB | βœ… Available | βšͺ Static | πŸ“¦ No | Qwen2-1.5B-Instruct.Q6K.gguf | Q6K | 1.27GB | βœ… Available | βšͺ Static | πŸ“¦ No | Qwen2-1.5B-Instruct.Q5K.gguf | Q5K | 1.13GB | βœ… Available | βšͺ Static | πŸ“¦ No | Qwen2-1.5B-Instruct.Q5KS.gguf | Q5K_S | 1.10GB | βœ… Available | βšͺ Static | πŸ“¦ No | Qwen2-1.5B-Instruct.Q4K.gguf | Q4K | 986.05MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-1.5B-Instruct.Q4KS.gguf | Q4K_S | 940.31MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-1.5B-Instruct.IQ4NL.gguf | IQ4NL | 936.33MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-1.5B-Instruct.IQ4XS.gguf | IQ4XS | 895.73MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-1.5B-Instruct.Q3K.gguf | Q3K | 824.18MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-1.5B-Instruct.Q3KL.gguf | Q3K_L | 880.16MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-1.5B-Instruct.Q3KS.gguf | Q3K_S | 760.94MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-1.5B-Instruct.IQ3M.gguf | IQ3M | 776.66MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-1.5B-Instruct.IQ3S.gguf | IQ3S | 762.40MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-1.5B-Instruct.IQ3XS.gguf | IQ3XS | 731.70MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-1.5B-Instruct.IQ3XXS.gguf | IQ3XXS | 668.79MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-1.5B-Instruct.Q2K.gguf | Q2K | 676.30MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-1.5B-Instruct.Q2KS.gguf | Q2K_S | 640.13MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-1.5B-Instruct.IQ2M.gguf | IQ2M | 601.05MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-1.5B-Instruct.IQ2S.gguf | IQ2S | 563.81MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-1.5B-Instruct.IQ2XS.gguf | IQ2XS | 550.32MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-1.5B-Instruct.IQ2XXS.gguf | IQ2XXS | 511.01MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-1.5B-Instruct.IQ1M.gguf | IQ1M | 464.46MB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Qwen2-1.5B-Instruct.IQ1S.gguf | IQ1S | 436.52MB | βœ… 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-1.5B-Instruct-IMat-GGUF --include "Qwen2-1.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-1.5B-Instruct-IMat-GGUF --include "Qwen2-1.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-1.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-1.5B-Instruct.Q80)
  2. Run gguf-split --merge Qwen2-1.5B-Instruct.Q80/Qwen2-1.5B-Instruct.Q80-00001-of-XXXXX.gguf Qwen2-1.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-1.5B-Instruct.BF16.gguf
Recommended LFS FP16
2.88 GB Download
Qwen2-1.5B-Instruct.FP16.gguf
LFS FP16
2.88 GB Download
Qwen2-1.5B-Instruct.IQ1_M.gguf
LFS
442.94 MB Download
Qwen2-1.5B-Instruct.IQ1_S.gguf
LFS
416.3 MB Download
Qwen2-1.5B-Instruct.IQ2_M.gguf
LFS Q2
573.21 MB Download
Qwen2-1.5B-Instruct.IQ2_S.gguf
LFS Q2
537.69 MB Download
Qwen2-1.5B-Instruct.IQ2_XS.gguf
LFS Q2
524.83 MB Download
Qwen2-1.5B-Instruct.IQ2_XXS.gguf
LFS Q2
487.34 MB Download
Qwen2-1.5B-Instruct.IQ3_M.gguf
LFS Q3
740.68 MB Download
Qwen2-1.5B-Instruct.IQ3_S.gguf
LFS Q3
727.09 MB Download
Qwen2-1.5B-Instruct.IQ3_XS.gguf
LFS Q3
697.8 MB Download
Qwen2-1.5B-Instruct.IQ3_XXS.gguf
LFS Q3
637.81 MB Download
Qwen2-1.5B-Instruct.IQ4_NL.gguf
LFS Q4
892.95 MB Download
Qwen2-1.5B-Instruct.IQ4_XS.gguf
LFS Q4
854.23 MB Download
Qwen2-1.5B-Instruct.Q2_K.gguf
LFS Q2
644.97 MB Download
Qwen2-1.5B-Instruct.Q2_K_S.gguf
LFS Q2
610.48 MB Download
Qwen2-1.5B-Instruct.Q3_K.gguf
LFS Q3
786 MB Download
Qwen2-1.5B-Instruct.Q3_K_L.gguf
LFS Q3
839.39 MB Download
Qwen2-1.5B-Instruct.Q3_K_S.gguf
LFS Q3
725.69 MB Download
Qwen2-1.5B-Instruct.Q4_K.gguf
LFS Q4
940.37 MB Download
Qwen2-1.5B-Instruct.Q4_K_S.gguf
LFS Q4
896.75 MB Download
Qwen2-1.5B-Instruct.Q5_K.gguf
LFS Q5
1.05 GB Download
Qwen2-1.5B-Instruct.Q5_K_S.gguf
LFS Q5
1.02 GB Download
Qwen2-1.5B-Instruct.Q6_K.gguf
LFS Q6
1.19 GB Download
Qwen2-1.5B-Instruct.Q8_0.gguf
LFS Q8
1.53 GB Download