/ Модель

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

Лицензия
Apache 2.0
Базовая модель
Qwen4-35B-A3B
Опубликована
4 дек 2026

Qwen4-35B-A3B-Heretic-GGUF

Изображение и текст → текст
5 148скачиваний за 30 дней0лайковвеса обновлены4 дек 2026

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

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

Квантованная в GGUF версия Qwen4-35B-A3B с уменьшенным числом отказов предназначена для диалога и ответов по тексту и изображениям в llama.cpp.

Tyne-kor выпустил GGUF-сборку Qwen4-35B-A3B с существенно сниженным числом отказов, полученную методом Heretic ARA и предназначенную для запуска через llama.cpp. Это разреженная мультимодальная модель с поддержкой диалога и изображений; README описывает сборку Q4_K_M и отдельные файлы для обработки изображений и ускорения декодирования. Для запуска указана версия llama.cpp b12987 или новее. Модель рассчитана на генерацию ответов, включая ответы на запросы, которые исходная модель часто отклоняла, а также на диалог по изображениям; доступны английский и корейский языки.

В тесте Heretic до квантования доля отказов на 100 вредоносных англоязычных запросах снизилась с 88 до 5, а KL-дивергенция на безвредных запросах составила 0,0619. Это не оценка общей точности: других бенчмарков не проводили, а число отказов для 4-битной версии отдельно не измеряли. Файлы GGUF занимают около 35,2 ГБ суммарно; запуск предполагает использование GPU и системной RAM, для которой в README рекомендуется не менее 32 ГБ. Лицензия — Apache-2.0, как у базовой модели.

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

  • диалог с моделью на английском языке
  • диалог с моделью на корейском языке
  • ответы на вопросы по изображениям
  • запуск Qwen4 через llama.cpp на GPU с системной RAM
  • генерация ответов с уменьшенным числом отказов

Ограничения

Общих бенчмарков не проводили, а снижение числа отказов измеряли до квантования и только на англоязычных запросах. Для запуска требуется llama.cpp b12987 или новее; заявленная производительность и совместимость на Windows, AMD и macOS авторами не проверялись.

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

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

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

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

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

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

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

Открыть на Hugging Face

Qwen4-35B-A3B-Heretic-GGUF

Qwen4-35B-A3B with refusals heavily reduced (Heretic ARA), as a 4-bit GGUF (Q4_K_M) that runs on an ordinary GPU plus system RAM.

In memory of Philipp Emanuel Weidmann (p-e-w), the creator of Heretic, who passed away in November 2026. This model would not exist without his work. Our deepest condolences.

Heretic을 만든 Philipp Emanuel Weidmann(p-e-w) 님이 2026년 11월 세상을 떠나셨습니다. 그의 작업이 없었다면 이 모델도 없었습니다. 깊은 애도를 표합니다.

English · 한국어

English

Heavily uncensored

Refusals on Heretic's 100 harmful prompts dropped from 88 to 5 — about 94% fewer — while the model stays close to the original (KL divergence 0.0619 on harmless prompts).

The same refusal-reduced model as Tyne-kor/Qwen4-35B-A3B-Heretic-Basalt (trial 78), quantized to GGUF for llama.cpp and the engines that read llama.cpp's Qwen4 GGUFs. The NVFP4 version runs only on RTX 50 (Blackwell) cards; this one is for everything else — NVIDIA RTX 20/30/40 (and 50), AMD, Apple Silicon and CPU. The model does not have to fit in VRAM: what does not fit (part of the experts and the 11.5 GB n-gram table) stays in system RAM. Vision and the MTP drafter are included as separate files.

Results

Heretic's own evaluation, measured on the BF16 model before quantization:

Qwen4-35B-A3BThis model
Refusals on Heretic's 100 harmful prompts (refusal phrases, thinking closed)88 / 1005 / 100
KL divergence from the original on 100 harmless prompts0 (by definition)0.0619

No other benchmarks have been run; the refusal count was not re-measured on the 4-bit file.

How it was made

  • Refusal removal: Heretic 2.1.0, ARA (LoRA rank 50), 100 Optuna trials, trial 78 chosen; the attention output projection and the shared expert's down_proj of each layer changed, the 256 routed experts, the n-gram table and the MTP layer unchanged. Details on the Basalt version's page.
  • Conversion: the LoRA merged into the original BF16 weights → llama.cpp b12987 convert_hf_to_gguf.py (BF16) → llama-quantize Q4_K_M.
  • Per-tensor types are the same as unsloth's UD-Q4_K_M (all 912 tensors checked): routed experts gate/up IQ4_XS (layers 0-7), Q4_K (8-31), Q5_K (32-40), down Q5_K (0-31, 40) / Q6_K (32-39); attention, GDN, shared expert and hyper-connections Q8_0 (the MTP layer Q5_K); PLE key/value and indexer BF16; output Q8_0; token embedding Q5_K; n-gram table IQ4_NL. The two-part layout is also the same (part 2 holds only the n-gram table), so tools written for unsloth's files read these the same way.
  • imatrix: computed for this model, 795 chunks × 512 tokens (English and Korean prose, code, instructions), 633 entries; included.
FileSizeSHA-256
Qwen4-35B-A3B-Heretic-t78-Q4_K_M-00001-of-00002.gguf23,664,329,056 bytes9f3991d39a86ae80be64eea634e651f4faf6a1041647560298dd44b0889ae59e
Qwen4-35B-A3B-Heretic-t78-Q4_K_M-00002-of-00002.gguf (n-gram table)11,520,258,240 bytes76e4ce17c9ac9d334d10825dce3cd205dc02a62eb68c26aaaff65e065afd0aa2
mtp-Qwen4-35B-A3B-Heretic-t78-Q8_0.gguf (MTP drafter)2,005,577,504 bytes29dca354e1ae5032f7d5c4f0439aaef539e3c16d860fa932474f6e39ea5a6dbb
mmproj-Qwen4-35B-A3B-Heretic-t78-F16.gguf (vision)899,283,200 bytes30e908ceef4b4c0d19f6adf9bc08d444aecf2124630aa453895995a6f9e0e49e
mmproj-Qwen4-35B-A3B-Heretic-t78-BF16.gguf (vision)902,822,144 bytesdce0f290e9bfe08b77161d58327baf4e34a03b3a4883e097f72b7e1c132ccf55
imatrix-Qwen4-35B-A3B-Heretic-t78.gguf389,436,448 bytes7c1c87406738e86aba7891f8a3a889391649addc7594192c827035d24cff48d9

Use it (llama.cpp b12987 or newer)

Download both Q4_K_M parts into one folder and point llama.cpp at part 1; it finds part 2 by its name.

llama-server -m Qwen4-35B-A3B-Heretic-t78-Q4_K_M-00001-of-00002.gguf \
  -c 32768 -fa on --jinja --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0
  • GPU + RAM: with no -ngl/-ot, llama.cpp's --fit (on by default) puts what fits on the GPU and keeps the rest in RAM. Manual alternative: --fit off -ngl 999 --n-cpu-moe N -ot per_layer_token_embd=CPU (experts of the first N of 40 layers in RAM). Rough starting points (calculated, not measured): 8 GB VRAM N≈36, 12 GB N≈29, 16 GB N≈21, 24 GB N≈4, 32 GB+ N=0. Plan on about 40 GB of VRAM + RAM in total, RAM 32 GB or more (48 GB recommended).
  • Faster decoding when the whole model fits in VRAM: -md mtp-Qwen4-35B-A3B-Heretic-t78-Q8_0.gguf --spec-type draft-mtp.
  • Vision: --mmproj mmproj-Qwen4-35B-A3B-Heretic-t78-F16.gguf.
  • Thinking: "chat_template_kwargs": {"enable_thinking": false} turns it off; {"reasoning_effort": "low" | "high" | "xhigh"} sets the level (default high). reasoning_effort: "off" conflicts with llama-server's default and returns an error.
  • OpenAI-compatible API at http://127.0.0.1:8080/v1.

Strata: the Strata engine (experts in RAM, 12 GB+ cards) does not support Qwen4 in its release 0.2.25 yet. Built from the open Qwen4 pull request #7774, it read these files with its own qwen4_split_gguf.py and iq_pack.py and answered correctly (see below).

Measured

On an NVIDIA GB10 (DGX Spark class, Linux; ARM CPU and memory shared with the GPU, so other PCs will differ), 17 × 23 asked with thinking off:

EnginePlacementResult
llama.cpp b12987all on the GPU391, Korean answers fine, 54.4 tok/s; with the MTP drafter 70 tok/s
llama.cpp b12987--fit with about 16 GB of GPU memory391, 12.5 tok/s
llama.cpp b12987all experts in RAM (--n-cpu-moe 41)391, Korean answers fine, 9.5 tok/s
Strata PR #7774 (q4_lite build)expert cache auto391, 45.3 tok/s

Caveats

  • The refusal count is Heretic's phrase check on English prompts, measured before quantization; it is not a quality benchmark.
  • Windows, AMD and macOS were not tested by us.
  • Qwen4 support is new in every engine; use llama.cpp b12987 or newer.

Sources and credits

PartSource
Base modelQwen/Qwen4-35B-A3B — Qwen team
Refusal removalHeretic — Philipp Emanuel Weidmann (p-e-w)
Conversion, quantization, inferencellama.cpp — ggml-org, b12987
Per-tensor type recipe (matched)unsloth/Qwen4-35B-A3B-GGUF UD-Q4_K_M — Unsloth
Strata test buildStrata PR #7774 — saatvik-viniak

License

Same as the base model: Apache-2.0 (LICENSE).


한국어

검열 대폭 완화

Heretic 유해 질문 100개 기준 거절이 88개 → 5개로, 약 94% 줄었습니다. 그러면서도 원본과의 차이는 작게 유지했습니다(무해한 질문 기준 KL divergence 0.0619).

Tyne-kor/Qwen4-35B-A3B-Heretic-Basalt와 같은 거절 완화 모델(78회차)을 llama.cpp용 4비트 GGUF(Q4_K_M)로 만든 판입니다. NVFP4판은 RTX 50(블랙웰)에서만 돌아가고, 이 판은 그 밖의 모든 환경용입니다: NVIDIA RTX 20·30·40(50도 가능), AMD, 애플 실리콘, CPU. 모델이 그래픽카드에 다 들어가지 않아도 됩니다. 들어가지 않는 부분(전문가 일부와 11.5GB n-gram 표)은 시스템 RAM에 둡니다. 비전 기능과 MTP 초안 모델은 별도 파일로 들어 있습니다.

결과

Heretic이 직접 잰 값이며, 4비트로 줄이기 전 BF16 모델 기준입니다.

Qwen4-35B-A3B이 모델
Heretic 유해 질문 100개 중 거절 수 (거절 문구 기준, 생각 끔)88 / 1005 / 100
무해한 질문 100개에서 원본과의 차이 (KL divergence)0 (기준)0.0619

다른 성능 시험은 하지 않았고, 4비트 파일로 거절 수를 다시 재지는 않았습니다.

만든 방법

  • 거절 줄이기: Heretic 2.1.0, ARA(LoRA 랭크 50), 시험 100회 중 78회차. 층마다 attention 출력과 공유 전문가 down_proj만 바뀌었고, 라우팅 전문가 256개·n-gram 표·MTP 층은 원본 그대로입니다. 세부 값은 Basalt판 페이지에 있습니다.
  • 변환: LoRA를 원본 BF16에 합친 뒤 → llama.cpp b12987 convert_hf_to_gguf.py(BF16) → llama-quantize Q4_K_M.
  • 텐서별 형식은 unsloth UD-Q4_K_M과 같게 맞췄습니다(912개 전부 확인). 2조각 구성(2번째 조각 = n-gram 표만)도 같아서, unsloth 파일용으로 만든 도구가 이 파일도 같은 방식으로 읽습니다.
  • imatrix: 이 모델로 직접 계산, 795구간 × 512토큰(영어·한국어 글, 코드, 지시문), 633항목. 파일도 함께 올렸습니다.

파일 목록·크기·SHA-256은 위 English 절의 표와 같습니다.

쓰는 법 (llama.cpp b12987 이상)

Q4_K_M 두 조각을 같은 폴더에 받고 1번째 조각을 지정하면 됩니다(2번째는 이름으로 자동으로 찾습니다).

llama-server -m Qwen4-35B-A3B-Heretic-t78-Q4_K_M-00001-of-00002.gguf \
  -c 32768 -fa on --jinja --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0
  • 그래픽카드 + RAM: -ngl·-ot를 주지 않으면 llama.cpp의 --fit(기본 켜짐)이 들어가는 만큼만 그래픽카드에 올리고 나머지는 RAM에 둡니다. 수동으로 하려면 --fit off -ngl 999 --n-cpu-moe N -ot per_layer_token_embd=CPU(40개 층 중 앞쪽 N개 층의 전문가를 RAM에). 출발값(계산값, 실측 아님): VRAM 8GB N≈36, 12GB N≈29, 16GB N≈21, 24GB N≈4, 32GB 이상 N=0. VRAM과 RAM 합 약 40GB, RAM 32GB 이상(48GB 권장)을 잡으세요.
  • 빠른 생성(모델 전체가 VRAM에 들어갈 때): -md mtp-Qwen4-35B-A3B-Heretic-t78-Q8_0.gguf --spec-type draft-mtp.
  • 이미지 입력: --mmproj mmproj-Qwen4-35B-A3B-Heretic-t78-F16.gguf.
  • 생각 모드: 끄기 "chat_template_kwargs": {"enable_thinking": false}, 단계 {"reasoning_effort": "low" | "high" | "xhigh"}(기본 high). reasoning_effort: "off"는 llama-server 기본값과 충돌해 오류가 납니다.
  • OpenAI 호환 API: http://127.0.0.1:8080/v1.

Strata: Strata(전문가를 RAM에 두고 12GB 이상 카드에서 돌리는 엔진) 정식판 0.2.25는 아직 Qwen4를 지원하지 않습니다. 열려 있는 Qwen4 지원 수정안 #7774로 빌드하면, 자체 도구 qwen4_split_gguf.py·iq_pack.py로 이 파일을 읽어 정답을 냈습니다(아래 표).

실측

NVIDIA GB10(DGX Spark 계열, Linux. ARM CPU이고 그래픽과 메모리를 함께 써서 일반 PC와는 수치가 다릅니다), 생각 끄고 17 × 23 질문:

엔진배치결과
llama.cpp b12987전부 그래픽카드391, 한국어 답 정상, 54.4 tok/s, MTP 초안 켜면 70 tok/s
llama.cpp b12987그래픽 약 16GB로 --fit391, 12.5 tok/s
llama.cpp b12987전문가 전부 RAM(--n-cpu-moe 41)391, 한국어 답 정상, 9.5 tok/s
Strata PR #7774(q4_lite 빌드)전문가 캐시 자동391, 45.3 tok/s

주의

  • 거절 수는 영어 질문에 대한 Heretic의 거절 문구 검사이며 4비트로 줄이기 전 값입니다. 품질 시험이 아닙니다.
  • Windows, AMD, macOS에서는 직접 시험하지 않았습니다.
  • 모든 엔진에서 Qwen4 지원이 새 기능입니다. llama.cpp는 b12987 이상을 쓰세요.

출처

구성출처
기반 모델Qwen/Qwen4-35B-A3B — Qwen 팀
거절 제거Heretic — Philipp Emanuel Weidmann (p-e-w)
변환·양자화·추론llama.cpp — ggml-org, b12987
텐서별 형식(맞춤 대상)unsloth/Qwen4-35B-A3B-GGUF UD-Q4_K_M — Unsloth
Strata 시험 빌드Strata PR #7774 — saatvik-viniak

라이선스

기반 모델과 같은 Apache-2.0입니다(LICENSE).

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

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

GPU в ailist

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

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

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

Ревизия весов
7746a95

0 моделей