perfectlydark HauhauCS commited on
Commit
eb6af76
Β·
0 Parent(s):

Duplicate from HauhauCS/Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced

Browse files

Co-authored-by: HauHau <HauhauCS@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ mmproj-Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-f16.gguf filter=lfs diff=lfs merge=lfs -text
37
+ Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
38
+ Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q2_K_P.gguf filter=lfs diff=lfs merge=lfs -text
39
+ Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
40
+ Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
41
+ Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q3_K_P.gguf filter=lfs diff=lfs merge=lfs -text
42
+ Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
43
+ Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
44
+ Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q4_K_P.gguf filter=lfs diff=lfs merge=lfs -text
45
+ Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
46
+ Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q5_K_P.gguf filter=lfs diff=lfs merge=lfs -text
47
+ Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q6_K_P.gguf filter=lfs diff=lfs merge=lfs -text
48
+ Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q8_K_P.gguf filter=lfs diff=lfs merge=lfs -text
Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c5a4fd9b2d0ca031e965e35cf128715cee649c9fccd6ff81a14b3ea8e263477
3
+ size 10377715552
Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75010d66e408d008fbe1122bf8c33548ed43d8a37e7056b6c0837eb21b5e1a4b
3
+ size 12392563552
Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61b277f4dde555fc6c04c9024a9580ef8c83f2f19504f3989a15f95684257426
3
+ size 13917726048
Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q2_K_P.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5726f6649f90e7c6af7609760a65bec0895cfa375ec3d3d63de8f76ec1b1a4ed
3
+ size 10696723296
Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88c462c244956232cc947ca61a95db3b52cb7d12c4dbc49cd46403018610000f
3
+ size 13286733664
Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q3_K_P.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52f21bf68bf4e1ddbd98be81f88ebc005c7c8b9c0aa22ef43479e59a97374ef2
3
+ size 13405785696
Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8b1da6dc139e6928159e536bc85602adbc1412018871732a878dedcad7ccafd
3
+ size 16796015968
Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q4_K_P.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:295121f61edeedaa8604bcaf3171831981c546c3a10a210cea87dc992eb429ae
3
+ size 16916915296
Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b414bfda510e1e8d52679e55cdd416f86d2777349a65fab50320ebb1dc5ca66
3
+ size 19132890464
Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q5_K_P.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11bbd396b30cccfcf16eb76383ad9e743d68b3983742daa4b2b2731f77cafa15
3
+ size 19317146976
Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q6_K_P.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e468cbb7ec1a58dd341475eccb9614d3bc2423aadca40ac6caf887bcfc637349
3
+ size 22758955104
Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q8_K_P.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96fb0a8a8ab4fd2b3bcf0ece5b1f852cffa7fa9f2cb8886f6f0166d830016d9d
3
+ size 27275669856
README.md ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - uncensored
5
+ - gemma4
6
+ - moe
7
+ - gguf
8
+ - vision
9
+ - multimodal
10
+ - agentic
11
+ - coding
12
+ language:
13
+ - en
14
+ pipeline_tag: image-text-to-text
15
+ base_model: google/gemma-4-26B-A4B-it
16
+ ---
17
+
18
+ # Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced
19
+
20
+ > **[Join the Discord](https://discord.gg/SZ5vacTXYf)** for updates, roadmaps, projects, or just to chat.
21
+
22
+ Gemma4-26B-A4B uncensored by HauhauCS. **0/465 Refusals*** **Release Candidate after over 1 month of nonstop work on this one.**
23
+
24
+ > **HuggingFace's "Hardware Compatibility" widget doesn't recognize K_P quants** β€” it may show fewer files than actually exist. Click **"View +X variants"** or go to **Files and versions** to see all available downloads.
25
+
26
+ ## About
27
+
28
+ **GenRM Defeated!**
29
+
30
+ No changes to datasets or capabilities. Fully functional, 100% of what the original authors intended β€” just without the refusals.
31
+
32
+ These are meant to be the best lossless uncensored models out there.
33
+
34
+ ## Balanced β€” Release Candidate
35
+
36
+ This legitimately took me over 1 month of non-stop work. Targeting 0 refusals in standard use, and that's what I'm seeing in testing (automated and manual) β€” a handful of edge-case prompts still deflect on first try but **follow through on a re-ask**. If you hit one Balanced won't get past, the Aggressive variant is coming once I figure out how to maintain lossless/near-lossless quality for it.
37
+
38
+ - **Balanced**: will reason through edgy requests, occasionally attach a short safety framing, then deliver the full answer. Output is complete, nothing held back, but it can talk itself into it first. **Recommended default β€” 99%+ of users will be happy here.** Best for **creative writing, RP, emotional intelligence**. Normally I'd also say "agentic coding/tool use" however in my in-depth testing, **Qwen3.6 has been net superior on such tasks**. Do be mindful of the few deflection categories I mentioned already.
39
+ - **Aggressive** *(separate release, WIP)*: strips the self-reasoning preamble and gives direct answers to any DEEPLY censored topics.
40
+
41
+ Balanced also has meaningfully more stable sampling across re-runs, which matters for long context sessions β€” no sporadic topic drift deep.
42
+
43
+ ## Downloads
44
+
45
+ | File | Quant | BPW | Size |
46
+ |------|-------|-----|------|
47
+ | Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q8_K_P.gguf | Q8_K_P | 8.64 | 27 GB |
48
+ | Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q6_K_P.gguf | Q6_K_P | 7.21 | 23 GB |
49
+ | Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q5_K_P.gguf | Q5_K_P | 6.12 | 19 GB |
50
+ | Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q5_K_M.gguf | Q5_K_M | 6.06 | 19 GB |
51
+ | Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q4_K_P.gguf | Q4_K_P | 5.36 | 17 GB |
52
+ | Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q4_K_M.gguf | Q4_K_M | 5.32 | 17 GB |
53
+ | Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-IQ4_XS.gguf | IQ4_XS | 4.41 | 14 GB |
54
+ | Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q3_K_P.gguf | Q3_K_P | 4.25 | 13 GB |
55
+ | Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q3_K_M.gguf | Q3_K_M | 4.21 | 13 GB |
56
+ | Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-IQ3_M.gguf | IQ3_M | 3.93 | 12 GB |
57
+ | Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q2_K_P.gguf | Q2_K_P | 3.39 | 11 GB |
58
+ | Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-IQ2_M.gguf | IQ2_M | 3.29 | 10 GB |
59
+ | mmproj-Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-f16.gguf | mmproj (f16) | β€” | 1.2 GB |
60
+
61
+ BPW is slightly higher than nominal across the board because Gemma4 has a lot of per-layer norm/scale tensors kept at F32 (multiple post-ffw norms per layer). All quants generated with importance matrix (imatrix) for optimal quality preservation on uncensored weights.
62
+
63
+ ## What are K_P quants?
64
+
65
+ K_P ("Perfect") quants are HauhauCS custom quantizations that use **model-specific** analysis to selectively preserve quality where it matters most. Each model gets its own optimized quantization profile β€” the top 25% most-important tensors (per imatrix calibration) are promoted to a higher quant type.
66
+
67
+ A K_P quant effectively bumps quality up by 1-2 quant levels at only ~5-15% larger file size than the base quant. Fully compatible with llama.cpp, LM Studio, and any GGUF-compatible runtime β€” no special builds needed.
68
+
69
+ **Note:** K_P quants may show as "?" in LM Studio's quant column. This is a display issue only β€” the model loads and runs fine.
70
+
71
+ ## Why this model for agentic work
72
+
73
+ 26B total params with only ~4B active per forward pass (top-8 of 128 experts). You get the reasoning footprint of a 26B with the throughput of a ~4B for inference cost β€” which matters when you're chaining 10+ tool calls per task. Sliding-window attention (1024 tokens) plus periodic full attention keeps long contexts cheap without losing global coherence.
74
+
75
+ Balanced is calibrated for this. It removes refusals on security/ops/research-adjacent topics that block legitimate coding work, without bending the sampling geometry that keeps long chains coherent.
76
+
77
+ Recommended quant for most coding work: **Q4_K_P** (17 GB, fits in 24 GB VRAM with room for context) or **Q8_K_P** (27 GB) if you have more VRAM and want maximum quality with minimal offloading.
78
+
79
+ Do note - main usecase for Gemma4 is Creative Writing, Roleplaying and Emotional Intelligence.
80
+
81
+ ## Specs
82
+
83
+ - 25.2B total / 3.8B active params (128 routed experts, top-8 + 1 shared expert)
84
+ - 30 layers, hybrid attention: 5Γ— sliding-window (1024 tokens) β†’ 1Γ— full global, repeating. Uses Proportional RoPE (p-RoPE).
85
+ - Hidden dim 2816, FFN dim 2112, MoE expert FFN 704, vocab 262144
86
+ - Head dim 256 (SWA) / 512 (full), 16 attention heads, 8 KV heads (2 for full layers)
87
+ - 256K native context
88
+ - Natively multimodal (text + vision) β€” ships with mmproj. Variable visual token budgets: 70 / 140 / 280 / 560 / 1120 per image.
89
+ - Based on [google/gemma-4-26B-A4B-it](https://huggingface.co/google/gemma-4-26B-A4B-it)
90
+
91
+ ## Recommended Settings
92
+
93
+ From the official Gemma authors:
94
+
95
+ **Inference parameters:**
96
+ - `temperature=1.0, top_p=0.95, top_k=64`
97
+
98
+
99
+ **Important:**
100
+ - Use `--jinja` with llama.cpp for proper chat template handling
101
+ - Vision support requires the `mmproj` file alongside the main GGUF. **Place images before text** in your prompt for best vision performance.
102
+ - Keep at least 32K context for serious agentic work; the model can take much more (256K native) if you need it
103
+ - Sliding window is baked into the architecture β€” no special flag needed
104
+
105
+ ## Turning Thinking On/Off
106
+
107
+ Gemma4 has thinking mode controlled via `enable_thinking` in the chat template. It's the same pattern as Qwen3.6 β€” set `false` for faster, shorter replies and `true` (default) when you want chain-of-thought.
108
+
109
+ ### LM Studio
110
+
111
+ 1. Load the model
112
+ 2. Right-side settings panel β†’ **Model Settings** β†’ **Prompt Template** (or **Chat Template Options**)
113
+ 3. Set `enable_thinking` to `false` (or `true`) in the template kwargs
114
+
115
+ ### llama.cpp
116
+
117
+ **llama-server β€” set as default for all requests:**
118
+ ```bash
119
+ llama-server -m Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q4_K_P.gguf \
120
+ --mmproj mmproj-Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-f16.gguf \
121
+ --jinja -c 32768 -ngl 99 \
122
+ --chat-template-kwargs '{"enable_thinking": false}'
123
+ ```
124
+
125
+ **Per-request via the OpenAI-compatible API:**
126
+ ```json
127
+ {
128
+ "model": "gemma4-26b-a4b",
129
+ "messages": [{"role": "user", "content": "..."}],
130
+ "chat_template_kwargs": {"enable_thinking": false}
131
+ }
132
+ ```
133
+
134
+ ## Usage
135
+
136
+ Works with llama.cpp, LM Studio, Jan, koboldcpp, and other GGUF-compatible runtimes.
137
+
138
+ **llama-server:**
139
+ ```bash
140
+ llama-server -m Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q4_K_P.gguf \
141
+ --mmproj mmproj-Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-f16.gguf \
142
+ --jinja -c 32768 -ngl 99
143
+ ```
144
+
145
+ **llama-cli:**
146
+ ```bash
147
+ llama-cli -m Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-Q4_K_P.gguf \
148
+ --mmproj mmproj-Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-f16.gguf \
149
+ --jinja -c 32768 -ngl 99
150
+ ```
151
+
152
+ ## Other Models
153
+
154
+ - [HauhauCS on HuggingFace](https://huggingface.co/HauhauCS/models)
155
+
156
+ ---
157
+
158
+ \* _Tested with both automated and manual refusal benchmarks β€” none have been found in standard use. A small number of edge-case prompts deflect on the first ask but comply on a re-ask or strategic framing. If you hit one that's actually obstructive to your use case, [join the Discord](https://discord.gg/SZ5vacTXYf) and flag it so I can work on it in a future revision._
mmproj-Gemma4-26B-A4B-Uncensored-HauhauCS-Balanced-f16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9422eeb070cc7f6e412d34d03e2fb4693bb90dcdba4a0294150de28a04f4e12c
3
+ size 1193058368