Mixed Precision GGUF layer quantization of Llama 3.1 8B Instruct by meta-llama

Original model: https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct

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:

   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_665"], [2 ,"Q5_K_665"], [3 ,"Q5_K_665"], [4 ,"Q5_K_665"], [5 ,"Q5_K_665"], [6 ,"Q5_K_665"], [7 ,"Q5_K_665"],
   [8 ,"Q5_K_666"], [9 ,"Q5_K_665"], [10,"Q5_K_666"], [11,"Q5_K_665"], [12,"Q5_K_666"], [13,"Q5_K_665"], [14,"Q5_K_666"], [15,"Q5_K_665"],
   [16,"Q5_K_666"], [17,"Q5_K_665"], [18,"Q5_K_666"], [19,"Q5_K_665"], [20,"Q5_K_666"], [21,"Q5_K_665"], [22,"Q5_K_666"], [23,"Q5_K_665"],
   [24,"Q5_K_666"], [25,"Q5_K_666"], [26,"Q5_K_666"], [27,"Q5_K_666"], [28,"Q6_K_666"], [29,"Q6_K_666"], [30,"Q6_K_668"], [31,"Q6_K_888"]
   ]'
   FLAGS="--token-embedding-type Q6_K --output-tensor-type Q6_K"

A smaller Q4_E_H quant is also available:

   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 ,"Q5_K_865"], [1 ,"Q4_K_654"], [2 ,"Q4_K_654"], [3 ,"Q4_K_654"], [4 ,"Q4_K_654"], [5 ,"Q4_K_654"], [6 ,"Q4_K_654"], [7 ,"Q4_K_654"],
   [8 ,"Q4_K_654"], [9 ,"Q4_K_654"], [10,"Q4_K_654"], [11,"Q4_K_654"], [12,"Q4_K_654"], [13,"Q4_K_654"], [14,"Q4_K_654"], [15,"Q4_K_654"],
   [16,"Q4_K_654"], [17,"Q4_K_654"], [18,"Q4_K_654"], [19,"Q4_K_654"], [20,"Q4_K_654"], [21,"Q4_K_654"], [22,"Q4_K_654"], [23,"Q4_K_654"],
   [24,"Q4_K_654"], [25,"Q4_K_654"], [26,"Q4_K_654"], [27,"Q4_K_665"], [28,"Q4_K_666"], [29,"Q5_K_666"], [30,"Q5_K_668"], [31,"Q6_K_886"]
   ]'
   FLAGS="--token-embedding-type Q6_K --output-tensor-type Q6_K"

Both E quants were updated on 11/13/2026 optimized for performance across a small set of curated test prompts.

Comparison:

Quant size PPL Comment
Q4_K_M 4.9e9 7.3 -
Q4_E_H 5.3e9 7.4 Hybrid quant with Q6_K embedding Q6_K output
Q6_K 6.6e9 7.2 Q6_K with default embedding and output
Q6_E_H 6.1e9 7.2 Hybrid quant with Q6_K embedding Q6_K output

Usage:

Llama 3.1 8B Instruct is a text in text out chatbot model with max 128k context. It was distilled from larger Llama 3 models to edge model size capable of running efficiently on 6G/8G VRAM GPUs. Its use case is primarily text processing such as summarization or feature extraction. It has no RL training and is not useful for reasoning applications. The 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 audio tower is made available here: https://huggingface.co/steampunque/ultravox-v0_5-llama-3_1-8b-MP-GGUF

The model can be speculated using Llama 3.2 1B Instruct. Approximate performance on a 4070 with context and weights in VRAM using a custom downstream greedy speculator with fixed spec block length ND :

Prompt Q QKV ND NKV Gen TPS Comment
goldcoin Q6_E_H F16 0 48k 76 non code
goldcoin Q6_E_H F16 4 32k 152 non code
goldcoin Q4_E_H F16 0 52k 87 non code
goldcoin Q4_E_H q8_0 4 36k 160 non code
goldcoin Q4_E_H q8_0 0 96k 86 non code
humaneval Q6_E_H F16 0 76 code
humaneval Q6_E_H F16 6 172 code

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

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

LONG CONTEXT TESTS:

72k token needle in haystack passes on Q4_E_H q8_0 QKV. https://huggingface.co/datasets/steampunque/benchlm/blob/main/needle.txt

Qwen3 Runscape pruned back to 85k tokens passes on Q4_E_H q8_0 QKV (greedy sampling): https://huggingface.co/datasets/steampunque/benchlm/blob/main/Qwen3_Runescape_Massive_Prompt_85k.txt

lm Qwen3_Runescape_Massive_Prompt_85k.txt 
To find the level at which you get to half the XP of max level, we need to look at the experience table in the book.

The experience table shows the experience needed to reach each level, as well as the experience difference from the last level.

To find the level at which you get to half the XP of max level, we need to find the level at which the experience difference from the last level is equal to half the experience needed to reach the max level.

The max level in RuneScape is 99, and the experience needed to reach level 99 is 13,034,431.

Half of this experience is 6,517,215.5.

Looking at the experience table, we can see that the experience difference from the last level is equal to half the experience needed to reach the max level at level 92.

Therefore, the level at which you get to half the XP of max level is 92.

Benchmarks:

Benchmarks for the model (including audio) will eventually be given here: https://huggingface.co/spaces/steampunque/benchlm

Download the file from below:

Link Type Size/e9 B Notes
Llama-3.1-8B-Instruct.Q4_E_H.gguf Q4_E_H 5.3e9 B ~ 0.4B bigger than Q4_K_M
Llama-3.1-8B-Instruct.Q6_E_H.gguf Q6_E_H 6.1e9 B ~ 0.5B 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
351
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/Llama-3.1-8B-Instruct-MP-GGUF

Quantized
(987)
this model