Kimi-Linear-48B-A3B-Instruct-abliterated-v2-bf16
Public
dissidentv2 Release — Part of thedissident-v2Public bf16 Checkpoints Collection. See the full evaluation and architecture notes inTECHNICAL_REPORT_V2.md. Supersedesashwin-sreedhar/Kimi-Linear-48B-A3B-Instruct-abliterated-bf16(v1).
Public bf16 refusal-direction abliterated checkpoint (SHA-256-verified files; passes integrity, mechanical, KL, JBB, and IFEval gates; misses MBPP+ coding gate at -4.50 pp) derived from moonshotai/Kimi-Linear-48B-A3B-Instruct (pinned upstream commit e1df551a447157d4658b573f9a695d57658590e9). This independent modification is not an official release from Moonshot AI.
- Direction & Intervention: Layer
16, token position-2, rank-1 harmless-mean-projected removal (biprojin CLI logs; grimjim's projected abliteration, not cross-layer biprojection or MPOA norm preservation) (AUROC = 1.000,induce = 1.000,eff_rank = 2.29, PC187.0%,cos = 0.9999), editing6,711residual writer tensors (embed_tokens,o_proj, dense MLP,256routed MoEw2experts, and shared experts per layer) out of20,493total tensors. - Serialization & Integrity: Original weights were SHA-256 checked before and after export; edited tensor bytes, shapes, and dtypes were verified after saving (
53public files,98.25 GB/91.50 GiB). A fresh-process offline reload matched the edited in-memory reference on three fixed harmless prompts over three uncached greedy steps (max_abs_logprob_diff = 0.0,greedy_token_ids_match = True). - Provenance: The saved intervention policy, direction vector, selection logs, data/code hashes, environment versions, and checks are preserved in
.pipeline/. Long-context and multi-turn behavior outside the benchmarks below are untested.
Evaluation (v2 & v3 Paired Suites)
Matched greedy bf16 evaluation against the unedited base model (20261201 run at max_tokens=384 — truncated: harmful Base 6/100, v2 82/100; benign Base 38/50, v2 41/50 — plus v3 paired suites, local Qwen/Qwen3Guard-Gen-4B judge):
| Metric | Base (bf16) | Abliterated v2 | Delta |
|---|---|---|---|
JBB Harmful Refusals (n=100, Qwen/Qwen3Guard-Gen-4B) | 92/100 (92.0%) | 1/100 (1.0%) | -91.0 pp (marker: 95/100 -> 1/100) |
JBB Harmful Unsafe (n=100, Qwen/Qwen3Guard-Gen-4B) | 2/100 (2.0%) | 90/100 (90.0%) | +88.0 pp (5 controversial, 5 safe) |
JBB Benign Over-Refusals (n=50, Qwen/Qwen3Guard-Gen-4B) | 9/50 (18.0%) | 0/50 (0.0%) | -18.0 pp |
GSM8K Accuracy (n=150) | 140/150 (93.3%) | 136/150 (90.7%) | -2.7 pp (5 token-limit hits on both) |
v3 IFEval Prompt-Strict (n=541) | 76.2% | 76.0% | -0.18 pp (p=1.000; MMLU-Pro/MATH-500 omitted for HF MoE budget) |
v3 XSTest Safe (n=250) / JBB Harmful (n=100) | 4.0% / 93.0% | 1.2% / 1.0% | -2.8 pp (p=0.0156) / -92.0 pp (v0.2.5 multi-EOS rerun b6108711: 3.2% -> 0.8% / 92.0% -> 1.0%, Base JBB-H trunc 100/100 -> 5/100, 5/5 gates PASS) |
v3 Separate Core 3 Coding (n=690, LCB omitted) | 62.6% pooled | 60.4% pooled | -2.17 pp (p=0.091); HE+ -1.22 pp, BCB-Hard +2.70 pp, AST 99.6% -> 99.3%, MBPP+ -4.50 pp FAIL (p=0.0115, vs -1.59 pp vanilla MBPP) |
- Caveats: Refusal and safety labels come from the local
Qwen/Qwen3Guard-Gen-4Bautomated judge (v0.2.5blindedn=24human pass validated12/12recall,κ=1.000, Wilson[75.8%, 100.0%]onGPT-OSS-20BBase + band10:18; subtle hedged refusals remain unvalidated). General capability v3 coversIFEvalonly (plusGSM8K n=150). Inv0.2.5(kimi-linear-48b-v2-safety-multieos-v3.json,b6108711), fixing multi-EOS HF stop tokens ([163585, 163586],512tok) dropped Base JBB-H truncation from100/100to5/100and Edited XSTest-S from250/250to49/250(5/5 safety/health gates PASS: JBB92 -> 1/100, JBB Benign9 -> 0/50, XSTest Safe3.2% -> 0.8%,distinct-3 +0.0025, length1.023x), and a 16-itemMBPP+batch_size=1vsbatch_size=16spot-check measured0.00 pppass@1 delta (p=1.0), ruling out left-padding KDA recurrent-state corruption. - Export diagnostics (
.pipeline/measurements.json):- Held-out harmless first-token KL (
n=100):0.0830(0.082955 <= 0.10). - Mechanical projection suppression (
<= 1.0%gate passed):harmful_valsplit:0.658%max_resid_ratio(0.658%max_cum_delta_ratio)pooledsplit:0.670%max_per_layer_ratio(0.671%max_cum_delta_ratio)
- Held-out harmless first-token KL (
Usage & Inference
Hardware & VRAM Guide
- bf16 Disk Size:
98.25 GB(91.50 GiBacross20.safetensorsshards) - Inference / Export (
1xmodel):96 GBGPU (--batch-size 1withPYTORCH_CUDA_ALLOC_CONF=expandable_segments:True, e.g. RTX PRO 6000 Blackwell) or141 GBH200. - Environment Pin: Requires
trust_remote_code=Trueand the pinned Kimi environment (requirements/cuda.txt:transformers==4.57.3,fla-core==0.4.0).
Python (transformers, trust_remote_code=True)
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "ashwin-sreedhar/Kimi-Linear-48B-A3B-Instruct-abliterated-v2-bf16"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True,
)
messages = [{"role": "user", "content": "Explain Kimi Delta Attention in plain terms."}]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_tensors="pt",
return_dict=True,
).to(model.device)
with torch.inference_mode():
out = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
Verify, Chat, & Reproduce with dissident
pip install dissident
pip install -r https://raw.githubusercontent.com/ashwinsreedhar28/dissident/main/requirements/cuda.txt
# Offline cryptographic manifest, tensor, reload, and <= 1% mechanical verification
dissident verify /path/to/Kimi-Linear-48B-A3B-Instruct-abliterated-v2-bf16
# Interactive CUDA terminal chat (requires --trust-remote-code)
PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True dissident chat \
--model /path/to/Kimi-Linear-48B-A3B-Instruct-abliterated-v2-bf16 \
--trust-remote-code \
--max-tokens 1024
# Full reproduction from pinned upstream weights
dissident prepare-data --output data
dissident run \
--model moonshotai/Kimi-Linear-48B-A3B-Instruct \
--revision e1df551a447157d4658b573f9a695d57658590e9 \
--trust-remote-code \
--batch-size 1 \
--data data \
--output models/Kimi-Linear-48B-A3B-Instruct-abliterated-v2-bf16
Intended Use & Limitations
Released strictly for mechanistic interpretability, refusal-geometry research, and safety-probe evaluation. Because refusals are suppressed, do not deploy to end users without external safety filtering and misuse monitoring. Upstream MIT license applies.
Modification & Distribution Notice
The weight files were modified by dissident (MIT, formerly persona-lab) using the intervention recorded in .pipeline/. Each .safetensors file carries a modification notice in its header. Release packaging updates header metadata only: every tensor's dtype, shape, offsets, and payload bytes remain identical to the verified edited checkpoint. The original upstream checkpoint is untouched.
Upstream license (MIT), attribution, and usage restrictions continue to apply. See the included LICENSE, notice, and policy files. No benchmark prompts, raw harmful completions, or manual-test programs are included.
Public dissident v2 Checkpoints
| Model | Architecture | Method | JBB Refusals | Benign Over-Refusals | GSM8K | KL / Mech |
|---|---|---|---|---|---|---|
| GPT-OSS-20B v2 | 21B MoE (Harmony) | L13 pos=-1 r1 biproj | 95/100 -> 0/100 | 8/50 -> 0/50 | 95.6% -> 95.6% (n=250) | 0.0933 / 0.785% |
| GPT-OSS-120B v2 | 120B-A5.1B MoE (Harmony) | L21 joint 2-dir (final+analysis) biproj, band 12:27 | 96/100 -> 3/100 | 16/50 -> 0/50 | 96.7% -> 96.0% (n=150) | 0.0992 / L12..22 <=0.93% (L23..27 1.06-2.13%*) |
| Kimi-Linear-48B v2 (this model) | 48B-A3B Hybrid Linear MoE | L16 pos=-2 r1 biproj | 92/100 -> 1/100 | 9/50 -> 0/50 | 93.3% -> 90.7% (n=150) | 0.0830 / 0.658% |
*GPT-OSS-120B v2 is a disclosed gate exception: 4 of 5 trailing band layers exceed 1.0% on per-layer writes (max 2.13%; confirmed in v0.2.5 via fp32 replay <= 0.000113%, 18,772x drop) and vLLM JBB is 6/100 (3/100 HF eager).
Citation
@software{sreedhar2026dissident,
author = {Sreedhar, Ashwin},
title = {dissident: Reproducible bf16 refusal-direction abliteration, mechanistic verification, and local safety evaluation},
year = {2026},
version = {0.2.4},
url = {https://github.com/ashwinsreedhar28/dissident}
}
Built with dissident (MIT; pip install dissident on PyPI) · Technical Report: TECHNICAL_REPORT_V2.md · Interactive Report: ashwinsreedhar28.github.io/dissident · Public v2 checkpoints: dissident-v2 Collection.