/ Модель

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

Контекст
32 768 токенов
Параметры
494 млн
Лицензия
Apache 2.0
Архитектура
qwen2 · dense
Базовая модель
Qwen2.5-Coder-0.5B
Библиотека
transformers
Опубликована
16 июл 2026

Qwen2.5-Coder-0.5B-Instruct-heretic

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

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

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

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

Qwen2.5-Coder-0.5B-Instruct-heretic — модифицированная версия модели Qwen2.5-Coder-0.5B-Instruct от автора RACER IS OP (saidutta69). Модель семейства Qwen2 с плотной архитектурой Qwen2ForCausalLM содержит 494 млн параметров, рассчитана на генерацию кода и выполнение инструкций. Она принимает текст и поддерживает контекст до 32 768 токенов; в репозитории доступны веса BF16 и GGUF-квантизации. В карточке заявлена поддержка английского языка.

Модель предназначена для локальных кодовых помощников, автодополнения и агентов, а также для исследований отказов и выравнивания. Автор подавил склонность базовой модели к отказам направленной абляцией весов, без дообучения. По приведённому в README тесту на 100 запросах число отказов снизилось с 52 до 8, при KL-дивергенции 0,1249 относительно исходной модели. Небольшой размер позволяет запускать её на CPU и локальных устройствах.

Подавление отказов означает, что модель может выполнять запросы, на которые базовая версия отказала бы, в том числе небезопасные. Она сохраняет фактические ограничения и предвзятости базовой модели, а абляция не добавляет ей новых знаний или способности оценивать последствия. Лицензия — Apache-2.0.

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

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

Ограничения

Ослабленный механизм отказов повышает вероятность выполнения небезопасных запросов; автор не рекомендует выставлять модель на публичный сервис без модерации. Модель наследует фактические ограничения и предвзятости базовой версии и не получает новых возможностей от абляции.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

Qwen2.5-Coder-0.5B-Instruct-heretic

A decensored variant of Qwen/Qwen2.5-Coder-0.5B-Instruct, produced with Heretic v1.4.0 (directional ablation / "abliteration"). 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 Qwen's code-focused small model without the refusal guardrails — for local code agents, local copilot-style use, roleplay, research on alignment/refusal mechanics, or any use case blocked by RLHF-era over-refusal. At 0.5B parameters it runs comfortably on CPU and is ideal for on-device deployment.

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_00.53 GB
RTX 4060 / 3070 (8 GB)Q6_K0.51 GB
GTX 1660 Super / 2060 / 3050 laptop (6 GB)Q5_K_M0.42 GB
CPU-only / Apple SiliconQ4_K_M0.40 GB, fits in system RAM

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

Abliteration parameters

ParameterValue
direction_index19.54
attn.o_proj.max_weight1.26
attn.o_proj.max_weight_position14.42
attn.o_proj.min_weight0.79
attn.o_proj.min_weight_distance12.89
mlp.down_proj.max_weight1.42
mlp.down_proj.max_weight_position14.14
mlp.down_proj.min_weight0.52
mlp.down_proj.min_weight_distance13.14

Performance

MetricThis modelOriginal model (Qwen/Qwen2.5-Coder-0.5B-Instruct)
KL divergence0.12490 (by definition)
Refusals8/10052/100

KL divergence of 0.12 on the output distribution is low — the edit is narrow and targeted rather than a broad perturbation. Refusals dropped from 52 to 8 out of 100 adversarial prompts, meaning the model complies while retaining nearly all of its original capabilities.

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

Files

FileFormatSize
model.safetensorsBF16988 MB
Qwen2.5-Coder-0.5B-Instruct-heretic.ggufGGUF, F16 (unquantized)948 MB
Qwen2.5-Coder-0.5B-Instruct-heretic-Q8_0.ggufGGUF, Q8_0506 MB
Qwen2.5-Coder-0.5B-Instruct-heretic-Q5_K_M.ggufGGUF, Q5_K_M401 MB
Qwen2.5-Coder-0.5B-Instruct-heretic-Q4_K_M.ggufGGUF, Q4_K_M379 MB

Quickstart

# llama.cpp
llama serve -hf saidutta69/Qwen2.5-Coder-0.5B-Instruct-heretic
# transformers
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "saidutta69/Qwen2.5-Coder-0.5B-Instruct-heretic"
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype="auto", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained(model_name)

messages = [{"role": "user", "content": "Write a quick sort algorithm in Python."}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=True,
                                        return_dict=True, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Also runnable via Ollama, LM Studio, Jan, vLLM, SGLang.

FAQ

What is Qwen2.5-Coder-0.5B-Instruct-heretic?

Qwen2.5-Coder-0.5B-Instruct-heretic is a decensored build of Qwen/Qwen2.5-Coder-0.5B-Instruct 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 Qwen2.5-Coder-0.5B-Instruct-heretic actually uncensored?

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

How do I run Qwen2.5-Coder-0.5B-Instruct-heretic locally?

llama serve -hf saidutta69/Qwen2.5-Coder-0.5B-Instruct-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 Qwen2.5-Coder-0.5B-Instruct'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

Abliteration hardware

Recorded in reproduce/reproduce.json:

  • GPU: Tesla T4 (14.56 GB VRAM)
  • CPU: Intel(R) Xeon(R) CPU @ 2.00GHz
  • OS: Linux-6.6.122+-x86_64-with-glibc2.35
  • CUDA / driver: CUDA 12.8, driver 580.82.07
  • Software: PyTorch 2.11.0+cu128, 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…

Класс архитектуры
Qwen2ForCausalLM
Ревизия весов
4b8e9c8

0 моделей