license: apache-2.0
base_model: OpenUncensored/Inkling-2-Mini-Uncensored
base_model_relation: quantized
pipeline_tag: image-text-to-text
language:
- en
- ru
tags: - gguf
- llama.cpp
- imatrix
- inkling2
- inkling-2-mini
- looped-transformer
- moe
- uncensored
- abliterated
- 12gb-vram
- intel-arc
- vulkan
Inkling 2 Mini Uncensored — GGUF for one 12 GB GPU with 128K context
A 9.5 GiB GGUF of OpenUncensored/Inkling-2-Mini-Uncensored
(26.4B parameters, 128 experts per layer, looped) that loads together with a 128K-token context on a single 12 GB card.
It was built and measured on an Intel Arc B580 with stock llama.cpp and the Vulkan backend. It is tuned for
code and agentic use; chat quality was not a goal.
| File | Inkling-2-Mini-Uncensored-pad1280-IQ2_S-9.5G.gguf, 9,743 MiB (10.23 GB) |
| Mean KL divergence to the reference | 0.0369 ± 0.0010 (median 0.0026) |
| Same top token as the reference | 94.24% |
| Perplexity on the evaluation text | 2.180 (reference 2.133) |
| MMLU, 1,140 questions, letter logits | 77.28% (the source card reports 79.47% for the unquantized model) |
| VRAM at 128K context on the B580 | 12,018 of 12,216 MiB |
What is different: the expert width is padded from 1152 to 1280
Every public GGUF of this model we looked at has the same structural problem. The expert down tensors are 1152 wide,
which is not a multiple of 256, so llama.cpp's K and IQ formats cannot be used for them. They stay at 4.25–4.5 bits per
weight (or drop to a coarse 2-bit format), and at small sizes the whole deficit is pushed onto gate_up, which then
lands in 1-bit and low 2-bit formats.
This file pads the expert intermediate width to 1280 (5 × 256) with zeros before quantizing:
- zero rows are added to both halves of
gate_up, zero columns todown; - the output is unchanged, because a padded unit computes
act(0) · 0 = 0; expert_feed_forward_lengthis set to 1280, and stock llama.cpp loads the result without changes;- the cost is 11% more stored elements; the gain is that
downcan use the same low-bit formats asgate_up.
With that, all three expert matrices sit at about the same rate instead of 4.5 / 1.9 bits. In rate–distortion terms an
even split is the optimum when the matrices contribute equally to the output error, and it keeps every expert tensor
out of the 1-bit formats.
Recipe
| Blocks | gate_up and down experts |
bits per weight |
|---|---|---|
| 0–5 | IQ2_XS | 2.31 |
| 6–19 (includes the loop core, 6–17) | IQ2_S | 2.56 |
| 20–23 | IQ3_XXS | 3.06 |
Attention, the output layer and the token embedding are Q6_K. Loop controllers and other small tensors keep their
original precision. The exact per-tensor list is in p2.types, the importance matrix in imatrix-p2.gguf_file, and the
script that pads the model and the importance matrix in edit.py.
Importance matrix. Computed on the B580 from 120 chunks of 2,048 tokens: SWE-agent trajectories, native tool-call
conversations rendered through the model's chat template, code in ten languages, and Russian instructions
(corpus.py). It is blended with a published general-purpose matrix for this model (one third of the mass) so that
rarely routed experts are not under-sampled.
Measurements
Setup. Intel Arc B580 12 GB, Linux, llama.cpp build 12648, Vulkan. KL divergence is fromllama-perplexity --kl-divergence, 30 chunks of 1,024 tokens of held-out text of the same mix as the calibration set
(code, agent trajectories, tool calls, Russian), disjoint from it. The reference is the same model with its experts in
the original NVFP4 (blocks 0–19) and everything else at Q8_0; it is not the BF16 file.
Same evaluation set, same reference
| File | Size | Mean KLD | Median KLD | Same top token | PPL |
|---|---|---|---|---|---|
| this file | 9,743 MiB | 0.0369 ± 0.0010 | 0.0026 | 94.24% | 2.180 |
mudler Inkling-2-Mini-Uncensored-APEX-I-Nano |
10,815 MiB | 0.0430 ± 0.0011 | 0.0035 | 93.86% | 2.172 |
This is the only like-for-like comparison we ran: a quantization of the same uncensored weights, measured on the same
text against the same reference. This file is 1,072 MiB smaller and has lower KL divergence; perplexity is equal within
its error (± 0.03).
Numbers other publishers report for the base model
These use other texts and other references, so they are an orientation, not a ranking. Our evaluation text is mostly
code, which is more predictable than general text and tends to give lower KL divergence.
| File | Size, GB | Mean KLD | Same top token |
|---|---|---|---|
| unsloth UD-Q2_K_XL | 9.14 | 0.0595 | 91.6% |
| SC117 FIT-BALANCED | 9.79 | 0.0895 | 88.5% |
| this file | 10.23 | 0.0369 | 94.2% |
| AtomicChat AD-IQ2_XXS | 10.43 | 0.084 | 88.5% |
| Strata SQ-10 (own engine) | 10.47 | 0.050 | 92.4% |
| AtomicChat AD-IQ2_S | 11.56 | 0.047 | 91.3% |
| unsloth UD-IQ3_XXS | 11.66 | 0.0269 | 94.7% |
MMLU
57 subjects × the first 20 test questions = 1,140 questions, answer taken from the next-token probabilities of
A/B/C/D, thinking effort 0. Result: 881 / 1,140 = 77.28%. The source card reports 79.47% for the unquantized
uncensored model with its own harness; our prompt format and question selection may differ from theirs, and the
sampling error on 1,140 questions is about ± 1.2 points.
What did not work: removing experts
We also built a variant that drops 24 of the 128 experts per layer (chosen by routing statistics and output norm on the
code and agent corpus) and spends the saved bytes on precision: down in the original NVFP4, gate_up at IQ3.
| Variant | Size | Mean KLD | Same top token | MMLU |
|---|---|---|---|---|
| 128 experts, padded (this file) | 9,743 MiB | 0.0369 | 94.24% | 77.28% |
| 104 experts, higher precision | 9,660 MiB | 0.0428 | 94.54% | 68.95% |
Routing in this model is close to uniform even on code: the 32 lowest-scoring experts of a layer still carry 4–12% of
the MLP output energy. There are no spare experts to remove.
How to run
llama-server -m Inkling-2-Mini-Uncensored-pad1280-IQ2_S-9.5G.gguf \
-ngl 99 -c 131072 -np 1 -fa on -ctk q8_0 -ctv q4_0 -b 2048 -ub 32 --cache-ram 0 --jinja
-ctk q8_0 -ctv q4_0(8-bit keys, 4-bit values) is what makes 128K fit; with 8-bit values it does not fit in 12 GB.- At 128K there are about 200 MiB of VRAM left on a card that drives no display. Lower the context or
-ubif
anything else uses the card. - For shorter contexts raise
-ub(for example-c 32768 -ub 256): prompt processing gets much faster. - Thinking depth is set with
reasoning_effort(none…max), as in the original model. - Image input:
mmproj-bf16.ggufis the vision projector of the source model. It needs about 0.6 GiB of its own, so
it does not fit next to a 128K context on 12 GB.
Limitations
- One card, one backend. Everything was measured on an Arc B580 with Vulkan. Free VRAM and speed differ elsewhere.
- Prompt processing is slow at the 128K settings: 45–54 tokens per second with
-ub 32on the B580 (measured over
the first 51K tokens of a long prompt). Generation speed at 128K was not measured. - Long-context recall is not verified. The 128K configuration was loaded and fed 51K tokens; a retrieval test over
the full context was not completed. - KL divergence and MMLU are not coding benchmarks. No coding or agent benchmark was run.
- The KLD evaluation text was tokenized without special-token parsing, so chat-template markers were scored as
plain text, the same way for every file. - The uncensoring is the source model's; this repository only quantizes it.
Credits
- Thinking Machines for Inkling 2 Mini and
OpenUncensored for the abliterated weights. - llama.cpp and ggml contributors for the Inkling 2 loop support, the NVFP4 tensor type and the KV-cache rotation.
- drofn for the published importance matrix (blended into
ours) and for documenting where the VRAM goes on this model; unsloth, AtomicChat, SC117, Strata, bartowski and mudler
for the published measurements quoted above. - Calibration and evaluation text: nebius/SWE-agent-trajectories, NousResearch/hermes-function-calling-v1,
bigcode/commitpackft, Vikhrmodels/GrandMaster-PRO-MAX, cais/mmlu.