How to use from
OpenClaw
Start the llama.cpp server
# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama serve -hf SC117/gemma-4-26B-A4B-it-qat-heretic-GGUF:UD-Q4_K_XL
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:9931/v1 \
  --custom-model-id "SC117/gemma-4-26B-A4B-it-qat-heretic-GGUF:UD-Q4_K_XL" \
  --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"
Quick Links

⚑ Gemma 4 26B-A4B Heretic QAT β€” Q4_0 GGUF

Heretic ARA Β· QAT-Lossless Q4_0 Β· 14 GB Β· MoE 128-Expert (3.8B Active)

πŸ“– δΈ­ζ–‡ζ–‡ζ‘£

Q4_0 26B MoE / 3.8B Active Heretic Uncensored 14 GB QAT Weights 128 Experts

Uncensored version of Google Gemma 4 26B-A4B IT (QAT), processed with Heretic ARA abliteration. Quantized to Q4_0 matching Unsloth's UD-Q4_K_XL format β€” QAT weights trained for 4-bit quantization, near-lossless quality.

βœ‚οΈ Heretic ARA Abliteration Parameters

Base: coder3101/heretic-QAT Β· Heretic v1.2.0 Β· ARA + Row-Norm

Parameter Value
start_layer_index12
end_layer_index21
preserve_good_behavior_weight0.3106
steer_bad_behavior_weight0.0066
overcorrect_relative_weight0.7982
neighbor_count14
Metric Heretic Original QAT
KL Divergence0.06600 (by definition)
Refusals13/100100/100
πŸ—οΈ Architecture
Base Modelgoogle/gemma-4-26B-A4B-it
Parameters25.2B total / 3.8B active (MoE)
ArchitectureMixture-of-Experts: 128 experts, 8 active + 1 shared per token
Layers30
Hidden Size2,816
Attention16 heads, GQA with 8 KV heads, head dim 256
Context Length256K tokens (hybrid sliding window 1024 + global attention)
Vocabulary262K, 140+ languages
ModalitiesText + Image (native multimodal)
QAT TrainingGoogle official QAT (quantization-aware), weights inherently robust to Q4_0
QuantizationQ4_0 (matching Unsloth UD-Q4_K_XL layout), b9553 llama-quantize
πŸ“Š Quantization Details
FormatQ4_0 (uniform β€” QAT weights optimized for this exact precision)
File Size14 GB
Effective BPW4.51 (all weight tensors Q4_0, norms/router F32)
Toolllama-quantize (b9553, CUDA 13.3)
SourceBF16 GGUF (converted from QAT heretic safetensors)
Context Length256K (set in GGUF metadata)
QAT AdvantageQ4_0 with QAT weights achieves 85.6% Top-1 vs 70.2% naive Q4_0 (+15.4%)

Why Q4_0? Google's QAT trains weights to be optimal at Q4_0 noise levels. Unsloth's UD-Q4_K_XL uses the same Q4_0 layout β€” the "dynamic" advantage comes from conversion precision, not per-tensor mixing.

βš™οΈ Recommended Sampling Parameters
Generaltemp=1.0, top_p=0.95, top_k=64
Codingtemp=0.6, top_p=0.95, top_k=64

Use --jinja flag with llama.cpp. Disable thinking: --chat-template-kwargs '{"enable_thinking":false}'.

πŸ“ Usage

Compatible with llama.cpp, LM Studio, Jan, koboldcpp, and other GGUF runtimes. Use --jinja flag and -ngl 99 for GPU offload. Vision support via included mmproj.

llama-server \
  -m gemma-4-26B-A4B-it-qat-heretic-UD-Q4_K_XL.gguf \
  --mmproj mmproj-gemma-4-26B-A4B-it-qat-heretic-BF16.gguf \
  --jinja -ngl 99 -c 8192 \
  --port 8001
πŸ”— Credits

Heretic Abliteration: coder3101 Β· Heretic v1.2.0 ARA + Row-Norm
QAT Weights: Google Gemma 4 QAT
Quantization Recipe: Unsloth UD-Q4_K_XL (Q4_0 layout)
Quantization Tool: llama.cpp b9553 Β· GitHub
Original Model: Google Gemma 4 26B-A4B IT

Downloads last month
11,092
GGUF
Model size
25B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

4-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for SC117/gemma-4-26B-A4B-it-qat-heretic-GGUF

Space using SC117/gemma-4-26B-A4B-it-qat-heretic-GGUF 1

Collection including SC117/gemma-4-26B-A4B-it-qat-heretic-GGUF