license: apache-2.0
license_link: https://huggingface.co/Qwen/Qwen4-35B-A3B/blob/main/LICENSE
base_model:
- unsloth/Qwen4-35B-A3B-GGUF
- Qwen/Qwen4-35B-A3B
- orcarouter/Qwen4-35B-A3B-abliterated-GGUF
tags: - gguf
- abliterated
- uncensored
- qwen4
- unsloth
- llama.cpp
pipeline_tag: image-text-to-text
Qwen4-35B-A3B-Unsloth-abliterated-GGUF
English | 简体中文
⚠️ These files have only been checked structurally and numerically, not with a behavioral eval. Please test refusal and quality yourself (and, if you can, measure KL vs the matching original Unsloth UD quant) before relying on them.
Abliterated (refusal-subspace-removed) Unsloth UD GGUFs of Qwen/Qwen4-35B-A3B, transplanted into Unsloth's Qwen4-35B-A3B-GGUF. Each main shard has the same size, the same tensor types, and the same metadata as the corresponding original Unsloth shard 1. These are tensor transplants into the Unsloth quants, not a requant of the whole model.
The abliteration source is orcarouter/Qwen4-35B-A3B-abliterated-GGUF (Mix-33G). OrcaRouter projected a rank-3 refusal subspace out of every weight that writes to the residual stream (W ← (I − RRᵀ)W, α ≈ 1), then quantized from that BF16. Hyper-connections, gates, up-projections, norms, the indexer, the LM head, token embeddings, and the n-gram table were not edited. blk.1.ple_value carries the same rank-3 edit.
Currently uploaded: UD-Q4_K_M, UD-IQ3_XXS, UD-IQ3_S, and UD-Q3_K_XL. Further Unsloth UD quants (Q4 and below) may be added later. Q5 / Q6 / Q8 / BF16 are out of scope for this repo.
| File | Size | SHA-256 / notes |
|---|---|---|
Qwen4-35B-A3B-UD-Q4_K_M-abliterated-00001-of-00002.gguf |
23,664,328,800 B (23.66 GB) | 5df262e43d7f198698bad5e84b41959eaa2b5f0a2328f5b9692455a32f2e0b88 · Unsloth UD-Q4_K_M shard 1, with abliterated residual-write tensors |
Qwen4-35B-A3B-UD-Q4_K_M-abliterated-00002-of-00002.gguf |
11,520,258,240 B (11.52 GB) | 419b93856e79a6f2338160d98d3b6b75042c57786af92c3010405b7b808dc4b4 · Unsloth IQ4_NL n-gram table, unmodified (shared with the other UD quants below; you can also use Unsloth's original shard 2) |
Qwen4-35B-A3B-UD-IQ3_XXS-abliterated-00001-of-00002.gguf |
17,214,963,808 B (17.21 GB) | 75bcdb27c5ea994876a49723d1cf247ed0a87165ffe723ab09e9c54c46f169b2 · Unsloth UD-IQ3_XXS shard 1, with abliterated residual-write tensors |
Qwen4-35B-A3B-UD-IQ3_XXS-abliterated-00002-of-00002.gguf |
11,520,258,240 B (11.52 GB) | 419b93856e79a6f2338160d98d3b6b75042c57786af92c3010405b7b808dc4b4 · same unmodified Unsloth IQ4_NL n-gram table as the Q4_K_M shard 2 (byte-identical) |
Qwen4-35B-A3B-UD-IQ3_S-abliterated-00001-of-00002.gguf |
18,288,935,008 B (18.29 GB) | b06a1faea39953722bcd331289b108f41d1de531a2197da2ceca67b00fea2921 · Unsloth UD-IQ3_S shard 1, with abliterated residual-write tensors |
Qwen4-35B-A3B-UD-IQ3_S-abliterated-00002-of-00002.gguf |
11,520,258,240 B (11.52 GB) | 419b93856e79a6f2338160d98d3b6b75042c57786af92c3010405b7b808dc4b4 · same unmodified Unsloth IQ4_NL n-gram table as the Q4_K_M shard 2 (byte-identical) |
Qwen4-35B-A3B-UD-Q3_K_XL-abliterated-00001-of-00002.gguf |
19,360,743,520 B (19.36 GB) | 5513f80026b7830995699ac3946be1849e7148e904a667d50406ccc0c591c648 · Unsloth UD-Q3_K_XL shard 1, with abliterated residual-write tensors |
Qwen4-35B-A3B-UD-Q3_K_XL-abliterated-00002-of-00002.gguf |
11,520,258,240 B (11.52 GB) | 419b93856e79a6f2338160d98d3b6b75042c57786af92c3010405b7b808dc4b4 · same unmodified Unsloth IQ4_NL n-gram table as the Q4_K_M shard 2 (byte-identical) |
mmproj-F16.gguf |
899,283,200 B | 3805de49141d2695d7d399ec67766b9f9d9b5f7b00050c1f3e78b3793be77ac6 · Unsloth vision projector, unmodified |
mtp-Qwen4-35B-A3B-Q8_0-abliterated.gguf |
2,006,805,984 B | dfd47b8cc330237eaf8b4dfe7c846c4235297ee3c8c42b4f2ef7e6eeff275c45 · Unsloth Q8_0 MTP sidecar, with the same rank-3 edit on the three residual-write tensors |
Method
- What OrcaRouter changed. A single 3-dimensional refusal subspace R (2048 × 3, shared by all 41 layers, including the MTP block and the PLE value table at layer 1). The edit is
W ← W − R(RᵀW). It touches:attn_output×11 (10 sparse-attention layers + MTP)ssm_out×30 (Gated DeltaNet layers)ffn_down_shexp×41ffn_down_exps×41blk.1.ple_value×1
- Direct tensor copy where Unsloth and Mix-33G use the same quant type and shape: those residual-write tensors are copied byte for byte from Mix-33G into the Unsloth file.
- Constrained recode where the quant type differs: the same rank-3 projection is applied to Unsloth's own dequantized weights, then re-encoded onto Unsloth's original scales with constrained code / grid / sign flips (the November 2026 MACaQ-R method, extended from rank-1 to rank-3). This is not a naive requant; I-quants in particular must keep Unsloth's scales, or almost all of the refusal residual is left behind.
- All other tensors in shard 1, plus the header and metadata, stay byte-identical to the original Unsloth file. The n-gram table (shard 2) is unmodified and is shared across these UD quants.
UD-Q4_K_M
- Direct copy (92 tensors): all
attn_output, allssm_out, allffn_down_shexp, nineffn_down_exps(layers 24–31 and 40, all Q5_K), andblk.1.ple_value(BF16). - Constrained recode (32 tensors):
ffn_down_expslayers 0–23 (Unsloth Q5_K vs Orca Q4_K) and 32–39 (Unsloth Q6_K vs Orca Q5_K).- Q5_K (layers 0–23): about 18.0% of codes changed; refusal-subspace residual left 0.49% on average (max 0.78%).
- Q6_K (layers 32–39): about 36.1% of codes changed; residual left 0.26% on average (max 0.33%).
- 787 other tensors in shard 1 are byte-identical to Unsloth UD-Q4_K_M.
UD-IQ3_XXS
- Direct copy (81 tensors): 80 Q8_0 residual-write tensors plus
blk.1.ple_value(BF16), where Unsloth already matches Mix-33G. - Constrained recode (43 tensors):
- Q4_K ×11:
ffn_down_expslayers 24–31 and 40, plus MTPattn_outputandffn_down_shexp. The down-expert tensors changed about 7.5–8.2% of codes, with residual left 0.95–1.02% mean (max 1.14–1.24%). MTPattn_output: 13.3% of codes, residual 0.62%. MTPffn_down_shexp: 12.8% of codes, residual 0.40%. - IQ4_XS ×8:
ffn_down_expslayers 32–39. About 8.9–10.6% of codes changed; residual left 0.39–0.66% mean (max 0.61–0.77%). - IQ3_S ×24:
ffn_down_expslayers 0–23. About 13.6–14.5% of codes changed; residual left 0.96–1.21% mean (worst single expert 1.44–7.40% depending on the layer).
- Q4_K ×11:
- 787 other tensors in shard 1 are byte-identical to Unsloth UD-IQ3_XXS.
UD-IQ3_S
- Direct copy (9 tensors): eight Q4_K
ffn_down_exps(layers 16–23) plusblk.1.ple_value(BF16), where Unsloth already matches Mix-33G. - Constrained recode (115 tensors):
- Q4_K ×11:
ffn_down_expslayers 24–31 and 40, plus MTPattn_outputandffn_down_shexp. The down-expert tensors changed about 7.5–8.2% of codes, with residual left 0.95–1.03% mean (max 1.18–1.23%). MTPattn_output: 13.3% of codes, residual 0.62%. MTPffn_down_shexp: 12.8% of codes, residual 0.40%. - Q5_K ×30: all
ssm_out. About 19.2–25.2% of codes changed; residual left 0.27–0.50%. - Q6_K ×50: 40
ffn_down_shexp(about 36.1–42.8% of codes changed; residual left 0.15–0.25%) and 10 sparse-attentionattn_output(about 35.9–39.3% of codes changed; residual left 0.20–0.25%). - IQ4_XS ×16:
ffn_down_expslayers 8–15 and 32–39. About 8.9–10.6% of codes changed; residual left 0.39–0.66% mean (max 0.60–0.78%). - IQ3_S ×8:
ffn_down_expslayers 0–7. About 13.7–14.3% of codes changed; residual left 1.06–1.14% mean (worst single expert 1.33–6.90% depending on the layer).
- Q4_K ×11:
- 787 other tensors in shard 1 are byte-identical to Unsloth UD-IQ3_S.
UD-Q3_K_XL
- Direct copy (105 tensors): 80 Q8_0 residual-write tensors, 24 Q4_K
ffn_down_exps(layers 0–23), andblk.1.ple_value(BF16), where Unsloth already matches Mix-33G. - Constrained recode (19 tensors), all Q4_K:
ffn_down_expslayers 24–40, plus MTPattn_outputandffn_down_shexp. The down-expert tensors changed about 7.5–9.4% of codes, with residual left 0.77–1.03% mean (max 1.10–1.32%). MTPattn_output: 13.3% of codes, residual 0.62%. MTPffn_down_shexp: 12.8% of codes, residual 0.40%. - 787 other tensors in shard 1 are byte-identical to Unsloth UD-Q3_K_XL.
Extra files: vision, MTP, n-gram table
- Vision (mmproj). OrcaRouter's builds are text-only. The language-model GGUF has no vision tensors, and Orca's edit did not involve the projector. Unsloth's
mmproj-F16.ggufis included unmodified. - MTP. Abliteration of the built-in MTP block (
blk.40attn_output,ffn_down_shexp,ffn_down_exps) is already in each main file (copied or recoded to match that quant). The optional Unsloth Q8_0 MTP sidecar has those same three write-projection tensors recoded with the same R (29 other sidecar tensors unchanged). On the sidecar, the residual left after the constrained Q8_0 recode was 0.055% (attn_output), 0.039% (ffn_down_shexp), and 0.075% mean / 0.092% max (ffn_down_exps). - N-gram / engram table. Unsloth stores it in
-00002-of-00002.gguf(IQ4_NL, 11.52 GB). OrcaRouter did not edit this table. The copies here are byte-identical to Unsloth's original shard 2, and the Q4_K_M, IQ3_XXS, IQ3_S, and Q3_K_XL shard-2 files are byte-identical to each other. You can also point llama.cpp at a table from Unsloth'sengram/folder with--ple.
Usage (llama.cpp b12969 or later)
# text; keep the n-gram table on disk/CPU
# swap the IQ3_XXS, IQ3_S, or Q3_K_XL filenames for another Q3 quant
llama-cli -m Qwen4-35B-A3B-UD-Q4_K_M-abliterated-00001-of-00002.gguf \
--jinja -c 32768 --load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPU \
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0
# vision
llama-mtmd-cli -m Qwen4-35B-A3B-UD-Q4_K_M-abliterated-00001-of-00002.gguf \
--mmproj mmproj-F16.gguf --image photo.jpg -p "Describe this image."
# optional MTP speculative decoding with the sidecar
llama-server -m Qwen4-35B-A3B-UD-Q4_K_M-abliterated-00001-of-00002.gguf \
--mmproj mmproj-F16.gguf \
-md mtp-Qwen4-35B-A3B-Q8_0-abliterated.gguf --spec-type draft-mtp --spec-draft-n-max 2 \
--jinja --load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPU
If you already have Unsloth's matching -00002-of-00002.gguf (or this repo's Q4_K_M / IQ3_XXS / IQ3_S / Q3_K_XL shard 2), you can use that as shard 2 instead of re-downloading it.
Verification (structural)
- UD-Q4_K_M: metadata, tensor table (911 tensors in shard 1) and header are identical to Unsloth; file size 23,664,328,800 bytes. 92 direct-copy tensors match Mix-33G; 32 recoded
ffn_down_expsdiffer from Unsloth; the other 787 tensors are byte-identical to Unsloth. - UD-IQ3_XXS: metadata, tensor table and header are identical to Unsloth; file size 17,214,963,808 bytes. 81 direct-copy tensors match Mix-33G and differ from Unsloth; all 43 recoded tensors differ from Unsloth; the other 787 tensors are byte-identical to Unsloth. Shard 2 is a hard-identical copy of the Q4_K_M / Unsloth engram.
- UD-IQ3_S: metadata, tensor table and header are identical to Unsloth; file size 18,288,935,008 bytes. 9 direct-copy tensors match Mix-33G and differ from Unsloth; all 115 recoded tensors differ from Unsloth; the other 787 tensors are byte-identical to Unsloth. Shard 2 is a hard-identical copy of the Q4_K_M / Unsloth engram.
- UD-Q3_K_XL: metadata, tensor table and header are identical to Unsloth; file size 19,360,743,520 bytes. 105 direct-copy tensors match Mix-33G and differ from Unsloth; all 19 recoded tensors differ from Unsloth; the other 787 tensors are byte-identical to Unsloth. Shard 2 is a hard-identical copy of the Q4_K_M / Unsloth engram.
- MTP sidecar: header and 29 non-target tensors are byte-identical to Unsloth's Q8_0 MTP file; only the three residual-write tensors changed.
⚠️ Safety notice
These models have had refusals removed and have no guardrails. They may produce harmful, false, offensive or illegal content. They are for research and private local use only. Do not deploy them publicly or give them to minors. You are fully responsible for how you use them and must comply with your local laws. This work is a tensor transplant of OrcaRouter's published abliteration into Unsloth quants; it does not add any new safety filtering.
OrcaRouter reports that on their abliterated BF16, harmful-prompt refusal fell from about 92% to about 7%, with no clear capability loss on the benchmarks they published. Those numbers were measured on BF16, not on these Unsloth UD transplants.
Credits
Qwen team (Qwen4-35B-A3B) · Unsloth (UD GGUFs, mmproj, MTP sidecar, engram table) · OrcaRouter (abliterated Mix-33G GGUF and the rank-3 residual-stream edit) · method adapted from the earlier MACaQ-R tensor-transplant work. License: Apache-2.0.
简体中文
这是 Unsloth Qwen4-35B-A3B-GGUF 的消融版(去掉拒答子空间)。每个主文件的大小、张量类型和元数据都与对应的原版 Unsloth 第一分片相同。做法是把 orcarouter/Qwen4-35B-A3B-abliterated-GGUF(Mix-33G)里改过的张量移植进 Unsloth 量化文件,而不是把整个模型重新量化。
OrcaRouter 的消融是秩 3 投影 W ← W − R(RᵀW),41 层(含 MTP)共用同一个 3 维拒答子空间 R,还改了第 1 层的 ple_value。超连接、gate/up、归一化、索引器、词嵌入、输出头和 n-gram 表都没有改。
目前已上传 UD-Q4_K_M、UD-IQ3_XXS、UD-IQ3_S 和 UD-Q3_K_XL。本仓库计划继续补充 Q4 及以下的 Unsloth UD 量化,不包含 Q5 / Q6 / Q8 / BF16。
- 类型相同的张量逐字节拷贝自 Mix-33G;类型不同的张量做约束重编码:在 Unsloth 自己的权重上做同样的秩 3 投影,并保留 Unsloth 的缩放系数,只翻动整数编码 / 格点 / 符号。I 量化不能做朴素重新量化,否则拒答残差会几乎全部留下。
- UD-Q4_K_M: 拷贝 92 个张量,约束重编码 32 个
ffn_down_exps(第 0–23 层 Q5_K:约 18.0% 编码被改动,残差平均 0.49%,最大 0.78%;第 32–39 层 Q6_K:约 36.1% 编码被改动,残差平均 0.26%,最大 0.33%)。其余 787 个张量与 Unsloth 一致。 - UD-IQ3_XXS: 拷贝 81 个张量(80 个 Q8_0 残差写入张量 + BF16
ple_value),约束重编码 43 个张量:- Q4_K ×11(第 24–31、40 层
ffn_down_exps以及 MTP 的attn_output/ffn_down_shexp):专家 down 约 7.5–8.2% 编码被改动,残差平均 0.95–1.02%(最大 1.14–1.24%);MTPattn_output残差 0.62%,ffn_down_shexp残差 0.40%。 - IQ4_XS ×8(第 32–39 层
ffn_down_exps):约 8.9–10.6% 编码被改动,残差平均 0.39–0.66%(最大 0.61–0.77%)。 - IQ3_S ×24(第 0–23 层
ffn_down_exps):约 13.6–14.5% 编码被改动,残差平均 0.96–1.21%(单专家最差约 1.44–7.40%,随层而异)。 - 其余 787 个张量与 Unsloth 一致。第 2 分片与 Q4_K_M 的 n-gram 表完全相同。
- Q4_K ×11(第 24–31、40 层
- UD-IQ3_S: 拷贝 9 个张量(第 16–23 层 Q4_K
ffn_down_exps+ BF16ple_value),约束重编码 115 个张量:- Q4_K ×11(第 24–31、40 层
ffn_down_exps以及 MTP 的attn_output/ffn_down_shexp):专家 down 约 7.5–8.2% 编码被改动,残差平均 0.95–1.03%(最大 1.18–1.23%);MTPattn_output残差 0.62%,ffn_down_shexp残差 0.40%。 - Q5_K ×30(全部
ssm_out):约 19.2–25.2% 编码被改动,残差 0.27–0.50%。 - Q6_K ×50(40 个
ffn_down_shexp:约 36.1–42.8% 编码被改动,残差 0.15–0.25%;10 个稀疏注意力attn_output:约 35.9–39.3% 编码被改动,残差 0.20–0.25%)。 - IQ4_XS ×16(第 8–15、32–39 层
ffn_down_exps):约 8.9–10.6% 编码被改动,残差平均 0.39–0.66%(最大 0.60–0.78%)。 - IQ3_S ×8(第 0–7 层
ffn_down_exps):约 13.7–14.3% 编码被改动,残差平均 1.06–1.14%(单专家最差约 1.33–6.90%,随层而异)。 - 其余 787 个张量与 Unsloth 一致。第 2 分片与 Q4_K_M / IQ3_XXS 的 n-gram 表完全相同。
- Q4_K ×11(第 24–31、40 层
- UD-Q3_K_XL: 拷贝 105 个张量(80 个 Q8_0 残差写入张量、第 0–23 层 Q4_K
ffn_down_exps+ BF16ple_value),约束重编码 19 个全部为 Q4_K 的张量(第 24–40 层ffn_down_exps以及 MTP 的attn_output/ffn_down_shexp):专家 down 约 7.5–9.4% 编码被改动,残差平均 0.77–1.03%(最大 1.10–1.32%);MTPattn_output残差 0.62%,ffn_down_shexp残差 0.40%。其余 787 个张量与 Unsloth 一致。第 2 分片与 Q4_K_M / IQ3_XXS / IQ3_S 的 n-gram 表完全相同。
视觉投影器是 Unsloth 的 mmproj-F16.gguf,未做修改。主文件里的 MTP 层已经消融;单独的 MTP 草稿头也用同一个 R 处理了那 3 个写入残差流的张量(其余 29 个张量未改)。
⚠️ 安全提示: 本模型没有安全护栏,可能生成有害、错误或违法的内容。仅供研究和个人本地使用,请勿公开部署,也不要提供给未成年人。使用者须自行承担全部责任。目前只做了结构和数值校验,还没有做行为评测。
致谢:Qwen 团队、Unsloth、OrcaRouter。许可证:Apache-2.0。