Downloads · 30 days
156
46% of all-time downloads
HivenetQuant/gemma-4-31B-it-NVFP4
gemma-4-31B-it-NVFP4 is a image-text-to-text model from HivenetQuant. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
NVFP4 (nvfp4) W4A4 quantization of google/gemma-4-31B-it — FP4 (E2M1) weights and activations with FP8 block scales. The MLP is the 4-bit tier; the attention layers the search protects are kept at FP8. The per-layer s…
Downloads · 30 days
156
46% of all-time downloads
All-time downloads
342
Public
Parameters
32.7B
26.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors26.5 GB · 100%
How the weights are stored.
U824.2B · 74%
From the Hugging Face model README
NVFP4 (nvfp4) W4A4 quantization of google/gemma-4-31B-it — FP4 (E2M1) weights and activations with FP8 block scales. The MLP is the 4-bit tier; the attention layers the search protects are kept at FP8. The per-layer split is chosen automatically by a weight-sensitivity search and applied with GPTQ.
The checkpoint targets NVIDIA Blackwell's native FP4 tensor cores (e.g. RTX 5090); the benchmark below compares it against the original FP16 weights across the evaluated tasks.
Preserved (kept in BF16, not quantized): the vision encoder (model.visual*), plus lm_head and norm/router layers. So multimodal understanding is fully retained — see the vision (MMMU-Pro / AI2D) row(s) in the benchmark below.
Runs on NVIDIA Blackwell (e.g. RTX 5090) with native NVFP4. This is the exact configuration the benchmarks below were validated on (FP8 KV cache, 128k context):
vllm serve HivenetQuant/gemma-4-31B-it-NVFP4 \
--tensor-parallel-size 2 \
--max-model-len 131072 \
--gpu-memory-utilization 0.90 \
--kv-cache-dtype fp8 \
--reasoning-parser gemma4 \
--enable-auto-tool-choice \
--tool-call-parser gemma4 \
--chat-template /chat_template.jinja
All numbers below were produced with this serve config — NVFP4 weights, FP8 KV cache, 128k context.
recipe_summary.json.lm_head/norms, the vision tower).This card reports a paired FP16 ↔ NVFP4 comparison — identical prompts, harness and decoding run head-to-head on both precisions — across a diverse task set. The goal is to show that NVFP4 quantization introduces no meaningful degradation versus the original weights, not to re-establish the base model's absolute capability.
A paired delta is detectable at far smaller sample sizes than an absolute score, so we evaluate a representative sample per task (exact sizes and decoding settings are in REPRODUCIBILITY.md) rather than every full benchmark set — a statistically sound degradation check that avoids the considerable compute and energy of re-running suites the base model has already published.
For absolute capability and full-suite results, see the base model google/gemma-4-31B-it and independent leaderboards: NVFP4 tracks FP16 within noise on every dimension tested here, so those numbers carry over.
| Dataset | FP16 | NVFP4 | Δ |
|---|---|---|---|
mmlu_pro | 85.15 | 85.36 | +0.21 |
gpqa_diamond_cot_zeroshot | 78.69 | 83.94 | +5.25 |
aime25 | 82.00 | 80.67 | -1.33 |
ifeval (ifeval_safe) | 94.82 | 95.10 | +0.28 |
mmmu_pro_standard_cot | 67.20 | 68.47 | +1.27 |
ai2d_no_mask | 90.67 | 87.93 | -2.73 |
livecodebench (codegen v6) | 84.72 | 82.64 | -2.08 |
bfcl (tool-calling) | 62.13 | 57.43 | -4.70 |
niah | 100.00 | 100.00 | +0.00 |
Measured with vLLM bench serve (synthetic random prompts, --ignore-eos) — vllm bench serve. Input lengths 1,024, 10,000 tokens, 512 output tokens, concurrency 1, 10, at TP4. Served with FP8 KV cache, max-model-len 131,072, gpu-mem 0.9, on NVIDIA GeForce RTX 5090, vllm/vllm-openai:v0.23.0. FP16 is measured identically at the same TP, so each ratio isolates the quantization effect.
| operating point | FP16 | this model (NVFP4) | speedup |
|---|---|---|---|
| decode · 1k ctx · 1 stream (tok/s) | 72 | 113 | 1.57× |
| prefill · 1k ctx (tok/s) | 4858 | 6950 | 1.43× |
| decode · 10k ctx · 1 stream (tok/s) | 55 | 83 | 1.51× |
| prefill · 10k ctx (tok/s) | 5979 | 9122 | 1.53× |
| throughput · 1k ctx · ×10 (tok/s) | 460 | 699 | 1.52× |
decode = single-stream (batch 1) output rate; prefill = prompt ingestion (input tokens ÷ time-to-first-token); throughput = aggregate output rate under concurrent load.
Reproducing these numbers — the serving config, pinned harness versions, and per-dataset sampling / seeds / decisions contract are in REPRODUCIBILITY.md (standard open-source tools, no proprietary harness).
Published by HivenetQuant, the Hugging Face account for Hivenet's model-optimization work. Hivenet is Antimatter's cloud and AI-inference platform. Antimatter brings together energy and power infrastructure through Antimatter US, modular data centers through Policloud, and cloud software and AI inference through Hivenet.
This checkpoint was quantized and benchmarked by Hivenet's AI Products team on Antimatter's Policloud infrastructure. We publish the precision plan, benchmark results, serving configuration, and reproducibility details so developers can examine the trade-offs and run the model on compatible NVIDIA Blackwell hardware. Our broader aim is to make high-performance inference easier to deploy on infrastructure that operators can choose and control.