Image-Text-to-Text
GGUF
GGUF
gemma4
gemma
google
quantized
cerebellum
imatrix
ple-protected
ablation
3-bit
conversational
Eval Results (legacy)
Instructions to use deucebucket/Gemma-4-E4B-it-Cerebellum-v2-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-E4B-it-Cerebellum-v2-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-E4B-it-Cerebellum-v2-GGUF:Q3_K_M # Run inference directly in the terminal: llama cli -hf deucebucket/Gemma-4-E4B-it-Cerebellum-v2-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-E4B-it-Cerebellum-v2-GGUF:Q3_K_M # Run inference directly in the terminal: llama cli -hf deucebucket/Gemma-4-E4B-it-Cerebellum-v2-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-E4B-it-Cerebellum-v2-GGUF:Q3_K_M # Run inference directly in the terminal: ./llama-cli -hf deucebucket/Gemma-4-E4B-it-Cerebellum-v2-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-E4B-it-Cerebellum-v2-GGUF:Q3_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf deucebucket/Gemma-4-E4B-it-Cerebellum-v2-GGUF:Q3_K_M
Use Docker
docker model run hf.co/deucebucket/Gemma-4-E4B-it-Cerebellum-v2-GGUF:Q3_K_M
- LM Studio
- Jan
- vLLM
How to use deucebucket/Gemma-4-E4B-it-Cerebellum-v2-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-E4B-it-Cerebellum-v2-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-E4B-it-Cerebellum-v2-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/deucebucket/Gemma-4-E4B-it-Cerebellum-v2-GGUF:Q3_K_M
- Ollama
How to use deucebucket/Gemma-4-E4B-it-Cerebellum-v2-GGUF with Ollama:
ollama run hf.co/deucebucket/Gemma-4-E4B-it-Cerebellum-v2-GGUF:Q3_K_M
- Unsloth Desktop
- Pi
How to use deucebucket/Gemma-4-E4B-it-Cerebellum-v2-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-E4B-it-Cerebellum-v2-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-E4B-it-Cerebellum-v2-GGUF:Q3_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use deucebucket/Gemma-4-E4B-it-Cerebellum-v2-GGUF with Docker Model Runner:
docker model run hf.co/deucebucket/Gemma-4-E4B-it-Cerebellum-v2-GGUF:Q3_K_M
- Lemonade
How to use deucebucket/Gemma-4-E4B-it-Cerebellum-v2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull deucebucket/Gemma-4-E4B-it-Cerebellum-v2-GGUF:Q3_K_M
Run and chat with the model
lemonade run user.Gemma-4-E4B-it-Cerebellum-v2-GGUF-Q3_K_M
List all available models
lemonade list
- Hermes Agent
How to use deucebucket/Gemma-4-E4B-it-Cerebellum-v2-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-E4B-it-Cerebellum-v2-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-E4B-it-Cerebellum-v2-GGUF:Q3_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use deucebucket/Gemma-4-E4B-it-Cerebellum-v2-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-E4B-it-Cerebellum-v2-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-E4B-it-Cerebellum-v2-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"
chanti
#1
by chantidas - opened
.gitattributes
CHANGED
|
@@ -35,5 +35,3 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
imatrix.dat filter=lfs diff=lfs merge=lfs -text
|
| 37 |
Gemma-4-E4B-it-Cerebellum-v2.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
-
Gemma-4-E4B-it-Cerebellum-v2-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
-
cerebellum_banner.png filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
imatrix.dat filter=lfs diff=lfs merge=lfs -text
|
| 37 |
Gemma-4-E4B-it-Cerebellum-v2.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
Gemma-4-E4B-it-Cerebellum-v2-Q3_K_M.gguf → Gemma-4-E4B-it-Cerebellum-v2.gguf
RENAMED
|
File without changes
|
README.md
CHANGED
|
@@ -20,88 +20,8 @@ tags:
|
|
| 20 |
- ablation
|
| 21 |
- 3-bit
|
| 22 |
- conversational
|
| 23 |
-
model-index:
|
| 24 |
-
- name: Gemma-4-E4B-it-Cerebellum-v2-GGUF
|
| 25 |
-
results:
|
| 26 |
-
- task:
|
| 27 |
-
name: Text Generation
|
| 28 |
-
type: text-generation
|
| 29 |
-
dataset:
|
| 30 |
-
name: AI2 Reasoning Challenge
|
| 31 |
-
type: ai2_arc
|
| 32 |
-
config: ARC-Challenge
|
| 33 |
-
split: test
|
| 34 |
-
metrics:
|
| 35 |
-
- name: normalized accuracy
|
| 36 |
-
type: acc_norm
|
| 37 |
-
value: 0.857
|
| 38 |
-
source:
|
| 39 |
-
name: Local benchmark run (RTX 3090, llama.cpp)
|
| 40 |
-
url: https://huggingface.co/deucebucket/Gemma-4-E4B-it-Cerebellum-v2-GGUF/tree/main/benchmark_results
|
| 41 |
-
- task:
|
| 42 |
-
name: Text Generation
|
| 43 |
-
type: text-generation
|
| 44 |
-
dataset:
|
| 45 |
-
name: HellaSwag
|
| 46 |
-
type: hellaswag
|
| 47 |
-
split: validation
|
| 48 |
-
metrics:
|
| 49 |
-
- name: accuracy
|
| 50 |
-
type: acc
|
| 51 |
-
value: 0.753
|
| 52 |
-
source:
|
| 53 |
-
name: Local benchmark run (RTX 3090, llama.cpp)
|
| 54 |
-
url: https://huggingface.co/deucebucket/Gemma-4-E4B-it-Cerebellum-v2-GGUF/tree/main/benchmark_results
|
| 55 |
-
- task:
|
| 56 |
-
name: Text Generation
|
| 57 |
-
type: text-generation
|
| 58 |
-
dataset:
|
| 59 |
-
name: MMLU-Redux
|
| 60 |
-
type: cais/mmlu
|
| 61 |
-
config: all
|
| 62 |
-
split: test
|
| 63 |
-
metrics:
|
| 64 |
-
- name: accuracy
|
| 65 |
-
type: acc
|
| 66 |
-
value: 0.584
|
| 67 |
-
source:
|
| 68 |
-
name: Local benchmark run (RTX 3090, llama.cpp)
|
| 69 |
-
url: https://huggingface.co/deucebucket/Gemma-4-E4B-it-Cerebellum-v2-GGUF/tree/main/benchmark_results
|
| 70 |
-
- task:
|
| 71 |
-
name: Text Generation
|
| 72 |
-
type: text-generation
|
| 73 |
-
dataset:
|
| 74 |
-
name: HumanEval (pass@1)
|
| 75 |
-
type: openai_humaneval
|
| 76 |
-
split: test
|
| 77 |
-
metrics:
|
| 78 |
-
- name: pass@1
|
| 79 |
-
type: pass@1
|
| 80 |
-
value: 0.683
|
| 81 |
-
source:
|
| 82 |
-
name: Local benchmark run (RTX 3090, llama.cpp)
|
| 83 |
-
url: https://huggingface.co/deucebucket/Gemma-4-E4B-it-Cerebellum-v2-GGUF/tree/main/benchmark_results
|
| 84 |
-
- task:
|
| 85 |
-
name: Text Generation
|
| 86 |
-
type: text-generation
|
| 87 |
-
dataset:
|
| 88 |
-
name: WikiText-2 Perplexity
|
| 89 |
-
type: wikitext
|
| 90 |
-
config: wikitext-2-raw-v1
|
| 91 |
-
split: test
|
| 92 |
-
metrics:
|
| 93 |
-
- name: perplexity
|
| 94 |
-
type: perplexity
|
| 95 |
-
value: 52.20
|
| 96 |
-
source:
|
| 97 |
-
name: Local benchmark run (RTX 3090, llama.cpp)
|
| 98 |
-
url: https://huggingface.co/deucebucket/Gemma-4-E4B-it-Cerebellum-v2-GGUF/tree/main/benchmark_results
|
| 99 |
---
|
| 100 |
|
| 101 |
-
<p align="center">
|
| 102 |
-
<img src="cerebellum_banner.png" alt="Cerebellum" width="640">
|
| 103 |
-
</p>
|
| 104 |
-
|
| 105 |
# Gemma 4 E4B — Cerebellum v2 GGUF (4.2 GB)
|
| 106 |
|
| 107 |
Ablation-informed mixed-precision quantization of [google/gemma-4-e4b-it](https://huggingface.co/google/gemma-4-e4b-it). **4.2 GB** file size, **52.20 perplexity** — smaller and better than [Cerebellum v1](https://huggingface.co/deucebucket/Gemma-4-E4B-it-Cerebellum-v1-GGUF) (4.3 GB, PPL 55.10).
|
|
@@ -194,34 +114,17 @@ v2's PPL (52.20) is lower than BF16 (54.58). This happens because certain tensor
|
|
| 194 |
|
| 195 |
Fits comfortably on a 6 GB GPU at moderate context.
|
| 196 |
|
| 197 |
-
## Measured launch (RTX 3090, llama.cpp)
|
| 198 |
-
|
| 199 |
-
Measured 2026-06-13 on a single RTX 3090 (24 GB), one `llama-server`, KV cache `q8_0`:
|
| 200 |
-
|
| 201 |
-
| metric | measured |
|
| 202 |
-
|---|---|
|
| 203 |
-
| decode speed | 116 tok/s |
|
| 204 |
-
| peak VRAM (4-slot serving) | 5.3 GB |
|
| 205 |
-
| max measured context (q8_0 KV) | 65,536 |
|
| 206 |
-
|
| 207 |
-
```bash
|
| 208 |
-
llama-server -m Gemma-4-E4B-it-Cerebellum-v2-Q3_K_M.gguf \
|
| 209 |
-
-ngl 99 --parallel 4 -c 24576 --jinja --reasoning-budget 0
|
| 210 |
-
```
|
| 211 |
-
|
| 212 |
-
_This rig's measurements; no quality claims beyond them._
|
| 213 |
-
|
| 214 |
## Usage
|
| 215 |
|
| 216 |
```bash
|
| 217 |
# llama.cpp
|
| 218 |
llama-server \
|
| 219 |
-
--model Gemma-4-E4B-it-Cerebellum-v2
|
| 220 |
--n-gpu-layers 99 \
|
| 221 |
--ctx-size 8192
|
| 222 |
|
| 223 |
# Ollama
|
| 224 |
-
echo 'FROM ./Gemma-4-E4B-it-Cerebellum-v2
|
| 225 |
ollama create gemma4-e4b-v2 -f Modelfile
|
| 226 |
ollama run gemma4-e4b-v2
|
| 227 |
```
|
|
@@ -243,7 +146,7 @@ python convert_hf_to_gguf.py gemma-4-e4b-it --outfile gemma4-e4b-bf16.gguf --out
|
|
| 243 |
llama-quantize \
|
| 244 |
--imatrix imatrix.dat \
|
| 245 |
--tensor-type-file cerebellum_v2_overrides.txt \
|
| 246 |
-
gemma4-e4b-bf16.gguf Gemma-4-E4B-it-Cerebellum-v2
|
| 247 |
```
|
| 248 |
|
| 249 |
The `imatrix.dat`, `cerebellum_v2_overrides.txt`, and `ablation_results.json` are included in this repo.
|
|
@@ -252,7 +155,7 @@ The `imatrix.dat`, `cerebellum_v2_overrides.txt`, and `ablation_results.json` ar
|
|
| 252 |
|
| 253 |
| File | Size | Description |
|
| 254 |
|------|------|-------------|
|
| 255 |
-
| `Gemma-4-E4B-it-Cerebellum-v2
|
| 256 |
| `imatrix.dat` | 4.6 MB | Weight-sensitivity importance matrix |
|
| 257 |
| `cerebellum_v2_overrides.txt` | 4.6 KB | 179 tensor type overrides (174 PLE Q5_K + 2 Q6_K + 3 Q2_K) |
|
| 258 |
| `ablation_results.json` | 3 KB | Full ablation sweep data (26 tensors) |
|
|
|
|
| 20 |
- ablation
|
| 21 |
- 3-bit
|
| 22 |
- conversational
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
---
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
# Gemma 4 E4B — Cerebellum v2 GGUF (4.2 GB)
|
| 26 |
|
| 27 |
Ablation-informed mixed-precision quantization of [google/gemma-4-e4b-it](https://huggingface.co/google/gemma-4-e4b-it). **4.2 GB** file size, **52.20 perplexity** — smaller and better than [Cerebellum v1](https://huggingface.co/deucebucket/Gemma-4-E4B-it-Cerebellum-v1-GGUF) (4.3 GB, PPL 55.10).
|
|
|
|
| 114 |
|
| 115 |
Fits comfortably on a 6 GB GPU at moderate context.
|
| 116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
## Usage
|
| 118 |
|
| 119 |
```bash
|
| 120 |
# llama.cpp
|
| 121 |
llama-server \
|
| 122 |
+
--model Gemma-4-E4B-it-Cerebellum-v2.gguf \
|
| 123 |
--n-gpu-layers 99 \
|
| 124 |
--ctx-size 8192
|
| 125 |
|
| 126 |
# Ollama
|
| 127 |
+
echo 'FROM ./Gemma-4-E4B-it-Cerebellum-v2.gguf' > Modelfile
|
| 128 |
ollama create gemma4-e4b-v2 -f Modelfile
|
| 129 |
ollama run gemma4-e4b-v2
|
| 130 |
```
|
|
|
|
| 146 |
llama-quantize \
|
| 147 |
--imatrix imatrix.dat \
|
| 148 |
--tensor-type-file cerebellum_v2_overrides.txt \
|
| 149 |
+
gemma4-e4b-bf16.gguf Gemma-4-E4B-it-Cerebellum-v2.gguf Q3_K_M
|
| 150 |
```
|
| 151 |
|
| 152 |
The `imatrix.dat`, `cerebellum_v2_overrides.txt`, and `ablation_results.json` are included in this repo.
|
|
|
|
| 155 |
|
| 156 |
| File | Size | Description |
|
| 157 |
|------|------|-------------|
|
| 158 |
+
| `Gemma-4-E4B-it-Cerebellum-v2.gguf` | 4.2 GB | The quantized model |
|
| 159 |
| `imatrix.dat` | 4.6 MB | Weight-sensitivity importance matrix |
|
| 160 |
| `cerebellum_v2_overrides.txt` | 4.6 KB | 179 tensor type overrides (174 PLE Q5_K + 2 Q6_K + 3 Q2_K) |
|
| 161 |
| `ablation_results.json` | 3 KB | Full ablation sweep data (26 tensors) |
|
cerebellum_banner.png
DELETED
Git LFS Details
|