Downloads · 30 days
166
2% of all-time downloads
louismuk/gemma-4-26B-A4B-heretic-NVFP4
gemma-4-26B-A4B-heretic-NVFP4 is a text generation model from louismuk. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
NVFP4 quantization of llmfan46/gemma-4-26B-A4B-it-ultra-uncensored-heretic, produced for low-latency RP/storyline serving on NVIDIA Blackwell GPUs.
Downloads · 30 days
166
2% of all-time downloads
All-time downloads
6.8K
Public
Parameters
15.1B
16.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.4 GB · 100%
How the weights are stored.
U812.2B · 81%
From the Hugging Face model README
NVFP4 quantization of llmfan46/gemma-4-26B-A4B-it-ultra-uncensored-heretic, produced for low-latency RP/storyline serving on NVIDIA Blackwell GPUs.
| Architecture | Gemma-4 MoE (Gemma4ForConditionalGeneration) |
| Total params | 25.2 B |
| Active params per token | 3.8 B |
| Experts | 128 routed (8 active) + 1 shared |
| Layers | 30 |
| Context window | 256 K |
| Sliding window | 1 024 |
| Quantization format | nvfp4-pack-quantized (compressed-tensors) |
| Group size | 16 |
| Weight scale dtype | float8_e4m3fn |
| File size | ~16 GB (vs 49 GB BF16) |
Quantized layers: all Linear. Ignored: lm_head, re:.*embed.*, re:.*router, re:.*vision_tower.*.
vLLM auto-detects compressed-tensors NVFP4; no --quantization flag needed. Tested on vLLM 0.20.0 + CUDA 13.0 + RTX PRO 6000 Blackwell (96 GB).
vllm serve louismuk/gemma-4-26B-A4B-heretic-NVFP4 \
--served-model-name gemma-4-26b \
--kv-cache-dtype fp8 \
--max-model-len 32768 \
--max-num-seqs 64 --max-num-batched-tokens 8192 \
--gpu-memory-utilization 0.9 \
--enable-prefix-caching \
--trust-remote-code \
--reasoning-parser gemma4 --enable-auto-tool-choice --tool-call-parser gemma4 \
--enable-prompt-tokens-details \
--host 0.0.0.0 --port 8000
Multi-turn RP benchmark (sys=2048 / user=256 / out=256 tok, 5 turns/conversation, prefix-cache enabled). 1× RTX PRO 6000 Blackwell Server.
| Concurrency | This model (NVFP4) | base BF16 | gemma-4-31B-heretic-NVFP4 (dense) |
|---|---|---|---|
| 1 | 1 519 in / 115 out tok/s | 1 441 / 110 | 557 / 42 |
| 8 | 7 274 in / 553 out tok/s | 5 428 / 413 | 3 553 / 270 |
| 32 | 20 555 in / 1 563 out tok/s | 13 482 / 999 | 9 478 / 704 |
Cache-hit rate ~75 % across all scenarios (prefix cache works correctly with the MoE).
Produced with llm-compressor (git main) using its gemma4_example.py recipe — which uses SequentialGemma4TextExperts to walk Gemma-4's fused expert tensors (nvidia-modelopt 0.43's public configs do not handle these correctly).
from llmcompressor import oneshot
from llmcompressor.modifiers.quantization import QuantizationModifier
from transformers import AutoProcessor, Gemma4ForConditionalGeneration
model = Gemma4ForConditionalGeneration.from_pretrained(
"llmfan46/gemma-4-26B-A4B-it-ultra-uncensored-heretic", dtype="auto",
)
processor = AutoProcessor.from_pretrained("llmfan46/gemma-4-26B-A4B-it-ultra-uncensored-heretic")
recipe = QuantizationModifier(
targets="Linear", scheme="NVFP4",
ignore=["lm_head", "re:.*embed.*", "re:.*router", "re:.*vision_tower.*"],
)
# calibration: neuralmagic/calibration LLM split, 20 samples, max_seq_length=8192
oneshot(model=model, recipe=recipe, dataset=ds,
max_seq_length=8192, num_calibration_samples=20, data_collator=collator)
model.save_pretrained("gemma-4-26B-A4B-heretic-NVFP4", save_compressed=True)
Wall time: ~7 min on a single RTX PRO 6000 Blackwell.
Inherits the abliteration applied by llmfan46/gemma-4-26B-A4B-it-ultra-uncensored-heretic (Heretic v1.2.0, Arbitrary-Rank Ablation). Refusal behaviours are substantially reduced. Use responsibly.
Apache 2.0 (inherited from base).