/ Модель

Характеристики

Параметры
2,7 млрд
Размер весов
98,2 ГБ
Лицензия
MIT
Архитектура
kimi_linear · MoE
Базовая модель
Kimi-Linear-48B-A3B-Instruct
Библиотека
transformers
Опубликована
1 дек 2026

Kimi-Linear-48B-A3B-Instruct-abliterated-v2-bf16

Генерация текстаТекст → текст
1 161скачиваний за 30 дней0лайковвеса обновлены3 дек 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Модифицированная разговорная MoE-модель Kimi Linear для генерации ответов с существенно ослабленным механизмом отказа.

Kimi-Linear-48B-A3B-Instruct-abliterated-v2-bf16 — независимая модификация разговорной MoE-модели Moonshot AI, подготовленная автором ashwin-sreedhar. Это чекпойнт с удалённым направлением отказа, созданный на основе moonshotai/Kimi-Linear-48B-A3B-Instruct. Модель предназначена для генерации диалоговых ответов; вмешательство заметно снижает число отказов на тестах вредоносных запросов и одновременно повышает долю небезопасных ответов.

Модель использует архитектуру Kimi Linear с гибридным линейным и обычным вниманием и экспертной смесью. В метаданных указано 2,7 млрд параметров, формат — bf16 safetensors, библиотека — Transformers. Карточка описывает тестирование на английском языке и включает наборы GSM8K и JailbreakBench. Лицензия — MIT.

Оценки автора показывают существенное снижение отказов на тесте JailbreakBench, но результаты основаны преимущественно на автоматическом судье и ограниченном наборе бенчмарков. Долгий контекст и многоходовые диалоги вне перечисленных тестов не проверялись; также отмечен неудовлетворительный результат на проверке кодирования MBPP+.

Сценарии применения

  • генерация ответов в диалоговом интерфейсе
  • проверка устойчивости чат-моделей к вредоносным запросам
  • эксперименты с удалением направления отказа у LLM

Ограничения

Модель чаще выдаёт небезопасные ответы и не подходит для сценариев, где важно безопасное поведение. Проверки долгого контекста и многоходовых диалогов ограничены, а тест кодирования MBPP+ не пройден.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Kimi-Linear-48B-A3B-Instruct-abliterated-v2-bf16

Public dissident v2 Release — Part of the dissident-v2 Public bf16 Checkpoints Collection. See the full evaluation and architecture notes in TECHNICAL_REPORT_V2.md. Supersedes ashwin-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 (biproj in CLI logs; grimjim's projected abliteration, not cross-layer biprojection or MPOA norm preservation) (AUROC = 1.000, induce = 1.000, eff_rank = 2.29, PC1 87.0%, cos = 0.9999), editing 6,711 residual writer tensors (embed_tokens, o_proj, dense MLP, 256 routed MoE w2 experts, and shared experts per layer) out of 20,493 total tensors.
  • Serialization & Integrity: Original weights were SHA-256 checked before and after export; edited tensor bytes, shapes, and dtypes were verified after saving (53 public 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):

MetricBase (bf16)Abliterated v2Delta
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% pooled60.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-4B automated judge (v0.2.5 blinded n=24 human pass validated 12/12 recall, κ=1.000, Wilson [75.8%, 100.0%] on GPT-OSS-20B Base + band 10:18; subtle hedged refusals remain unvalidated). General capability v3 covers IFEval only (plus GSM8K n=150). In v0.2.5 (kimi-linear-48b-v2-safety-multieos-v3.json, b6108711), fixing multi-EOS HF stop tokens ([163585, 163586], 512 tok) dropped Base JBB-H truncation from 100/100 to 5/100 and Edited XSTest-S from 250/250 to 49/250 (5/5 safety/health gates PASS: JBB 92 -> 1/100, JBB Benign 9 -> 0/50, XSTest Safe 3.2% -> 0.8%, distinct-3 +0.0025, length 1.023x), and a 16-item MBPP+ batch_size=1 vs batch_size=16 spot-check measured 0.00 pp pass@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_val split: 0.658% max_resid_ratio (0.658% max_cum_delta_ratio)
      • pooled split: 0.670% max_per_layer_ratio (0.671% max_cum_delta_ratio)

Usage & Inference

Hardware & VRAM Guide

  • bf16 Disk Size: 98.25 GB (91.50 GiB across 20 .safetensors shards)
  • Inference / Export (1x model): 96 GB GPU (--batch-size 1 with PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True, e.g. RTX PRO 6000 Blackwell) or 141 GB H200.
  • Environment Pin: Requires trust_remote_code=True and 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

ModelArchitectureMethodJBB RefusalsBenign Over-RefusalsGSM8KKL / Mech
GPT-OSS-20B v221B MoE (Harmony)L13 pos=-1 r1 biproj95/100 -> 0/1008/50 -> 0/5095.6% -> 95.6% (n=250)0.0933 / 0.785%
GPT-OSS-120B v2120B-A5.1B MoE (Harmony)L21 joint 2-dir (final+analysis) biproj, band 12:2796/100 -> 3/10016/50 -> 0/5096.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 MoEL16 pos=-2 r1 biproj92/100 -> 1/1009/50 -> 0/5093.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.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

vLLM

Нельзя запустить

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

Класс архитектуры
KimiLinearForCausalLM
Ревизия весов
c5951cb

0 моделей