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"
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -7,7 +7,7 @@ model_name: Gemma-4-26B-A4B-it-Cerebellum-v6-GGUF
|
|
| 7 |
model_creator: google
|
| 8 |
model_type: gemma4
|
| 9 |
quantized_by: deucebucket
|
| 10 |
-
pipeline_tag: text-
|
| 11 |
tags:
|
| 12 |
- GGUF
|
| 13 |
- gemma4
|
|
@@ -19,6 +19,8 @@ tags:
|
|
| 19 |
- moe
|
| 20 |
- 3-bit
|
| 21 |
- conversational
|
|
|
|
|
|
|
| 22 |
---
|
| 23 |
|
| 24 |
# Gemma 4 26B-A4B-it β Cerebellum v6 GGUF
|
|
@@ -29,12 +31,15 @@ Cerebellum v6 is an ablation-guided mixed-precision GGUF quantization of [google
|
|
| 29 |
|
| 30 |
This is a 26B-parameter MoE model with 4B active parameters per token, 128 experts per layer, and 30 layers. This release uses tensor-level precision overrides selected from 140+ ablation experiments across six internal iterations, including per-layer MoE router surgery.
|
| 31 |
|
|
|
|
|
|
|
| 32 |
## At a Glance
|
| 33 |
|
| 34 |
| | |
|
| 35 |
|---|---|
|
| 36 |
| **File** | `gemma-4-26B-A4B-it-cerebellum-v6.gguf` |
|
| 37 |
-
| **
|
|
|
|
| 38 |
| **Base model** | `google/gemma-4-26B-A4B-it` |
|
| 39 |
| **Base quant** | Q3_K_M with [bartowski's imatrix](https://huggingface.co/bartowski/google_gemma-4-26B-A4B-it-GGUF) |
|
| 40 |
| **Format** | GGUF, mixed precision |
|
|
@@ -144,13 +149,90 @@ Q8_0 is the only precision that improves PPL. K-quant formats (Q6_K, Q2_K) use 2
|
|
| 144 |
|
| 145 |
91 tensor-level overrides + 1 surgical router recast on top of Q3_K_M base.
|
| 146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
## Usage
|
| 148 |
|
|
|
|
|
|
|
| 149 |
```bash
|
| 150 |
-
#
|
| 151 |
./llama-server -m gemma-4-26B-A4B-it-cerebellum-v6.gguf -ngl 99 -c 4096
|
| 152 |
|
| 153 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
ollama create gemma4-cerebellum -f Modelfile
|
| 155 |
ollama run gemma4-cerebellum
|
| 156 |
```
|
|
@@ -164,9 +246,11 @@ Fits in 24 GB VRAM at full GPU offload with room for 4K context.
|
|
| 164 |
- **Ablation experiments**: 140+ across 6 iterations (including 30-layer router surgery)
|
| 165 |
- **Quantizer**: llama.cpp `llama-quantize` with `--tensor-type-file` overrides + `gguf_tensor_surgery.py` for router recast
|
| 166 |
- **Hardware**: RTX 3090 (24 GB VRAM)
|
|
|
|
| 167 |
|
| 168 |
## Credits
|
| 169 |
|
| 170 |
- **Base model**: [Google Gemma Team](https://huggingface.co/google/gemma-4-26B-A4B-it)
|
| 171 |
- **Imatrix**: [bartowski](https://huggingface.co/bartowski/google_gemma-4-26B-A4B-it-GGUF)
|
|
|
|
| 172 |
- **Method & quantization**: [deucebucket/osmosis](https://github.com/deucebucket/osmosis) β Cerebellum pipeline
|
|
|
|
| 7 |
model_creator: google
|
| 8 |
model_type: gemma4
|
| 9 |
quantized_by: deucebucket
|
| 10 |
+
pipeline_tag: image-text-to-text
|
| 11 |
tags:
|
| 12 |
- GGUF
|
| 13 |
- gemma4
|
|
|
|
| 19 |
- moe
|
| 20 |
- 3-bit
|
| 21 |
- conversational
|
| 22 |
+
- multimodal
|
| 23 |
+
- vision
|
| 24 |
---
|
| 25 |
|
| 26 |
# Gemma 4 26B-A4B-it β Cerebellum v6 GGUF
|
|
|
|
| 31 |
|
| 32 |
This is a 26B-parameter MoE model with 4B active parameters per token, 128 experts per layer, and 30 layers. This release uses tensor-level precision overrides selected from 140+ ablation experiments across six internal iterations, including per-layer MoE router surgery.
|
| 33 |
|
| 34 |
+
**This model supports vision** when used with the included mmproj file. See [Vision Support](#vision-support) below.
|
| 35 |
+
|
| 36 |
## At a Glance
|
| 37 |
|
| 38 |
| | |
|
| 39 |
|---|---|
|
| 40 |
| **File** | `gemma-4-26B-A4B-it-cerebellum-v6.gguf` |
|
| 41 |
+
| **mmproj** | `mmproj-google_gemma-4-26B-A4B-it-f16.gguf` |
|
| 42 |
+
| **Size** | 11.7 GB (backbone) + 1.14 GB (mmproj) |
|
| 43 |
| **Base model** | `google/gemma-4-26B-A4B-it` |
|
| 44 |
| **Base quant** | Q3_K_M with [bartowski's imatrix](https://huggingface.co/bartowski/google_gemma-4-26B-A4B-it-GGUF) |
|
| 45 |
| **Format** | GGUF, mixed precision |
|
|
|
|
| 149 |
|
| 150 |
91 tensor-level overrides + 1 surgical router recast on top of Q3_K_M base.
|
| 151 |
|
| 152 |
+
## Vision Support
|
| 153 |
+
|
| 154 |
+
This model is multimodal β it can process images alongside text. Vision requires two files used together:
|
| 155 |
+
|
| 156 |
+
- `gemma-4-26B-A4B-it-cerebellum-v6.gguf` β the text backbone (this file)
|
| 157 |
+
- `mmproj-google_gemma-4-26B-A4B-it-f16.gguf` β the vision encoder + projector (1.14 GB)
|
| 158 |
+
|
| 159 |
+
The image token `<|image|>` (token ID 258880) is already in the vocabulary. No metadata changes needed.
|
| 160 |
+
|
| 161 |
+
### Usage with llama-server
|
| 162 |
+
|
| 163 |
+
```bash
|
| 164 |
+
llama-server \
|
| 165 |
+
-m gemma-4-26B-A4B-it-cerebellum-v6.gguf \
|
| 166 |
+
--mmproj mmproj-google_gemma-4-26B-A4B-it-f16.gguf \
|
| 167 |
+
--jinja \
|
| 168 |
+
--reasoning off \
|
| 169 |
+
--reasoning-budget 0 \
|
| 170 |
+
-ngl 99 \
|
| 171 |
+
-c 4096
|
| 172 |
+
```
|
| 173 |
+
|
| 174 |
+
**Required flags:**
|
| 175 |
+
- `--mmproj` β loads the vision encoder. The mmproj filename starts with `mmproj-` so it also works with `--mmproj-auto` auto-download if placed in the same directory.
|
| 176 |
+
- `--jinja` β enables the Gemma 4 chat template (embedded in the GGUF; required for correct formatting)
|
| 177 |
+
- `--reasoning off --reasoning-budget 0` β disables thinking mode which can cause infinite loops without dedicated reasoning tokens
|
| 178 |
+
|
| 179 |
+
### Usage with curl
|
| 180 |
+
|
| 181 |
+
```bash
|
| 182 |
+
curl http://localhost:8080/v1/chat/completions \
|
| 183 |
+
-H "Content-Type: application/json" \
|
| 184 |
+
-d '{
|
| 185 |
+
"model": "gemma4-cerebellum",
|
| 186 |
+
"messages": [
|
| 187 |
+
{
|
| 188 |
+
"role": "user",
|
| 189 |
+
"content": [
|
| 190 |
+
{"type": "image_url", "image_url": {"url": "https://example.com/image.jpg"}},
|
| 191 |
+
{"type": "text", "text": "What is shown in this image?"}
|
| 192 |
+
]
|
| 193 |
+
}
|
| 194 |
+
]
|
| 195 |
+
}'
|
| 196 |
+
```
|
| 197 |
+
|
| 198 |
+
### Usage with ollama
|
| 199 |
+
|
| 200 |
+
Create a `Modelfile`:
|
| 201 |
+
|
| 202 |
+
```dockerfile
|
| 203 |
+
FROM ./gemma-4-26B-A4B-it-cerebellum-v6.gguf
|
| 204 |
+
FROM ./mmproj-google_gemma-4-26B-A4B-it-f16.gguf
|
| 205 |
+
TEMPLATE {{ .Prompt }}
|
| 206 |
+
```
|
| 207 |
+
|
| 208 |
+
Then:
|
| 209 |
+
```bash
|
| 210 |
+
ollama create gemma4-cerebellum -f Modelfile
|
| 211 |
+
ollama run gemma4-cerebellum
|
| 212 |
+
```
|
| 213 |
+
|
| 214 |
+
### Technical notes
|
| 215 |
+
|
| 216 |
+
- The vision encoder has 27 layers with 1152 hidden dimension, projecting to 2816 (matching the text model's embedding dimension).
|
| 217 |
+
- Image resolution: native input size 224Γ224, patches of 16Γ16. Dynamic resolution supported.
|
| 218 |
+
- The mmproj was converted using llama.cpp's `convert_hf_to_gguf.py` from the original Google model and is redistributed under the Apache 2.0 license. Conversion credit: [bartowski](https://huggingface.co/bartowski).
|
| 219 |
+
- Vision works out of the box β no special tokens, metadata edits, or re-quantization needed.
|
| 220 |
+
|
| 221 |
## Usage
|
| 222 |
|
| 223 |
+
### llama.cpp
|
| 224 |
+
|
| 225 |
```bash
|
| 226 |
+
# Text only
|
| 227 |
./llama-server -m gemma-4-26B-A4B-it-cerebellum-v6.gguf -ngl 99 -c 4096
|
| 228 |
|
| 229 |
+
# With vision
|
| 230 |
+
./llama-server -m gemma-4-26B-A4B-it-cerebellum-v6.gguf --mmproj mmproj-google_gemma-4-26B-A4B-it-f16.gguf --jinja --reasoning off --reasoning-budget 0 -ngl 99 -c 4096
|
| 231 |
+
```
|
| 232 |
+
|
| 233 |
+
### ollama
|
| 234 |
+
|
| 235 |
+
```bash
|
| 236 |
ollama create gemma4-cerebellum -f Modelfile
|
| 237 |
ollama run gemma4-cerebellum
|
| 238 |
```
|
|
|
|
| 246 |
- **Ablation experiments**: 140+ across 6 iterations (including 30-layer router surgery)
|
| 247 |
- **Quantizer**: llama.cpp `llama-quantize` with `--tensor-type-file` overrides + `gguf_tensor_surgery.py` for router recast
|
| 248 |
- **Hardware**: RTX 3090 (24 GB VRAM)
|
| 249 |
+
- **Vision**: See [Vision Support](#vision-support) for details
|
| 250 |
|
| 251 |
## Credits
|
| 252 |
|
| 253 |
- **Base model**: [Google Gemma Team](https://huggingface.co/google/gemma-4-26B-A4B-it)
|
| 254 |
- **Imatrix**: [bartowski](https://huggingface.co/bartowski/google_gemma-4-26B-A4B-it-GGUF)
|
| 255 |
+
- **mmproj conversion**: [bartowski](https://huggingface.co/bartowski/google_gemma-4-26B-A4B-it-GGUF)
|
| 256 |
- **Method & quantization**: [deucebucket/osmosis](https://github.com/deucebucket/osmosis) β Cerebellum pipeline
|