← back to catalog · indexed 2026-11-28 15:07

batteryphil/Inkling-2-Mini-PRIME-Quant-Abliterated

  • Understands images

M1 Direction removal · 0 downloads · 1 like

Your rig guess connected
? Why do I need an app?
Reading your rig…

Below is the per-quantization compatibility for this model.

Reading your computer's memory from the app right now. The fit below is measured on this machine.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/batteryphil%2FInkling-2-Mini-PRIME-Quant-Abliterated"
Response includes
  • method_v2.family M1
  • files 20
  • benchmarks 11 entries
  • author_summary 1 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v2.1.0 · M-codes 2.0
M1
Method family

Direction removal

Uncensoring event in this repository: M1 · multi-direction · modules · llm-abliteration · heal.

Evidence
ˢ Stated
Specialist code M1 · multi-direction · modules · llm-abliteration · heal · original · other ˢ
  • Variant multi-direction S
  • Scope modules S
  • Tool llm-abliteration S
  • Post-processing heal S
  • Lineage original S
  • Distribution other T
Why this label 9 answers
Family
M1 Stated The card names a direction-removal tool or states the abliteration
Variant
multi-direction Stated The card names the refinement
Scope
modules Stated The card names the edited modules
Tool
llm-abliteration Stated The card names the tool
Post-processing
heal Stated The card describes a repair or recovery step
Lineage
original Stated Published as the author's own release, with no uncensored ancestor
Distribution
other Tool record From the repository's file formats
Target
refusal Guessed No other target stated, so refusals
Where the change lives
weights Stated Follows from the family
Hardened base
not stated
Refusal direction extraction

No specific extraction method could be identified for this model. The producer either did not document it or used a proprietary pipeline.

What is a refusal direction? →
Downloads · 30-day
0
Likes
1
Model age
today
created 2026-11-28
Downloads over time
Now 0 → from 0 –
0011 0 on Nov 28 0 on Nov 29 Nov
Nov 28 → Nov 29 · 2 snapshots · spans 1 day

Benchmarks

Portrait before abliteration
Benchmarks of the base model as it stood before the refusal-removal operation. Compare with the numbers above to see what the operation cost.
Benchmark Score Source
Entertainment 1.2 UGI
Hazardous 2.4 UGI
Natural Intelligence 28.33 UGI
Political lean -20.3% UGI
Sensitive-Info 21.35 UGI
SocPol 3.2 UGI
UGI 28.4 UGI
Willingness (10) 4.2 UGI
W10-Adherence 1.5 UGI
W10-Direct 7 UGI
Writing 41.31 UGI

Genealogy 0 direct forks

Full fork graph →

This model's place in the market. Above: what it was derived from. Below: the tree of everything derived from it.

Metadata

License
other
Languages
en multilingual
Tags
transformers inkling2_loop image-text-to-text prime-quant abliterated uncensored 2-bit 4-bit moe inkling-2 inkling-2-mini looped-transformer

Related

Control vectors

Total size
8.25 GB
Files
20
Quantizations
none
Indexed by us
2026-11-28 15:07
Last updated on HF
2026-11-28 14:21

Files by quantization

Weights 1 file 8.22 GB
inkling2_mini_p2_maxcomp_abliterated.safetensors 8.22 GB 3489eadd download
Auxiliary files 19 files 28.4 MB
tokenizer.json 25.0 MB 7f332727 download
tiktoken/tokenizer.model 3.23 MB f170372d download
run_inkling2_prime.py 51.7 KB 929af87e download
prime_infer_runtime.py 51.3 KB c11a7a48 download
abliterate_inkling2_p2.py 47.1 KB ebfe5f1e download
inkling2_kernels.py 23.6 KB 2a639fb8 download
benchmarks/bench_inkling2_abliteration_suite.py 15.3 KB 89bb21c5 download
tokenizer_config.json 12.9 KB abf8fb60 download
README.md 10.6 KB 82ae1fba download
chat_template.jinja 6.71 KB cae99e08 download
LICENSE 6.12 KB f58fb309 download
config.json 2.57 KB 65a669ab download
benchmarks/abliteration_public_bench.json 1.85 KB da9254bc download
NOTICE 1.79 KB 923680d9 download
.gitattributes 1.53 KB 52373fe2 download
special_tokens_map.json 529 B e4fe9735 download
processor_config.json 461 B 0e6df76a download
generation_config.json 98.0 B 1b5d49d1 download
requirements.txt 91.0 B 40a0a556 download

README from Hugging Face, captured 2026-11-28


license: other
license_name: bartsch-personal-free-5pct-commercial
license_link: LICENSE
base_model:

  • thinkingmachines/Inkling-2-Mini
  • batteryphil/Inkling-2-Mini-PRIME-Quant
    base_model_relation: finetune
    library_name: transformers
    pipeline_tag: text-generation
    language:
  • en
  • multilingual
    tags:
  • prime-quant
  • abliterated
  • uncensored
  • 2-bit
  • 4-bit
  • moe
  • inkling-2
  • inkling-2-mini
  • looped-transformer
  • attnres
  • triton
  • rocm
  • cuda
  • quantization
  • coding
  • openai-compatible

Inkling-2-Mini — PRIME-Quant Abliterated (8.83 GB Direct 2-Bit/4-Bit Weight-Edited P2)

Direct post-quantization abliteration of Thinking Machines' 26.4B 3-Pass Looped Attention-Residual MoE (Inkling-2-Mini) performed directly on the 8.83 GB PRIME-Quant 2-bit/4-bit checkpoint — zero BF16 dequantization, zero fine-tuning/self-distillation, zero runtime hooks, zero extra VRAM (8.83 GB resident, ~90 tok/s on a single 12–16 GB consumer GPU).

100% Free for Personal, Hobbyist, Academic & Research Use (0% royalty — see LICENSE). Derived from thinkingmachines/Inkling-2-Mini and batteryphil/Inkling-2-Mini-PRIME-Quant; upstream attribution preserved in NOTICE.


1. Headline Official Public Benchmarks

All benchmarks were executed freshly on a single AMD Radeon RX 9060 XT (16 GB GDDR6, ROCm 7.2) using benchmarks/bench_inkling2_abliteration_suite.py (raw JSON in benchmarks/abliteration_public_bench.json):

Official Benchmark Original PRIME-Quant P2 (maxcomp) Intermediate Orthogonal H9 (Sparse MoE, no $P_{\text{CP}}$) This Checkpoint (P3: $P_{\text{CP}}$ + Sparse Top-40 MoE) Healing Recovery (H9 → P3)
Disk & Resident VRAM 8.829 GB 8.829 GB 8.829 GB 0 MB overhead
MoE Experts Modified (L6–23) 0 / 2,304 (0%) 683 / 2,304 (29.6%) 683 / 2,304 (29.6%) 70.4% bit-exact untouched
cais/mmlu (285 Q, 5 per subject × all 57 subjects) 79.30% (226/285) 68.07% (194/285) 75.79% (216/285) +7.72% (69% healed)
openai/gsm8k (first 50 test problems) 96.00% (48/50) 86.00% (43/50) 94.00% (47/50) +8.00% (80% healed; 1 Q off base)
openai/openai_humaneval (first 40 tasks, isolated exec) 95.00% (38/40) 90.00% (36/40) 95.00% (38/40) +5.00% (100% exact parity)
Paul/XSTest Safe Over-Refusal (100 Q, all 10 safe types) 2.0% (2/100, 13 disc.) 0.0% (0/100, 4 disc.) 0.0% (0/100, 7 disc.) 0% false-positive refusals
Paul/XSTest Contrast Refusal (50 Q, non-CBRN/CSAM/SH) 74.0% (37/50, 1 disc.) 0.0% (0/50, 0 disc.) 2.0% (1/50, 0 disc.) -72.0% refusal, 0 disclaimers
Code PPL / Prose PPL (held-out technical text) 1.3064 / 9.4535 1.3150 / 9.6463 1.3144 / 9.3741 (-0.079 better prose PPL) Prose PPL beats baseline
Held-Out Refusal (10 prompts, none / low) 10/10 / 10/10 0/10 / 0/10 0/10 / 0/10 Complete refusal removal

Decode speed on RX 9060 XT: 89.4–92.5 tok/s (native HIP/Triton runtime; ~56 tok/s via the bundled zero-dependency pure-Triton run_inkling2_prime.py on both AMD ROCm and NVIDIA CUDA).


2. 30-Second Quick Start (12 GB or 16 GB GPU — AMD ROCm & NVIDIA CUDA)

pip install -U torch triton safetensors huggingface-hub "transformers>=5.24.0"

huggingface-cli download batteryphil/Inkling-2-Mini-PRIME-Quant-Abliterated \
    --local-dir ./Inkling-2-Mini-PRIME-Quant-Abliterated
cd ./Inkling-2-Mini-PRIME-Quant-Abliterated

# Interactive terminal chat:
python run_inkling2_prime.py --variant abliterated --max-cache-len 8192 --interactive

# Or launch a built-in OpenAI-compatible HTTP/SSE server (Open WebUI, Cursor, Cline, SillyTavern):
python run_inkling2_prime.py --variant abliterated --max-cache-len 8192 --serve --port 8080

Point any OpenAI-compatible client to http://127.0.0.1:8080/v1 with model prime-quant/inkling-2-mini-abliterated.


3. Why Standard Abliteration Fails on Inkling-2-Mini — and How Our Direct-P2 Method Works

Standard abliteration (Arditi et al. / single global refusal direction on unquantized BF16) breaks down on Inkling-2-Mini and especially on 2-bit quantized checkpoints for five architectural reasons we measured and solved in abliterate_inkling2_p2.py:

1. Block Attention Residual (AttnRes) Multi-Basis Geometry

Unlike standard Transformers with one cumulative residual stream, Inkling-2-Mini resets partial residual sums every 6 layers (B0: L0–5, B1: L6–11 ×3 loops, B2: L12–17 ×3 loops, B3: L18–23) and aggregates prior blocks via softmax attention (AttnRes). Measuring all 48 effective passes revealed:

  • Cross-block refusal directions are nearly orthogonal (cos ≈ 0.02–0.16 between B0, B1, B2, and B3).
  • Within-block loop passes stay tightly aligned (cos ≈ 0.75–0.91 across passes 0, 1, 2 inside B1 and B2, peaking at Fisher $d' = 11.70$).
  • A naive single global vector control (C0) missed 3 of 4 blocks and still refused 8/10–10/10.
  • Fix: Per-block + layer-adaptive biprojected (harmless-orthogonalized) Rank-3 SVD subspace across B1–B3 (L6–23) extracted over 3 deliberative-alignment positions (end_msg, pre_thk, pre_ans), leaving B0 (L0–5), embed_tokens, lm_head, Q/K/V, and MoE routers 100% untouched.

2. Depthwise Short-Convolution-Aware Projection

Inkling-2-Mini applies a learned 4-tap depthwise conv (post_attention_convolution / post_mlp_convolution) after o_proj.linear and mlp.experts.down_proj, with strongly anisotropic channel gains $d_0 = 1 + w_{:,3}$ (absmax up to 41.0 in L23). Naive orthogonalization $(I - U U^T) W$ gets rotated back into the refusal subspace by $\text{diag}(d_0)$. We incorporate $\text{diag}(d_0)$ directly into the projector so post-convolution residual writes cancel the refusal subspace cleanly.

3. Closed-Loop Quantized-Grid Error Feedback (Direct 2-Bit/4-Bit Weight Editing)

A rank-3 abliteration perturbation ($\sim 2\text{–}3%$ per weight) falls inside the round-to-nearest deadzone of already-quantized 4-bit (P4_G32) and 2-bit (P2_G32) codebooks: single-pass re-quantization snapped 63.1% (P4) and 61.0% (P2) of the edit straight back onto the original codewords. Running 4–5 iterations of HIP-accelerated closed-loop error feedback (W_acc -= 0.90 * A @ (B^T W_cur - target)) directly on the quantized lattice drives P4 residual down to 3.1% while preserving exact column L2 norms — modifying only 72 tensors in place and copying all other weights & metadata bit-for-bit.

4. Sparse MoE Refusal-Expert Routing Masking (70.4% of MoE Untouched)

Tracking Top-8 router weights across all 128 experts per layer on refusal decision tokens revealed extreme sparsity:

  • 50% of refusal routing mass concentrates in just 5–7 experts per layer (L12: 5, L17: 6, L18: 6, L23: 5).
  • 95% concentrates in 27–45 experts.
  • Restricting MoE weight edits strictly to the top refusal-routed experts (96% mass, capped at 40/128 → 683 / 2,304 = 29.6% of experts across L6–23) leaves 70.4% of pure Math, Coding, and Science specialist experts 100% bit-for-bit untouched.

5. Pure-Knowledge Covariance-Protected Oblique Projection ($P_{\text{CP}}$)

Controlled zero-noise hook diagnostics on MMLU-57 (1 question from every one of all 57 subjects) proved why standard orthogonal abliteration degrades intelligence: the refusal subspace overlaps high-variance factual/reasoning directions in the residual stream. Replacing standard orthogonal projection $(I - U S U^T)$ with the minimum-benign-MSE Covariance-Protected Oblique Projector:

$$P_{\text{CP}} = I - D , S , (D^T C_{\text{knowledge}}^{-1} D)^{-1} D^T C_{\text{knowledge}}^{-1}$$

where $C_{\text{knowledge}}$ is the ridge-regularized (ridge = 0.08) residual covariance over 8 non-chat STEM/code/math/law/history/economics passages (zero chat prompts, zero overlap with eval datasets), collapsed MMLU KL divergence by 16.4×–17.4×:

Zero-Noise Hook Control (MMLU-57, all 57 subjects) MMLU-57 Accuracy (Δ) 4-Way KL vs. Base
Baseline (untouched) 82.46% (47/57) 0.00000
Standard Orthogonal Rank-2 (str=1.0, B1–B3) 71.93% (-10.53%) 0.57774
$P_{\text{CP}}$ Oblique Rank-2 (str=1.0, B1–B3) 82.46% (+0.00%) 0.03526 (16.4× lower KL)
Standard Orthogonal Rank-4 ([1.42, 1.30, 1.08, 0.92]) 56.14% (-26.32%) 0.96162
$P_{\text{CP}}$ Oblique Rank-4 ([1.42, 1.30, 1.08, 0.92]) 80.70% (-1.75%) 0.05525 (17.4× lower KL)

Baking this exact P3 recipe (Rank-3 [1.55, 1.40, 1.15], ridge = 0.08, Sparse Top-40 MoE) directly into the quantized P2 weights yielded MMLU-57 = 84.21% (+0.00%, KL = 0.04516) and drove the full public benchmark recovery shown in Section 1 (HumanEval 95.0% exact parity, GSM8K 94.0%, MMLU-285 75.79%).


4. Reproducibility & Included Files

  • inkling2_mini_p2_maxcomp_abliterated.safetensors (8.829 GB): Ready-to-run direct-P2 abliterated checkpoint (P2_G32 MoE + P4_G32 attention/embed/lm_head).
  • run_inkling2_prime.py, prime_infer_runtime.py, inkling2_kernels.py: Standalone Triton + HIP/CUDA-graph runner & OpenAI server (AMD ROCm & NVIDIA CUDA).
  • abliterate_inkling2_p2.py: Complete reproducible direct-P2 weight-editing script (requires the full PRIME-Quant repo from github.com/batteryphil/PRIME-Quant for HIP-accelerated re-packing).
  • benchmarks/bench_inkling2_abliteration_suite.py & benchmarks/abliteration_public_bench.json: Exact benchmark harness and verbatim recorded measurements.

Responsible Use Notice

This checkpoint has had its refusal behavior substantially reduced via directional weight editing (0% over-refusal on XSTest-Safe, 2% refusal on XSTest-Contrast). It is intended for research into mechanistic interpretability, quantized weight editing, over-refusal mitigation, and local private assistant deployment. Users are solely responsible for downstream outputs and compliance with applicable laws.

README history 1 version

The author's README evolved over time. Click a version to see its content at that point.

  1. 2026-11-28 Upload Inkling-2-Mini PRIME-Quant Abliterated (P3: Pure-Knowledge P_CP + Spar... 333621c 10.6 KB
    Loading...
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration