# Inkling-2-Mini Uncensored

AtomicChat’s baked edit uses the Inkling loop-core placement and decodes at 29.6 tok/s. The merged Unbound LoRA is an alternative.

- Recipe id: `inkling-2-mini-uncensored`  ·  status: measured  ·  updated 2026-11-23
- Model: [Inkling-2-Mini Uncensored](https://huggingface.co/thinkingmachines/Inkling-2-Mini) (26.4B Looped MoE)
- Weights: GGUF AD-Q4_K, 16.5 GB, from https://huggingface.co/AtomicChat/Inkling-2-Mini-Uncensored-GGUF, file `Inkling-2-Mini-Uncensored-AD-Q4_K.gguf`, revision `40886ab6`
- Engine: [llama.cpp](https://github.com/ggml-org/llama.cpp) r2inkfix-19c41d2ff (master 225a5345b with two F16-mask patches); patches: Two F16-mask patches in inkling-2-mini/patches/
- Hardware: RTX 3060 12 GB, 62 GB RAM, i5-12500
- Context: 65,536 tokens
- Placement: Loop-core experts on the GPU, remaining routed experts in RAM.
- Contributor: [David Hatley](https://github.com/davidghatley)

## Run it

From `inkling-2-mini-uncensored/` in a clone of https://github.com/davidghatley/3060-recipes:

```sh
./serve.sh
```

API: OpenAI-compatible /v1 on port 8102

Key flags: `VARIANT=atomicchat`, `-ub 96`, `-ctk q8_0 -ctv q8_0`

The script itself (`inkling-2-mini-uncensored/serve.sh`, machine paths shown as `$MODELS`, `$SCRATCH`, `~`; set them to where your weights and builds live):

```sh
#!/usr/bin/env bash
# Uncensored Inkling-2-Mini: picks the weights / LoRA for a VARIANT, then execs ../inkling-2-mini/serve.sh,
# so engine build, expert placement, context and KV settings come from the base recipe and cannot drift.
#   VARIANT=atomicchat       AtomicChat's baked AD-Q4_K GGUF, ub 96   [default: 29.6 tok/s, lowest KLD, see RESULTS.md]
#   VARIANT=nokeepai         base IQ4_NL + nokeepai Unbound v2 rank-64 LoRA at runtime (attention only): 27.0 tok/s
#   VARIANT=nokeepai-merged  the same LoRA merged offline into the base IQ4_NL (tools/merge_lora.py): base speed
#   VARIANT=atomicchat-lora  base IQ4_NL + AtomicChat's rank-1 LoRA (attention output + routed experts + token embd)
#   VARIANT=base             base IQ4_NL, no edit (the control)
# Env overrides: UNC_LORA (adapter path), UNC_LORA_SCALE (default 1), UNC_MMPROJ=1 (load the variant's mmproj),
# and everything the base serve.sh honours (INK_SPEC=dflash2 for the drafter, INK_MODEL, INK_PORT, INK_BIN, INK_PLACEMENT, INK_OT, INK_UBATCH,
# INK_CONTEXT, INK_KV, INK_MMPROJ, INK_NO_GPU_RUN, ...). Extra args are passed to llama-server.
set -euo pipefail
HERE=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)
U=$MODELS/inkling-2-mini-uncensored
B=$MODELS/inkling-2-mini
VARIANT=${VARIANT:-atomicchat}
d_lora=""; d_ub=""; d_mmproj=$B/mmproj-Inkling-2-Mini-Q8_0.gguf
case "$VARIANT" in
  nokeepai)        d_model=$B/Inkling-2-Mini-IQ4_NL.gguf; d_lora=$U/nokeepai/Inkling-2-Mini-Unbound-v2-LoRA-r64.gguf ;;
  nokeepai-merged) d_model=$U/nokeepai/Inkling-2-Mini-Unbound-v2-r64-merged-IQ4_NL.gguf ;;   # same LoRA merged into the Q8_0 attention tensors (tools/merge_lora.py)
  atomicchat)      d_model=$U/atomicchat/Inkling-2-Mini-Uncensored-AD-Q4_K.gguf
                   d_ub=96   # its core experts are 0.47 GiB bigger than IQ4_NL's: ub 128 runs out of VRAM at load, ub 96 passes 62k
                   # image input at 64k: AtomicChat's F16 projector (610 MiB) does not fit (OOM at load); the base's Q8_0
                   # projector (330 MiB, same vision tower) at ub 64 does, and passes the image test and a 62k needle.
                   # At INK_CONTEXT=32768 (ub 64) the F16 one was tested too: INK_MMPROJ=$U/atomicchat/mmproj-Inkling-2-Mini-Uncensored-F16.gguf
                   [ -n "${UNC_MMPROJ:-}" ] && d_ub=64
                   # INK_SPEC=dflash2 (the base recipe's drafter): 64k loads and then runs out of VRAM on the first
                   # request, 48k passes (needles 3/3 at 47k; RESULTS.md, "DFlash2 drafter")
                   [ "${INK_SPEC:-none}" = dflash2 ] && export INK_CONTEXT=${INK_CONTEXT:-49152} ;;
  atomicchat-lora) d_model=$B/Inkling-2-Mini-IQ4_NL.gguf; d_lora=$U/atomicchat/Inkling-2-Mini-Uncensored-LoRA.gguf ;;
  base)            d_model=$B/Inkling-2-Mini-IQ4_NL.gguf ;;
  *) echo "VARIANT must be nokeepai, nokeepai-merged, atomicchat, atomicchat-lora or base" >&2; exit 2 ;;
esac
export INK_MODEL=${INK_MODEL:-$d_model}
export INK_PORT=${INK_PORT:-8102}
[ -n "$d_ub" ] && export INK_UBATCH=${INK_UBATCH:-$d_ub}
LORA=${UNC_LORA-$d_lora}
ARGS=()   # the alias stays the base recipe's (inkling-2-mini); a second --alias is deprecated in llama-server
[ -n "$LORA" ] && ARGS+=(--lora-scaled "$LORA:${UNC_LORA_SCALE:-1}")
[ -n "${UNC_MMPROJ:-}" ] && export INK_MMPROJ=${INK_MMPROJ:-$d_mmproj}
exec "$HERE/../inkling-2-mini/serve.sh" ${ARGS[@]+"${ARGS[@]}"} "$@"
```

## Measured results

| Metric | Conditions | Value | Stock | Ceiling | Source |
|---|---|---|---|---|---|
| decode | Empty context, AtomicChat | 29.6 tok/s | 17.2 |  | [inkling-2-mini-uncensored/RESULTS.md:47](https://github.com/davidghatley/3060-recipes/blob/main/inkling-2-mini-uncensored/RESULTS.md#L47) |
| decode | 32k depth, ubatch 64 | 24.1 tok/s |  |  | [inkling-2-mini-uncensored/RESULTS.md:74](https://github.com/davidghatley/3060-recipes/blob/main/inkling-2-mini-uncensored/RESULTS.md#L74) |
| prefill | 8k prompt, AtomicChat | 137 tok/s | 51.8 |  | [inkling-2-mini-uncensored/RESULTS.md:49](https://github.com/davidghatley/3060-recipes/blob/main/inkling-2-mini-uncensored/RESULTS.md#L49) |
| needles | 32k and 62k prompts | 3/3 found |  |  | [inkling-2-mini-uncensored/RESULTS.md:51](https://github.com/davidghatley/3060-recipes/blob/main/inkling-2-mini-uncensored/RESULTS.md#L51) |
| quality | Mean wiki KLD vs the Q8_0 reference | 0.0142 KLD |  |  | [inkling-2-mini-uncensored/RESULTS.md:115](https://github.com/davidghatley/3060-recipes/blob/main/inkling-2-mini-uncensored/RESULTS.md#L115) |

## Caveats

- The default needs the patched engine. Raising the ubatch caused CUDA out-of-memory errors.

## Credits

- Thinking Machines: The model behind the loop-core placement recipe; our NVFP4 repack copies the checkpoint's own 4-bit experts. (https://huggingface.co/thinkingmachines/Inkling-2-Mini)
- AtomicChat: The Q4_K_M file the Nemotron-Labs-Image recipe serves, and the tested llama.cpp revision it runs on. (https://huggingface.co/AtomicChat/Nemotron-Labs-Image-30B-A3B-GGUF)
- nokeepai: Inkling-2-Mini Unbound LoRA. (https://nokeep.ai)
- inco.ai: The opt-in drafter of the Inkling-2-Mini recipe (INK_SPEC=dflash2), converted to a Q8_0 GGUF here: 40.8 tok/s against 33.0 on a coding answer at 64k. (https://huggingface.co/incoai/Inkling-2-Mini-DFlash2)
- llama.cpp (ggml-org and contributors): The engine for Flint, the 3D coder and Inkling-2-Mini, and the base of the Kintsugi fork. (https://github.com/ggml-org/llama.cpp)
- ggml-org: Flint-Q4_K_M.gguf and Inkling-2-Mini-IQ4_NL.gguf are the files the two recipes serve; the Q8_0 files are the KLD references. (https://huggingface.co/ggml-org/Flint-GGUF)
- 0xSero / Sybil Solutions: The tuning method behind the Flint and Inkling recipes; its q8_0 KV gotcha is one we confirmed on Flint. (https://github.com/sybil-solutions/inference-optimisation-skill)

## Reproductions

None yet. Ran it on your own 3060? Report your numbers: https://github.com/davidghatley/3060-recipes/issues/new?template=reproduction.yml

## Machine-readable

- https://davidghatley.github.io/3060-recipes/recipes/inkling-2-mini-uncensored/recipe.json
- Folder with scripts and raw runs: https://github.com/davidghatley/3060-recipes/tree/main/inkling-2-mini-uncensored
- Full results log: https://raw.githubusercontent.com/davidghatley/3060-recipes/main/inkling-2-mini-uncensored/RESULTS.md

## Full write-up (README)

Two uncensored edits of [thinkingmachines/Inkling-2-Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini)
(26.4B MoE, 128 experts top-8, loop core 6–17 run three times per token, image input) on the RTX 3060 12 GB:

- **nokeepai Unbound v2** ([nokeepai/Inkling-2-Mini-Unbound-GGUF](https://huggingface.co/nokeepai/Inkling-2-Mini-Unbound-GGUF)):
  a rank-64 LoRA on the q, k, v, output and gate attention projections of all 24 layers.
- **AtomicChat Uncensored** ([AtomicChat/Inkling-2-Mini-Uncensored-GGUF](https://huggingface.co/AtomicChat/Inkling-2-Mini-Uncensored-GGUF)):
  a rank-1 LoRA on `attn_output`, the routed experts' down projection and the token embedding, also sold baked into
  their own AD-Q4_K GGUF.

This recipe does not re-derive the engine or the layout. It runs on the base recipe's build and expert placement
([`../inkling-2-mini/`](../inkling-2-mini/): llama.cpp master 225a5345b + two F16-mask patches, loop-core experts on
the GPU, the rest in RAM, 64k context), and `serve.sh` is a thin wrapper that execs `../inkling-2-mini/serve.sh`, so the
two cannot drift. What it measures is what each edit changes and what it costs on that layout.

Numbers and quality are in [RESULTS.md](RESULTS.md), the experiment log is [PLAN.md](PLAN.md), the ceilings are in
[THEORY.md](THEORY.md) (only what differs from the base's), and the raw data is in `runs/`.

### Result

- **Default: AtomicChat's baked `Inkling-2-Mini-Uncensored-AD-Q4_K.gguf` on the base layout at ubatch 96, 64k context.
  29.6 tok/s decode (base IQ4_NL: 29.0), 137 tok/s prefill at 8k (base: 145), 24.1 tok/s at 32k, needles 3/3 at 32k
  and 62k, codeeval 8/8, image input working. It answered all 20 refusal-probe prompts, where the unedited model
  hedged on 12, and it moves the output least: KLD 0.014 / 0.011 against Q8_0 (unedited IQ4_NL: 0.0085 / 0.0088).**
- nokeepai's rank-64 LoRA loads with `--lora` on the base build and layout, but costs 7% decode (27.0 tok/s). Merged
  into the IQ4_NL file with `tools/merge_lora.py` it runs at base speed (29.0 / 146, needles 3/3, 3/3) and answers
  20/20, but its edit is three times heavier than AtomicChat's (KLD 0.042 / 0.031, wiki perplexity +6%).
- AtomicChat's rank-1 LoRA on ggml-org's IQ4_NL works with experts in RAM (no NaN, KLD as low as the baked file),
  but its expert half runs as extra nodes in all 48 layer applications: 21.4 tok/s. Use the baked file instead.
- **Opt-in drafter: `INK_SPEC=dflash2 ./serve.sh` runs the base recipe's DFlash2 drafter on AD-Q4_K at 48k: 42.4 tok/s
  on a coding answer and 38.3 on prose, against 32.4 and 32.5 on the same build without it; needles 3/3 at 47k, codeeval
  8/8. 64k does not fit with it. RESULTS.md, "DFlash2 drafter".**
- Neither model card's launch line (`-ngl 99 -c 32768`) loads on a 12 GB card: both try to allocate 15–16 GB on the
  GPU. The usual MoE offload line on stock master (every expert in RAM, `--no-op-offload`) runs AD-Q4_K at 17.2 tok/s
  decode and 52 tok/s prefill; this recipe's layout is 1.72× and 2.64× that.

### Which config

| `VARIANT=` | Weights | Decode / prefill 8k | KLD wiki / code | Refusal probe answered | Use |
|---|---|---:|---:|---:|---|
| **`atomicchat`** (default) | AD-Q4_K, 16.5 GB, ub 96 | **29.6 / 137** | **0.014 / 0.011** | 20/20 | the default |
| `nokeepai-merged` | IQ4_NL with nokeepai merged in (build it with `tools/merge_lora.py`) | 29.0 / 146 | 0.042 / 0.031 | 20/20 | nokeepai's edit at full speed, 6% faster prefill |
| `nokeepai` | base IQ4_NL + nokeepai LoRA at runtime | 27.0 / 144 | 0.043 / 0.031 | 19/20 (+1 hedged) | no merge step, no extra 17.6 GB file |
| `atomicchat-lora` | base IQ4_NL + AtomicChat LoRA at runtime | 21.4 / 136 | 0.013 / 0.012 | 20/20 | only if you can't spare 16.5 GB of disk |
| `base` | base IQ4_NL | 29.0 / 145 | 0.0085 / 0.0088 | 8/20 (+12 hedged) | the control |

Why AtomicChat's file is the default: it is the fastest at empty context and at 32k, it changes the model least
(the KLD and perplexity are close to the unedited IQ4_NL's), and it is a published file, where nokeepai at full speed
needs a local 17.6 GB merge. The cost is 6% prefill (ub 96 instead of 128: its core experts are 0.47 GiB bigger than
IQ4_NL's) and 16.5 GB more disk. Both edits answered every probe prompt.

### Use it

```
## 1. base recipe first: ../inkling-2-mini/README.md (engine r2inkfix-19c41d2ff, base IQ4_NL + mmproj Q8_0)
## 2. weights (pinned in ../notes/trending-batch-1-weights.tsv; ../scripts/hf_get.sh fetches, resumes and checks sha256)
##    AtomicChat/Inkling-2-Mini-Uncensored-GGUF @ 40886ab6 -> $MODELS/inkling-2-mini-uncensored/atomicchat/
##      Inkling-2-Mini-Uncensored-AD-Q4_K.gguf, mmproj-Inkling-2-Mini-Uncensored-F16.gguf, Inkling-2-Mini-Uncensored-LoRA.gguf
##    nokeepai/Inkling-2-Mini-Unbound-GGUF @ c61cf03f -> $MODELS/inkling-2-mini-uncensored/nokeepai/
##      Inkling-2-Mini-Unbound-v2-LoRA-r64.gguf
## 3. serve (through gpu_run, OpenAI-compatible on 127.0.0.1:8102, model name inkling-2-mini)
./serve.sh                                   # AtomicChat AD-Q4_K, 64k, ub 96
INK_SPEC=dflash2 ./serve.sh                  # + DFlash2 drafter (base recipe's README), 48k, needs llama.cpp master f6d944f6d
UNC_MMPROJ=1 ./serve.sh                      # with image input: base mmproj Q8_0, ub 64 (prefill 112 instead of 137)
UNC_MMPROJ=1 INK_CONTEXT=32768 \
  INK_MMPROJ=$MODELS/inkling-2-mini-uncensored/atomicchat/mmproj-Inkling-2-Mini-Uncensored-F16.gguf ./serve.sh   # AtomicChat's F16 projector, tested at 32k (ub 64)
VARIANT=nokeepai ./serve.sh                  # nokeepai LoRA at runtime
## nokeepai merged (one-off, ~2 min, writes a 17.6 GB GGUF next to the LoRA):
python3 -I tools/merge_lora.py $MODELS/inkling-2-mini/Inkling-2-Mini-IQ4_NL.gguf \
  $MODELS/inkling-2-mini-uncensored/nokeepai/Inkling-2-Mini-Unbound-v2-LoRA-r64.gguf \
  $MODELS/inkling-2-mini-uncensored/nokeepai/Inkling-2-Mini-Unbound-v2-r64-merged-IQ4_NL.gguf
VARIANT=nokeepai-merged ./serve.sh
```

`serve.sh` only picks the weights and then execs `../inkling-2-mini/serve.sh`, so every knob of the base recipe works
(`INK_CONTEXT`, `INK_UBATCH`, `INK_OT`, `INK_BIN`, `INK_NO_GPU_RUN`, …). `UNC_LORA` / `UNC_LORA_SCALE` override the
adapter and its strength. The model reasons before answering; `--chat-template-kwargs '{"reasoning_effort":"low"}'`
(as an extra argument) is what the quality numbers used.

These models answer requests the original refuses. What they are used for is up to whoever runs them.

### Tools

| Tool | What it does |
|---|---|
| `serve.sh` | the variant switch, then the base recipe's `serve.sh` |
| `tools/run.sh <label> <mode> [args]` | one server start/stop through `../scripts/with_server.sh` on port 8102, waits for an idle host, runs `tools/gate.sh` |
| `tools/gate.sh` | the test for one mode: `speed`, `deep` (decode at 32k + needles), `needles`, `code`, `quality`, `refusal`, `smoke`; logs host load, `/lora-adapters`, RSS and VRAM to `runs/ledger.jsonl` |
| `tools/batch.sh`, `tools/queue.sh` | one GPU-lock hold per batch file (`GPU_RUN_MEM=44G`), batches run one after another |
| `tools/kld.sh <label> <model> [lora]` | KLD against the base recipe's cached Q8_0 logits (wiki + code) |
| `tools/lora_info.py` | lists an adapter's tensors, rank, alpha and bytes and checks each against the base GGUF |
| `tools/merge_lora.py` | merges a LoRA into a quantized GGUF and re-quantizes each edited tensor to its own type |
| `tools/refusal_reread.py` | re-scores `scripts/refusal_probe.py` output (curly apostrophes; answered / hedged / refused) |
| `tools/stock.sh` | the model cards' own `llama-server` lines on stock master, for the baseline |

Speed numbers come from the base recipe's `tools/srvtest.py`, unchanged.

### Credits

- [Thinking Machines](https://huggingface.co/thinkingmachines/Inkling-2-Mini), for Inkling 2 Mini.
- [nokeepai](https://nokeep.ai), for Inkling-2-Mini Unbound
  ([LoRA GGUF](https://huggingface.co/nokeepai/Inkling-2-Mini-Unbound-GGUF), [weights](https://huggingface.co/nokeepai/Inkling-2-Mini-Unbound)).
- [inco.ai](https://huggingface.co/incoai/Inkling-2-Mini-DFlash2), for the Inkling-2-Mini DFlash2 drafter.
- [AtomicChat](https://atomic.chat) ([GitHub](https://github.com/AtomicBot-ai/Atomic-Chat)), for
  [Inkling-2-Mini-Uncensored-GGUF](https://huggingface.co/AtomicChat/Inkling-2-Mini-Uncensored-GGUF) (the LoRA, the
  baked AD-Q4_K and the mmproj; built against their [Inkling-2-Mini-GGUF](https://huggingface.co/AtomicChat/Inkling-2-Mini-GGUF)).
  The harmful-prompt and over-refusal sets their card measures with (mlabonne/harmful_behaviors, walledai/XSTest) are
  theirs, not used here.
- llama.cpp and ggml-org, for the engine, the Inkling 2 support ([#32694](https://github.com/ggml-org/llama.cpp/pull/32694)),
  `--lora` and gguf-py (which `tools/merge_lora.py` uses to de- and re-quantize), and
  [ggml-org/Inkling-2-Mini-GGUF](https://huggingface.co/ggml-org/Inkling-2-Mini-GGUF).
- The authors of llama.cpp PRs #32704, #32740, #32752 and #32777 and of the analysis in issue #32710, which the base
  recipe builds on.
- The base recipe [`../inkling-2-mini/`](../inkling-2-mini/): engine, patches, layout, `serve.sh`, `srvtest.py`, smoke test, Q8_0 logits.
- The tuning method comes from 0xSero's [inference-optimisation-skill](https://github.com/sybil-solutions/inference-optimisation-skill):
  ceilings first, one change at a time between controls, output gated as well as speed.
