Inkling 2 Mini, 2-bit GGUF tuned for 8 GB GPUs

This is Unsloth's UD-IQ2_XXS file of Inkling 2 Mini with two small changes that save ~140 MB:

  • the 85 attention tensors are stored in 6-bit (Q6_K) instead of 8-bit (Q8_0)
  • the 144 loop tensors are stored in 16-bit instead of 32-bit

On an 8 GB GPU, that saved memory goes into llama.cpp's expert cache, so the model runs faster. Quality is the same: perplexity 7.8825 vs 7.8846 for the original file (16 chunks, context 512).

Speed

RTX 4060 8 GB, Ryzen 5 5600X, 16 GB RAM, Windows 11, 64K context:

  • writing: 43.7 tokens/s (default llama.cpp settings with the original file: 20.4)
  • prompt reading: 734 tokens/s
  • GPU memory: 7.07 GB, nothing spilled into shared memory

How to run

Use Unsloth's llama.cpp fork (build b12722 or newer):

llama-server -m Inkling-2-Mini-UD-IQ2_XXS-q6att-loopf16.gguf ^
  --fit off -ot "blk\.([0-5]|1[8-9]|2[0-3])\.ffn_.*_exps\.=CPU" ^
  --ctx-size 65536 -ctk q4_0 -ctv q4_0 -fa on -ub 1024 ^
  --moe-cache-mib 1408 --moe-cache-cpu-share 0.95 ^
  --temp 0.6 --repeat-penalty 1.05

The -ot line keeps the experts of layers 0-5 and 18-23 in RAM. Layers 6-17 run three times per token, so their experts go to the GPU.

How this setup was found, what worked and what did not: https://github.com/xenecodd/llm-inference-8gb-gpu

Downloads last month
-
GGUF
Model size
26B params
Architecture
inkling2
Hardware compatibility
Log In to add your hardware

16-bit

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

Model tree for xenecode/llm-inference-8gb-gpu

Quantized
(322)
this model