BLOG · GUIDE · · UPDATED

Gemma 4 hardware requirements: VRAM and GPUs from E2B to 31B on-premise

Eurokommerz, Vienna, since 2006: Private AI/ML · IT Managed Services · Enterprise Training · AI Hardware & Software

IN BRIEF
  • Every Gemma 4 size runs for one user on one GPU we supply: E2B and E4B on a 24 GB RTX PRO 4000 or L4 in BF16, the 12B on 24 GB in Google’s 4-bit QAT version, and the 26B A4B and 31B on one RTX PRO 6000, one H200 NVL or one 128 GB DGX Spark in BF16
  • The 31B keeps a 16-bit KV cache of up to about 3.3 GiB per conversation of 32,768 tokens by our count, four times that of the 12B or 26B A4B, because its 10 full-attention layers have four KV heads of dimension 512
  • Fifty of the 31B’s 60 layers attend over a 1,024-token sliding window, so they hold a fixed 0.78 GiB per conversation, and a 256K conversation takes about 20.8 GiB in all
  • For 20 conversations at 32K one RTX PRO 6000 serves every size except the 31B, which needs two; 100 conversations of the 31B need four H200 NVL, or six to eight RTX PRO 6000 depending on the format, with a 16-bit cache by our estimate, and four RTX PRO 6000 with an FP8 cache
  • Gemma 4 is published under Apache 2.0, while Gemma 3, Gemma 3n and the other models in the appendix of the Gemma Terms of Use stay under those terms and their Prohibited Use Policy

Supplied by Eurokommerz: AI servers, built to order  Request a configuration →

Which GPU each Gemma 4 size needs

Gemma 4, Google’s newest open model family as of November 2026 (its release notes, read 19 November 2026, list no later generation), comes in five sizes, and each of them runs for one user on one GPU we supply. Gemma 4 E2B and E4B fit a 24 GB RTX PRO 4000 or L4 in BF16. The 12B needs a 32 GB card in BF16, or 24 GB in Google’s 4-bit QAT version. The 26B A4B and the 31B fit one RTX PRO 6000, one H200 NVL or one 128 GB DGX Spark in BF16.

For 20 concurrent conversations of 32,768 tokens, one RTX PRO 6000 serves every size except the 31B, which needs a second card. For 100 conversations the 31B needs four H200 NVL, or six to eight RTX PRO 6000 depending on the format with a 16-bit cache, and four RTX PRO 6000 with an FP8 cache. Our estimates use Google’s Hugging Face files as read on 9 October 2026 and our users-per-card rule from our guide to how much VRAM an LLM needs: 90 per cent of the memory the driver reports, less 3 GiB per card. NVIDIA’s CUDA Best Practices Guide states that ECC on GDDR memory takes 6.25 per cent of capacity, so with ECC enabled the counts for the GDDR6 L4 and L40S are lower; for the GDDR7 RTX PRO Blackwell cards, NVIDIA’s vPC sizing guide, updated on 19 August 2026, states that ECC is built into the memory and always enabled without reducing usable VRAM. Check the memory the driver reports (nvidia-smi, FB Memory Total) on your card. Our LLM hardware requirements by model compares other model families on the same basis.

Send us the Gemma size, the context length and your number of users at peak, and we answer with the card or server from the tables below and a written quote within one business day.

Gemma 4 sizes, checkpoints and context in October 2026

MODELPARAMETERSGOOGLE CHECKPOINTSCONTEXTINPUTS
Gemma 4 E2B5.1B with embeddings, 2.3B effectiveBF16, 10.2 GB128Ktext, image, audio, video
Gemma 4 E4B8B with embeddings, 4.5B effectiveBF16, 16 GB128Ktext, image, audio, video
Gemma 4 12B11.95B, denseBF16 23.9 GB; QAT W4A16 10.3 GB256Ktext, image, audio, video
Gemma 4 26B A4B25.2B MoE, 3.8B activeBF16, 51.6 GB256Ktext, image, video
Gemma 4 31B30.7B, denseBF16 62.6 GB; QAT W4A16 23.3 GB256Ktext, image, video

Model card of Gemma 4 31B, file lists and config.json files on huggingface.co/google, read on 9 October 2026. Video is read as frames.

Google’s release notes list Gemma 4 in the E2B, E4B, 31B and 26B A4B sizes on 31 March 2026, and the 12B Unified on 3 June 2026. The “E” stands for effective parameters; the checkpoints also hold the Per-Layer Embeddings. The 26B A4B has 128 experts, eight of them active per token, plus one shared expert.

Google publishes quantisation-aware trained (QAT) versions as W4A16 checkpoints, 4-bit weights with 16-bit activations, which the cards describe as made “for native, optimized inference with vLLM”, and as Q4_0 GGUF files. FP8 versions come from Red Hat, and NVFP4 versions from NVIDIA and Red Hat. Red Hat’s FP8 checkpoints are 33.3 GB for the 31B and 28.6 GB for the 26B A4B, and NVIDIA’s NVFP4 checkpoints 32.6 GB and 18.8 GB. The RTX PRO cards and the DGX Spark compute FP4 directly; the H200 NVL, L4 and L40S do not.

Google’s own memory table, last updated 8 July 2026, puts the 31B at 69.9 GB in BF16 for loading, with 20 per cent overhead, and notes that the figures “don’t include the additional VRAM needed for supporting software or the context window.”

KV cache per conversation with sliding-window layers

The cache per token comes from config.json: 2 × layers × KV heads × head dimension × bytes per value, counted only for layers that keep the whole context. The model card says Gemma 4 “interleaves local sliding window attention with full global attention, ensuring the final layer is always global.” Sliding-window layers keep only the last 1,024 tokens (512 on E2B and E4B), a fixed amount per conversation.

The 31B lists 60 layers, of which 10 are full attention with four KV heads of dimension 512. That gives 80 KiB per token in 16-bit. Its 50 sliding layers have 16 KV heads of dimension 256 and hold 0.78 GiB per conversation. A conversation of 32K therefore takes about 3.3 GiB, and one of 256K about 20.8 GiB.

The 12B has 8 full layers with one KV head, and the 26B A4B has 5 with two. Both come to about 0.8 GiB per 32K conversation, a quarter of the 31B’s. On E2B and E4B the configuration marks 20 of 35 and 18 of 42 layers as KV-shared, and LMCache’s Gemma 4 recipe states that it “stores the cache-owning layers only”. We count the 15 and 24 layers that own a cache, three and four of them with full attention.

The 12B, 26B A4B and 31B also set attention_k_eq_v to true; the Transformers documentation says this setting means “the key projection output is reused as the value projection”. We found no vLLM document stating that the engine then stores one tensor instead of two, so we count both, and our cache figures for these three models are upper bounds. With one tensor, a 32K conversation of the 31B takes about 2.0 GiB.

Which card holds which Gemma size

MODEL, FORMATCACHE PER 32K24 GB CARD32 GB CARD48 GB CARD
E2B, BF160.19 GiB4784158
E4B, BF160.52 GiB72048
12B, BF160.81 GiBdoes not fit422
12B, QAT W4A160.81 GiB111937
26B A4B, FP80.82 GiBdoes not fitdoes not fit16
26B A4B, NVFP40.82 GiB11027
31B, QAT W4A163.28 GiBdoes not fit15
31B, FP83.28 GiBdoes not fitdoes not fit2

Our estimates, not measurements: conversations of 32,768 tokens that fit on one card with a 16-bit cache, keys and values counted in every layer, from the nominal memory of these cards, so the counts are upper bounds. 24 GB is the RTX PRO 4000 or L4, 32 GB the RTX PRO 4500, 48 GB the RTX PRO 5000 48 GB or L40S; the NVFP4 row applies to the RTX PRO cards only. Weights from the Hugging Face file lists, 9 October 2026.

A 24 GB card leaves about 18.5 GiB for weights and cache by our rule, from the 23.9 GiB its driver reports when scaled from the 95.6 GiB of a 96 GB card. That holds E2B and E4B in BF16, and the 12B in its QAT version with 11 conversations at 32K. The 72 GB RTX PRO 5000 holds the 31B in FP8 with nine conversations and the 26B A4B in FP8 with 42. Our comparison of RTX PRO 6000, 5000 and 4500 covers these cards beyond memory.

The L4 and L40S are Ada Lovelace cards with FP8 but no FP4. vLLM’s Gemma 4 recipes name Hopper and Blackwell for the FP8 checkpoints, so check FP8 on an Ada card with your engine version first; our comparison of L4 and L40S for inference covers both cards.

We supply every card in this table, on its own or in servers built to order. If you already run a 24 GB or 48 GB card, send us its model and the Gemma format you want, and we answer with the conversations it holds by this method and the card to add if it falls short.

GPUs for 1, 20 and 100 users of each Gemma size

MODEL, FORMATDGX SPARK 128 GBRTX PRO 6000H200 NVL
E4B, BF16yes / yes / yes1 / 1 / 11 / 1 / 1
12B, BF16yes / yes / no1 / 1 / 21 / 1 / 1
26B A4B, BF16yes / yes / no1 / 1 / 21 / 1 / 2
26B A4B, FP8yes / yes / no1 / 1 / 21 / 1 / 1
31B, BF16yes / no / no1 / 2 / 81 / 2 / 4
31B, FP8yes / no / no1 / 2 / 61 / 1 / 4
31B, QAT W4A16yes / yes / no1 / 2 / 61 / 1 / 4

Our estimates, not measurements: cards needed for 1, 20 and 100 concurrent conversations of 32,768 tokens with a 16-bit cache, as identical copies of the model on one, two or four cards each; DGX Spark shows a memory fit only, from a 102 GB working set, about 95 GiB: the 0.8 memory utilisation of vLLM’s 26B A4B recipe for the Spark, with no further deduction. NVIDIA’s vLLM playbook on build.nvidia.com (updated 19 October 2026) links launch scripts for the 128 GB Spark that set --gpu-memory-utilization 0.8; the single-Spark script it linked in September 2026 set 0.7, about 90 GB, which leaves room for fewer conversations, for example 18 instead of 22 for the 31B in its QAT version, two fewer than the 20 in the table. E2B fits one card or one Spark for all three loads.

The figures in a cell differ where the cache sets the limit. The 31B in BF16 leaves 24.7 GiB on one RTX PRO 6000, room for seven conversations at 32K. In FP8 it leaves 52 GiB, room for 15, and one H200 NVL holds 28. One 128 GB DGX Spark holds the 31B in FP8 with 19 conversations, one short of the 20 in the table, and its QAT version with 22. The model card says the 26B A4B “runs almost as fast as a 4B-parameter model”, but it needs memory for all 25.2B parameters.

A full 256K conversation of the 31B, about 20.8 GiB of cache, fits one RTX PRO 6000 or one 128 GB DGX Spark in BF16, and one H200 NVL holds three. vLLM’s 31B recipe says an FP8 cache, --kv-cache-dtype fp8, “saves ~50% KV memory”. With that FP8 cache, a 32K conversation of the 31B takes about 1.64 GiB. One RTX PRO 6000 then holds the FP8 model with about 31 conversations, and four RTX PRO 6000 Server Edition, the inference node on our AI servers page, serve 100 conversations of the 31B by memory: as four FP8 copies with about 124 in all, or as two BF16 copies on two cards each, which talk over PCIe, with about 130.

Gemma 4 31B and 26B A4B on several GPUs

vLLM’s recipe for the 31B, updated 9 September 2026, runs it on two A100 or H100 with --tensor-parallel-size 2 and a context of 32,768 tokens, and the 26B A4B on one. The 26B A4B recipe, updated 27 September 2026, sets a memory utilisation of 0.8 on the DGX Spark, with its “128 GB shared with the CPU”, and 0.92 on the RTX PRO 6000. That matches our 102 GB for one 128 GB Spark.

Tensor parallelism splits the KV heads across the cards. The 31B has four KV heads in its full layers, the 26B A4B two and the 12B one, so beyond that many cards the full-layer cache is duplicated instead of split further, and on the 12B every card keeps it whole. For 100 users of the 31B, identical copies on one, two or four cards each therefore make better use of memory than one copy across eight. The RTX PRO 6000 has no NVLink, so a two-card split runs over PCIe, as our guide to one model on several GPUs explains. For the 26B A4B the recipe states that “TEP (tensor-expert parallelism) and DEP (data-expert parallelism) strategies scale better than pure TP at large node counts.”

We build inference servers with 2 to 8 GPUs per node, sized by model size and concurrent users. Send us your peak requests in flight and the power available per rack, and we answer with the split into model copies, the node that carries it and a written quote.

vLLM settings and versions for Gemma 4

vLLM’s recipe index lists vLLM 0.19.1 as the minimum for E2B, E4B and the 31B, 0.23.0 for the 12B and 0.25.0 for the 26B A4B. The 12B recipe, updated 9 September 2026, says the context is pinned to 131,072 tokens from config.json, while the config.json we read lists 262,144, so check which limit your vLLM version applies.

Google released draft models for multi-token prediction (MTP) on 16 April 2026, as “assistant” repositories of 78M to 0.5B parameters. vLLM’s 31B recipe, updated 9 September 2026, states that “MTP speculative decoding for Gemma 4 is only available on the vLLM nightly build”, and LMCache notes that “The draft layers carry their own KV cache”. The MTP page of vLLM release 0.31.0, of 5 October 2026, lists the E2B, E4B, 12B, 26B-A4B and 31B assistant checkpoints as supported, so MTP no longer needs a nightly build; as of November 2026 the newest release is vLLM 0.34.0 of 16 November 2026; since 0.33.0 the release builds are CUDA 13.0 only and need an R580 or newer driver. From 0.34.0 an unset --gpu-memory-utilization is 1.0 on NVIDIA GPUs with the extensible KV cache, where it was 0.92 up to 0.33, so set the value explicitly, as the recipes do, when other processes share the card or to keep the headroom our counts assume.

The 31B recipe marks NVIDIA’s NVFP4 version as requiring “Blackwell (B200/B300)”, while the 26B A4B recipe lists NVIDIA’s NVFP4 version as validated on single-GPU Blackwell systems, among them the DGX Spark and the RTX PRO 6000. For the 31B, Google’s QAT W4A16 checkpoint is smaller.

Gemma 3 27B and earlier Gemma models

Gemma 3 27B, the previous generation, is 54.8 GB in BF16 and fits one RTX PRO 6000, one H200 NVL, one 128 GB DGX Spark or one 72 GB RTX PRO 5000, but not a 48 GB card. Google’s QAT version in Q4_0 GGUF is 17.2 GB plus an 858 MB vision projector. Its repository is gated, so we did not read its config.json and give no cache figure here.

Gemma licence: Apache 2.0 and the Gemma Terms of Use

The Gemma 4 model cards list Apache 2.0, and Google’s Gemma documentation, now moving from ai.google.dev to gemma.ai, links its Apache 2.0 page as the “Gemma 4 license”. The Gemma Terms of Use, last modified on 1 April 2026, state: “For Gemma 4 terms, see the Gemma 4 license.” They cover the models in their appendix, among them Gemma 3, Gemma 3n and TranslateGemma. Their Section 3.2 bars use of the Gemma Services for the restricted uses in the Gemma Prohibited Use Policy, and states that “Google reserves the right to restrict (remotely or otherwise) usage” it reasonably believes violates the agreement. Whether a clause applies to your company is a legal assessment for your legal department; our comparison of open LLM licences for company use sets the Gemma terms beside the other licences.

Cards and servers for Gemma 4

We supply the RTX PRO 4000, 4500, 5000 and 6000, the L4 and L40S, the H200 NVL and the DGX Spark Founders Edition, as cards or in AI servers built to order. We size the card or server from the Gemma size, its format, your context and peak requests, and check the rack, power and airflow before we quote. We supply servers from Supermicro, Gigabyte, ASUS, Dell, HPE, Lenovo and other makers per project. Everything comes on one EU contract and invoice with manufacturer warranty, and our professional GPU range lists every card. The models, RAG and MLOps on top are our Private AI/ML service, with engineering by our partner Vixen.UNO.

FAQ

What are the hardware requirements for Gemma 4?
Every Gemma 4 size runs for one user on one GPU: E2B and E4B on a 24 GB card such as the RTX PRO 4000 or L4, the 12B on 32 GB in BF16 or 24 GB in its 4-bit QAT version, and the 26B A4B and 31B on one RTX PRO 6000, one H200 NVL or one 128 GB DGX Spark. For 20 conversations of 32,768 tokens one RTX PRO 6000 serves every size except the 31B, which needs two. These are our estimates from Google’s Hugging Face files as read on 9 October 2026.
How much VRAM does Gemma 4 31B need?
The weights take 62.6 GB in BF16, 33.3 GB in Red Hat’s FP8 version and 23.3 GB in Google’s QAT W4A16 version. Each conversation of 32,768 tokens adds about 3.3 GiB of 16-bit KV cache, and a full 256K conversation about 20.8 GiB. One RTX PRO 6000 holds the BF16 model with seven conversations at 32K by our estimate, one H200 NVL with 19.
How much VRAM does Gemma 27B need?
Gemma 3 27B is 54.8 GB in BF16, about 51 GiB, so it fits one 96 GB RTX PRO 6000, one H200 NVL, one 128 GB DGX Spark or one 72 GB RTX PRO 5000, but not a 48 GB card. Google’s QAT version in Q4_0 GGUF is 17.2 GB plus an 858 MB vision projector. The KV cache comes on top and depends on the context you configure.
Can I run Gemma locally on a single GPU?
Yes, every Gemma 4 size fits one card for a single user. A 24 GB RTX PRO 4000 or L4 holds E2B and E4B in BF16 and the 12B in its QAT version, a 48 GB RTX PRO 5000 or L40S holds the 26B A4B in FP8, and the 31B in BF16 fits one RTX PRO 6000, one H200 NVL or one 128 GB DGX Spark. More users need more memory for the KV cache rather than for the weights.
Can Gemma 4 run on a DGX Spark?
All five Gemma 4 sizes fit one 128 GB DGX Spark, such as the Founders Edition, in BF16. The 64 GB systems, which NVIDIA lists from 23 October 2026 only through its OEM partners, hold less: NVIDIA names the Gemma 4 26B A4B among the models they run, while the 31B in BF16, at 62.6 GB, does not fit. Taking a 102 GB working set, which matches the 0.8 memory utilisation in vLLM’s recipe for the Spark, one Spark holds the 26B A4B in BF16 with 57 conversations of 32K, and the 31B in its QAT version with 22. The 31B in BF16 fits with 11 such conversations by our estimate; at the 0.7 of the single-Spark script NVIDIA linked in September 2026, about 90 GB, these counts fall to 43, 18 and 7.
Can Gemma be used commercially?
Gemma 4 is published under Apache 2.0, as its model cards and Google’s developer site state, and that licence grants a “perpetual, worldwide, non-exclusive, no-charge” copyright licence. Gemma 3, Gemma 3n and the other models in the appendix of the Gemma Terms of Use remain under those terms, which incorporate the Gemma Prohibited Use Policy and let Google restrict usage it reasonably believes violates the agreement. Whether a clause applies to your company is a legal assessment for your legal department.

Send us the Gemma 4 size and format, the context length and your peak number of conversations. We answer within one business day with the cards or the server that hold them, sized as on this page, and a written quote.

Request a configuration
Talk to an expert

We reply within one business day

By sending this form you agree that we process your details to answer your enquiry; see our privacy policy.

request@eurokommerz.at
Jordangasse 7, 1010 Vienna