Skip to content Skip to the checker

Gemma 4 hardware requirements: E2B, E4B, 12B, 26B-A4B and 31B

  • Page updated
  • Sources checked
  • Not updated since : newer files or releases may be missing
  • GGUF sizes and embedding tensors checked October 12, 2026 (E2B/E4B October 19)
  • Capacity estimates, labeled
  • Jump to the checker ↓

Gemma 4 is Google's family of open-weight models with image input and a 262K context, released under Apache 2.0. This page covers all five sizes for PCs and Macs: the small E2B and E4B (2.3B and 4.5B effective parameters, 5.1B and 8B with their per-layer embeddings, and a 131,072-token context; gemma4:latest on Ollama is the E4B), the dense 12B, the mixture-of-experts 26B-A4B (26B parameters, about 4B active per token) and the dense 31B.

Short answer: at a 32K context with llama.cpp (RigCheck estimates), Gemma 4 E4B at 8-bit (Q8_0) fits an 8 GB card with about 4.2 GB of it in system RAM (its 3.7 GB of embedding tables and 0.5 GB of host buffers), and a 16 GB Mac holds its Q4_K_M; E2B fits either at 8-bit or more. Gemma 4 12B at 4-bit (UD-Q4_K_XL) needs about 11 GB, fitting a 12 GB card; an 8 GB card holds the 3-bit UD-IQ3_XXS. 26B-A4B at 4-bit (UD-Q4_K_XL) needs about 21 GB and 31B about 23 GB with IQ4_XS (16.4 GB): both fit 24 GB cards (RTX 3090/4090, RX 7900 XTX) or 32 GB Macs, while the 31B's Q4_K_M fits 32 GB cards or 48 GB Macs but exceeds a 32 GB Mac's 24 GB usable budget. 16 GB cards take their 3-bit or 2-bit files.

Can my hardware run Gemma 4?

Open in a full page ↗

Loading private checker…

RigCheck allocation estimate. Input embeddings stay in system RAM even when all decoder layers fit on the GPU. For E2B and E4B that includes the per-layer embedding table (llama.cpp places it on the CPU like the token embeddings): 1.3–4.7 GB and 1.6–5.6 GB depending on the file, 35–58% of each file's size. We count it in RAM in full; llama.cpp's default --lazy-mode auto reads a table larger than 4 GiB (the BF16 files only) from disk on demand instead. Their per-format sizes and the output tensor come from pinned GGUF headers (read October 12, 2026). We add a RigCheck allowance of 0.5 GB for host runtime/staging buffers, separate from the 8 GB OS reserve. Remaining decoder weights are approximated evenly across layers; output weights sit on the last GPU, compute buffers and the vision file on the first. Commands disable automatic fitting with --fit off and pin decoder layers plus the output layer with -ngl, using --tensor-split for multiple cards. Actual tensor placement and buffer peaks can still differ; confirm runtime allocation before filling memory. When tied input/output weights cross CPU and GPU buffer types, the estimate also reserves an output copy; unified-memory estimates keep this conservative allowance, though a backend may reuse mapped storage. CPU-only runs do not add that copy.

Spec sheetSources checked
Developer
Google Official
Params · Gemma 4 12B
the dense 12B Official
Params · Gemma 4 26B-A4B
26B parameters, about 4B active per token Official
Params · Gemma 4 31B
the dense 31B Official
Context
131,072 tokens for E2B and E4B, 262,144 for the others Official
Input · Gemma 4 12B
text, image, audio Official
License
Apache 2.0 Official
Ollama
Ollama has gemma4 packages Official
llama.cpp
llama.cpp supports the architecture, Unsloth publishes GGUF files Unsloth

How much VRAM does Gemma 4 need?

Unsloth's GGUF files as Hugging Face lists them (decimal GB, read October 9, 2026), and the total memory each needs at a 32K context with an f16 KV cache and no image input (RigCheck estimate). Official BF16 weights: 10.2 GB (E2B), 16.0 GB (E4B), 23.9 GB (12B), 51.6 GB (26B-A4B), 62.5 GB (31B).

Gemma 4 31B

FileFile sizeNeeds at 32KSource
BF1661.4 GB70.2 GBUnsloth
Q8_032.6 GB40.0 GBUnsloth
Q6_K25.2 GB32.3 GBUnsloth
Q5_K_M21.7 GB28.6 GBUnsloth
UD-Q4_K_XL18.8 GB25.7 GBUnsloth
Q4_K_M18.3 GB25.0 GBUnsloth
IQ4_XS16.4 GB23.1 GBUnsloth
Q3_K_M14.7 GB21.2 GBUnsloth
UD-IQ3_XXS11.8 GB18.3 GBUnsloth
UD-IQ2_XXS8.5 GB15.0 GBUnsloth

Gemma 4 26B-A4B

FileFile sizeNeeds at 32KSource
BF1650.5 GB55.0 GBUnsloth
Q8_026.9 GB30.7 GBUnsloth
UD-Q6_K_XL23.3 GB27.1 GBUnsloth
UD-Q5_K_XL21.2 GB25.0 GBUnsloth
UD-Q4_K_XL17.0 GB20.8 GBUnsloth
MXFP4_MOE16.6 GB20.4 GBUnsloth
UD-IQ4_XS13.6 GB17.4 GBUnsloth
UD-Q3_K_XL12.9 GB16.7 GBUnsloth
UD-IQ3_XXS11.4 GB15.0 GBUnsloth
UD-IQ2_XXS9.9 GB13.3 GBUnsloth

Gemma 4 12B

FileFile sizeNeeds at 32KSource
BF1623.8 GB28.9 GBUnsloth
Q8_012.7 GB16.8 GBUnsloth
Q6_K9.8 GB13.7 GBUnsloth
Q5_K_M8.4 GB12.1 GBUnsloth
UD-Q4_K_XL7.4 GB11.1 GBUnsloth
Q4_K_M7.1 GB10.7 GBUnsloth
IQ4_XS6.4 GB10.0 GBUnsloth
Q3_K_M5.7 GB9.2 GBUnsloth
UD-IQ3_XXS4.6 GB8.1 GBUnsloth
UD-IQ2_M4.2 GB7.7 GBUnsloth

Gemma 4 E4B

FileFile sizeNeeds at 32KSource
BF1615.1 GB19.0 GBUnsloth
Q8_08.2 GB11.5 GBUnsloth
Q6_K7.1 GB10.2 GBUnsloth
Q5_K_M5.5 GB8.5 GBUnsloth
UD-Q4_K_XL5.1 GB8.1 GBUnsloth
Q4_K_M5.0 GB8.0 GBUnsloth
IQ4_XS4.7 GB7.7 GBUnsloth
Q3_K_M4.1 GB7.0 GBUnsloth
UD-IQ3_XXS3.7 GB6.6 GBUnsloth
UD-IQ2_M3.5 GB6.4 GBUnsloth

Gemma 4 E2B

FileFile sizeNeeds at 32KSource
BF169.3 GB12.3 GBUnsloth
Q8_05.0 GB7.6 GBUnsloth
Q6_K4.5 GB7.0 GBUnsloth
Q5_K_M3.4 GB5.9 GBUnsloth
UD-Q4_K_XL3.2 GB5.7 GBUnsloth
Q4_K_M3.1 GB5.5 GBUnsloth
IQ4_XS3.0 GB5.4 GBUnsloth
Q3_K_M2.5 GB4.9 GBUnsloth
UD-IQ3_XXS2.4 GB4.8 GBUnsloth
UD-IQ2_M2.3 GB4.7 GBUnsloth

Unsloth's table gives recommended total memory (RAM + VRAM, or unified memory) for 4-bit, 8-bit and BF16: 4, 5–8 and 10 GB for E2B; 5.5–6, 9–12 and 16 GB for E4B; 7–8, 13–14 and 25 GB for 12B; 16–18, 28–30 and 52 GB for 26B-A4B; 17–20, 34–38 and 62 GB for 31B, and says llama.cpp still runs below that with RAM or disk offload, more slowly. Ollama's default packages, as its tags page lists them: gemma4:e2b 4.6–7.5 GB, gemma4:e4b (also gemma4:latest) 6.6–9.5 GB, gemma4:12b 7.7–8.0 GB, gemma4:26b 16–19 GB, gemma4:31b 19–20 GB.

What hardware can run Gemma 4?

RigCheck estimate at a 32K context with an f16 KV cache and no image input, from the file sizes above and the assumptions under the checker. "Largest" means the largest of the checker's ten files for that model.

Gemma 4 31B

HardwareLargest file that fits fullyWith layers in system RAM (slower)
No GPU + 32 GB RAMIQ4_XS (all in RAM, CPU only)no larger file
RTX 4060 (8 GB) + 32 GB RAMnoneQ5_K_M (49 of 60 layers, 22 GB in RAM)
RTX 3060 (12 GB) + 32 GB RAMnoneQ6_K (43 of 60 layers, 22 GB in RAM)
RTX 5060 Ti (16 GB) + 32 GB RAMUD-IQ2_XXSQ6_K (35 of 60 layers, 18 GB in RAM)
RX 9070 XT (16 GB) + 32 GB RAMUD-IQ2_XXSQ6_K (35 of 60 layers, 18 GB in RAM)
RTX 4090 (24 GB) + 32 GB RAMIQ4_XSQ8_0 (28 of 60 layers, 18 GB in RAM)
RTX 5090 (32 GB) + 32 GB RAMQ5_K_MQ8_0 (15 of 60 layers, 11 GB in RAM)
Mac, 16 GB unifiednonenot applicable (unified memory)
Mac, 24 GB unifiedUD-IQ2_XXSnot applicable (unified memory)
Mac, 32 GB unifiedIQ4_XSnot applicable (unified memory)

Gemma 4 26B-A4B

HardwareLargest file that fits fullyWith layers in system RAM (slower)
No GPU + 32 GB RAMUD-Q4_K_XL (all in RAM, CPU only)no larger file
RTX 4060 (8 GB) + 32 GB RAMnoneQ8_0 (25 of 30 layers, 24 GB in RAM)
RTX 3060 (12 GB) + 32 GB RAMnoneQ8_0 (21 of 30 layers, 20 GB in RAM)
RTX 5060 Ti (16 GB) + 32 GB RAMUD-IQ3_XXSQ8_0 (17 of 30 layers, 17 GB in RAM)
RX 9070 XT (16 GB) + 32 GB RAMUD-IQ3_XXSQ8_0 (17 of 30 layers, 17 GB in RAM)
RTX 4090 (24 GB) + 32 GB RAMUD-Q4_K_XLQ8_0 (9 of 30 layers, 9 GB in RAM)
RTX 5090 (32 GB) + 32 GB RAMQ8_0no larger file
Mac, 16 GB unifiednonenot applicable (unified memory)
Mac, 24 GB unifiedUD-IQ3_XXSnot applicable (unified memory)
Mac, 32 GB unifiedUD-Q4_K_XLnot applicable (unified memory)

Gemma 4 12B

HardwareLargest file that fits fullyWith layers in system RAM (slower)
No GPU + 32 GB RAMQ8_0 (all in RAM, CPU only)no larger file
RTX 4060 (8 GB) + 32 GB RAMUD-IQ3_XXSBF16 (40 of 48 layers, 21 GB in RAM)
RTX 3060 (12 GB) + 32 GB RAMQ5_K_MBF16 (33 of 48 layers, 18 GB in RAM)
RTX 5060 Ti (16 GB) + 32 GB RAMQ6_KBF16 (25 of 48 layers, 14 GB in RAM)
RX 9070 XT (16 GB) + 32 GB RAMQ6_KBF16 (25 of 48 layers, 14 GB in RAM)
RTX 4090 (24 GB) + 32 GB RAMQ8_0BF16 (10 of 48 layers, 7 GB in RAM)
RTX 5090 (32 GB) + 32 GB RAMBF16no larger file
Mac, 16 GB unifiedUD-IQ2_Mnot applicable (unified memory)
Mac, 24 GB unifiedQ6_Knot applicable (unified memory)
Mac, 32 GB unifiedQ8_0not applicable (unified memory)

Gemma 4 E4B

HardwareLargest file that fits fullyWith layers in system RAM (slower)
No GPU + 32 GB RAMBF16 (all in RAM, CPU only)no larger file
RTX 4060 (8 GB) + 32 GB RAMQ8_0BF16 (20 of 42 layers, 12 GB in RAM)
RTX 3060 (12 GB) + 32 GB RAMQ8_0BF16 (3 of 42 layers, 8 GB in RAM)
RTX 5060 Ti (16 GB) + 32 GB RAMBF16no larger file
RX 9070 XT (16 GB) + 32 GB RAMBF16no larger file
RTX 4090 (24 GB) + 32 GB RAMBF16no larger file
RTX 5090 (32 GB) + 32 GB RAMBF16no larger file
Mac, 16 GB unifiedQ4_K_Mnot applicable (unified memory)
Mac, 24 GB unifiedQ8_0not applicable (unified memory)
Mac, 32 GB unifiedBF16not applicable (unified memory)

Gemma 4 E2B

HardwareLargest file that fits fullyWith layers in system RAM (slower)
No GPU + 32 GB RAMBF16 (all in RAM, CPU only)no larger file
RTX 4060 (8 GB) + 32 GB RAMBF16no larger file
RTX 3060 (12 GB) + 32 GB RAMBF16no larger file
RTX 5060 Ti (16 GB) + 32 GB RAMBF16no larger file
RX 9070 XT (16 GB) + 32 GB RAMBF16no larger file
RTX 4090 (24 GB) + 32 GB RAMBF16no larger file
RTX 5090 (32 GB) + 32 GB RAMBF16no larger file
Mac, 16 GB unifiedQ8_0not applicable (unified memory)
Mac, 24 GB unifiedBF16not applicable (unified memory)
Mac, 32 GB unifiedBF16not applicable (unified memory)

Capacity only, not tested setups. With layers in system RAM, any of them runs slower; we found no published speeds to say how much slower for each.

Gemma 4 on a Jetson Orin Nano

NVIDIA NVIDIA's Jetson AI Lab tutorial "Gemma 4 on Jetson" says that so far E2B is the one that fits best on the Orin Nano, and runs it with llama.cpp: the Q4_K_S file (3.0 GB) in NVIDIA's llama_cpp:latest-jetson-orin container, on JetPack 6 (L4T r36.x). For this board RigCheck quotes that route instead of estimating capacity: its 8 GB of unified memory is shared with the operating system, and we found no source for that reserve precise enough to decide a fit.

sudo docker run -it --rm --pull always --runtime=nvidia --network host \
  -v $HOME/.cache/huggingface:/root/.cache/huggingface \
  ghcr.io/nvidia-ai-iot/llama_cpp:latest-jetson-orin \
  llama-server -hf unsloth/gemma-4-E2B-it-GGUF:Q4_K_S
JetsonGemma 4 sizes NVIDIA namesSource
Orin Nano (8 GB)E2BNVIDIA
Orin NXE2B, E4BNVIDIA
AGX Orinthe full familyNVIDIA
Jetson Thorthe full familyNVIDIA

"Full family" in that tutorial means E2B, E4B, 26B-A4B and 31B; it does not cover the 12B. It also says Ollama does not run Gemma 4 on the Orin Nano yet, that E2B audio currently has an issue under llama.cpp (use vLLM for audio on the bigger Jetsons), and recommends an NVMe SSD for downloads; NVIDIA's RAM optimization guide notes that turning off the desktop frees about 800 MB. The Orin Nano Super's memory is 8 GB of 128-bit LPDDR5 at 102 GB/s in its MAXN SUPER mode (NVIDIA). These are NVIDIA's published routes, not RigCheck estimates or tested setups.

Measured Gemma 4 on your own hardware, or tried and it failed? Send us the numbers: paste the benchmark output or log into the form (or email it). After checking it we add it to this page, labeled as a community report and shared under CC BY 4.0.

Gemma 4 specs

E2BE4B12B26B-A4B31B
Typedense, per-layer embeddingsdense, per-layer embeddingsdensemixture of experts: 128 experts, 8 per tokendense
Layers35 (28 + 7; the last 20 reuse earlier KV caches)42 (35 + 7; the last 18 reuse earlier KV caches)48 (40 sliding-window, 8 full attention)30 (25 + 5)60 (50 + 10)
KV cache at 32K, f160.2 GB0.6 GB1.0 GB1.0 GB3.9 GB
Inputtext, image, audiotext, image, audiotext, image, audiotext, imagetext, image

Layers, experts and inputs from Google's config.json files; KV cache is a RigCheck calculation. Context: 131,072 tokens for E2B and E4B, 262,144 for the others; all Apache 2.0. Runtimes: llama.cpp supports the architecture, Unsloth publishes GGUF files and Ollama has gemma4 packages (checked October 9, 2026).

RigCheck Lab measurements

RigCheck measurement RigCheck Lab measured Gemma 4 26B-A4B itself, with llama.cpp's llama-bench on rented cloud machines with one graphics card each (2026-10-21): all layers on the GPU, flash attention, an f16 KV cache. Each row is one model file at one context on one card, run as separate processes (3 per row); the numbers are the lowest and highest of those runs' averages. They hold only for that file, context, card, host and llama.cpp build: no other setup is shown here.

RigCheck Lab, Gemma 4 26B-A4B: tokens per second and peak GPU memory, by card, file and context
Graphics cardModelFileContextPrompt processing (tok/s)Generation (tok/s)Peak GPU memory (GB)Runs
RTX 4060 Ti 16 GBGemma 4 26B-A4BUD-IQ3_XXSabout 4K2,907–2,91576.512.63 of 3 ran
RTX 4060 Ti 16 GBGemma 4 26B-A4BUD-IQ3_XXSabout 32K1,558–1,56265.2–65.313.23 of 3 ran
RTX 4090Gemma 4 26B-A4BUD-Q4_K_XLabout 4K8,850–8,922163.0–163.318.53 of 3 ran
RTX 4090Gemma 4 26B-A4BUD-Q4_K_XLabout 32K6,231–6,233142.6–146.319.13 of 3 ran

Context: prompt processing times 512 tokens after 3,584 (about 4K) or 32,256 (about 32K) untimed tokens; generation times 128 tokens after the same untimed tokens. Each run repeats its test 3 times, and those single samples vary more than the averages shown (their standard deviations are in the data). Peak GPU memory is the whole card's memory in use as nvidia-smi reports it (MiB, converted to GB), read about every 200 ms, so short spikes can be missed. Hosts: Host 1, RTX 4060 Ti 16 GB, 2026-10-21: Vast.ai machine 39330, 165 W power limit, PCIe 3.0 ×8, Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz with 6 CPU cores and 33.5 GB of RAM allocated, driver 580.173.02, llama.cpp build 11783 (CUDA). Host 2, RTX 4090, 2026-10-21: Vast.ai machine 47598, 400 W power limit (the card ships at 450 W), PCIe 4.0 ×16, AMD EPYC 7402 24-Core Processor with 12 CPU cores and 67.5 GB of RAM allocated, driver 580.142, llama.cpp build 11783 (CUDA). Every run, with its command, file checksum, samples and correction history, is in lab.json (CC BY 4.0); how runs are made and corrected: RigCheck Lab method.

Common setups

The checker's own answer for 8 common setups (graphics cards with 32 or 64 GB of system RAM, then Macs), in the finder's quick mode (graphics cards: llama.cpp on one graphics card, a 32K context, no image input; Macs: llama.cpp in unified memory, a 32K context, no image input). Answers are capacity estimates, not measured setups; "Unknown" means the checker has no route or source for that hardware. Your own setup: the checker.

Gemma 4: answers by setup
SetupGemma 4 E2BGemma 4 E4BGemma 4 12BGemma 4 26B-A4BGemma 4 31B
GeForce RTX 3060 (12 GB) + 32 GB RAM✓ Fits: BF16, GPU memory (input embeddings in system RAM) (capacity estimate)✓ Fits: Q8_0, GPU memory (input embeddings in system RAM) (capacity estimate)✓ Fits: Q5_K_M, GPU memory (input embeddings in system RAM) (capacity estimate)! Fits with caveats: Q8_0, GPU and system RAM (9 of 30 layers on the GPU) (capacity estimate)! Fits with caveats: Q6_K, GPU and system RAM (17 of 60 layers on the GPU) (capacity estimate)
GeForce RTX 4060 Ti (16 GB) + 32 GB RAM✓ Fits: BF16, GPU memory (input embeddings in system RAM) (capacity estimate)✓ Fits: BF16, GPU memory (input embeddings in system RAM) (capacity estimate)✓ Fits: Q6_K, GPU memory (input embeddings in system RAM) (capacity estimate)✓ Fits: UD-IQ3_XXS, GPU memory (input embeddings in system RAM) (capacity estimate)✓ Fits: UD-IQ2_XXS, GPU memory (input embeddings in system RAM) (capacity estimate)
GeForce RTX 3090 / 3090 Ti (24 GB) + 64 GB RAM✓ Fits: BF16, GPU memory (input embeddings in system RAM) (capacity estimate)✓ Fits: BF16, GPU memory (input embeddings in system RAM) (capacity estimate)✓ Fits: Q8_0, GPU memory (input embeddings in system RAM) (capacity estimate)✓ Fits: UD-Q4_K_XL, GPU memory (input embeddings in system RAM) (capacity estimate)✓ Fits: IQ4_XS, GPU memory (input embeddings in system RAM) (capacity estimate)
GeForce RTX 5090 (32 GB) + 64 GB RAM✓ Fits: BF16, GPU memory (input embeddings in system RAM) (capacity estimate)✓ Fits: BF16, GPU memory (input embeddings in system RAM) (capacity estimate)✓ Fits: BF16, GPU memory (input embeddings in system RAM) (capacity estimate)✓ Fits: Q8_0, GPU memory (input embeddings in system RAM) (capacity estimate)✓ Fits: Q5_K_M, GPU memory (input embeddings in system RAM) (capacity estimate)
Apple Silicon Mac (64 GB unified)✓ Fits: BF16, unified memory (after raising the Mac's GPU wired-memory limit) (capacity estimate)✓ Fits: BF16, unified memory (after raising the Mac's GPU wired-memory limit) (capacity estimate)✓ Fits: BF16, unified memory (after raising the Mac's GPU wired-memory limit) (capacity estimate)✓ Fits: BF16, unified memory (after raising the Mac's GPU wired-memory limit) (capacity estimate)✓ Fits: Q8_0, unified memory (after raising the Mac's GPU wired-memory limit) (capacity estimate)
Mac with M5 Max, 40-core GPU (128 GB unified)✓ Fits: BF16, unified memory (after raising the Mac's GPU wired-memory limit) (capacity estimate)✓ Fits: BF16, unified memory (after raising the Mac's GPU wired-memory limit) (capacity estimate)✓ Fits: BF16, unified memory (after raising the Mac's GPU wired-memory limit) (capacity estimate)✓ Fits: BF16, unified memory (after raising the Mac's GPU wired-memory limit) (capacity estimate)✓ Fits: BF16, unified memory (after raising the Mac's GPU wired-memory limit) (capacity estimate)
Mac Studio M3 Ultra (256 GB unified)✓ Fits: BF16, unified memory (after raising the Mac's GPU wired-memory limit) (capacity estimate)✓ Fits: BF16, unified memory (after raising the Mac's GPU wired-memory limit) (capacity estimate)✓ Fits: BF16, unified memory (after raising the Mac's GPU wired-memory limit) (capacity estimate)✓ Fits: BF16, unified memory (after raising the Mac's GPU wired-memory limit) (capacity estimate)✓ Fits: BF16, unified memory (after raising the Mac's GPU wired-memory limit) (capacity estimate)
Mac Studio M3 Ultra (512 GB unified)– Unknown
This checker covers the graphics cards and machines in its list.
– Unknown
This checker covers the graphics cards and machines in its list.
– Unknown
This checker covers the graphics cards and machines in its list.
– Unknown
This checker covers the graphics cards and machines in its list.
– Unknown
This checker covers the graphics cards and machines in its list.

Machine-readable: the same answers as JSON (CC BY 4.0, attribution "RigCheck").

Related hardware

Graphics card and Mac pages where this page's checker gives an answer, smallest memory first: graphics cards with 64 GB of system RAM, Macs with their unified memory, in the finder's quick mode (capacity estimate; each page lists every model).

All graphics cards · All Macs · Any other machine

FAQ

Which Gemma 4 model should I run on my GPU?

By our estimate at a 32K context: on an 8 GB card the E4B at 8-bit or the 12B at 3-bit; on a 12 GB card the 12B at up to 5-bit; on a 16 GB card the 12B at 6-bit, or the 26B-A4B and 31B at 2–3 bits; on a 24 GB card the 26B-A4B or 31B at 4-bit. Which of those suits you best depends on the task; this page only answers what fits.

How much memory do Gemma 4 E2B and E4B need?

Less VRAM than their file sizes suggest: the per-layer embedding table, which llama.cpp keeps in system RAM, is 35–58% of each file. By our estimate at a 32K context, E4B at 8-bit (Q8_0, 8.2 GB file) needs about 11.5 GB in total, of which about 4.2 GB sits in system RAM (3.7 GB of embedding tables, 0.5 GB of host buffers; the 8 GB OS reserve comes on top), so it fits an 8 GB card; its 4-bit UD-Q4_K_XL needs about 8.1 GB. E2B at 8-bit needs about 7.6 GB. A 16 GB Mac (8 GB usable under our reserve) holds E4B Q4_K_M or E2B Q8_0. Unsloth recommends 5.5–6 GB of total memory for E4B at 4-bit and 4 GB for E2B. The longest context is 131,072 tokens.

How much VRAM does Gemma 4 26B-A4B need?

About 21 GB at a 32K context for the 4-bit UD-Q4_K_XL (17.0 GB file), by our estimate, so a 24 GB card holds it. A 16 GB card holds UD-IQ3_XXS (11.4 GB) fully, or the 4-bit file with part of it in system RAM. Unsloth recommends 16–18 GB of total memory for 4-bit.

How much VRAM does Gemma 4 31B need?

About 25 GB at a 32K context for the 4-bit Q4_K_M (18.3 GB), so on a 24 GB card the slightly smaller IQ4_XS (16.4 GB) is the largest that fits fully; a 32 GB card holds Q5_K_M. Unsloth recommends 17–20 GB of total memory for 4-bit.

Can Gemma 4 run on a Mac?

Yes. By our conservative estimate a Mac with 16 GB holds the E4B at 4-bit, the E2B at 8-bit or the 12B at 2-bit, 24 GB the 12B at 6-bit or the 26B-A4B at 3-bit, and 32 GB the 26B-A4B at UD-Q4_K_XL or the 31B at IQ4_XS, at a 32K context. The 31B Q4_K_M fits a 48 GB Mac under these reserves. Use llama.cpp (Metal) or Ollama, which also lists MLX builds.

Can Gemma 4 run on a Jetson Orin Nano?

The E2B, by NVIDIA's own Jetson AI Lab tutorial: it names E2B as the best fit on the Orin Nano and runs the Q4_K_S file with llama.cpp in NVIDIA's Jetson container on JetPack 6. For E4B NVIDIA points to the Orin NX, and for the 26B-A4B and 31B to the AGX Orin or Thor. Ollama does not run Gemma 4 on the Orin Nano yet. This is NVIDIA's route, not a RigCheck capacity estimate.

Can I run Gemma 4 without a GPU?

Yes, with llama.cpp's CPU build: by our estimate 32 GB of RAM holds the E2B and E4B at BF16, the 12B at 8-bit, the 26B-A4B at 4-bit or the 31B at 4-bit at a 32K context. The 26B-A4B has about 4B parameters active per token, the E2B and E4B 2.3B and 4.5B effective; we found no published CPU speed for any of them, so this page does not rank them for CPU use.

Is Gemma 4 on Ollama?

Yes: ollama run gemma4 pulls the E4B (6.6–9.5 GB); gemma4:e2b (4.6–7.5 GB), gemma4:12b (7.7–8.0 GB), gemma4:26b (16–19 GB) and gemma4:31b (19–20 GB), sizes as its tags page lists them, plus q8_0, bf16, QAT and MLX variants (checked October 9, 2026; E2B and E4B October 19).

Sources