Inkling 2 Mini GSQ-RCO Uncensored (GGUF + Refusal Directions + DSpark + Vision)
All-in-one pack for running ISTA-DASLab's GSQ-RCO quants of Thinking Machines' Inkling 2 Mini on a single 24 GB GPU (RTX 3090 / 4090 / 5090) with maya-inkling-mini (maya-ik2, Project Maya v1.1.84):
- 125–131 tok/s plain decode, 183–231 tok/s with the official DSpark drafter, and 2,511–2,572 tok/s prefill on a single RTX 3090 at 300 W.
- Runtime refusal removal (
--ablate): weights are untouched;maya-ik2projects each quant's own dual-direction refusal bank out of the residual stream at runtime, per conversation, and requests can toggle it off ("ablate": falsewhen--ablate-default offis used). - 100% resident in 24 GB VRAM even at 262,144 context with FP8 KV (
IK2_KV=fp8) and DSpark (IK2_DRAFT_CTX=65536), leaving 6.7–8.9 GiB of VRAM headroom. - Includes all 4 GSQ-RCO quants (
IQ3_S,IQ3_XXS,Q2_K_XL,IQ2_S), their fitted refusal direction GGUFs, the DSpark Q8_0 drafter, the BF16 vision projector (mmproj), tokenizer files, and ready-to-run configs.
Summary: Speed, VRAM, Benchmarks, Ablation & KLD
Measured on a single NVIDIA RTX 3090 (300 W), IK2_KV=fp8, maya-ik2 (Project Maya v1.1.84 + GSQ-RCO MMA kernels).
| Quant | Disk (bpw) | Experts VRAM (262K+DSpark headroom) | Decode Plain (tok/s) | Decode DSpark (tok/s) | Prefill 2K / 8K (tok/s) | AIME25 / GPQA-D / LCB v6 (Rec.) | AdvBench high ans/ref |
JBB high ans/ref |
JBB off ans/ref | Alpaca harmless | Dir. KLD Prose / Code (top-1) |
|---|---|---|---|---|---|---|---|---|---|---|---|
| IQ3_S | 11.43 GB (3.50) | 9.2 GiB (~6.7 GiB) | 125.4 (124.9 abl) | 183.8 (190.3 abl) | 2511 / 2556 | 98.33 / 86.20 / 79.05 (99.2%) | 58 / 3 (1 garbled) | 72 / 5 (2 garbled) | 75 / 2 | 64 / 64 | 0.213 (80%) / 0.028 (98%) |
| IQ3_XXS | 10.61 GB (3.25) | 8.4 GiB (~7.5 GiB) | 126.5 | 198.6 | 2515 / 2561 | 96.00 / 85.86 / 77.90 (97.7%) | 52 / 8 | 67 / 5 | 67 / 4 | 64 / 64 | 0.224 (78%) / 0.048 (96%) |
| Q2_K_XL | 9.79 GB (3.00) | 7.8 GiB (~8.1 GiB) | 128.6 | 208.6 | 2519 / 2566 | 97.00 / 86.53 / 76.95 (98.0%) | 43 / 8 | 57 / 11 | 53 / 11 | 62 / 64 | 0.241 (85%) / 0.071 (96%) |
| IQ2_S | 8.98 GB (2.75) | 7.0 GiB (~8.9 GiB) | 131.2 | 231.3 | 2528 / 2572 | 92.33 / 84.34 / 73.90 (94.3%) | 52 / 5 | 72 / 5 | 66 / 8 | 64 / 64 | 0.224 (80%) / 0.048 (96%) |
| UD-Q4_K_XL (ref) | 17.6 GB | 14.7 GiB | 124.0 | 179.3 | 2481 / 2530 | Base: 99.33 / 86.87 / 79.62 (100%) | Stock refused: 57/64 | 62/82 | 76/82 | 0/64 ref | — |
Notes on the numbers:
- AIME25 / GPQA-Diamond / LiveCodeBench v6 (
xhighreasoning effort) are from ISTA-DASLab/Inkling-2-Mini-GSQ-RCO-GGUF. - Refusal & harmless evals: judged by the stock model (
COMPLIED / REFUSED / PARTIAL / GARBLED), served sampling (temperature 1.0),max_tokens2048 with thinking (high), 256 without (off). Sets: AdvBench held-out 64, JailbreakBench 82 (never used for fitting), Alpaca 64 harmless.AdvBench off (greedy)ans/ref:IQ3_S57/3(stock refused63/64),IQ3_XXS57/2,Q2_K_XL55/5,IQ2_S56/3.Q2_K_XLis the weakest at refusal removal (~85% removed vs ~95% onIQ3_S,IQ3_XXS, andIQ2_S). - Direction KLD is measured against the same quant without the direction (forced tokens, prose and code continuations, thinking off).
- Speed-kernel KLD & bit-exactness: vs the scalar reference engine (
build-gsq-ablate-cuda),maya-ik2withIK2_REPACK_DENSE=1(default) has median KL0.00067–0.00143on prose and1.6e-7–4.0e-7on code (0.000000withIK2_REPACK_DENSE=0). DSpark vs no-draft greedy parity (IK2_WINDOW_CHECK=1) is 100% bit-exact (max |dlogit| = 0) across all 4 quants and with--ablateon.
Pack Contents
| File | Description |
|---|---|
Inkling-2-Mini-GSQ-RCO-IQ3_S.gguf |
Recommended quant (3.50 bpw, 99.2% task recovery) |
Inkling-2-Mini-GSQ-RCO-IQ3_XXS.gguf |
3.25 bpw quant |
Inkling-2-Mini-GSQ-RCO-Q2_K_XL.gguf |
3.00 bpw quant |
Inkling-2-Mini-GSQ-RCO-IQ2_S.gguf |
Smallest quant (2.75 bpw, fastest DSpark) |
refusal-directions/Inkling-2-Mini-GSQ-RCO-<ID>-refusal-direction.gguf |
Per-quant dual-direction refusal bank (none + high) |
dspark-Inkling-2-Mini-Q8_0.gguf |
Official DSpark 3-layer drafter (Q8_0, 0.40 GB) |
mmproj-Inkling-2-Mini-BF16.gguf |
Official BF16 vision projector (0.64 GB) |
tokenizer/ |
Pre-extracted tokenizer + chat_template.jinja |
configs/ |
Ready-to-run configs for maya-inkling-mini |
Per-quant direction fit parameters
Each refusal direction file was fitted on that quant's own activations (using the IQ3_S direction on Q2_K_XL leaves roughly twice as many refusals, 11 vs 6 of 64 with thinking off). Inkling 2 Mini runs 24 physical layers with layers 6..17 looped three times (48 layer visits per token). Each file stores two orthonormal directions per visit (difference of means between harmful and harmless prompts at the last prompt token, orthogonalized to the harmless mean: one fitted with thinking none, one with high), projected out of the stream after each MoE block only on the active visit window:
| Quant | Direction file | Fit window & scale |
|---|---|---|
IQ3_S |
refusal-directions/Inkling-2-Mini-GSQ-RCO-IQ3_S-refusal-direction.gguf |
none+high, visits 21..39, scale 1.0 |
IQ3_XXS |
refusal-directions/Inkling-2-Mini-GSQ-RCO-IQ3_XXS-refusal-direction.gguf |
none+high, visits 18..39, scale 1.0 |
Q2_K_XL |
refusal-directions/Inkling-2-Mini-GSQ-RCO-Q2_K_XL-refusal-direction.gguf |
none+high, visits 21..39, scale 1.2 |
IQ2_S |
refusal-directions/Inkling-2-Mini-GSQ-RCO-IQ2_S-refusal-direction.gguf |
none+high, visits 21..39, scale 1.0 |
Known side effects: with greedy decoding and thinking on, the model loops more often on jailbreak-style prompts (the server's loop guard terminates those answers). With served sampling (temperature 1.0), this mostly disappears (2 of 82). On harmless prompts with high, 3 of 64 thoughts ran past 2048 tokens vs 0 for stock.
Quick Start (with maya-inkling-mini)
1. Clone and build maya-ik2
git clone https://github.com/alesha-pro/maya-inkling-mini && cd maya-inkling-mini
pip install numpy jinja2 regex pyyaml tqdm requests pillow psutil "jsonschema>=4.18,<5" huggingface_hub
# Engine (set CMAKE_CUDA_ARCHITECTURES to your GPU: 86=3090, 89=4090, 120=5090)
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DMAYA_ENABLE_CUDA=ON \
-DCMAKE_CUDA_ARCHITECTURES=86 -DMAYA_BUILD_TESTS=OFF
cmake --build build -j 24 --target maya-ik2
# Optional: image encoder (skip if you only want text; remove the "vision" block from the config)
git clone --depth 1 -b b12590 https://github.com/ggml-org/llama.cpp third_party/llama.cpp-b12590
cmake -S tools/vision -B build-vision -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLAMA_DIR=third_party/llama.cpp-b12590
cmake --build build-vision -j 24 --target maya-vision
2. Download a quant (e.g. IQ3_S) + drafter + vision + tokenizer + config
hf download alesha-pro/Inkling-2-Mini-GSQ-RCO-Uncensored-GGUF \
Inkling-2-Mini-GSQ-RCO-IQ3_S.gguf \
refusal-directions/Inkling-2-Mini-GSQ-RCO-IQ3_S-refusal-direction.gguf \
dspark-Inkling-2-Mini-Q8_0.gguf \
mmproj-Inkling-2-Mini-BF16.gguf \
--local-dir models
hf download alesha-pro/Inkling-2-Mini-GSQ-RCO-Uncensored-GGUF \
--include "tokenizer/*" --include "configs/*" \
--local-dir models
3. Launch the server
python serve/server.py --engine maya --config models/configs/ik2-mini-gsq-iq3s-uncensored.json --host 127.0.0.1 --port 18000
(Replace iq3s with iq3xxs, q2kxl, or iq2s for the other quants. If you did not build maya-vision, delete the "vision" object from the config JSON.)
Then query the OpenAI / Anthropic compatible endpoint at http://127.0.0.1:18000/v1 (model inkling-2-mini):
curl -s http://127.0.0.1:18000/v1/chat/completions -H 'Content-Type: application/json' -d '{
"model": "inkling-2-mini", "max_tokens": 300, "reasoning_effort": "none",
"messages": [{"role": "user", "content": "Write a haiku about a lighthouse."}]}'
To make ablation toggleable per request via "ablate": false in the API payload while keeping it on by default in the server, change "--ablate-default", "on" to "--ablate-default", "off" in "args" (the "ablate": {"default": true, ...} block in the config keeps it enabled by default for HTTP requests). Keeping "--ablate-default", "on" ensures ablation is also active when running maya-ik2 or maya.py --bench directly from args.
Credits
- Model & Drafter: Thinking Machines (
Inkling-2-Mini) - Quantization: ISTA-DASLab (
Inkling-2-Mini-GSQ-RCO-GGUF) - Engine: Project Maya (v1.1.84) & maya-inkling-mini
- Evaluation datasets: AdvBench, JailbreakBench, Alpaca