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월 세상을 떠나셨습니다. 그의 작업이 없었다면 이 모델도 없었습니다. 깊은 애도를 표합니다.
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.
Heretic's own evaluation, measured on the BF16 model before quantization:
| Qwen4-35B-A3B | This model | |
|---|---|---|
| Refusals on Heretic's 100 harmful prompts (refusal phrases, thinking closed) | 88 / 100 | 5 / 100 |
| KL divergence from the original on 100 harmless prompts | 0 (by definition) | 0.0619 |
No other benchmarks have been run; the refusal count was not re-measured on the 4-bit file.
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.convert_hf_to_gguf.py (BF16) → llama-quantize Q4_K_M.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.| File | Size | SHA-256 |
|---|---|---|
Qwen4-35B-A3B-Heretic-t78-Q4_K_M-00001-of-00002.gguf |
23,664,329,056 bytes | 9f3991d39a86ae80be64eea634e651f4faf6a1041647560298dd44b0889ae59e |
Qwen4-35B-A3B-Heretic-t78-Q4_K_M-00002-of-00002.gguf (n-gram table) |
11,520,258,240 bytes | 76e4ce17c9ac9d334d10825dce3cd205dc02a62eb68c26aaaff65e065afd0aa2 |
mtp-Qwen4-35B-A3B-Heretic-t78-Q8_0.gguf (MTP drafter) |
2,005,577,504 bytes | 29dca354e1ae5032f7d5c4f0439aaef539e3c16d860fa932474f6e39ea5a6dbb |
mmproj-Qwen4-35B-A3B-Heretic-t78-F16.gguf (vision) |
899,283,200 bytes | 30e908ceef4b4c0d19f6adf9bc08d444aecf2124630aa453895995a6f9e0e49e |
mmproj-Qwen4-35B-A3B-Heretic-t78-BF16.gguf (vision) |
902,822,144 bytes | dce0f290e9bfe08b77161d58327baf4e34a03b3a4883e097f72b7e1c132ccf55 |
imatrix-Qwen4-35B-A3B-Heretic-t78.gguf |
389,436,448 bytes | 7c1c87406738e86aba7891f8a3a889391649addc7594192c827035d24cff48d9 |
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
-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).-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} 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.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).
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:
| Engine | Placement | Result |
|---|---|---|
| llama.cpp b12987 | all on the GPU | 391, Korean answers fine, 54.4 tok/s; with the MTP drafter 70 tok/s |
| llama.cpp b12987 | --fit with about 16 GB of GPU memory |
391, 12.5 tok/s |
| llama.cpp b12987 | all experts in RAM (--n-cpu-moe 41) |
391, Korean answers fine, 9.5 tok/s |
| Strata PR #7774 (q4_lite build) | expert cache auto | 391, 45.3 tok/s |
| Part | Source |
|---|---|
| Base model | Qwen/Qwen4-35B-A3B — Qwen team |
| Refusal removal | Heretic — Philipp Emanuel Weidmann (p-e-w) |
| Conversion, quantization, inference | llama.cpp — ggml-org, b12987 |
| Per-tensor type recipe (matched) | unsloth/Qwen4-35B-A3B-GGUF UD-Q4_K_M — Unsloth |
| Strata test build | Strata PR #7774 — saatvik-viniak |
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 / 100 | 5 / 100 |
| 무해한 질문 100개에서 원본과의 차이 (KL divergence) | 0 (기준) | 0.0619 |
다른 성능 시험은 하지 않았고, 4비트 파일로 거절 수를 다시 재지는 않았습니다.
down_proj만 바뀌었고,
라우팅 전문가 256개·n-gram 표·MTP 층은 원본 그대로입니다. 세부 값은 Basalt판 페이지에 있습니다.convert_hf_to_gguf.py(BF16) → llama-quantize Q4_K_M.UD-Q4_K_M과 같게 맞췄습니다(912개 전부 확인). 2조각 구성(2번째 조각 = n-gram 표만)도 같아서,
unsloth 파일용으로 만든 도구가 이 파일도 같은 방식으로 읽습니다.파일 목록·크기·SHA-256은 위 English 절의 표와 같습니다.
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
-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 권장)을 잡으세요.-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 기본값과 충돌해 오류가 납니다.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로 --fit |
391, 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 |
| 구성 | 출처 |
|---|---|
| 기반 모델 | 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).
Qwen4-35B-A3B-Heretic-t78-Q4_K_M-00001-of-00002.gguf 22 GiBQwen4-35B-A3B-Heretic-t78-Q4_K_M-00002-of-00002.gguf 11 GiBQwen/Qwen4-35B-A3B