What GPU do I need to run google/gemma-4-31B-it?
A 31.3B vision-language model that reads images alongside text. 31.3B parameters, published in BF16. View on Hugging Face
gemma-4-31B-it is published by google on Hugging Face, with 8,282,072 downloads and 3,687 likes to date. It's a Gemma4ForConditionalGeneration model built for image-text-to-text, published natively in BF16.
What gemma-4-31B-it is
gemma-4-31B-it is a 31.3B-parameter vision-language model published by Google on Hugging Face. It is released under Apache 2.0.
License note: fully permissive, no gating and no usage restrictions. Facts in this section are sourced from gemma-4-31B-it's Hugging Face model card, not benchmarked by Aquanode.
What it's used for
- Image understanding and captioning
- Visual question answering
- Document/OCR-style reading
VRAM required & cheapest live GPU fit
Required VRAM = weight size at each precision, plus a fixed overhead for KV-cache, activations, and fragmentation. Full formula and assumptions: methodology.
| Precision | Weight size | Required VRAM | Cheapest live fit | GPUs needed | Est. $/hr (full fit) |
|---|---|---|---|---|---|
| BF16 | 58.3 GB | 69.9 GB | A100 | 1 | $1.31/hr |
| cheaper alt. | RTX A5000 | 3 | $0.528/hr | ||
| FP8 (quantized) | 29.1 GB | 35.0 GB | RTX 4090 | 1 | $0.441/hr |
| cheaper alt. | RTX 5060 Ti | 3 | $0.330/hr | ||
| INT4 (quantized) | 14.6 GB | 17.5 GB | RTX A5000 | 1 | $0.176/hr |
A GPU is only matched to a row if its hardware supports that precision, and the primary recommendation is always a single-GPU fit when one exists.
INT4 requires a quantized checkpoint actually published for this model, check its Hugging Face page before relying on this row.
Cheapest way to run gemma-4-31B-it at its published (BF16) precision: 1× A100, at $1.31/hr per GPU ($1.31/hr total). Quantizing to FP8 or INT4 (rows above) can cost less, but requires a compatible quantized checkpoint to exist for this model.
gemma-4-31B-it: common questions
Can gemma-4-31B-it run on a single GPU?
Yes, but not on a desktop card. At BF16 it needs 69.9 GB of VRAM, more than a single 32 GB desktop card holds. The cheapest live single-card fit is a 80.0 GB A100 at $1.31/hr.
What is the least VRAM gemma-4-31B-it can run in?
17.5 GB, at INT4 (quantized), which fits a 24 GB card, against 69.9 GB at BF16. That row assumes an INT4 checkpoint has actually been published for this model, so check its Hugging Face page before planning around it.
Does quantizing gemma-4-31B-it lower the GPU bill?
Yes. At BF16 the cheapest live fit is one A100 at $1.31/hr. At INT4 (quantized) it drops to one RTX A5000 at $0.176/hr, provided a quantized checkpoint exists for it.
How to run gemma-4-31B-it
Run gemma-4-31B-it with vLLM
Generic example, not from the model's own docs: adjust flags (quantization, context length, parallelism) for your setup.
vllm serve google/gemma-4-31B-it --tensor-parallel-size 1Run gemma-4-31B-it with Ollama
Verified against Ollama's own library listing.
ollama run gemma4:31bRun gemma-4-31B-it with GGUF quantizations
Prebuilt GGUF weights published at unsloth/gemma-4-31B-it-GGUF. Run with llama.cpp's llama-server or load the repo directly in LM Studio.
llama-server -hf unsloth/gemma-4-31B-it-GGUFDeploy gemma-4-31B-it on Aquanode
Aquanode has no one-click deploy template for gemma-4-31B-it; you install the inference engine yourself with the commands below. Aquanode sells GPU pods billed per second, not a hosted inference API.
- Launch a bare GPU pod sized to the requirement above (1× A100 or larger).
- Open a terminal on the pod, or save one of the commands above as a startup script so it runs automatically the first time the pod boots.
- Run the command and connect to the resulting endpoint.
Weight-to-VRAM math, the fit rules, and how live prices are normalized: full methodology.
More Gemma 4 models
- gemma-4-31B-it-FP8-block (31.3B, F8_E4M3)
- gemma-4-31B-it-FP8-dynamic (31.3B, F8_E4M3)
- Artemis-31B-v1.2 (31.3B, BF16)
- gemma-4-31B (32.7B, BF16)
- gemma-4-31B-it-uncensored (32.7B, BF16)
Related reading: A100 pricing and specs, and The best GPUs for AI, ranked.