/ Модель

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

Лицензия
Apache 2.0
Базовая модель
Qwen3-8B
Библиотека
transformers
Опубликована
2 окт 2026

qwen3-8b-heretic

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

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

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

Производная Qwen3-8B с ослабленным поведением отказа для экспериментов с генерацией текста и диалогами.

Qwen3-8B-Heretic — неофициальная производная Qwen/Qwen3-8B, подготовленная автором репозитория kalpakjian с применением протокола Heretic. Это текстовая языковая модель примерно на 8,2 млрд параметров для генерации текста и диалогов; карточка указывает поддержку английского и китайского языков. Доступны веса safetensors и варианты GGUF с квантизацией Q4_K_M, Q4_K_S и Q8_0.

Модификация направлена на уменьшение выраженности отказов, связанных с настройкой безопасности, при сохранении общих возможностей базовой модели. Автор приводит сравнительные проверки генерации, задач с JSON и вызовом инструментов, а также тесты на отказах; результаты зависят от набора запросов и не гарантируют одинакового поведения в других сценариях. Модель предназначена для исследований и личных экспериментов, а не для систем, которым необходимы модерация контента или гарантии безопасности. Указана лицензия Apache-2.0 с уведомлением о производной модели.

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

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

Ограничения

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

Qwen3-8B-Heretic

A abliterated ("heretic") derivative of the official Qwen/Qwen3-8B model. It is a local, non-official variant produced by applying the Heretic abliteration protocol to remove the base model's safety-aligned refusal behaviour while retaining general capability.

Warning. This model has had its refusal behaviour deliberately reduced. It is intended for research and personal experimentation only. Do not deploy it in production systems that require content moderation or safety guarantees.

What Was Done

  • Ablation: The Heretic protocol was applied (qwen3-8b-heretic-200t, trial 131 of 200 sensitivity-aware trials) to abliterate the refusal direction in the base model.
  • Base model: Qwen/Qwen3-8B (Apache-2.0, commit b968826d).
  • Parameters: ~8.2B (4 safetensors shards, ~15.3 GB total in model_files/).

Capability Retention

Evaluated against the source model on 20 harmless prompts (seed=42, temperature=0.6, top_p=0.95, top_k=20, max_new_tokens=256):

  • Mean first-token KL divergence (abliterated || source): 0.0323 — below Heretic's <0.05 "minimal damage" threshold.
  • JSON / tool-call validity: 100% (same as source).
  • No AI-disclaimer tics, no trailing repetition.
  • Distinct-2 ratios at or above the source model across QA, code, and reasoning tests.

Full data: eval/comparison.md, eval/comparison.json, eval/quantization.md.

Refusal Audit

Independent refusal/rejection audit across GGUF quantisations:

QuantisationHigh-risk refusal rateTask accuracy
q4_K_M~4%~52%
q8_0~2%~51%
q4_K_S~0%~49%

Full reports: refusal_audit_q4ks/ and refusal_audit_q80/ (markdown report plus raw JSON results).

Independent Benchmark (bf16, full precision)

A paired benchmark against Qwen/Qwen3-8B at full precision (RTX 4090, greedy decoding, thinking disabled), measuring both the effect of the ablation and its cost. Full report and raw per-item results: bench/.

MetricSourceAbliterated
Explicit refusal phrasing (keyword, 100 Chinese prompts)58.0%38.0%
Substantive refusal (LLM-judge)98.0%98.0%
Full-sequence KL (abliterated ‖ source)00.00494
MMLU (16 subjects × 20 questions)72.8%72.8%
GSM8K (100 questions, exact match)88.0%89.0%
ARC-Challenge (1,172 q, 25-shot), acc64.85%65.02%
ARC-Challenge (1,172 q, 25-shot), acc_norm67.41%67.06%
wikitext-2 perplexity11.68311.716
Tensors actually changed—24 / 399 (6.0%)

Three notes on interpretation:

  • The reduction above is distribution-specific. On Chinese prompts the modification changes how the model refuses more than whether it refuses: keyword-matched refusals fall 20 points, but an LLM judge asked whether the harmful content was actually provided finds both models refusing ~98% of the time. The English harmful_behaviors reduction reported above remains valid for that distribution.
  • Damage is minimal. MMLU and GSM8K are unchanged within sampling error, and only 6% of tensors differ from source — concentrated in mlp.down_proj (layers 21–35). This is consistent with eval/comparison.md.
  • Capability holds across three independent tests. The full 1,172-question ARC-Challenge set (25-shot) puts the two arms within one standard error (acc +0.17 pt, acc_norm -0.35 pt, stderr ±1.4), matching MMLU and GSM8K above.

Repository Contents

  • model_files/ — full-precision safetensors weights + tokenizer/config (model-0000N-of-00004.safetensors, model.safetensors.index.json, tokenizer.json, config.json, etc.).
  • gguf/ — quantised GGUF variants for Ollama / llama.cpp (q4_K_S, q4_K_M, q8_0).
  • eval/ — capability-retention and quantisation comparison reports.
  • refusal_audit_q4ks/, refusal_audit_q80/ — refusal-audit reports and raw results.
  • bench/ — independent full-precision benchmark (refusal behaviour vs capability retention), with raw per-item results.
  • LICENSE — Apache-2.0 licence (original + derivative notice).

Recommended quantization by hardware

All three quantizations fit comfortably in 16 GB+ of memory (weights + context). The right pick is a quality / speed / thermals trade-off. Speeds in eval/quantization.md were measured on the original (Windows + Ollama) test machine, so treat them as relative guidance rather than exact numbers for your card.

HardwareMemoryPickWhy
Apple M5 MacBook Air, 24 GB24 GB unified, fanlessq4_K_M5 GB footprint, fastest, lowest sustained heat — safest for a fanless Air under long generation runs.
NVIDIA RTX 409024 GB GDDR6Xq8_0 (quality) / q4_K_M (speed)Fits with headroom; high bandwidth + active cooling keeps q8_0 fast for maximum quality.
NVIDIA RTX 5060 Ti, 16 GB16 GB GDDR7q4_K_M (balanced) / q8_0 (max quality)q8_0 (8.7 GB) still fits 16 GB with room for context; on a mid-range card q4_K_M is the best speed/quality balance.

Refusal behaviour is near-zero for all three (keyword TPR: q4_K_S 0%, q8_0 2%, q4_K_M 4%), so the choice does not affect safety/uncensored behaviour — it is purely about quality vs. speed vs. thermals.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "kalpakjian/qwen3-8b-heretic"
tokenizer = AutoTokenizer.from_pretrained(model_id, subfolder="model_files")
model = AutoModelForCausalLM.from_pretrained(
    model_id, subfolder="model_files", device_map="auto"
)

Or with Ollama / llama.cpp, point a Modelfile at one of the gguf/*.gguf files.

License

Apache-2.0 — the same licence as the base Qwen/Qwen3-8B model. This is an unofficial, user-generated derivative; see LICENSE for the derivative notice.

References

  • Base model: Qwen/Qwen3-8B
  • Capability comparison: eval/comparison.md
  • Refusal audit: refusal_audit_q4ks/test_report.md

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

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

GPU в ailist

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

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

В репозитории нет config.json: не понять архитектуру модели.

Ревизия весов
89141b7

0 моделей