Llamacpp imatrix Quantizations of Lythri-Wink-2B by Lythri

Using llama.cpp release b12412 for quantization.

Original model: https://huggingface.co/Lythri/Lythri-Wink-2B

Model details:

  • Parameter count: 3B (source checkpoint)
  • Input support: text
  • Speculative decoding: no
  • imatrix: yes - details

How to run

Prompt format

<bos><|turn>system
{system_prompt}<turn|>
<|turn>user
{prompt}<turn|>
<|turn>model
Prompt format with tool definitions
<bos><|turn>system
{system_prompt}<|tool>declaration:get_stock_price{description:<|"|>Get the current stock price<|"|>,parameters:{properties:{symbol:{description:<|"|>The stock symbol, e.g. AAPL, GOOG<|"|>,type:<|"|>STRING<|"|>}},required:[<|"|>symbol<|"|>],type:<|"|>OBJECT<|"|>}}<tool|><turn|>
<|turn>user
{prompt}<turn|>
<|turn>model

Don't know which to choose? Grab Q4_K_M (2.49GB) - usually a good mix of size and performance. Download instructions available here

Available files:

Filename Quant type File Size Split Description
Lythri_Lythri-Wink-2B-bf16.gguf bf16 5.06GB false Full BF16 weights.
Lythri_Lythri-Wink-2B-Q8_0.gguf Q8_0 2.96GB false Extremely high quality, generally unneeded but max available quant.
Lythri_Lythri-Wink-2B-Q6_K_L.gguf Q6_K_L 2.81GB false Uses Q8_0 for embed and output weights. Very high quality, near perfect, recommended.
Lythri_Lythri-Wink-2B-Q6_K.gguf Q6_K 2.71GB false Very high quality, near perfect, recommended.
Lythri_Lythri-Wink-2B-Q5_K_M.gguf Q5_K_M 2.58GB false High quality, recommended.
Lythri_Lythri-Wink-2B-Q4_1.gguf Q4_1 2.52GB false Legacy format, similar performance to Q4_K_S but with improved tokens/watt on Apple silicon.
Lythri_Lythri-Wink-2B-Q4_K_M.gguf Q4_K_M 2.49GB false Good quality, default size for most use cases, recommended.
Lythri_Lythri-Wink-2B-IQ4_NL.gguf IQ4_NL 2.47GB false Similar to IQ4_XS, but slightly larger.
Lythri_Lythri-Wink-2B-Q4_0.gguf Q4_0 2.47GB false Legacy format, kept for compatibility with older tools.
Lythri_Lythri-Wink-2B-IQ3_M.gguf IQ3_M 2.39GB false Medium-low quality, new method with decent performance comparable to Q3_K_M.
Lythri_Lythri-Wink-2B-Q3_K_M.gguf Q3_K_M 2.39GB false Low quality.
Lythri_Lythri-Wink-2B-IQ3_XS.gguf IQ3_XS 2.36GB false Lower quality, new method with decent performance, slightly better than Q3_K_S.
Lythri_Lythri-Wink-2B-Q2_K.gguf Q2_K 2.31GB false Very low quality but surprisingly usable.
Lythri_Lythri-Wink-2B-IQ3_XXS.gguf IQ3_XXS 2.29GB false Lower quality, new method with decent performance, comparable to Q3 quants.
Lythri_Lythri-Wink-2B-IQ2_M.gguf IQ2_M 2.26GB false Relatively low quality, uses SOTA techniques to be surprisingly usable.
Lythri_Lythri-Wink-2B-Q4_K_L.gguf Q4_K_L 2.20GB false Uses Q8_0 for embed and output weights. Good quality, recommended.

About these sizes: 46.6 % of this model's weights (per_layer_token_embd (3968 wide) and proj (128 wide)) have row widths that llama.cpp's 256-wide K and IQ block types cannot use, so each size gives them one of the 32-wide types instead (Q4_0 to Q8_0, or IQ4_NL), whatever type its name asks for, and the files above are closer together in size than usual. These sizes were not made, each within 1 % of the size of another file of the same kind: Q3_K_S (0.7 % from Q3_K_M), Q3_K_L (0.02 % from Q3_K_M), IQ4_XS (0.9 % from IQ4_NL), Q4_K_S (0.6 % from Q4_K_M), Q5_K_S (0.7 % from Q5_K_M).

Download a specific file:

hf download bartowski/Lythri_Lythri-Wink-2B-GGUF --include "Lythri_Lythri-Wink-2B-Q4_K_M.gguf" --local-dir ./

Downloading using the Hugging Face CLI

Click to view download instructions

First, make sure you have the Hugging Face CLI installed:

pip install -U "huggingface_hub[cli]"

Download a specific file:

hf download bartowski/Lythri_Lythri-Wink-2B-GGUF --include "Lythri_Lythri-Wink-2B-Q4_K_M.gguf" --local-dir ./

How to run

These quants run with llama.cpp - installable in one line via llama.app:

curl -LsSf https://llama.app/install.sh | sh
llama-server -hf bartowski/Lythri_Lythri-Wink-2B-GGUF:Q4_K_M

llama-server includes a built-in chat web UI, served at http://localhost:8080 by default.

These quants were made with llama.cpp release b12412 - if this model's architecture is newly supported, you'll need that release or newer to run them.

They also work in: LM Studio Β· koboldcpp Β· ramalama Β· Jan AI Β· Text Generation Web UI Β· LoLLMs Β· Atomic Chat

imatrix

All quants made using imatrix option, with a calibration corpus rendered through this model's own chat template. The corpus pairs plain prose with tool-calling and reasoning conversations (corpus source data), encoded exactly as this model sees them at inference and processed with --parse-special, so chat-format special tokens contribute to the importance matrix. The corpus rendered for this model is included in this repo: Lythri_Lythri-Wink-2B-calibration-v6.txt. The imatrix is available here: Lythri_Lythri-Wink-2B-imatrix.gguf.

Calibration render details
{
  "recipe": "calibration-v6",
  "encoder": "chat_template",
  "library_versions": {
    "transformers": "5.20.2",
    "tokenizers": "0.23.3",
    "tiktoken": "0.14.0",
    "blobfile": "3.3.0",
    "huggingface_hub": "1.31.0"
  },
  "chunk_size": 512,
  "prose_chunks": 219,
  "tool_chunks": 273,
  "total_chunks": 492,
  "n_conversations": 137,
  "conversation_token_lengths": [
    345,
    1411,
    652,
    1146,
    879,
    1186,
    2285,
    410,
    987,
    945,
    722,
    1728,
    667,
    739,
    2132,
    993,
    836,
    713,
    552,
    518,
    1152,
    782,
    1143,
    1012,
    1435,
    1215,
    797,
    470,
    752,
    1242,
    1309,
    590,
    1027,
    761,
    986,
    1458,
    1413,
    928,
    284,
    1746,
    1225,
    888,
    1157,
    1491,
    1715,
    1046,
    1269,
    518,
    2154,
    909,
    2418,
    569,
    761,
    515,
    919,
    491,
    2037,
    498,
    871,
    821,
    1008,
    963,
    680,
    772,
    742,
    1163,
    669,
    1272,
    1562,
    660,
    329,
    881,
    2853,
    2736,
    529,
    505,
    775,
    550,
    1061,
    869,
    921,
    526,
    807,
    826,
    926,
    1234,
    1158,
    1172,
    612,
    425,
    2180,
    660,
    907,
    1319,
    1790,
    972,
    417,
    1191,
    1133,
    1381,
    1394,
    1415,
    591,
    534,
    814,
    2647,
    530,
    357,
    561,
    982,
    872,
    1107,
    539,
    361,
    332,
    2029,
    496,
    923,
    1593,
    1438,
    2082,
    2110,
    459,
    670,
    615,
    600,
    1009,
    769,
    646,
    1093,
    547,
    517,
    1170,
    710,
    688,
    1087,
    1257
  ]
}

Embed/output weights

Some of these quants (Q3_K_XL, Q4_K_L etc) are the standard quantization method with the embeddings and output weights quantized to Q8_0 instead of what they would normally default to.

ARM/AVX information

llama.cpp automatically "repacks" weights into an interleaved layout at load time for faster inference on ARM and AVX machines - details in this PR. This once required downloading special Q4_0_4_4/4_8/8_8 files; those are long gone. Online repacking now covers Q4_0, IQ4_NL, and most K-quants, so no special quant choice is needed for CPU inference.

Which file should I choose?

Click here for details

An older (early 2024) but still useful write-up with charts comparing quant performances is provided by Artefact2 here

The first thing to figure out is how big a model you can run. To do this, you'll need to figure out how much RAM and/or VRAM you have.

If you want your model running as FAST as possible, you'll want to fit the whole thing on your GPU's VRAM. Aim for a quant with a file size 1-2GB smaller than your GPU's total VRAM.

If you want the absolute maximum quality, add both your system RAM and your GPU's VRAM together, then similarly grab a quant with a file size 1-2GB Smaller than that total.

Hugging Face can also do this math for you: add your hardware in your Local Apps settings and the model page will show which files fit.

Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.

If you don't want to think too much, grab one of the K-quants. These are in format 'QX_K_X', like Q5_K_M.

If you want to get more into the weeds, you can check out this extremely useful feature chart:

llama.cpp feature matrix

But basically, if you're aiming for below Q4, and you're running cuBLAS (Nvidia) or rocBLAS (AMD), you should look towards the I-quants. These are in format IQX_X, like IQ3_M. These are newer and offer better performance for their size.

These I-quants can also be used on CPU, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.

Credits

Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset.

Thank you ZeroWw for the inspiration to experiment with embed/output.

Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski

Downloads last month
3,411
GGUF
Model size
3B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for bartowski/Lythri_Lythri-Wink-2B-GGUF

Quantized
(4)
this model
Finetunes
1 model

Collection including bartowski/Lythri_Lythri-Wink-2B-GGUF