GGUF
English
llama.cpp
gemma4
gemma
deckard
iq4_nl
q8_0
imatrix
creative-writing
storymaker
roleplay
voice
uncensored
english
conversational
Instructions to use jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker 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 jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker 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 jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker:IQ4_NL # Run inference directly in the terminal: llama cli -hf jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker:IQ4_NL
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker:IQ4_NL # Run inference directly in the terminal: llama cli -hf jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker:IQ4_NL
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 jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker:IQ4_NL # Run inference directly in the terminal: ./llama-cli -hf jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker:IQ4_NL
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 jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker:IQ4_NL # Run inference directly in the terminal: ./build/bin/llama-cli -hf jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker:IQ4_NL
Use Docker
docker model run hf.co/jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker:IQ4_NL
- LM Studio
- Jan
- Ollama
How to use jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker with Ollama:
ollama run hf.co/jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker:IQ4_NL
- Unsloth Studio
How to use jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker to start chatting
- Pi
How to use jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker:IQ4_NL
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker:IQ4_NL" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker:IQ4_NL
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 jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker:IQ4_NL
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker:IQ4_NL
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 "jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker:IQ4_NL" \ --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"
- Docker Model Runner
How to use jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker with Docker Model Runner:
docker model run hf.co/jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker:IQ4_NL
- Lemonade
How to use jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull jackasda211233/Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker:IQ4_NL
Run and chat with the model
lemonade run user.Gemma-4-E4B-Deckard-AttnQ8-IQ4_NL-storyMaker-IQ4_NL
List all available models
lemonade list
File size: 6,156 Bytes
90f7365 2fa748f 90f7365 2fa748f 90f7365 2fa748f 90f7365 2fa748f 90f7365 2fa748f 90f7365 2fa748f 90f7365 2fa748f 90f7365 2fa748f 90f7365 2fa748f 90f7365 2fa748f 90f7365 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 | ---
license: apache-2.0
language:
- en
library_name: llama.cpp
base_model:
- DavidAU/gemma-4-E4B-it-The-DECKARD-Claude-Opus-Expresso-Universe-HERETIC-UNCENSORED-Thinking
tags:
- gguf
- llama.cpp
- gemma4
- gemma
- deckard
- iq4_nl
- q8_0
- imatrix
- creative-writing
- voice
- uncensored
- english
---
# Gemma 4 E4B Deckard AttnQ8 Last6 IQ4_NL GGUF
This is a normal `llama.cpp` GGUF quant of DavidAU's Deckard Gemma model:
<https://huggingface.co/DavidAU/gemma-4-E4B-it-The-DECKARD-Claude-Opus-Expresso-Universe-HERETIC-UNCENSORED-Thinking>
The goal was a small, practical creative/voice/writing model that keeps more coherence than a plain Q4-style quant while still fitting comfortably on modest GPUs.
This was an unplanned release. The author was testing models for creative writing use, found a quantized GGUF of this model that showed severe looping and quality degradation, and built this version to check whether the issue came from the core finetune or from the quantization. The result was unexpectedly useful: creative, able to reason, good at following instructions, strong for roleplay, and expressive in a way that made it enjoyable to use. Because of that, it was uploaded for anyone else interested in this niche.
Because this was exploratory rather than a planned release, it has not gone through the author's usual comprehensive release process. A gender-affirming finetune based on the DavidAU model may come later for people interested in that direction.
## What Is Special
This is not a plain one-shot Q4 quant.
The released GGUF is:
- base quant: `IQ4_NL`
- calibration: English creative writing, general logic, emotional understanding, and voice/vocal-concept prompts
- imatrix: 1000 calibration chunks at ctx512, 342 importance-matrix entries
- protected tensors: attention `q`, `k`, `v`, and output projections in blocks `36..41`
- protected quant type: `Q8_0`
In other words, most of the model stays Q4-sized, while the final six attention blocks are kept at higher precision. The intent is to spend a small amount of extra size on the late attention path, where coherence, style continuity, and repetition stability are more likely to matter for writing-style use.
## Files
Main model:
```text
Gemma-4-E4B-Deckard-AttnQ8-Last6-IQ4_NL-Imatrix-CreativeVoice.gguf
```
Optional template used in our deployment:
```text
gemma4_deckard_no_think.jinja
```
The GGUF works with standard `llama.cpp`. No custom fork is required.
## Suggested llama.cpp Command
Example server command:
```bash
llama-server \
-m Gemma-4-E4B-Deckard-AttnQ8-Last6-IQ4_NL-Imatrix-CreativeVoice.gguf \
-ngl 999 \
-fa on \
-sm none \
-ctk f32 \
-ctv f32 \
--kv-offload \
-c 120000 \
-np 1 \
-b 512 \
-ub 128 \
--jinja \
--chat-template-file gemma4_deckard_no_think.jinja \
--reasoning off \
--reasoning-format deepseek \
--temp 0.9 \
--top-p 0.92 \
--min-p 0.03 \
--repeat-penalty 1.15 \
--repeat-last-n 256 \
--presence-penalty 0.10 \
--frequency-penalty 0.05 \
--dry-multiplier 0.60
```
The included no-thinking template is optional, but it is the one we used for the creative deployment. The upstream model is a thinking model, and in our creative tests the no-thinking template reduced scaffold-style answers.
## Quantization Details
The Q8 override rule was:
```text
^blk\.(3[6-9]|4[0-1])\.attn_(q|k|v|output)\.weight=q8_0
```
That means 24 attention tensors were manually promoted from `IQ4_NL` to `Q8_0`:
- `blk.36..41.attn_q.weight`
- `blk.36..41.attn_k.weight`
- `blk.36..41.attn_v.weight`
- `blk.36..41.attn_output.weight`
Quantizer log summary:
```text
model size = 14340.66 MiB, 16.00 BPW
quant size = 4980.91 MiB, 5.56 BPW
```
Local file sizes from the experiment:
| Variant | Size |
|---|---:|
| IQ4_NL imatrix baseline | 4,427,727,872 bytes |
| IQ4_NL llama.cpp b8763 baseline | 5,193,958,400 bytes |
| IQ4_NL + attnQ8 last6 | 5,238,686,720 bytes |
| IQ4_NL + attnQ8 last12 | 5,283,415,040 bytes |
| Q6_K reference | 6,184,790,688 bytes |
The `last6` mixed quant is only about 45 MB larger than the comparable b8763 IQ4_NL build.
## Runtime Tests
These are direct runtime probes for this exact released GGUF using standard `llama.cpp`. No custom fork was used.
| GPU | Runtime | Context / KV | Prompt workload | Decode workload | Prompt tok/s | Decode tok/s | VRAM note |
|---|---|---|---:|---:|---:|---:|---|
| RTX 5060 Ti | `llama.cpp` b8763 server | `-c 120000`, f32 K/V, all layers offloaded | 1352 tokens | 256 tokens | 2816.56 | 73.54 | about 7796 MiB observed |
| RTX 5090 | `llama.cpp` b8763 server | `-c 120000`, f32 K/V, all layers offloaded | 1122 tokens | 40 tokens | 4251.93 | 138.82 | 7159 MiB llama.cpp self allocation |
5060 Ti log summary:
```text
CUDA0 model buffer size = 2775.92 MiB
non-SWA KV buffer size = 3752.00 MiB
SWA KV buffer size = 60.00 MiB
compute buffer size = 572.00 MiB
```
5090 log summary:
```text
CUDA0 self allocation = 7159 MiB
model buffer = 2775 MiB
context buffer = 3812 MiB
compute buffer = 572 MiB
```
## Intended Use
This quant was tuned for English creative writing, expressive prose, conceptual writing, emotional/voice-adjacent discussion, and general reasoning. It was not built as a coding specialist.
Because the source model is an uncensored/aliterated model, apply your own safety, policy, and deployment filters where needed.
## Lineage
1. Source model: `DavidAU/gemma-4-E4B-it-The-DECKARD-Claude-Opus-Expresso-Universe-HERETIC-UNCENSORED-Thinking`
2. Converted to BF16 GGUF locally.
3. Built an English creative/voice/logic imatrix calibration set.
4. Quantized with `IQ4_NL`.
5. Re-quantized selected late attention tensors in blocks `36..41` to `Q8_0`.
6. Runtime-tested the released GGUF on RTX 5060 Ti and RTX 5090 with standard `llama.cpp`.
## Limitations
- This was an unplanned exploratory release, not a broad benchmarked model release.
- Public runtime numbers are limited to the two direct tests above.
- The no-thinking template is recommended for creative use because it reduces visible planning/scaffold output.
- This is a GGUF release for `llama.cpp`; it is not a safetensors checkpoint.
|