--- license: apache-2.0 base_model: thinkingmachines/Inkling-2-Mini base_model_relation: quantized tags: - gguf - llama.cpp - mixture-of-experts - 8gb-vram --- # Inkling 2 Mini, 2-bit GGUF tuned for 8 GB GPUs Unsloth's `UD-IQ2_XXS` file of Inkling 2 Mini tuned for 8 GB GPUs. Two variants are provided: - **`Inkling-2-Mini-UD-IQ2_XXS-q4att-loopf16.gguf` (recommended, 7.82 GiB):** attention tensors in 4-bit (`Q4_K`), loop tensors in 16-bit (`F16`). Saves ~264 MB over the original file and cuts dense attention VRAM reads, reaching **51.6 tokens/s** at 48K context with a 1536 MiB expert cache. Perplexity vs `q6att`: 8.0457 vs 7.9617 (+1.05%, within +/-0.33 SE, 16 chunks, context 512, `q4_0` KV). - **`Inkling-2-Mini-UD-IQ2_XXS-q6att-loopf16.gguf` (7.94 GiB):** attention tensors in 6-bit (`Q6_K`), loop tensors in 16-bit (`F16`). Saves ~140 MB with identical perplexity to the original file (7.8825 vs 7.8846). ## Speed RTX 4060 8 GB, Ryzen 5 5600X, 16 GB RAM, Windows 11, 48K context (`q4att-loopf16`): - writing (`temp 0` benchmark, short ctx): **51.6 tokens/s** (default llama.cpp settings with the original file: 20.4) - writing (live `--temp 0.6 --repeat-penalty 1.05`, ~4K ctx): **44-45 tokens/s** - writing (live `--temp 0.6 --repeat-penalty 1.05`, ~40K ctx): **38.6 tokens/s** - prompt reading: **734 tokens/s** - GPU memory: 7.42-7.55 GB, nothing spilled into shared memory - Free system RAM: ~6.9 GB (with `--load-mode none`) ## How to run Use Unsloth's llama.cpp fork (build `b12722` or newer): ``` llama-server -m Inkling-2-Mini-UD-IQ2_XXS-q4att-loopf16.gguf ^ --fit off -ot "blk\.([0-5]|1[8-9]|2[0-3])\.ffn_.*_exps\.=CPU" ^ --ctx-size 49152 -ctk q4_0 -ctv q4_0 -fa on -ub 1024 ^ --moe-cache-mib 1536 --moe-cache-cpu-share 0.95 --load-mode none ^ --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. `--load-mode none` avoids Windows `mmap` RAM bloat and keeps the CPU experts in pinned `CUDA_Host` memory. How this setup was found, what worked and what did not: https://github.com/xenecodd/llm-inference-8gb-gpu