Text Generation
GGUF
GGUF
gemma4
gemma
google
quantized
cerebellum
imatrix
Mixture of Experts
3-bit
templatefix
Eval Results (legacy)
conversational
Instructions to use deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF:Q3_K_M # Run inference directly in the terminal: llama cli -hf deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF:Q3_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF:Q3_K_M # Run inference directly in the terminal: llama cli -hf deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF:Q3_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF:Q3_K_M # Run inference directly in the terminal: ./llama-cli -hf deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF:Q3_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF:Q3_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF:Q3_K_M
Use Docker
docker model run hf.co/deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF:Q3_K_M
- LM Studio
- Jan
- vLLM
How to use deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF:Q3_K_M
- Ollama
How to use deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF with Ollama:
ollama run hf.co/deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF:Q3_K_M
- Unsloth Desktop
- Pi
How to use deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF:Q3_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF:Q3_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF with Docker Model Runner:
docker model run hf.co/deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF:Q3_K_M
- Lemonade
How to use deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF:Q3_K_M
Run and chat with the model
lemonade run user.Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF-Q3_K_M
List all available models
lemonade list
- Hermes Agent
How to use deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF:Q3_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF:Q3_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF:Q3_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "deucebucket/Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF:Q3_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
docs: consolidate card — single Evaluation section, drop dated/append blocks
Browse files
README.md
CHANGED
|
@@ -74,187 +74,68 @@ model-index:
|
|
| 74 |
|
| 75 |
# Gemma 4 26B-A4B-it Cerebellum GGUF
|
| 76 |
|
| 77 |
-
|
| 78 |
-
|
|
|
|
|
|
|
|
|
|
| 79 |
|
| 80 |
-
##
|
| 81 |
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
| 83 |
|
| 84 |
-
|
| 85 |
-
gemma-4-26B-A4B-it-cerebellum-v6.1-templatefix-Q3_K_M.gguf
|
| 86 |
-
sha256: d24229facdef8360a7ffa8b37a50e1de636b9139a5eba0efe899828e45ae7989
|
| 87 |
-
|
| 88 |
-
gemma-4-26b-a4b-it.mmproj.gguf
|
| 89 |
-
sha256: b762c43119ebdc3e3c36d929d958e827fac35b03278dda9203f87131aee1f185
|
| 90 |
-
```
|
| 91 |
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
|
|
|
| 95 |
|
| 96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
|
| 98 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
|
| 100 |
-
|
| 101 |
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
| max measured context (q8_0 KV) | 131,072 |
|
| 107 |
-
|
| 108 |
-
```bash
|
| 109 |
-
llama-server -m gemma-4-26B-A4B-it-cerebellum-v6.1-templatefix-Q3_K_M.gguf \
|
| 110 |
-
-ngl 99 --parallel 4 -c 24576 --jinja --reasoning-budget 0
|
| 111 |
-
```
|
| 112 |
-
|
| 113 |
-
_This rig's measurements; no quality claims beyond them._
|
| 114 |
-
|
| 115 |
-
## Tested Runtime
|
| 116 |
-
|
| 117 |
-
Runtime used for the 2026-05-22 templatefix checks:
|
| 118 |
-
|
| 119 |
-
```text
|
| 120 |
-
llama.cpp fork: https://github.com/deucebucket/llama.cpp
|
| 121 |
-
branch: cerebellum/gemma4-runtime-fixes
|
| 122 |
-
fork commit: ded491334 fix: harden Gemma 4 server budgets
|
| 123 |
-
base build: b8930-59fa0b455
|
| 124 |
-
```
|
| 125 |
-
|
| 126 |
-
Server shape used locally:
|
| 127 |
|
| 128 |
```bash
|
| 129 |
llama-server \
|
| 130 |
--model gemma-4-26B-A4B-it-cerebellum-v6.1-templatefix-Q3_K_M.gguf \
|
| 131 |
--mmproj gemma-4-26b-a4b-it.mmproj.gguf \
|
| 132 |
-
--
|
| 133 |
-
--
|
| 134 |
-
--parallel 1 \
|
| 135 |
-
--flash-attn on \
|
| 136 |
-
--cache-type-k q8_0 \
|
| 137 |
-
--cache-type-v q8_0 \
|
| 138 |
-
--jinja \
|
| 139 |
-
--reasoning auto \
|
| 140 |
-
--media-path /tmp/
|
| 141 |
-
```
|
| 142 |
-
|
| 143 |
-
Normal no-thinking requests used:
|
| 144 |
-
|
| 145 |
-
```json
|
| 146 |
-
{
|
| 147 |
-
"chat_template_kwargs": {"enable_thinking": false},
|
| 148 |
-
"thinking_budget_tokens": 0
|
| 149 |
-
}
|
| 150 |
```
|
| 151 |
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
Creative-writing smoke files:
|
| 157 |
-
|
| 158 |
-
```text
|
| 159 |
-
creative_eval_20260522/regular_v6_1_templatefix_creative_summary.json
|
| 160 |
-
creative_eval_20260522/regular_v6_1_templatefix_creative_rerun_longcaps_summary.json
|
| 161 |
-
```
|
| 162 |
-
|
| 163 |
-
Non-coding tool-use files:
|
| 164 |
-
|
| 165 |
-
```text
|
| 166 |
-
agentic_eval_20260522/README.md
|
| 167 |
-
agentic_eval_20260522/regular_v6_1_noncoding_agentic_tools_strict_summary.json
|
| 168 |
-
```
|
| 169 |
-
|
| 170 |
-
Observed 2026-05-22 results from those artifacts:
|
| 171 |
-
|
| 172 |
-
| Area | Harness | Observed result |
|
| 173 |
-
|---|---|---|
|
| 174 |
-
| No-thinking output channel | six creative prompts | `reasoning_len=0` in recorded outputs |
|
| 175 |
-
| Template leakage markers | six creative prompts | no `<think>` marker or template marker recorded by checker |
|
| 176 |
-
| Creative long-cap rerun | four prompts rerun after initial length caps | four stop finishes in rerun summary |
|
| 177 |
-
| Non-coding tool workflow | three strict OpenAI-style tool tasks | `schedule_strict`, `release_notes_strict`, `creative_brief_strict` listed in `pass_cases` |
|
| 178 |
-
|
| 179 |
-
The non-coding tool harness used mock tools named `list_calendar`,
|
| 180 |
-
`create_calendar_hold`, `search_notes`, `save_note`, and `add_task`. It did not
|
| 181 |
-
test code editing.
|
| 182 |
-
|
| 183 |
-
## Evaluation
|
| 184 |
-
|
| 185 |
-
Benchmark results for the Cerebellum v6 tensor allocation, measured directly
|
| 186 |
-
on the GGUF with llama.cpp `llama-server` on an RTX 3090. The v6.1
|
| 187 |
-
templatefix file keeps the v6 tensor allocation with zero tensor changes
|
| 188 |
-
(metadata-only update), so these measurements describe the same weights.
|
| 189 |
-
Summary JSONs are in `benchmark_results/` in this repository.
|
| 190 |
-
|
| 191 |
-
| Benchmark | Cerebellum v6 (11 GB) | Local Q3_K_M baseline |
|
| 192 |
-
|-----------|:---:|:---:|
|
| 193 |
-
| ARC-Challenge | **95.56%** (1172 q) | 95.22% |
|
| 194 |
-
| HellaSwag | 84.55% (10042 q) | 86.57% |
|
| 195 |
-
| MMLU-Redux | 71.33% (2400 q) | 73.67% |
|
| 196 |
-
|
| 197 |
-
Protocol: multiple-choice benchmarks run against a local `llama-server` with
|
| 198 |
-
the project benchmark harness at temperature 0. HumanEval is not listed in
|
| 199 |
-
the metadata because the retained v6 HumanEval artifacts are marked for audit
|
| 200 |
-
in local notes. For Gemma 4, the current HumanEval/EvalPlus protocol uses the
|
| 201 |
-
chat-completions harness (`scripts/benchmark_evalplus_chat.py`) with
|
| 202 |
-
`enable_thinking: false`, `thinking_budget_tokens: 0`, and `BENCH_WORKERS=1`,
|
| 203 |
-
not raw completions.
|
| 204 |
-
|
| 205 |
-
## Historical Same-Repo Benchmark Artifacts
|
| 206 |
-
|
| 207 |
-
The following benchmark artifacts are from the earlier v6 line and the local
|
| 208 |
-
Q3_K_M baseline. They are included as historical same-project measurements, not
|
| 209 |
-
as new v6.1 measurements.
|
| 210 |
-
|
| 211 |
-
| Artifact set | ARC-Challenge | HellaSwag | MMLU-Redux | HumanEval note |
|
| 212 |
-
|---|---:|---:|---:|---|
|
| 213 |
-
| `q3km_baseline_*` | 95.2218 | 86.5664 | 73.6667 | `q3km_baseline_humaneval_results.json`: 62.2 pass@1 |
|
| 214 |
-
| `cerebellum_v6_*` | 95.5631 | 84.55 | 71.3333 | v6 HumanEval artifacts are retained but marked for audit in local notes |
|
| 215 |
-
|
| 216 |
-
For Gemma 4 HumanEval/EvalPlus, the local protocol now uses chat completions,
|
| 217 |
-
not raw completions:
|
| 218 |
-
|
| 219 |
-
```text
|
| 220 |
-
llama-server --jinja --reasoning auto
|
| 221 |
-
chat_template_kwargs: {"enable_thinking": false}
|
| 222 |
-
thinking_budget_tokens: 0
|
| 223 |
-
BENCH_WORKERS=1
|
| 224 |
-
```
|
| 225 |
-
|
| 226 |
-
## Files and Provenance
|
| 227 |
-
|
| 228 |
-
Main v6.1 GGUF:
|
| 229 |
-
|
| 230 |
-
```text
|
| 231 |
-
source base: google/gemma-4-26B-A4B-it
|
| 232 |
-
quantization family: mixed-precision GGUF
|
| 233 |
-
recipe lineage: Cerebellum v6 tensor allocation
|
| 234 |
-
base quant lineage: Q3_K_M with bartowski imatrix
|
| 235 |
-
```
|
| 236 |
-
|
| 237 |
-
Matching mmproj:
|
| 238 |
-
|
| 239 |
-
```text
|
| 240 |
-
gemma-4-26b-a4b-it.mmproj.gguf
|
| 241 |
-
```
|
| 242 |
|
| 243 |
-
##
|
| 244 |
|
| 245 |
-
-
|
| 246 |
-
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
- The creative-writing checks are smoke tests plus mechanical checks, not a
|
| 250 |
-
human preference benchmark.
|
| 251 |
-
- The non-coding tool checks use mocked tools and fixed task definitions.
|
| 252 |
|
| 253 |
## Credits
|
| 254 |
|
| 255 |
- Base model: Google Gemma Team, `google/gemma-4-26B-A4B-it`
|
| 256 |
-
- Imatrix
|
| 257 |
-
|
| 258 |
-
-
|
| 259 |
-
- Method and quantization workflow: deucebucket/cerebellum Cerebellum pipeline
|
| 260 |
-
- Local test artifacts: deucebucket Cerebellum workflow
|
|
|
|
| 74 |
|
| 75 |
# Gemma 4 26B-A4B-it Cerebellum GGUF
|
| 76 |
|
| 77 |
+
Sensitivity-guided mixed-precision GGUF of [google/gemma-4-26B-A4B-it](https://huggingface.co/google/gemma-4-26B-A4B-it):
|
| 78 |
+
a Q3_K_M base with the Cerebellum v6 tensor allocation. The shipped file carries
|
| 79 |
+
the v6 weights plus Google's updated Gemma 4 chat-template metadata (the 2026-05-18
|
| 80 |
+
template state) with zero tensor changes versus v6. Newer versions appear in
|
| 81 |
+
filenames, not the repo name.
|
| 82 |
|
| 83 |
+
## Files
|
| 84 |
|
| 85 |
+
| File | Description |
|
| 86 |
+
|------|-------------|
|
| 87 |
+
| `gemma-4-26B-A4B-it-cerebellum-v6.1-templatefix-Q3_K_M.gguf` | ~11 GB; v6 allocation + updated chat-template metadata |
|
| 88 |
+
| `gemma-4-26b-a4b-it.mmproj.gguf` | vision projector (required for image/video) |
|
| 89 |
|
| 90 |
+
## Evaluation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
|
| 92 |
+
Measured directly on the GGUF with llama.cpp `llama-server` on an RTX 3090,
|
| 93 |
+
temperature 0, project benchmark harness. v6.1 is metadata-only over v6, so these
|
| 94 |
+
describe the same weights. The comparison column is our own same-size uniform
|
| 95 |
+
Q3_K_M build measured on the same harness. Summary JSONs are in `benchmark_results/`.
|
| 96 |
|
| 97 |
+
| Benchmark | Cerebellum v6 (11 GB) | Uniform Q3_K_M (11 GB) |
|
| 98 |
+
|-----------|:---:|:---:|
|
| 99 |
+
| ARC-Challenge (1172 q) | 95.56% | 95.22% |
|
| 100 |
+
| HellaSwag (10042 q) | 84.55% | 86.57% |
|
| 101 |
+
| MMLU-Redux (2400 q) | 71.33% | 73.67% |
|
| 102 |
+
| HumanEval (raw-completions, legacy) | pending re-audit | 62.2% pass@1 |
|
| 103 |
|
| 104 |
+
HumanEval for Gemma 4 must use the chat-completions harness
|
| 105 |
+
(`scripts/benchmark_evalplus_chat.py`, `enable_thinking: false`,
|
| 106 |
+
`thinking_budget_tokens: 0`, `BENCH_WORKERS=1`). The retained v6 HumanEval
|
| 107 |
+
artifacts were raw-completions and are marked for re-audit, so no v6 HumanEval
|
| 108 |
+
number is published here.
|
| 109 |
|
| 110 |
+
## Usage
|
| 111 |
|
| 112 |
+
Gemma 4 requires `--jinja`. For non-thinking output, pass request-level
|
| 113 |
+
`chat_template_kwargs: {"enable_thinking": false}` and `thinking_budget_tokens: 0`;
|
| 114 |
+
do not set a fixed server `--reasoning-budget` (it can burn output into hidden
|
| 115 |
+
reasoning until the length cap, which looks like a repetition loop).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
|
| 117 |
```bash
|
| 118 |
llama-server \
|
| 119 |
--model gemma-4-26B-A4B-it-cerebellum-v6.1-templatefix-Q3_K_M.gguf \
|
| 120 |
--mmproj gemma-4-26b-a4b-it.mmproj.gguf \
|
| 121 |
+
-ngl 99 --ctx-size 65536 --parallel 1 --flash-attn on \
|
| 122 |
+
--cache-type-k q8_0 --cache-type-v q8_0 --jinja --reasoning auto
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
```
|
| 124 |
|
| 125 |
+
Measured on one RTX 3090 (24 GB), KV q8_0: ~123 tok/s decode, 15.1 GB peak VRAM
|
| 126 |
+
(4-slot serving), context to 131,072. This rig's measurements; no quality claims
|
| 127 |
+
beyond them.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
|
| 129 |
+
## Provenance
|
| 130 |
|
| 131 |
+
- Base: [google/gemma-4-26B-A4B-it](https://huggingface.co/google/gemma-4-26B-A4B-it) — Google Gemma Team
|
| 132 |
+
- Base quant lineage: Q3_K_M with the bartowski imatrix (`bartowski/google_gemma-4-26B-A4B-it-GGUF`)
|
| 133 |
+
- Recipe: Cerebellum v6 tensor allocation; v6.1 is a chat-template metadata refresh
|
| 134 |
+
(Google 2026-05-18 template), zero tensor changes
|
|
|
|
|
|
|
|
|
|
| 135 |
|
| 136 |
## Credits
|
| 137 |
|
| 138 |
- Base model: Google Gemma Team, `google/gemma-4-26B-A4B-it`
|
| 139 |
+
- Imatrix: bartowski, `bartowski/google_gemma-4-26B-A4B-it-GGUF`
|
| 140 |
+
- GGUF runtime: [llama.cpp](https://github.com/ggml-org/llama.cpp)
|
| 141 |
+
- Quantization method: [Cerebellum](https://github.com/deucebucket/cerebellum) — deucebucket
|
|
|
|
|
|