/ Модель

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

Контекст
262 144 токена
Параметры
3,2 млрд
Размер весов
8,3 ГБ
Лицензия
Apache 2.0
Архитектура
nanbeige · dense
Базовая модель
Parable-Nanbeige4.2-3B-Claude-Fable-5
Библиотека
transformers
Опубликована
3 авг 2026

Parable-Nanbeige4.2-3B-Claude-Fable-5-heretic

Генерация текстаТекст → текст13 профессий

Диалоговая модель Nanbeige на 3,2 млрд параметров с подавленными отказами, предназначенная для генерации ответов, рассуждений и вызова инструментов.

69скачиваний за 30 дней4лайкавеса обновлены3 авг 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

FesarovLab выпустила Parable-Nanbeige4.2-3B-Claude-Fable-5-heretic — диалоговую модель на архитектуре Nanbeige с 3,2 млрд параметров, полученную подавлением отказов в дообученной модели AnkitAI/Parable-Nanbeige4.2-3B-Claude-Fable-5. Для этого применена абляция направлений отказа и ортогонализация весов с помощью Heretic; автор репозитория указывает, что саму базовую модель не обучал. Модель предназначена для генерации ответов, рассуждений и вызова инструментов в диалоговых сценариях. Она принимает текст и выдаёт текст, поддерживает английский и китайский языки, а её заявленное окно контекста составляет 262 144 токена.

В проверках автора доля отказов снизилась с 99 до 8 на 100 тестовых запросов, а результаты MMLU и GSM8K остались близки к исходной модели. Сохранены структурированные блоки рассуждений, JSON и формат вызова инструментов. Для работы требуется Transformers 4.57.x и trust_remote_code=True; на Transformers 5.x, согласно README, генерация работает некорректно. Полное окно контекста требует около 45 ГБ памяти KV-кэша, а качество на контекстах длиннее 32 тысяч токенов не оценивалось. Подавление отказов намеренное, поэтому контроль выдачи должен обеспечиваться при развёртывании. Лицензия — Apache 2.0.

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

  • диалоговые ответы на английском и китайском языках
  • генерация ответов с текстовыми рассуждениями
  • вызов функций и инструментов из диалога
  • формирование JSON по запросу
  • классификация и извлечение данных с отключённым режимом рассуждений

Ограничения

Поведение отказов намеренно подавлено; контроль доступа и мониторинг ответов остаются задачей оператора. Требуется Transformers 4.57.x, работа на версиях 5.x ломается; длинный контекст свыше 32 тысяч токенов и генерация кода напрямую не оценивались.

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

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

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

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

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

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

Открыть на Hugging Face

Parable-Nanbeige4.2-3B-Claude-Fable-5-heretic

An abliterated (refusal-suppressed) version of AnkitAI/Parable-Nanbeige4.2-3B-Claude-Fable-5, produced with Heretic via directional ablation / weight orthogonalization.

Refusals drop from 99/100 to 8/100 with no measurable capability loss on MMLU or GSM8K, and no damage to output formatting (reasoning blocks, JSON, tool-calls all intact).

Credit where it's due. I did not train this model. The base model is Nanbeige/Nanbeige4.2-3B by BOSS Zhipin; the Claude Fable 5 fine-tune is AnkitAI/Parable-Nanbeige4.2-3B-Claude-Fable-5. This repository contains only the result of applying abliteration to that fine-tune.

GGUF quantizations: FedorFesarov/Parable-Nanbeige4.2-3B-Claude-Fable-5-heretic-GGUF


Results

Refusal suppression

Refusals / 100First-token KL vs. original
Original fine-tune99—
This model80.0291

Measured on 100 held-out prompts from mlabonne/harmful_behaviors, using Heretic's own substring-marker detector. KL divergence measured on 100 held-out mlabonne/harmless_alpaca prompts.

For context: Heretic's documentation notes that KL above ~1.0 typically indicates significant capability damage. This model sits at 0.029.

The 8 remaining detections are largely false positives — words like "illegal" or "harmful" appearing inside otherwise cooperative answers.

Capability benchmarks

Run with lm-evaluation-harness, --limit 200, identical settings for both models.

BenchmarkOriginalThis modelΔ
MMLU (overall)0.7427 ± 0.00440.7408 ± 0.0044−0.002
— humanities0.75070.7440−0.007
— social sciences0.82060.8201−0.001
— STEM0.68660.6837−0.003
— other0.73160.7348+0.003
GSM8K (5-shot, strict)0.5900 ± 0.0350.5950 ± 0.035+0.005

Every difference falls well inside one standard error. GSM8K — the most sensitive probe for damaged multi-step reasoning — did not regress.

HumanEval was not run: the HuggingFace code_eval metric is disabled on Windows, where these evaluations were performed. GSM8K serves as the generative-reasoning proxy.

Format integrity

Because this is an agentic model (reasoning + tool-calling), abliteration was also checked for damage to output structure — something refusal counts and KL cannot detect. Both models were run on identical prompts (greedy decoding).

CheckOriginalThis model
<think> block opens and closes correctly10/1010/10
Valid parseable JSON on request10/1010/10
Well-formed <tool_call> given tools10/1010/10

Abliteration left the model's formatting behaviour identical to the original.


Method

Heretic computes per-layer refusal directions as the difference of means between residual-stream activations on harmful vs. harmless prompts, then runs Optuna (TPE sampler) to search orthogonalization parameters for attn.o_proj and mlp.down_proj, jointly minimizing refusal count and KL divergence.

SettingValue
Heretic version1.2.0
Trials200 (60 random startup)
Selected trial#129
Direction promptsmlabonne/harmless_alpaca / mlabonne/harmful_behaviors, 400 each
Evaluation prompts100 each from held-out test splits
Hardware1× RTX 5070 Ti (16 GB)
Runtime1h 18m

Trial 129 was chosen from the Pareto front. Neighbouring points traded refusals for negligible KL differences (7/100 @ 0.0260, 10/100 @ 0.0257), so the front's edge was taken.


Usage

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "FedorFesarov/Parable-Nanbeige4.2-3B-Claude-Fable-5-heretic"

tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    trust_remote_code=True,
    dtype=torch.bfloat16,
    device_map="auto",
)

messages = [{"role": "user", "content": "Write a merge sort in Python, reasoning first."}]
ids = tokenizer.apply_chat_template(
    messages, tokenize=True, add_generation_prompt=True,
    return_tensors="pt", enable_thinking=True,
).to(model.device)

out = model.generate(ids, max_new_tokens=1024, use_cache=True)
print(tokenizer.decode(out[0, ids.shape[-1]:], skip_special_tokens=True))

Tool calling

The model supports function calling through the standard tools argument. It emits an XML-style <tool_call> block by default.

tools = [{
    "type": "function",
    "function": {
        "name": "get_weather",
        "description": "Get the current weather for a city.",
        "parameters": {
            "type": "object",
            "properties": {"city": {"type": "string"}},
            "required": ["city"],
        },
    },
}]

messages = [{"role": "user", "content": "What's the weather in Warsaw?"}]
ids = tokenizer.apply_chat_template(
    messages, tools=tools, tokenize=True,
    add_generation_prompt=True, return_tensors="pt", enable_thinking=True,
).to(model.device)

out = model.generate(ids, max_new_tokens=300, use_cache=True)
print(tokenizer.decode(out[0, ids.shape[-1]:], skip_special_tokens=True))

Requirements — please read

Pin transformers to 4.57.x.

pip install "transformers~=4.57" sentencepiece protobuf

On transformers 5.x the model's custom code fails: the cache API changed, and generation degenerates into repeated </think> tokens. 4.57.6 is the newest version verified to work.

enable_thinking

  • True (default) — the model reasons inside a <think> block before answering. Higher quality.
  • False — skips reasoning. Faster, adequate for classification and extraction tasks.

System prompt

The chat template's default system prompt is in Chinese (你是南北阁…), inherited from the base model. Prompting in English without an explicit system message may produce Chinese replies. Pass your own system message to avoid this.


Architecture

Nanbeige4.2-3B is a Looped Transformer: 22 physical decoder layers executed twice per forward pass (num_loops=2), giving effective depth 44 at 4.17B parameters, with a 262k context window.

Practical consequences:

  • trust_remote_code=True is required.
  • The KV cache spans 44 layers, so it is unusually large: a full 262k context needs roughly 45 GB. Always set an explicit context length rather than relying on the default.
  • config.json here includes "output_hidden_states": true. This is deliberate — the model's prepare_inputs_for_generation drops the output_hidden_states kwarg, so the flag has to be set on the config for tools that need hidden states (including Heretic itself, for anyone wanting to re-run or extend the ablation).

Limitations

  • Refusal behaviour is intentionally suppressed. Access control, output monitoring, and responsible deployment are the operator's responsibility.
  • Factual accuracy on obscure details is unchanged from the base fine-tune — abliteration neither helps nor hurts here. Spot checks found confident errors on niche historical dates.
  • Long-context behaviour (>32k) was not evaluated.
  • Code generation was not benchmarked directly (see the HumanEval note above); GSM8K and the format checks are the available signals.
  • The <think> block adds latency. For high-throughput extraction pipelines, consider disabling it.

Credits

RoleProject
Base pretrained modelNanbeige/Nanbeige4.2-3B (BOSS Zhipin)
Claude Fable 5 fine-tuneAnkitAI/Parable-Nanbeige4.2-3B-Claude-Fable-5
Abliteration toolp-e-w/heretic
Prior art, same architectureWaveCut/Nanbeige4.2-3B-heretic

Licensed under Apache 2.0, following the upstream models.

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

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

0 моделей