Inkling-2-Mini Uncensored — Fast 24GB VRAM Preset (AD-Q4_K GGUF)
This repository repackages the Inkling-2-Mini-Uncensored-AD-Q4_K.gguf build (originally quantized and uncensored by AtomicChat from thinkingmachines/Inkling-2-Mini) together with a pre-tuned llama.cpp router preset (inkling-2-mini-fast.ini) optimized for 24 GB VRAM GPUs (tested on RTX 4090).
Why the Custom Preset?
Inkling-2-Mini uses the inkling2_loop architecture (26.4B MoE, 3.4B active, looped core) with a native n_ctx_train of 1,048,576 (1M) tokens. On llama.cpp, its CUDA compute buffer scales linearly with n_ctx × ubatch:
- Running without an explicit
--ctx-sizeattempts to allocate ~99 GiB (101,567 MiB) for compute buffers and crashes immediately with CUDA OOM. - Even at 64K–128K context, the default
--ubatch-size 512consumes too much VRAM alongside the ~15.4 GiB model weights.
inkling-2-mini-fast.ini caps the context at 131,072 (128K) and sets ubatch-size = 128 with quantized KV cache (q4_0), Flash Attention, cache-ram = 0, and ctx-checkpoints = 8—keeping total VRAM under ~21 GB and host RAM around 1.5–2.5 GB while sustaining 53–66 t/s decode speeds deep into context.
Files Included
| File | Size | Description |
|---|---|---|
Inkling-2-Mini-Uncensored-AD-Q4_K.gguf |
~15.4 GiB | Baked uncensored AD-Q4_K GGUF (merged inkling2_loop layout) |
inkling-2-mini-fast.ini |
~1 KB | Ready-to-use llama.cpp router preset for 24 GB VRAM GPUs |
Note: This repo only includes the text model weights (
AD-Q4_K). If you need vision/image input, grabmmproj-Inkling-2-Mini-Uncensored-F16.gguffrom AtomicChat/Inkling-2-Mini-Uncensored-GGUF.
Requirements
llama.cppbuildb12600or newer (tested onb12613, CUDA 13.5) with mergedinkling2_loopsupport (PR#32694).
Measured Performance (RTX 4090 24 GB)
Tested on Windows 11, RTX 4090, llama.cpp b12613 (CUDA 13.5), ctx-size 131072, ubatch-size 128, KV q4_0:
| Context Depth | Decode (tg) |
Prefill (pp) |
Notes |
|---|---|---|---|
| 0 – 1K | 62.3 – 66.3 t/s | 484 t/s | Fresh slot |
| 71 – 72K | 56.1 – 56.3 t/s | 549 t/s (cold 70K) / 251 t/s (warm delta) | Peak tg_3s 57.5 t/s |
| 76 – 78K | 53.5 – 53.8 t/s | 339 – 342 t/s (1K–1.6K delta) | graph reallocs = 0 |
| 83 – 84K | 54.2 – 54.7 t/s | 201 – 260 t/s (290-tok delta) | Sustained 3.7K-token generation |
Host RAM usage stays flat at 1.5–2.5 GB with --cache-ram 0 and --ctx-checkpoints 8.
Quick Start
Option 1: Using the Included Router Preset (inkling-2-mini-fast.ini)
Download inkling-2-mini-fast.ini and start llama in router mode (it will automatically pull the GGUF from Hugging Face on first load):
llama serve --host 127.0.0.1 --port 9931 --jinja --models-max 1 \
--models-preset inkling-2-mini-fast.ini
* **Faster cold prefill (64K context):** Lower `ctx-size = 65536` and raise `ubatch-size = 256` (~19.7 GiB VRAM even with `q8_0` KV cache).
* **Higher KV precision at 128K:** Switching `cache-type-k/v` to `q8_0` still fits in 24 GB VRAM (~20.8 GiB allocated) with `ubatch-size = 128`.