license: apache-2.0
base_model: Jakevin/Qwen4-35B-A3B-uncensored-GGUF
tags:
- qwen4
- gguf
- abliterated
- uncensored
- moe
- mixed-precision
language: - en
- zh
pipeline_tag: text-generation
Qwen4-35B-A3B Uncensored — D3 mixed-precision GGUF (~36.9 GiB)
Mixed-precision GGUF of the abliterated Jakevin/Qwen4-35B-A3B-uncensored-GGUF (Q8_0, layer 20, alpha 1.5), which is derived from Qwen/Qwen4-35B-A3B via the Q8_0 file in unsloth/Qwen4-35B-A3B-GGUF.
This is a mixed-precision GGUF (K-quants Q2_K/Q3_K/Q4_K for the routed experts, Q8_0 and F32/F16/BF16 elsewhere). It is not a ternary model.
Safety refusals have been reduced by abliteration. Research use only.
Files
| File | Role | Bytes |
|---|---|---|
Qwen4-35B-A3B-uncensored-D3-d3mckp-00001-of-00002.gguf |
Main model (mixed precision) | 17,842,135,104 |
Qwen4-35B-A3B-uncensored-D3-d3mckp-00002-of-00002.gguf |
n-gram embedding table (per_layer_token_embd), kept Q8_0 |
21,760,487,616 |
mmproj-BF16.gguf |
Vision projector from the Unsloth package, unmodified | 902,822,144 |
d3_allocation.json |
Per-layer allocation and measured KL used by the allocator | |
d3_tensor_types.txt |
llama-quantize --tensor-type-file rules used to build the file |
Both GGUF shards must sit in the same directory. Requires llama.cpp b12973 or later (architecture qwen4exp).
llama-cli -m Qwen4-35B-A3B-uncensored-D3-d3mckp-00001-of-00002.gguf -ngl 99 -c 8192
GGUF 立即可用(零重做成本): 執行 llama-server 時直接加上 --spec-type draft-mtp --spec-draft-n-max 1,解碼直接從 43.2 → 55.6 tok/s(+28.6%)。
Method: D3 (measured-KL bit allocation)
- Scope. Only the 120 routed-expert tensors of trunk blocks 0–39 (
ffn_{gate,up,down}_exps, grouped per layer = 40 units) are re-allocated. Everything else keeps its source type: attention / Gated DeltaNet mixers and shared experts Q8_0;token_embd,output, the n-gram table, the MTP block (blk.40), hyper-connection (hc_*) tensors, norms and F32/F16/BF16 tensors unchanged in type. - Importance matrix.
llama-imatrixon 100 × 512-token chunks of WikiText-2 raw test text taken after the first 60 evaluation-sized chunks (disjoint from the evaluation chunks 0–19). Experts never routed in calibration (984 of 30,720 expert slots) fall back to a constant weight of 1.0. - Sensitivity. For each layer and each candidate type, that layer's experts alone were quantized (with the imatrix) and dequantized back into a copy of the Q8_0 model, and the mean token KL divergence to the Q8_0 model was measured with
llama-perplexity --kl-divergenceon 20 × 512-token chunks of the same calibration text (also disjoint from evaluation). - Allocation. Multiple-choice knapsack: minimize the sum of per-layer KL subject to the exact byte budget of "all experts Q3_K". Result: 4 layers Q2_K (L1, L2, L37, L38), 33 layers Q3_K, 3 layers Q4_K (L14, L15, L19). Predicted summed KL 0.529758 vs 0.533126 for uniform Q3_K and 0.666443 for a depth-halves rule.
- Built with
llama-quantize --pure --keep-split --tensor-type-file d3_tensor_types.txt --imatrix ...from the Q8_0 source. Quant size reported by llama-quantize: 37,757.51 MiB (5.6182 BPW).
Measured results
Recorded local runs on 2026-12-05 (UTC+9), Apple M4 Pro, llama.cpp b12973, all layers on GPU. Reference = the abliterated Q8_0 model.
Fidelity: WikiText-2 raw test chunks 0–19, 512-token context (not used for calibration or allocation).
| Variant (same byte budget) | Quant size (MiB) | Mean KL vs Q8_0 | PPL | Same top-1 | pp512 tok/s | tg128 tok/s |
|---|---|---|---|---|---|---|
| This model (D3) | 37,757.51 | 0.131199 ± 0.004409 | 7.480167 | 86.255% | 564.94 | 43.34 |
| Uniform Q3_K experts | 37,763.51 | 0.133625 ± 0.004934 | 7.528991 | 86.098% | 543.90 | 43.41 |
| Depth-halves rule | 37,733.51 | 0.219499 ± 0.006986 | 7.681329 | 81.294% | 570.70 | 46.15 |
| Q8_0 reference | 57,203.51 | — | 7.2849 ± 0.27097 | — | 583.84 | 40.75 |
The KL / PPL advantage of D3 over uniform Q3_K is small: a paired comparison over the same 20 chunks gives an approximate 95% interval for the mean KL difference of −0.00289 to +0.00774, which includes zero. D3 was chosen as the best observed fidelity at equal size, not as a statistically established win. The depth-halves baseline is clearly worse in fidelity.
Refusal (marker-string detector on the first 300 characters; 128 new tokens; thinking off; temperature 0; one greedy completion per prompt):
| Set | This model | Uniform Q3_K | Depth-halves | Q8_0 reference |
|---|---|---|---|---|
| Held-out harmful, 200 prompts (flagged) | 23 / 200 | 28 / 200 | 15 / 200 | 10 / 200 |
| Held-out harmless, 100 prompts (flagged) | 1 / 100 | 1 / 100 | 2 / 100 | 3 / 100 |
Quantization raised the number of detector-flagged harmful prompts relative to the Q8_0 reference. Per prompt, changes go both ways (this model: 4 flagged by both, 19 newly flagged, 6 no longer flagged).
Limitations
- Fidelity was evaluated against the abliterated Q8_0 reference on 20 WikiText-2 test chunks at a 512-token context, so the results provide limited evidence for other domains or longer contexts.
- The refusal evaluation used 200 harmful and 100 harmless prompts with one greedy completion per prompt, thinking disabled, and a 128-token cap. The fixed substring detector can flag incidental wording or miss implicit and later refusals; counts alone cannot establish actual refusal, harmful compliance, or safety.
- This file is less uncensored than the Q8_0 reference under that detector (23 vs 10 of 200 flagged).
- Calibration and sensitivity data are English WikiText only. No task benchmark (MMLU, GSM8K, …), no long-generation test, no thinking-mode test.
- Throughput reflects three
llama-benchrepetitions on one Apple M4 Pro machine and may vary with hardware, runtime, and workload. - The vision projector is included unmodified and was not re-tested with this quantization. The MTP block is kept but speculative decoding with it was not tested.
- Per-layer sensitivities are isolated single-layer measurements; their sum is only a proxy for the combined error.
License
Apache-2.0, following Qwen/Qwen4-35B-A3B.