Gemma-4-31B-it
Text-only serving benchmark for Gemma 4 on a single H100.
vLLM1× NVIDIA H100-80GBFP8 KV cacheConcurrency 128
Get this model on Hugging Face+66.0%output tokens / sec
39.7%estimated cost savings
1.65×faster end-to-end requests
−46.7%mean time to first token
Results
Baseline vs. Nova optimized
Baseline220
Nova optimized366
Baseline142.0 s
Nova optimized85.9 s
| Metric | Baseline | Optimized | Change |
|---|---|---|---|
| Throughput | |||
| Output tokens / sec | 220.3 | 365.6 | +66.0% |
| Total tokens / sec | 2,013.7 | 3,341.8 | +66.0% |
| Requests / sec | 0.85 | 1.41 | +65.9% |
| Latency (ms) | |||
| Time to first token, mean | 133,009.7 | 70,845.6 | −46.7% |
| Time to first token, p99 | 153,345.7 | 81,829.6 | −46.6% |
| Time per output token, mean | 34.7 | 58.2 | +67.7% |
| Inter-token latency, mean | 34.6 | 58.1 | +67.9% |
| End-to-end, mean | 142,003.6 | 85,936.3 | −39.5% |
| End-to-end, median | 150,279.6 | 89,032.0 | −40.8% |
| Run | |||
| Benchmark duration (s) | 1,178.6 | 710.2 | −39.7% |
What it means for cost
Same GPU, 1.66× the output.
Each benchmark run costs 39.7% less: $0.77 instead of $1.27.
39.7%lower cost per run
≈ $13.5Kestimated yearly savings per GPU
Based on 1× H100 at $3.89/GPU-hour, running 24/7. Actual savings vary by usage and pricing.
Setup
How we tested
Environment
- Hardware
- 1× NVIDIA H100-80GB
- Engine
- vLLM v0.20.0, Transformers 5.x
- Precision
- FP8 (e4m3) KV cache
- Parallelism
- Tensor parallel 1
- Features
- FlashInfer attention, prefix caching, chunked prefill
Workload
- Tool
- vllm bench serve
- Dataset
- Synthetic, random prompts
- Input length
- 409–3,686 tokens (avg. 2,048)
- Output length
- 51–460 tokens (avg. 256)
- Requests
- 1,000 at concurrency 128
Model
- Type
- Dense, instruction-tuned, multimodal
- Parameters
- 30.7B
- Layers
- 60, hidden size 5,376
- Attention
- Sliding window + global
- Context
- 262,144 tokens native
- Inputs
- Text only (image and audio off)
Optimizations
What Neural Nova optimized
FP8 KV cache
e4m3 cache fits more requests in GPU memory.
More memory for cache
GPU memory utilization raised to 95%.
Tuned batching
Up to 128 sequences and 16,384 batched tokens per step.
Prefix caching + chunked prefill
Reuses shared prefixes; long prompts don't stall decoding.
FlashInfer attention
Faster attention kernels on H100.
Text-only mode
Image and audio encoders off to free VRAM for KV cache.
Reproduce it
View full scripts on Hugging FaceDocker container and serving commands
Base Docker
vllm/vllm-openai:v0.20.0Baseline
vllm serve google/gemma-4-31B-it \
--host 0.0.0.0 --port 8000 \
--max-model-len 24576 \
--gpu-memory-utilization 0.92 \
--limit-mm-per-prompt '{"image": 0, "audio": 0}' \
--trust-remote-codeOptimized
export VLLM_ATTENTION_BACKEND=FLASHINFER
vllm serve google/gemma-4-31B-it \
--host 0.0.0.0 --port 8000 \
--tensor-parallel-size 1 \
--max-model-len 24576 \
--gpu-memory-utilization 0.95 \
--kv-cache-dtype fp8_e4m3 \
--max-num-seqs 128 \
--enable-prefix-caching \
--enable-chunked-prefill \
--max-num-batched-tokens 16384 \
--limit-mm-per-prompt '{"image": 0, "audio": 0}' \
--trust-remote-code