Mixed Precision GGUF layer quantization of Deepseek R1 Distill Llama 3.1 8B Instruct by deepseek-ai

Original model: https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Llama-8B

The hybrid quant employs different quantization levels on a per layer basis to enable both high performance and small file size at the same time. An extended layer definition E quant Q6_E_H for the model is defined as follows (released 11/17/2026):

   LAYER_TYPES='[
   ["A","attn","Q","attn_q","K","attn_k","V","attn_v","O","attn_o","S","ssm","F","ffn","G","ffn_g","U","ffn_u","D","ffn_d"],
   ["MAP","VOD","0","QN_K","2","Q2_K","3","Q3_K","4","Q4_K","5","Q5_K","6","Q6_K","8","Q8_0","h","F16","f","F32"],
   [0 ,"Q6_K_866"], [1 ,"Q6_K_666"], [2 ,"Q6_K_666"], [3 ,"Q6_K_666"], [4 ,"Q5_K_665"], [5 ,"Q5_K_665"], [6 ,"Q5_K_665"], [7 ,"Q5_K_665"],
   [8 ,"Q5_K_665"], [9 ,"Q5_K_665"], [10,"Q5_K_665"], [11,"Q5_K_665"], [12,"Q5_K_665"], [13,"Q5_K_665"], [14,"Q5_K_665"], [15,"Q5_K_666"],
   [16,"Q6_K_666"], [17,"Q5_K_666"], [18,"Q6_K_666"], [19,"Q5_K_666"], [20,"Q6_K_666"], [21,"Q5_K_666"], [22,"Q6_K_666"], [23,"Q5_K_666"],
   [24,"Q6_K_666"], [25,"Q6_K_666"], [26,"Q6_K_666"], [27,"Q6_K_666"], [28,"Q6_K_666"], [29,"Q6_K_666"], [30,"Q6_K_668"], [31,"Q6_K_866"]
   ]'
   FLAGS="--token-embedding-type Q6_K --output-tensor-type Q6_K"

Comparison:

Quant size PPL Comment
Q6_K 6.6e9 13.1 Q6_K with default embedding and output
Q6_E_H 6.3e9 13.2 Hybrid quant with Q6_K embedding Q6_K output

Usage:

DeepSeek R1 Distill Llama 8B is a distillation of DeepSeek R1 onto Llama-3.1 8B pretrain, effectively adding RL training / think block to Llama 3.1 8B. This training results in signficantly more token gen on reasoning prompts but can increase accuracy on some prompts. Subjective evaluation of the model shows that it is still pretty weak on general reasoning prompts. The RL can increase accuracy on some prompts here and there but is not reliable and does not magically enable the model to suddently handle problems that were way outside the latent space of the llama 3.1 8B pretrain already. On some niche use cases however performance boost over llama 3.1 8B instruct is quite dramatic, such as BBH audio bench.

This model may be used together with fixie-ai ultravox-v0_5-llama-3_1-8b to enable it to process audio (.mp3 and .wav files) and text inputs and generate text outputs. The mmproj file is made available here: https://huggingface.co/steampunque/ultravox-v0_5-llama-3_1-8b-Hybrid-GGUF

The model can be speculated using Qwen3 0.6B. Approximate performance on a 4070 with context and weights in VRAM using a custom downstream greedy speculator with fixed spec block length ND and dynamic vocab translation :

Prompt ND Gen TPS Comment
goldcoin 0 73 non code
goldcoin 3 102 non code
humaneval 0 71 code
humaneval 4 120 code
humaneval 4 140 Spec with Qwen 2.5 coder 0.5B, disable think mode (pure code gen)
humaneval 6 147 ""
humaneval 8 146 ""
TIME=1 ND=8 NOTHINK=1 lm humaneval.txt
.
.
PN=313 PP=1592.3212257532905 TG=147.18952916334075 DN=426 DA=242

goldcoin: https://huggingface.co/datasets/steampunque/benchlm/blob/main/goldcoin.txt

humaneval: https://huggingface.co/datasets/steampunque/benchlm/blob/main/humaneval.txt

CODE:

Tests over a small set of code gen prompts conclude the model is not useful for code gen. It could not create a working program from text descriptions over a small set of code gen prompts with reasoning either enabled or forced off.

Benchmarks:

A full set of benchmarks for the model will eventually be given here: https://huggingface.co/spaces/steampunque/benchlm

Download the file from below:

Link Type Size/e9 B Notes
DeepSeek-R1-Distill-Llama-8B-Instruct.Q6_E_H.gguf Q6_E_H 6.3e9 B 0.3B smaller than Q6_K
ultravox-v0_5-llama-3_1-8b.mmproj.gguf F16 1.38e9 B multimedia projector

A discussion thread about the hybrid layer quant approach can be found here on the llama.cpp git repository:

https://github.com/ggml-org/llama.cpp/discussions/13040

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

We're not able to determine the quantization variants.

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for steampunque/DeepSeek-R1-Distill-Llama-8B-MP-GGUF

Quantized
(217)
this model