Gemma 4 MoE stores expert weights as fused 3D tensors that no existing quantization tool handles. We wrote a custom
_QuantGemma4TextExperts
plugin for NVIDIA Model Optimizer — see our
Gemma-4-26B-A4B-it-NVFP4
model card for full technical details.
Calibration
Tool:
NVIDIA Model Optimizer v0.43,
NVFP4_DEFAULT_CFG (W4A4)
Data:
4096 samples from CNN/DailyMail, batch size 32, seq_len 1024
Expert routing:
Natural (no forced uniform routing)
Vision encoder:
Excluded from quantization (stays BF16)
Hardware:
NVIDIA H200
Known Issues
Requires vLLM with
transformers >= 5.4
and the included
gemma4_patched.py
--moe-backend marlin
required for correct MoE computation
Vision encoder stays in BF16 (~5.8GB of the 7.1GB total) — excluded from quantization to preserve image quality. Text inference still benefits from quantized MoE experts/attention layers
Vision/video capabilities untested after quantization
Community quantization, not an official NVIDIA or Google release
Gemma-4-E2B-it-NVFP4 huggingface.co is an AI model on huggingface.co that provides Gemma-4-E2B-it-NVFP4's model effect (), which can be used instantly with this bg-digitalservices Gemma-4-E2B-it-NVFP4 model. huggingface.co supports a free trial of the Gemma-4-E2B-it-NVFP4 model, and also provides paid use of the Gemma-4-E2B-it-NVFP4. Support call Gemma-4-E2B-it-NVFP4 model through api, including Node.js, Python, http.
Gemma-4-E2B-it-NVFP4 huggingface.co is an online trial and call api platform, which integrates Gemma-4-E2B-it-NVFP4's modeling effects, including api services, and provides a free online trial of Gemma-4-E2B-it-NVFP4, you can try Gemma-4-E2B-it-NVFP4 online for free by clicking the link below.
bg-digitalservices Gemma-4-E2B-it-NVFP4 online free url in huggingface.co:
Gemma-4-E2B-it-NVFP4 is an open source model from GitHub that offers a free installation service, and any user can find Gemma-4-E2B-it-NVFP4 on GitHub to install. At the same time, huggingface.co provides the effect of Gemma-4-E2B-it-NVFP4 install, users can directly use Gemma-4-E2B-it-NVFP4 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Gemma-4-E2B-it-NVFP4 install url in huggingface.co: