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