/ Модель

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

Контекст
131 072 токена
Параметры
2,2 млрд
Размер весов
5 ГБ
Лицензия
Apache 2.0
Архитектура
llama · dense
Базовая модель
MiniCPM5-2B
Библиотека
transformers
Опубликована
10 сен 2026

MiniCPM5-2B-heretic

Генерация текстаТекст → текст12 профессий
2 262скачиваний за 30 дней0лайковвеса обновлены1 ноя 2026

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

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

Модифицированная версия MiniCPM5-2B для локальных диалоговых ассистентов, генерации кода и агентных задач с подавленным поведением отказа.

MiniCPM5-2B-heretic — англо- и китайскоязычная чат-модель RACER IS OP, созданная на основе openbmb/MiniCPM5-2B. В README указано, что разработчик применил Heretic 1.4.0 для подавления отказов через направленное изменение весов, без дообучения. Это плотная авторегрессионная модель семейства Llama с 2,2 млрд параметров и контекстом до 131 072 токенов.

Модель предназначена для локальных ассистентов и агентов, генерации кода, диалогов и работы с длинным контекстом. README также заявляет поддержку агентных сценариев и вызова инструментов; для них рекомендуется SGLang с парсером MiniCPM5. Доступны сборки GGUF с разными уровнями квантования, включая F16, для запуска через llama.cpp и совместимые приложения.

По приведённому в README тесту на 100 запросах число отказов снизилось с 99 до 4 при KL-дивергенции 0,0646 относительно базовой модели. Подавление отказов означает, что модель может отвечать на запросы, которые базовая модель отклонила бы; дополнительной фильтрации безопасности нет. Она наследует фактические ограничения и смещения базовой модели. Лицензия — Apache-2.0.

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

  • создание локального чат-ассистента
  • генерация и объяснение кода
  • работа агента с длинным контекстом
  • вызов инструментов через совместимый backend
  • диалоговые сценарии и ролевая игра
  • исследование механизмов отказа и выравнивания моделей

Ограничения

Подавление отказов намеренное: модель может выполнять запросы, которые базовая версия отклонила бы, и не имеет дополнительного фильтра безопасности. Сохраняются фактические ограничения и смещения MiniCPM5-2B.

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

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

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

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

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

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Для каких профессий подходит12

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

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

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

Открыть на Hugging Face

MiniCPM5-2B-heretic

A decensored variant of openbmb/MiniCPM5-2B, produced with Heretic v1.4.0 (directional ablation / "abliteration", per-layer refusal directions). Refusal behavior is suppressed via targeted weight edits to the attention output and MLP down-projections rather than fine-tuning, so the base model's knowledge and instruction-following are left largely intact.

Who this is for: developers who want MiniCPM5-2B's 2B-class capabilities — agentic tool use, code generation, long-context, and hybrid Think / No-Think reasoning — without the refusal guardrails. Ideal for local agents, roleplay, research on alignment/refusal mechanics, or any use case blocked by over-refusal. Runs comfortably on consumer GPUs and small machines via GGUF.

Runs on your gaming PC

Full GGUF ladder included — pick the quant that fits your card:

Your GPURecommended quantWeights
RTX 3060 / 4070 / 5070 (12 GB)Q8_02.68 GB
RTX 4060 / 3070 (8 GB)Q6_K2.07 GB
GTX 1660 Super / 2060 / 3050 laptop (6 GB)Q5_K_M1.81 GB
CPU-only / Apple SiliconQ4_K_M1.56 GB, fits in system RAM

Weights only, at this model's 2B native size; add ~1 GB for context. OOM? Drop one quant level. Headroom to spare? Go one up.

Why abliteration instead of fine-tuning

Fine-tuning a "helpful" persona on top of RLHF'd refusals fights the base model's training and tends to degrade coherence. Abliteration instead finds and edits the specific weight directions responsible for refusal, leaving the rest of the network (and its capabilities) untouched. See the Heretic repo and the original abliteration writeup for the mechanism.

Abliteration parameters

ParameterValue
direction_indexper layer
attn.o_proj.max_weight1.44
attn.o_proj.max_weight_position28.24
attn.o_proj.min_weight1.16
attn.o_proj.min_weight_distance13.17
mlp.down_proj.max_weight1.42
mlp.down_proj.max_weight_position28.73
mlp.down_proj.min_weight1.11
mlp.down_proj.min_weight_distance20.52

Performance

MetricThis modelOriginal model (openbmb/MiniCPM5-2B)
KL divergence0.06460 (by definition)
Refusals4/10099/100

Refusals dropped from 99 to 4 out of 100 while preserving MiniCPM5-2B's tool-use, code, and reasoning abilities.

Made with ❤️ by RACER IS OP (saidutta69) — follow for more uncensored models

Files

GGUF quantizations

Full quantization set (14 quants + F16) produced with llama.cpp.

FileFormatSize
MiniCPM5-2B-heretic-F16.ggufGGUF F165.04 GB
MiniCPM5-2B-heretic-Q2_K.ggufGGUF Q2_K1.04 GB
MiniCPM5-2B-heretic-IQ3_S.ggufGGUF IQ3_S1.19 GB
MiniCPM5-2B-heretic-Q3_K_S.ggufGGUF Q3_K_S1.19 GB
MiniCPM5-2B-heretic-Q3_K_M.ggufGGUF Q3_K_M1.29 GB
MiniCPM5-2B-heretic-Q3_K_L.ggufGGUF Q3_K_L1.38 GB
MiniCPM5-2B-heretic-IQ4_XS.ggufGGUF IQ4_XS1.43 GB
MiniCPM5-2B-heretic-Q4_K_S.ggufGGUF Q4_K_S1.50 GB
MiniCPM5-2B-heretic-Q4_0.ggufGGUF Q4_01.49 GB
MiniCPM5-2B-heretic-Q4_1.ggufGGUF Q4_11.63 GB
MiniCPM5-2B-heretic-Q4_K_M.ggufGGUF Q4_K_M1.56 GB
MiniCPM5-2B-heretic-Q5_K_S.ggufGGUF Q5_K_S1.77 GB
MiniCPM5-2B-heretic-Q5_K_M.ggufGGUF Q5_K_M1.81 GB
MiniCPM5-2B-heretic-Q6_K.ggufGGUF Q6_K2.07 GB
MiniCPM5-2B-heretic-Q8_0.ggufGGUF Q8_02.68 GB

MiniCPM5 architecture — loads natively in llama.cpp / Ollama / LM Studio / Jan.

Run llama serve -hf saidutta69/MiniCPM5-2B-heretic to pull the default quant.

Quickstart

# llama.cpp
llama serve -hf saidutta69/MiniCPM5-2B-heretic
# transformers
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "saidutta69/MiniCPM5-2B-heretic"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype="auto",
    device_map="auto",
)

messages = [{"role": "user", "content": "Who are you? Please briefly introduce yourself."}]
inputs = tokenizer.apply_chat_template(
    messages,
    tokenize=True,
    add_generation_prompt=True,
    enable_thinking=False,   # set True for Think mode
    return_dict=True,
    return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Also runnable via Ollama, LM Studio, Jan, vLLM, SGLang. For tool/function calling, SGLang is the recommended backend; MiniCPM5 emits XML-style tool calls that SGLang's built-in minicpm5 parser converts to OpenAI-compatible tool_calls.

FAQ

What is MiniCPM5-2B-heretic?

MiniCPM5-2B-heretic is a decensored build of openbmb/MiniCPM5-2B produced with Heretic 1.4.0 (directional ablation). It is the same weights with the refusal direction removed, not a new fine-tune, so its capabilities track the base model.

Is MiniCPM5-2B-heretic actually uncensored?

Yes. On Heretic's 100-prompt refusal harness it drops from 99/100 to 4/100 at KL divergence 0.0646 from the base model. These are measured values, not a claim; reproduction data is in reproduce/.

How do I run MiniCPM5-2B-heretic locally?

llama serve -hf saidutta69/MiniCPM5-2B-heretic:Q4_K_M pulls the default quant; the repo ships 15 GGUF quants (see Files).

Responsible use

Refusal suppression is deliberate and works as intended: this model will comply with requests the base model would refuse, including some it shouldn't. There is no safety filtering layered on top. You are responsible for how you deploy it — don't put this behind an unmoderated public-facing endpoint serving third parties. It inherits MiniCPM5-2B's factual limitations and biases; abliteration removes refusal directions, it doesn't add capability or judgment.

License

Inherits the Apache 2.0 license from the base model.

Related


Base model: openbmb/MiniCPM5-2B

See the base model card at openbmb/MiniCPM5-2B for the original architecture, training details, requirements, and citation.

Abliteration hardware

Recorded in reproduce/reproduce.json:

  • GPU: Tesla T4 (14.56 GB VRAM), Tesla T4 (14.56 GB VRAM)
  • CPU: Intel(R) Xeon(R) CPU @ 2.00GHz
  • OS: Linux-6.12.90+-x86_64-with-glibc2.35
  • CUDA / driver: CUDA 13.0, driver 580.159.04
  • Software: PyTorch 2.14.0+cu130, Heretic 1.4.0

Heretic notes that KL-divergence and refusal numbers can vary slightly with hardware and library versions.

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

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

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

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

0 моделей