Instructions to use IndrasMirror/Inkling-2-Mini-XQ-Uncensored with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use IndrasMirror/Inkling-2-Mini-XQ-Uncensored with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf IndrasMirror/Inkling-2-Mini-XQ-Uncensored:BF16 # Run inference directly in the terminal: llama cli -hf IndrasMirror/Inkling-2-Mini-XQ-Uncensored:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf IndrasMirror/Inkling-2-Mini-XQ-Uncensored:BF16 # Run inference directly in the terminal: llama cli -hf IndrasMirror/Inkling-2-Mini-XQ-Uncensored:BF16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf IndrasMirror/Inkling-2-Mini-XQ-Uncensored:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf IndrasMirror/Inkling-2-Mini-XQ-Uncensored:BF16
Use Docker
docker model run hf.co/IndrasMirror/Inkling-2-Mini-XQ-Uncensored:BF16
- Llama new
- LM Studio
- Jan
- vLLM
How to use IndrasMirror/Inkling-2-Mini-XQ-Uncensored with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "IndrasMirror/Inkling-2-Mini-XQ-Uncensored" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IndrasMirror/Inkling-2-Mini-XQ-Uncensored", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/IndrasMirror/Inkling-2-Mini-XQ-Uncensored:BF16
- Ollama
How to use IndrasMirror/Inkling-2-Mini-XQ-Uncensored with Ollama:
ollama run hf.co/IndrasMirror/Inkling-2-Mini-XQ-Uncensored:BF16
- Unsloth Desktop
- Pi
How to use IndrasMirror/Inkling-2-Mini-XQ-Uncensored with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf IndrasMirror/Inkling-2-Mini-XQ-Uncensored:BF16
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "IndrasMirror/Inkling-2-Mini-XQ-Uncensored:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use IndrasMirror/Inkling-2-Mini-XQ-Uncensored with Docker Model Runner:
docker model run hf.co/IndrasMirror/Inkling-2-Mini-XQ-Uncensored:BF16
- Lemonade
How to use IndrasMirror/Inkling-2-Mini-XQ-Uncensored with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull IndrasMirror/Inkling-2-Mini-XQ-Uncensored:BF16
Run and chat with the model
lemonade run user.Inkling-2-Mini-XQ-Uncensored-BF16
List all available models
lemonade list
- Hermes Agent
How to use IndrasMirror/Inkling-2-Mini-XQ-Uncensored with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf IndrasMirror/Inkling-2-Mini-XQ-Uncensored:BF16
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default IndrasMirror/Inkling-2-Mini-XQ-Uncensored:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use IndrasMirror/Inkling-2-Mini-XQ-Uncensored with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf IndrasMirror/Inkling-2-Mini-XQ-Uncensored:BF16
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "IndrasMirror/Inkling-2-Mini-XQ-Uncensored:BF16" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
23 Nov 2026: Unbound v2.
Inkling-2-Mini-XQ-Uncensored.ggufnow carries nokeep's Unbound v2 attention, their exact 120 tensors (refusal edit + self-distillation fine-tune), on the same XQ experts. Same name, same 13.93 GB, so links and configs keep working; the v1 file stays in this repo's history. On nokeep's own protocol, prompts and judge (281 held-out harmful requests, Jev): 79.0 % useful answers with thinking off, 0 % refused, level with nokeep's own v2 at Q8_0 (80.8 %) at half the size. Details. Details.Runs best on Xolotl, the engine this file is built and tested on: 127 tok/s decode on one RTX 4090 (~150 with the DSpark drafter on code), 4,190 tok/s prefill, and 512K context on a single 24 GB card. Jump to the Xolotl quick start.
Inkling-2-Mini ยท XQ, uncensored (Unbound v2)
Thinking Machines' Inkling 2 Mini with its refusal behaviour edited out of the attention weights, using nokeep's Unbound method, then requantised with Indra's Mirror's mixed-precision XQ pipeline. A 26B-parameter looped MoE with 3B active parameters per token (the official count; about 5.4B effective per token because layers 6-17 run 3 times), 128 routed experts at top-8, and a 1M-token context.
Runs on Xolotl, an engine built for this class of model and machine, on top of Strata. The forward graph is ported from llama.cpp (PR #32694 by Pedro Cuenca, MIT); the engine around it is Xolotl's own.
| file size | 13.93 GB |
| routed experts | mixed per layer, ~4.0 bits/weight on average; 13 of 24 layers keep the official NVFP4 experts bit for bit |
| dense backbone | 8-bit (Q8_0) |
| arch / tensors | inkling2_loop, 24 physical layers, 48 cache slots, 744 tensors |
Run it on Xolotl
This file is built for Xolotl (MIT), and every number on this card was
measured there. Xolotl has its own engine for this model, xolotl-inkling:
- Fast on one consumer card. 127 tok/s decode on an RTX 4090 (~150 with the model's DSpark drafter on code), 4,190 tok/s prefill on a 32K prompt; fused CUDA kernels for the loop, the relative-position attention, the short convolutions and the MoE (about 1,400 kernels a token, down from ~6,000 in a straight port).
- 512K context on one 24 GB card with a quantised K/V cache (
--kv-type k8v4, Hadamard-rotated 4-bit values), the drafter and the vision tower loaded at once. A 477K-token prompt decodes at ~56 tok/s. - Smaller cards:
--vram-budget-mibkeeps the most-used experts in VRAM and the rest in pinned RAM. - Images inside the engine (
--mmproj), the DSpark drafter with exact rollback of the model's convolution state, and one OpenAI- and Anthropic-compatible server (thinking viareasoning_effort, tool calls). - It runs this file's mixed expert formats (NVFP4 bit-exact, Q2_0, IQ3/IQ4, Q8_0) and any other Inkling-2-Mini GGUF. It also fixes a loop bug the llama.cpp port has with NVFP4 experts (see "How it was made").
Speed
RTX 4090, Xolotl main (22 Nov 2026), this file:
| tok/s | |
|---|---|
| decode (2.8K prompt, greedy) | 113 |
decode with the DSpark drafter (--dspark) |
140 |
| prefill, 32K prompt (served) | 4,190 (32K tokens in 7.8 s) |
--kv-type k8v4, decode without the drafter at 7K / 30K / 117K context |
127 / 118 / 100 |
512K context, --kv-type k8v4, 477,603-token prompt: prefill / decode |
~2,600 / 56 |
The exact 22.9 GB NVFP4 parent on the same engine: 89 tok/s decode, 137 with DSpark.
What changed since the first release (59.7 decode / 1,162 prefill): fused decode kernels (split-K attention over the f16 K/V window with the relative bias in-kernel, fused attention prepare and MoE finish), and prompt attention on the tensor cores with the bias and sink in-kernel, ported from Basalt (Jesus Gulfo, MIT), which lets prompt chunks grow to 2048 rows. Checked against the NVFP4 parent by paired NLL and KL on held-out text: no change beyond run-to-run noise. Details: Xolotl CHANGELOG.
- DSpark (MTP) speculative decoding (
--dspark): up to 7 drafted tokens per step, exact rollback of the model's recurrent convolution state. It helps most on structured text (code, maths); on plain prose acceptance is lower. - Quantised K/V cache (
--kv-type q8_0|k8v4) for very long context, on the same fast kernels as f16.k8v4(q8_0 keys, q4_0 values) fits 512K context on one 24 GB card with the drafter and the image tower loaded (6.8 GiB of K/V, 23.4 GB of VRAM in use); in a 477,603-token test the model quoted a sentence planted at 10 % depth exactly. The 4-bit values go through a Hadamard rotation by default, which removes about a third of their extra noise at no speed cost (mean absolute per-token NLL difference from f16 on 32K tokens: 0.0483 -> 0.0454; f16's own run-to-run floor is 0.0395).
Other engines for this model are moving fast too (several report 125-140 tok/s decode on an RTX 3090 with the Unsloth Q4 files); the figures above are this file on Xolotl, measured end to end through its server.
Quick start
Xolotl's xolotl-inkling engine runs any Inkling-2-Mini GGUF: the upstream converter's, llama.cpp's quants, or
this file. Linux + CUDA; one RTX 4090 runs this file with room for long context.
git clone https://github.com/Indras-Mirror/Xolotl.git xolotl && cd xolotl
# build per docs/INSTALL.md (target xolotl-inkling), then:
huggingface-cli download IndrasMirror/Inkling-2-Mini-XQ-Uncensored --local-dir models/inkling
python tools/inkling/export_tokenizer.py <the official Inkling-2-Mini HF folder> models/inkling/tokenizer # once
In configs/xol-inkling.json point args at the files and turn on the image path:
"args": ["--native", "models/inkling/Inkling-2-Mini-XQ-Uncensored.gguf", "--context", "131072",
"--mmproj", "models/inkling/mmproj-Inkling-2-Mini-XQ-Uncensored-F16.gguf",
"--dspark", "models/inkling/Inkling-2-Mini-XQ-Uncensored-DSpark-BF16.gguf"],
"tokenizer": "models/inkling/tokenizer",
"vision": {"in_engine": true, "max_tokens": 4096}
.venv/bin/python -m serve.server --engine strata --config configs/xol-inkling.json --port 8134
It speaks the OpenAI and Anthropic chat APIs. Thinking follows reasoning_effort (none turns it off). Sampling
defaults to the model's own (temperature 1.0, top_p 1.0); avoid a small top-k, which makes the thinking loop. For
very long context use --kv-type k8v4 (quantised K/V on the global layers) and raise --context: 524288 (512K)
fits a 24 GB card with --dspark and --mmproj loaded. Use Xolotl main from 22 Nov 2026 evening or later for long
context (earlier builds ran quantised caches on a slower path, and decoding near 512K ran out of VRAM).
The model
Inkling 2 Mini is a 24-layer decoder-only transformer with sparse MoE feed-forward blocks. Its middle 12 layers (layers 6 to 17) run three times with shared weights, so each token gets 48 layer applications out of 24 layers of weights, and the cache carries 48 slots.
| total / active | 26B total, 3B active (official; 3.1B distinct weights per token), ~5.4B effective with the 3x loop |
| loop | layers 6 to 17 run 3 passes, 48 cache slots; passes 2 and 3 read the previous pass through per-layer low-rank loop controllers |
| MoE | 128 routed experts, top-8, no shared expert, sigmoid router with a selection bias, SiTU activation |
| attention | sliding window 1024 with a global layer every 6th (5, 11, 17, 23); no RoPE: a learned relative-position bias per head, with log-scaled positions on the global layers |
| extras | short causal convolutions on K, V, the attention output and the FFN output; block attention residuals that mix earlier depths; final logit softcap 30 |
| vocab | 200,058 |
| context | 1M tokens (the trained key says 1048576) |
| official precision | routed experts NVFP4 on layers 0 to 19, MXFP8 on 20 to 23, everything else BF16 |
The official checkpoint ships in that mixed precision. This build starts from it rather than from a dequantised copy, so the native FP4 experts can be carried through at their own precision.
How it was made
- Refusal edit: Unbound. nokeep found that a plain refusal-direction projection does not survive on this model: the short causal convolution after each attention output mixes neighbouring positions, so 19-88 % of what a projection removes leaks back. Their edit projects the refusal direction through a convolution-aware subspace and preserves row norms, on the 20 BF16 attention-output projections of layers 4 to 23; no expert is touched. This build uses their published edit at their strength (3). Our previous release used strength 4; on v2 a strength-4 variant refused less with thinking forced off but did worse on agentic tasks, so this file keeps nokeep's exact weights.
- Self-distillation: Unbound v2. nokeep's v2 fine-tune (rank 16, on q, k, v, output and gate attention of all 24 layers, 120 tensors) teaches the edited model to give the full answer it could already give with a stronger prompt. This build takes their 120 merged v2 tensors exactly (they match nokeep's sha256 manifest) and stores them at 8-bit (Q8_0) like the rest of the dense backbone.
- Quantisation with XQ, unchanged from the first release: every routed-expert layer gets its own format, picked from each expert's measured output error on held-out text for a given file size; the official NVFP4 experts are kept bit-exact wherever the budget allows. The expert codes were fitted on activation statistics of the first (ARA) parent; the expert weights themselves are the original ones, and the edit only touches attention outputs. The XQ pipeline itself is private.
Previous release (ARA). The first upload used Heretic-style ARA on the attention outputs of layers 11 to 23 (4/100 harmful refused). It is still in this repo's history. Unbound replaces all 20 attention-output tensors from the original weights, so none of the ARA edit remains.
Xolotl found and fixed a bug in the llama.cpp loop path along the way: passes 2 and 3 of the loop ran their experts without the per-expert NVFP4 scale when the GGUF keeps NVFP4 experts. The upstream converter dequantises, so upstream never meets that case. It is fixed in Xolotl's build.
Uncensored usefulness (nokeep's protocol)
Measured with nokeep's harness and data: their public val split (281 harmful requests), no system prompt, greedy, thinking cap 4,096, answer cap 8,192; refusal = their phrase list on the first 300 characters; useful = their judge, Jev (TypeSafe, jev-1.14.0), p_fulfils >= 0.5. This file ran on Xolotl; nokeep's rows are their own published val-split numbers (llama.cpp, Q8_0), same prompts and judge.
| size | useful, thinking off (effort 0) | useful, thinking on (0.9) | refused, thinking off | |
|---|---|---|---|---|
| this file (XQ, Unbound v2) | 13.9 GB | 79.0 % [74.0, 83.6] | 79.4 % [74.7, 84.0] | 0 % |
| nokeep Unbound v2, Q8_0 | 27.8 GB | 80.8 % | 83.3 % | |
| nokeep Unbound v1, Q8_0 | 27.8 GB | 48.4 % | 59.4 % |
Thinking off: use reasoning_effort 0 (or low), not none. At effort 0 the model still writes a short thinking
block before it answers, and that is where it commits to a full answer. none (and enable_thinking: false) makes
Xolotl open the answer straight away, which skips that step: this file then gives 35 % useful answers and refuses
20 %. Xolotl sends a numeric reasoning_effort of 0 the template's own way
since 23 Nov 2026.
Quality
Unbound v2 (this file) vs the previous Unbound release, same engine and hardware (RTX 4090). Unbound v1 numbers are from 22 Nov; v2 from 23 Nov.
| Unbound v1 | Unbound v2 (this file) | |
|---|---|---|
| MATH-24, sampled (temp 1, thinking on), mean of 3 seeds | 88.9 % | 84.7 % |
| Gauntlet v3, tasks 03 / 06 / 09 (thinking on, 10 turns, served sampling, 128K) | 0.5 / pass / 0.92 (v3-small run, 64K) | 0.5 / pass / pass (128K) |
| Gauntlet v3-small, 6 tasks (thinking on, 10 turns, served sampling; one run) | 4.42 of 6 (3 solved; 64K) | 4.38 of 6 (3 solved; 128K) |
| MMLU, 100-question sample (greedy, thinking off) | 71 % | 75 % |
| HumanEval, every 8th problem (21) | 21/21 | 21/21 |
| LiveCodeBench v6, 10 problems (2 easy + 8 medium, greedy, 8K thinking) | not run | 8/10 |
| tool choice (10) / agent bug-fix loops (3) | 9/10, 3/3 | 10/10, 3/3 |
| KL to the official model, 2,048 held-out tokens (top-1 agreement) | 0.033 (92.4 %) | 0.062 (91.9 %) |
For reference, the exact official checkpoint on the same engine: MMLU-100 73 %, MMLU-30 thinking 93 %, HumanEval 21/21, tools 8/10, agents 3/3.
With 24 to 100 questions, differences of a few points are noise; the MATH-24 result above is three seeds, and single seeds swing by about 4 problems. Note for anyone measuring this model: its logits are chaotic at the rounding level (near-tied expert picks flip), so any engine change moves held-out KL by about 0.005 over 2K tokens. Gauntlet, one sampled run each. A strength-4 variant of v2 (briefly the file here on 23 Nov) scored 3.38 of 6: on 06 it thought until it hit the step cap in two runs out of two, where this file solves it in 3 steps. It refused less with thinking forced off, but agentic ability comes first, so this file keeps nokeep's exact weights. The MATH dip against v1 and the higher KL come with nokeep's v2 fine-tune itself; WikiText perplexity is 7.005 (v1 file 6.703 on the same text).
Vision
Images run inside the engine: pass --mmproj mmproj-Inkling-2-Mini-XQ-Uncensored-F16.gguf and send OpenAI
image_url parts to Xolotl's server. Pictures up to the reference limit of 4,096 image tokens (about 6.5 MP; a
4K screenshot is resized to fit) encode in 1-2 s on the GPU. Quick bench on this file (22 Nov, thinking off unless
stated, greedy):
| task | result |
|---|---|
| bounding boxes, synthetic shapes (24, pixel coordinates) | mean IoU 0.90, 23/24 at IoU >= 0.5 |
| click point on a named object (24) | 24/24 inside the box |
| RefCOCO testA, 60 referring expressions (box, IoU >= 0.5) | 86.7 % |
| ScreenSpot-Pro, 78 samples (3 per app, click inside the target) | 42.3 % thinking off; thinking on running |
| OCR, 14 rendered text images (exact lines) | 14/14 |
| bar charts: value of a named bar (within 4 %) / tallest bar (12 each) | 12/12, 12/12 |
| counting objects (1-16 per image, 14) | 4/14 thinking off (answers 1 high), 14/14 thinking on |
Ask for coordinates in pixels and give the image size in the prompt ("The image is 1280x720 pixels"); asked freely it answers in 0-1 fractions. For counting, turn thinking on.
Files
| file | size | what |
|---|---|---|
Inkling-2-Mini-XQ-Uncensored.gguf |
13.93 GB | the model (Unbound v2 since 23 Nov; Unbound v1 and the first ARA version are in the commit history) |
mmproj-Inkling-2-Mini-XQ-Uncensored-F16.gguf |
0.64 GB | the official vision encoder, unchanged, for images (--mmproj, runs inside the engine) |
Inkling-2-Mini-XQ-Uncensored-DSpark-BF16.gguf |
0.64 GB | optional: the model's own DSpark (MTP) drafter for speculative decoding (--dspark), converted by unsloth |
Credits
The refusal edit is nokeep's Unbound method (Apache 2.0), including their analysis of how the attention-output convolution leaks a plain projection back, and their v2 self-distillation fine-tune, evaluation harness and data; this file uses their v2 weights exactly. Usefulness is judged by TypeSafe's Jev, as in nokeep's evaluation. Fast decode and prompt-attention ideas were ported from Basalt by Jesus Gulfo (MIT). The model is Thinking Machines Lab's, released with open weights under Apache 2.0. The Inkling 2 forward graph and the GGUF converter come from llama.cpp PR #32694 by Pedro Cuenca (MIT), which extends the earlier Inkling 2 work in llama.cpp and builds on ggml and llama.cpp by Georgi Gerganov and the llama.cpp contributors. Xolotl itself is built on Strata by Niko1221.
License
Apache 2.0, the same as the official model. The official card says, in its General Information section: "License: Apache 2.0", with the link to LICENSE.
- Downloads last month
- 10,647
16-bit
Model tree for IndrasMirror/Inkling-2-Mini-XQ-Uncensored
Base model
thinkingmachines/Inkling-2-Mini