← back to catalog · registered 2026-08-22 13:56

AEON-7/Gemma-4-31B-it-DECKARD-HERETIC-Uncensored-NVFP4

AEON-7 Gemma 15B multimodal second-order
Your rig guess connected
? Why do I need an app?
Reading your rig…

This is a rough estimate. Install the free app - we'll show exact numbers.

Reading real hardware from your app right now. Numbers below are exact.

Below is the per-quantization compatibility for this model.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/AEON-7%2FGemma-4-31B-it-DECKARD-HERETIC-Uncensored-NVFP4"
Response includes
  • classification m3
  • files 11
  • benchmarks 11 entries
  • hub_downloads_all_time 26,878
  • author_summary 32 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
M3
Primary method

Layer-wise ablation

Applied on top of direct removal inherited from the base model.
Confidence
HIGH
Inherited from base model
Why this label 2 signals
Producer identity confirmed by naming conventions, tags or the model card. This label is very unlikely to change.
  • 'heretic' in model name (Heretic-produced)
  • Heretic uses layer-wise optimization (M3) with underlying direction removal (M1)
Refusal direction extracted via
Extraction technique

Difference-of-means

Confidence
HIGH
Why we say so
name contains 'heretic'; Heretic default extraction is difference-of-means (Arditi 2024)
Downloads · lifetime
27K
7K last 30d - stable
Likes
14
Model age
6mo ago
created 2026-04-12
Downloads over time
Now27.7K→from732↑3,688%
010.1K20.3K30.4K732 on Apr 1527.7K on Oct 12AprMayJunJulAugSepOct
Apr 15 → Oct 12 · 66 snapshots · spans 180 days

Benchmarks

Benchmark Score Source
Entertainment 2.8 UGI
Hazardous 4.7 UGI
Natural Intelligence 34.42 UGI
Political lean -22.2% UGI
Sensitive-Info 32.29 UGI
SocPol 2.6 UGI
UGI 52.36 UGI
Willingness (10) 9.2 UGI
W10-Adherence 8.5 UGI
W10-Direct 10 UGI
Writing 38.68 UGI

Genealogy 0 direct forks

Full fork graph →

This model's place in the market. Above: what it was derived from. Below: the tree of everything derived from it.

Metadata

License
gemma
Languages
en
Tags
transformers safetensors gemma4 image-text-to-text 31b 4-bit aarch64 abliterated activation-aware aeon aeon-7 agentic

Related

Total size
19.0 GB
Files
11
Quantizations
1
Registered
2026-08-22 13:56
Last updated on HF
2026-10-06 01:35

Files by quantization

Auxiliary files 11 files 19.1 GB
model.safetensors 19.0 GB f8f9ccec download
tokenizer.json 30.7 MB cc8d3a0c download
README.md 14.6 KB f128d9ba download
chat_template.jinja 11.8 KB 0cb12cde download
chat_template-instruct.jinja 11.8 KB 33c51c2d download
config.json 5.65 KB 14a3deb8 download
tokenizer_config.json 2.02 KB e5418067 download
processor_config.json 1.65 KB 5465974d download
.gitattributes 1.53 KB 52373fe2 download
hf_quant_config.json 407 B 667136d2 download
generation_config.json 171 B a7cbeb95 download

README current version from Hugging Face


license: gemma
library_name: transformers
pipeline_tag: text-generation
base_model: DavidAU/gemma-4-31B-it-The-DECKARD-HERETIC-UNCENSORED-Thinking
tags:

  • 31b
  • 4-bit
  • aarch64
  • abliterated
  • activation-aware
  • aeon
  • aeon-7
  • agentic
  • arm64
  • awq
  • awq-full
  • blackwell
  • chat
  • chunked-prefill
  • coding
  • conversational
  • creative-writing
  • deckard
  • dense
  • dgx-spark
  • eagle
  • english
  • flashinfer-cutlass
  • fp4
  • fp8-kv-cache
  • function-calling
  • gb10
  • gemma
  • gemma-4
  • gemma4
  • google
  • gpu
  • grace-blackwell
  • heretic
  • image-text-to-text
  • instruct
  • long-context
  • modelopt
  • multimodal
  • native-fp4
  • nvfp4
  • nvidia
  • openai-api
  • openai-compatible
  • prefix-caching
  • production-ready
  • quantized
  • reasoning
  • refusal-removed
  • safetensors
  • sliding-window-attention
  • sm_121a
  • speculative-decoding
  • text-generation
  • thinking
  • tool-calling
  • transformer
  • uncensored
  • unfiltered
  • vision
  • vision-language
  • vllm
  • weight-quantization
    model_type: gemma4
    quantization: nvfp4
    language:
  • en

Gemma 4 31B DECKARD HERETIC Uncensored — NVFP4 AWQ_FULL

NVFP4-quantized version of DavidAU/gemma-4-31B-it-The-DECKARD-HERETIC-UNCENSORED-Thinking, an abliterated/uncensored Gemma 4 31B dense model with thinking capabilities.

Quantized using NVIDIA ModelOpt 0.42.0 with AWQ_FULL (exhaustive grid search + clipping optimization) on a native B200 GPU for maximum fidelity at 4-bit precision.

SVDQuant variant also available: AEON-7/Gemma-4-31B-it-DECKARD-HERETIC-Uncensored-NVFP4-SVDQuant — same model with SVD decomposition for potentially higher quality.

What Makes This Model Special

This model was quantized using the most thorough NVFP4 quantization pipeline available:

  1. AWQ_FULL — Exhaustive grid search with alpha_step=0.1 across 10 scaling factors per layer, plus a second awq_clip pass that optimizes clipping ratios. This is the most thorough AWQ variant, producing mathematically optimal per-channel scaling. (~75 min vs ~11 min for AWQ_LITE)

  2. Full NVFP4 Quantization — All attention projections (Q/K/V/O) AND all MLP layers (gate/up/down) quantized to FP4. No layers left at higher precision (except vision, embeddings, norms, and lm_head).

  3. Native B200 Calibration — Calibrated on NVIDIA B200 (Blackwell SM 12.0) with native FP4 hardware instructions, producing hardware-accurate scale factors.

Model Details

Property Value
Architecture Gemma 4 (Dense, 31B parameters)
Layers 60 (50 sliding-window + 10 full-attention)
Sliding Window 1024 tokens
Max Context 262,144 tokens
Hidden Size 5376
Intermediate Size 21,504
Attention Heads 32 (16 KV heads), head_dim=256, global_head_dim=512
Vision Encoder 27-layer ViT (1152 hidden)
Vocabulary 262,144 tokens
Quantization NVFP4 AWQ_FULL (ModelOpt format)
Model Size ~20.5 GB

Quantization Pipeline

Three quantization variants were produced and benchmarked on B200:

Variant Algorithm Calibration Size Time Notes
AWQ_LITE NVFP4_AWQ_LITE_CFG 512 samples 20.45 GB 10.6 min Single-pass heuristic
AWQ_FULL ⬅️ NVFP4_AWQ_FULL_CFG 2048 samples 20.45 GB 74.4 min Exhaustive grid search + clipping
SVDQuant NVFP4_SVDQUANT_DEFAULT_CFG 2048 samples 20.94 GB 69.1 min SVD decomposition + low-rank residual

This repo contains the AWQ_FULL variant, which provides the best balance of quality and throughput.

Gemma 4 31B DECKARD HERETIC (BF16, ~62 GB)
    |
    v
[NVFP4 AWQ_FULL on B200]
    - ModelOpt 0.42.0 with NVFP4_AWQ_FULL_CFG
    - alpha_step=0.1 (10 scaling factors per layer)
    - awq_clip clipping ratio optimization
    - 2048 calibration samples (CNN DailyMail)
    - Native Blackwell FP4 hardware calibration (SM 12.0)
    - Excluded: vision tower, embed_vision, multi_modal_projector
    |
    v
Gemma-4-31B-DECKARD-HERETIC-NVFP4 (~20.5 GB)

Advanced Techniques

AWQ_FULL vs AWQ_LITE

Standard AWQ_LITE does a single-pass heuristic for channel scaling. AWQ_FULL performs an exhaustive grid search with alpha_step=0.1 across 10 scaling factors per layer, plus a second awq_clip pass that optimizes clipping ratios. This produces mathematically optimal per-channel scaling at the cost of longer quantization time (~75 min vs ~11 min on B200). Same output format and size — strictly higher quality.

NVFP4 Weight Format

Each quantized layer stores:

  • weight (uint8) — packed FP4 E2M1 pairs (16-element blocks)
  • weight_scale (float8_e4m3fn) — per-block scale (1 per 16 elements)
  • weight_scale_2 (float32) — per-tensor global scale
  • pre_quant_scale (bfloat16) — AWQ per-channel pre-scaling factors
  • input_scale (float32) — static activation scale from calibration

Native B200 Calibration

Quantized on NVIDIA B200 with native FP4 hardware instructions (SM 12.0). The AWQ calibration measures actual FP4 rounding behavior on real hardware rather than simulating it, producing more accurate scale factors than calibrating on non-FP4 hardware.

Quick Start (DGX Spark)

1. Pull the container

docker pull ghcr.io/aeon-7/vllm-spark-gemma4-nvfp4-awq:latest

2. Download the model

pip install -U huggingface-hub

huggingface-cli download AEON-7/Gemma-4-31B-it-DECKARD-HERETIC-Uncensored-NVFP4 \
  --local-dir ~/models/deckard-31b

3. Launch

docker run -d --name vllm-deckard --gpus all --ipc host --network host \
  -e VLLM_ALLOW_LONG_MAX_MODEL_LEN=1 \
  -e TORCH_MATMUL_PRECISION=high \
  -e PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True \
  -v ~/models/deckard-31b:/models/deckard \
  ghcr.io/aeon-7/vllm-spark-gemma4-nvfp4-awq:latest \
  bash -c "vllm serve /models/deckard \
    --served-model-name deckard-31b \
    --quantization modelopt \
    --dtype auto --kv-cache-dtype auto \
    --max-model-len 65536 --max-num-seqs 4 \
    --gpu-memory-utilization 0.70 \
    --trust-remote-code \
    --enable-chunked-prefill --enable-prefix-caching \
    --enable-auto-tool-choice \
    --tool-call-parser gemma4 --reasoning-parser gemma4"

Startup takes ~5 minutes (weight loading + torch.compile + CUDA graph capture + FP4 GEMM autotuning). The server is ready when you see Application startup complete.

On the DGX Spark's unified memory keep --gpu-memory-utilization at 0.6-0.7; above ~0.8 the shared CPU+GPU pool page-thrashes. Discrete-VRAM GPUs can run higher.

4. Test

curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deckard-31b",
    "messages": [{"role": "user", "content": "Explain quantum entanglement simply."}],
    "max_tokens": 200
  }'

The API is fully OpenAI-compatible — use it with any OpenAI SDK, LangChain, or other client at http://<your-ip>:8000/v1.

Docker Compose (DGX Spark)

services:
  vllm:
    image: ghcr.io/aeon-7/vllm-spark-gemma4-nvfp4-awq:latest
    container_name: vllm-deckard-31b
    restart: unless-stopped
    network_mode: host
    volumes:
      - ~/models/deckard-31b:/models/deckard
    environment:
      - VLLM_ALLOW_LONG_MAX_MODEL_LEN=1
      - TORCH_MATMUL_PRECISION=high
      - PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
    command:
      - bash
      - -c
      - |
        exec vllm serve /models/deckard \
          --served-model-name deckard-31b \
          --quantization modelopt \
          --dtype auto \
          --kv-cache-dtype auto \
          --max-model-len 65536 \
          --max-num-seqs 4 \
          --gpu-memory-utilization 0.70 \
          --trust-remote-code \
          --enable-chunked-prefill \
          --enable-prefix-caching \
          --enable-auto-tool-choice \
          --tool-call-parser gemma4 \
          --reasoning-parser gemma4
    ipc: host
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]

Key Deployment Flags

Flag Purpose
--quantization modelopt Required — tells vLLM to use ModelOpt NVFP4 format
--kv-cache-dtype auto BF16 KV cache on DGX Spark (use fp8 on B200 for 2x compression)
--max-model-len 65536 64K context — conservative for DGX Spark. Model supports up to 256K; increase with fewer concurrent sequences
--max-num-seqs 4 Concurrent sequences. vLLM pre-allocates KV cache, so balance with context length
--reasoning-parser gemma4 Extracts <think> blocks for thinking/reasoning display
--tool-call-parser gemma4 Enables native function calling
--enable-chunked-prefill Processes long prompts in chunks to avoid OOM
--enable-prefix-caching Caches common prompt prefixes for faster responses

The container auto-selects FlashInfer CUTLASS for native FP4 GEMM on DGX Spark. No need to set VLLM_NVFP4_GEMM_BACKEND. torch.compile and CUDA graphs are enabled by default for maximum throughput.

Performance Expectations

DGX Spark Estimates

Configuration Estimated tok/s
BF16 (no quantization) ~3-5
NVFP4 AWQ_FULL ~12-14
NVFP4 SVDQuant ~10-13

Dense vs MoE Comparison

Metric This Model (31B Dense) Gemma 4 26B-A4B MoE
Active params/token 31.3B ~4B
NVFP4 model size 20.45 GB 15.3 GB
Expected tok/s (DGX Spark) ~12-14 ~43-50
Quality Higher (full dense) Good (MoE routing)
Best for Quality-critical tasks Speed, concurrency

Speculative Decoding with EAGLE Drafter

This model supports EAGLE-based speculative decoding using the DECKARD E4B drafter (9.6 GB NVFP4). Three patches to vLLM 0.19.1 are required — see the GitHub repo for patched files and full documentation.

Speculative Decoding Performance (DGX Spark)

Benchmarked with E4B drafter, 5 speculative tokens, 300 max tokens per request:

Concurrent Aggregate tok/s Per-Request tok/s Avg Latency (300 tok)
1 7.6 8.9 39.4s
2 21.7 10.8 27.7s
4 42.7 10.7 28.1s

Quick Start with Drafter

Add --speculative-config to your vLLM serve command:

vllm serve /models/deckard \
  --served-model-name deckard-31b \
  --quantization modelopt \
  --dtype auto --kv-cache-dtype fp8 \
  --max-model-len 131072 --max-num-seqs 4 \
  --gpu-memory-utilization 0.65 \
  --trust-remote-code \
  --enable-chunked-prefill --enable-prefix-caching \
  --enable-auto-tool-choice \
  --tool-call-parser gemma4 --reasoning-parser gemma4 \
  --speculative-config '{"method":"draft_model","model":"/models/e4b-drafter","num_speculative_tokens":5,"quantization":"modelopt"}'

Requires three patched files mounted into the container. See GitHub repo for details.

Required Patches

  1. eagle_patched.py — Removes multimodal spec decode guard, adds Gemma4 model whitelist, supports multi-group KV cache (heterogeneous head_dim=256/512)
  2. serving_chat_patched.py — Fixes non-streaming reasoning parser (<|channel> tokens stripped by skip_special_tokens=True)
  3. modelopt_patched.py — NVFP4 AWQ support + FP8 NaN scrubbing

Related Models

License

This model inherits the Gemma license from the base model.

Legal Disclaimer

THIS MODEL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. The authors make no representations regarding accuracy, reliability, or fitness for any purpose. Use at your own risk. By downloading or using this model, you agree that the authors shall not be liable for any claims, damages, or losses arising from its use.


☕ Support the work

If this release has been useful, tips are deeply appreciated — they go directly toward more compute, more models, and more open releases.

₿ Bitcoin (BTC)
QR
bc1q09xmzn00q4z3c5raene0f3pzn9d9pvawfm0py4
Ξ Ethereum (ETH)
QR
0x1512667F6D61454ad531d2E45C0a5d1fd82D0500
◎ Solana (SOL)
QR
DgQsjHdAnT5PNLQTNpJdpLS3tYGpVcsHQCkpoiAKsw8t
ⓜ Monero (XMR)
QR
836XrSKw4R76vNi3QPJ5Fa9ugcyvE2cWmKSPv3AhpTNNKvqP8v5ba9JRL4Vh7UnFNjDz3E2GXZDVVenu3rkZaNdUFhjAvgd

Ethereum L2s (Base, Arbitrum, Optimism, Polygon, etc.) and EVM-compatible tokens can be sent to the same Ethereum address.

README history 12 versions

The author's README evolved over time. Click a version to see its content at that point.

  1. 2026-10-06Add Patreon support sectionc9f11f315.1 KB
    Loading...
  2. 2026-07-15Recipe: gpu-util 0.6-0.7 on DGX Spark unified memory (>~0.8 thrashes the shar...aae52c914.6 KB
    Loading...
  3. 2026-06-21tags: expand to maximally-searchable set (+9 tags, union with existing)b800d2614.4 KB
    Loading...
  4. 2026-05-31Tip jar: single left-aligned QR column (fix narrow-viewport clipping)16045e114.6 KB
    Loading...
  5. 2026-05-01Add tip jar block (BTC/ETH/SOL/XMR with QR codes)d2f214814.7 KB
    Loading...
  6. 2026-04-13Add speculative decoding docs with E4B drafter5ca45a413.2 KB
    Loading...
  7. 2026-04-13Update DGX Spark deployment: CUTLASS + CUDA graphs, 64K context, optimized de...303b6f311 KB
    Loading...
  8. 2026-04-12Update container references to AWQ-specific container (vllm-spark-gemma4-nvfp...440e84d10.9 KB
    Loading...
  9. 2026-04-12Update model card: document FP8 NaN fix, DGX Spark deployment with W4A16 bypa...bbaf7e410.7 KB
    Loading...
  10. 2026-04-12Add GitHub repo link to Related Models1f6a0cc9.4 KB
    Loading...
  11. 2026-04-12Update README: fix AWQ_FULL details, add 3-variant comparison, cross-referenc...f6b7b5b9.2 KB
    Loading...
  12. 2026-04-12Full NVFP4 AWQ quantization of DavidAU DECKARD HERETIC 31B-itee7461a7 KB
    Loading...

Discussions 3 threads

  1. 2026-05-26After applying patch, the model is unable to serveopen1 💬#3
    Loading...
  2. 2026-04-26KeyError: 'layers.0.mlp.down_proj.pre_quant_scale'closed2 💬#2
    Loading...
  3. 2026-04-19GGUF version?open3 💬#1
    Loading...
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration