Downloads · 30 days
27
13% of all-time downloads
steampunque/Qwen3-4B-MP-GGUF
Qwen3-4B-MP-GGUF is a machine learning model from steampunque. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Original model: https://huggingface.co/Qwen/Qwen3-4B
Downloads · 30 days
27
13% of all-time downloads
All-time downloads
210
Public
Repo size
3.6 GB
Likes
0
Public
Click a slice to open those files.
.gguf3.6 GB · 100%
From the Hugging Face model README
Original model: https://huggingface.co/Qwen/Qwen3-4B
The hybrid quant employs different quantization levels on a per layer basis to increased flexibility of trading off performance vs file size. Less parameter bits are used at deep layers and more bits at cortex layers to simultaneously optimize quantized size and model performance. These quants were specifically optimized for the Qwen3 4B edge model for essentially no performance loss vs Q8_0 quant while reducing file size about 0.6G.
The layer quants are as follows:
LAYER_TYPES='[
[0 ,"Q8_0" ],[1 ,"Q5_K_M"],[2 ,"Q5_K_M"],[3 ,"Q5_K_M"],[4 ,"Q5_K_M"],[5 ,"Q5_K_M"],
[6 ,"Q5_K_M"],[7 ,"Q5_K_M"],[8, "Q5_K_M"],[9, "Q5_K_M"],[10,"Q5_K_M"],[11,"Q5_K_M"],
[12,"Q6_K" ],[13,"Q6_K" ],[14,"Q6_K" ],[15,"Q6_K" ],[16,"Q6_K" ],[17,"Q6_K" ],
[18,"Q6_K" ],[19,"Q6_K" ],[20,"Q6_K" ],[21,"Q6_K" ],[22,"Q6_K" ],[23,"Q6_K" ],
[24,"Q8_0" ],[25,"Q8_0" ],[26,"Q8_0" ],[27,"Q8_0" ],[28,"Q8_0" ],[29,"Q8_0" ],
[30,"Q8_0" ],[31,"Q8_0" ],[32,"Q8_0" ],[33,"Q8_0" ],[34,"Q8_0" ],[35,"Q8_0" ]
]'
FLAGS="--token-embedding-type Q8_0 --output-tensor-type Q6_K"
These quants were select based on combined subjective and objective performance evaluations to give both high performance and reduced file size.
Comparison:
| Quant | size | PPL | Comment |
|---|---|---|---|
| Q8_0 | 4.3e9 | 13.2 | default embed and output |
| Q8_0_H | 3.6e9 | 13.1 | Q8_0 embed Q6_K output |
Full evals comparing Qwen3 4B Q8_0 and Q8_0_H are also available at https://huggingface.co/spaces/steampunque/benchlm
| Link | Type | Size/e9 B | Notes |
|---|---|---|---|
| Qwen3-4B.Q8_0_H.gguf | Q8_0_H | 3.6e9 B | Q8_0 quality |
A discussion thread about the hybrid layer quant approach can be found here on the llama.cpp git repository: