/ Модель

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

Лицензия
Apache 2.0
Базовая модель
Qwen3.5-4B-heretic
Библиотека
gguf
Опубликована
4 июл 2026

Qwen3.5-4B-heretic-imatrix-GGUF

Изображение и текст → текст15 профессий

FadedRedStar/Qwen3.5-4B-heretic-imatrix-GGUF — это квантизированная GGUF-версия мультимодальной модели Qwen3.5-4B-heretic.

727скачиваний за 30 дней1лайквеса обновлены10 июл 2026

Бенчмарки

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

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

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

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

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

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

Базовая модель разработана командой Qwen компании Alibaba, исходные веса подготовлены coder3101, а GGUF-квантизацию с importance matrix выполнил FadedRedStar. Модель предназначена для мультимодального рассуждения, генерации текста, программирования, вызова инструментов и агентских сценариев, включая работу с изображениями при использовании vision-проектора.

Модель представляет собой плотный transformer примерно на 4 млрд параметров с интегрированным vision encoder и поддержкой раннего объединения модальностей. Заявлены контекстное окно до 262 144 токенов с возможностью расширения примерно до 1 млн, поддержка 201 языка и диалекта, tool calling и формат запросов ChatML. Основные варианты весов используют квантизации IQ4_NL, Q4_K_M и Q5_K_M, оптимизированные с помощью importance matrix; vision-тензоры доступны в Q8_0 и BF16. Предусмотрены дополнительные MTP-файлы для speculative decoding.

Сильной стороной модели является сочетание мультимодальности, большого контекстного окна и относительно низких требований к ресурсам, а importance matrix должна улучшать сохранение качества при низкой разрядности. Существенное ограничение — модель прошла abliteration с подавлением направлений отказа, поэтому её поведение в части отказов отличается от исходной Qwen3.5-4B и может быть менее безопасным. Приведённые показатели отказов и расхождения KL являются самоотчётными и не подтверждены независимым тестированием. Для запуска требуются совместимые с GGUF инструменты, например llama.cpp, а точные возможности зависят от выбранной квантизации и vision-проектора. В метаданных указана лицензия Apache-2.0.

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

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

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

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

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

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

Открыть на Hugging Face

🤖 Qwen3.5-4B-heretic — Importance Matrix GGUF

This repository hosts importance-matrix (imatrix) optimized GGUF weights, available in multiple quantization formats, and the associated vision projection matrix for Qwen3.5-4B-heretic, quantized from the source floating-point tensors provided by coder3101/Qwen3.5-4B-heretic.

🔄 Sister Repository: Check out the Standard GGUF Sister Repository for uncalibrated and full 8-bit precision options.

🎯 Matrix-Weighted Calibration (Imatrix)

An Importance Matrix (imatrix) calculation tracks activations across network layers using a calibration sequence, then weights the quantization process to preserve the parameters that matter most for output quality — improving fidelity at low bit depths.

➡️ Calibration dataset: Bartowski's calibration_datav5.txt.

[!NOTE]

  • IQ4_NL is included because the matrix enables a non-linear 4-bit format that outperforms standard linear 4-bit quantization.
  • Q8_0 is absent because 8-bit quantization already introduces near-zero degradation, making calibration unnecessary — see the standard sister repository for that variant.

ℹ️ Model Profile & Core Features

Qwen3.5-4B is a dense multimodal transformer in the Qwen3.5 lineup by the Qwen Team (Alibaba), offering a strong balance of reasoning quality and inference cost. It carries forward the family's native vision encoder, 262,144-token context window, tool-calling support, and coverage of 201 languages and dialects.

The heretic suffix denotes post-processing via Heretic v1.2.0 with the Multi-directional refusal suppression method performed by coder3101, which simultaneously targets multiple refusal directions across model layers to achieve a thorough and stable abliteration.

📋 Technical Specifications

PropertyValue
Base ArchitectureQwen3.5 dense transformer (4B dense transformer)
Developed byQwen Team (Alibaba)
Primary UseMultimodal reasoning, coding, tool use, agentic tasks
Context Window262,144 tokens (extensible to ~1M)
Vision EncoderIntegrated (early-fusion)
Languages201 languages and dialects
Abliteration ToolHeretic v1.2.0
Abliteration MethodMulti-directional refusal suppression
Prompt FormatChatML

🛠️ Heretic Overrides (ARA)

PropertyValue
direction_index19.68
attn.o_proj.max_weights[0: 0.84, 1: 1.26, 2: 1.00, 3: 1.01]
attn.o_proj.max_weight_position19.26
attn.o_proj.min_weights[0: 0.24, 1: 0.97, 2: 0.42, 3: 0.85]
attn.o_proj.min_weight_distance5.26
mlp.down_proj.max_weights[0: 1.09, 1: 0.95, 2: 1.02, 3: 1.04]
mlp.down_proj.max_weight_position23.76
mlp.down_proj.min_weights[0: 0.26, 1: 0.16, 2: 0.91, 3: 0.86]
mlp.down_proj.min_weight_distance10.58

📊 Refusal Bypass Metrics

[!NOTE] The metrics below are self-reported by the original model author (coder3101) and have not been independently reproduced.

MetricThis modelOriginal (Qwen/Qwen3.5-4B)
KL divergence0.04060 (by definition)
Refusals4/10094/100

🧮 Numerical & Tensor Formats

PropertyValue
Text Tensor TypesIQ4_NL, Q4_K_M, Q5_K_M (all with imatrix calibration)
Importance MatrixBartowski's calibration_datav5.txt
Vision TensorsQ8_0, BF16

📦 Available Model Files

Main model weights

FilenameQuantizationllama.cpp BuildSizeDownload
Qwen3.5-4B-heretic-IQ4_NL-imatrix.ggufIQ4_NLb98702.43 GB📥 Download
Qwen3.5-4B-heretic-Q4_K_M-imatrix.ggufQ4_K_Mb98702.52 GB📥 Download
Qwen3.5-4B-heretic-Q5_K_M-imatrix.ggufQ5_K_Mb98702.86 GB📥 Download

mmproj — vision projector files

FilenameQuantizationSizeDownload
mmproj-Qwen3.5-4B-heretic-Q8_0.ggufQ8_0350 MB📥 Download
mmproj-Qwen3.5-4B-heretic-BF16.ggufBF16644 MB📥 Download

mtp — speculative decoding draft files

FilenameQuantizationSizeDownload
mtp-Qwen3.5-4B-heretic-Q8_0.ggufQ8_0655 MB📥 Download
mtp-Qwen3.5-4B-heretic-BF16.ggufBF161.19 GB📥 Download

🎛️ Component Pairing Guide

Download exactly one main weights file:

  • IQ4_NL: Non-linear 4-bit format, best choice for constrained memory when imatrix calibration is present.
  • Q4_K_M: Balanced 4-bit format suitable for most everyday use.
  • Q5_K_M: Higher-fidelity mid-range format recommended as a general default.

mmproj files (optional): multimodal vision projectors. Pass one via the --mmproj flag in llama.cpp to enable image input.

  • BF16 (Recommended): Highest possible image processing accuracy. While older projectors were small, modern vision towers can hover around 1GB. If you are tight on VRAM, it is completely viable to run this on system RAM (CPU) with a minimal performance penalty, saving your precious GPU space for the main model layers.
  • Q8_0: Cuts the projector file size and memory footprint in half (~500MB for larger 1GB files). Use this if you prefer to keep the vision tower hosted entirely on your GPU but need to claw back some VRAM to avoid Out-Of-Memory (OOM) crashes.

mtp files (optional): multi-token-prediction draft models for speculative decoding. Pass one via the --draft flag in llama.cpp to speed up generation.

  • BF16 (Best Speed): Maximizes draft accuracy. The more accurate the draft model's predictions are, the higher your token acceptance rate, which translates directly into faster text generation. Use this if you have the VRAM headroom.
  • Q8_0 (Best VRAM Efficiency): Cuts the draft model size in half. Choose this if loading a heavy BF16 draft model would force you to drop layers of your main model to system RAM, which would heavily tank your total performance.

⚡ Deployment & Execution Commands

[!IMPORTANT] The vision projector (--mmproj) must be supplied at runtime whenever image inputs are used. Omitting it disables multimodal capability entirely.

[!NOTE] Qwen recommends the following sampling configuration for best results:

  • Thinking mode for general tasks: temperature=1.0, top_p=0.95, top_k=20, min_p=0.0, presence_penalty=1.5, repetition_penalty=1.0
  • Thinking mode for precise coding tasks (e.g., WebDev): temperature=0.6, top_p=0.95, top_k=20, min_p=0.0, presence_penalty=0.0, repetition_penalty=1.0
  • Instruct (or non-thinking) mode for general tasks: temperature=0.7, top_p=0.8, top_k=20, min_p=0.0, presence_penalty=1.5, repetition_penalty=1.0
  • Instruct (or non-thinking) mode for reasoning tasks: temperature=1.0, top_p=0.95, top_k=20, min_p=0.0, presence_penalty=1.5, repetition_penalty=1.0

[!NOTE] This model thinks by default and will emit reasoning content before its final answer. To disable this, set enable_thinking: False if your inference stack supports it; standard llama.cpp does not expose this toggle directly, so expect reasoning output unless you strip it client-side.

[!TIP] Swap the -m filename below for either quantized file depending on your size/quality trade-off preference.

llama.cpp CLI (with image)

./llama-cli \
  -m Qwen3.5-4B-heretic-IQ4_NL-imatrix.gguf \
  --mmproj mmproj-Qwen3.5-4B-heretic-Q8_0.gguf \
  -c 8192 \
  -ngl 99 \
  --image "path/to/image.jpg" \
  -p "<|im_start|>user\nDescribe what you see and answer any questions about the image.<|im_end|>\n<|im_start|>assistant\n"

Speculative Decoding (MTP Acceleration)

./llama-cli \
  -m Qwen3.5-4B-heretic-IQ4_NL-imatrix.gguf \
  --draft mtp-Qwen3.5-4B-heretic-Q8_0.gguf \
  -c 8192 \
  -ngl 99 \
  -p "<|im_start|>user\nDescribe what you see and answer any questions about the image.<|im_end|>\n<|im_start|>assistant\n"

OpenAI-Compatible API Server

./llama-server \
  --host 0.0.0.0 \
  --port 8080 \
  -m Qwen3.5-4B-heretic-IQ4_NL-imatrix.gguf \
  --mmproj mmproj-Qwen3.5-4B-heretic-Q8_0.gguf \
  -c 16384 \
  -ngl 99 \
  --flash-attn

💬 Chat Templates & Prompt Design (ChatML)

<|im_start|>system
You are a helpful multimodal assistant.<|im_end|>
<|im_start|>user
Your question or image payload here.<|im_end|>
<|im_start|>assistant

⚠️ Safety & Operational Notes

  • This model is abliterated and will generate content that standard aligned models refuse. Use responsibly and in compliance with applicable laws.
  • Vision tensors are kept at BF16 or Q8_0 depending on the mmproj variant chosen, to preserve spatial feature quality.
  • Speculative decoding via the accompanying mtp draft model can meaningfully increase throughput on supported llama.cpp builds.
  • Imatrix calibration improves perplexity recovery compared to non-imatrix quantization, particularly on low-frequency tokens.
  • IQ4_NL produces a smaller file than Q4_K_M and tends to run faster on CPU and ARM devices; imatrix calibration narrows the quality gap between the two formats considerably.

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

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

GPU в ailist

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

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

GGUF-веса поддерживаются только для текстовых LLM (llama.cpp).

Ревизия весов
b61ed16

0 моделей