SWITCH MODEL //
Google Gemma 4 E4B (Edge 4B) VRAM & inference speed
Accurate memory requirements, KV cache footprint, and tokens/sec generation benchmarks for running Google Gemma 4 E4B (Edge 4B) across local GPUs, Apple Silicon Macs, and cloud instances.
4.1B TOTAL PARAMSDENSE ARCHITECTURE28 LAYERS โข 4 KV HEADS16K CTX (MAX 64K)OLLAMA: gemma4:4bHF CONFIG.JSON โ
TOTAL PARAMS
4.1 B
Full dense routingQ4_K_M BASELINE
4.24 GB
@ 32K context windowNATIVE CONTEXT
64 K
16,384 default tokensATTENTION ARCH
GQA / MHA
4 Key-Value HeadsSPEC.01 // GOOGLE GEMMA 4 E4B (EDGE 4B) QUANTIZATION & VRAM FOOTPRINTS
@ 32K CONTEXT WINDOW
Unified-memory Macs / AMD APUs and partial CPU-offloaded llama.cpp runs require equivalent System RAM: the Total VRAM column below represents combined weight + KV cache + runtime allocation for both dedicated GPU VRAM and host memory.
| QUANTIZATION FORMAT | WEIGHTS MEMORY | KV CACHE (32K) | TOTAL VRAM | MINIMUM VRAM TIER | QUALITY PROFILE |
|---|---|---|---|---|---|
FP16 / BF16 (16-bit Unquantized) | 8.2 GB | 0.94 GB | 10.18 GB | 12GB TIER โ | 100% lossless baseline precision |
Q8_0 / FP8 (8-bit Near-Lossless) | 4.35 GB | 0.94 GB | 6.19 GB | 12GB TIER โ | 99.9% quality โ virtually indistinguishable from FP16 |
Q6_K (6-bit High Precision) | 3.36 GB | 0.94 GB | 5.17 GB | 12GB TIER โ | 99.5% quality โ best for coding if Q8 doesn't fit |
Q5_K_M (5-bit Balanced) | 2.91 GB | 0.94 GB | 4.7 GB | 12GB TIER โ | 99.1% quality โ strong reasoning retention |
Q4_K_M / AWQ (4-bit Recommended Sweet Spot)COMMUNITY STANDARD | 2.46 GB | 0.94 GB | 4.24 GB | 12GB TIER โ | 98.2% quality โ community standard for Ollama & GGUF |
NVFP4 / IQ4_XS (4-bit Compact / Blackwell) | 2.17 GB | 0.94 GB | 3.94 GB | 12GB TIER โ | 97.4% quality โ hardware accelerated on RTX 5090 / DGX Spark |
IQ3_XS (3-bit Extreme Compression) | 1.68 GB | 0.94 GB | 3.43 GB | 12GB TIER โ | 94.5% quality โ useful for fitting 70B+ into 32GBโ48GB |
Hardware Compatibility Matrix for Google Gemma 4 E4B (Edge 4B)
Standard Q4_K_M precision with 32K context window and Q8_0 KV cache
| Hardware System | VRAM Envelope | Required VRAM | Headroom | Est. Decode Speed | Compatibility | Test Fit |
|---|---|---|---|---|---|---|
| NVIDIA GeForce RTX 5090 (32GB GDDR7) Consumer GPU โข 1792 GB/s | 32 GB | 4.24 GB | +27.76 GB | ~452 tok/s | โ FITS | Test Fit โ |
| NVIDIA GeForce RTX 4090 (24GB GDDR6X) Consumer GPU โข 1008 GB/s | 24 GB | 4.24 GB | +19.76 GB | ~254 tok/s | โ FITS | Test Fit โ |
| 2x NVIDIA RTX 3090 Dual Rig (48GB Total VRAM) Multi-GPU Rig โข 1648 GB/s | 48 GB | 4.94 GB | +43.06 GB | ~379 tok/s | โ FITS | Test Fit โ |
| NVIDIA GeForce RTX 5080 (16GB GDDR7) Consumer GPU โข 960 GB/s | 16 GB | 4.24 GB | +11.76 GB | ~242 tok/s | โ FITS | Test Fit โ |
| NVIDIA RTX 4070 Ti Super (16GB) Consumer GPU โข 672 GB/s | 16 GB | 4.24 GB | +11.76 GB | ~167 tok/s | โ FITS | Test Fit โ |
| NVIDIA GeForce RTX 3060 (12GB) Consumer GPU โข 360 GB/s | 12 GB | 4.24 GB | +7.76 GB | ~87 tok/s | โ FITS | Test Fit โ |
| Apple MacBook Pro/Air M1 (8GB Unified Memory) Apple Silicon โข 68 GB/s | 7 GB | 4.24 GB | +2.76 GB | ~16 tok/s | โ FITS | Test Fit โ |
| Apple MacBook Pro/Air (16GB Unified Memory) Apple Silicon โข 100 GB/s | 14 GB | 4.24 GB | +9.76 GB | ~24 tok/s | โ FITS | Test Fit โ |
| Apple MacBook Pro M4 Pro (24GB Unified Memory) Apple Silicon โข 273 GB/s | 20 GB | 4.24 GB | +15.76 GB | ~65 tok/s | โ FITS | Test Fit โ |
| Apple Mac Mini M4 Pro (64GB Unified Memory) Apple Silicon โข 273 GB/s | 54 GB | 4.24 GB | +49.76 GB | ~64 tok/s | โ FITS | Test Fit โ |
| Apple Mac Studio M4 Max (128GB Unified Memory) Apple Silicon โข 546 GB/s | 112 GB | 4.24 GB | +107.76 GB | ~130 tok/s | โ FITS | Test Fit โ |
| Apple Mac Studio M5 Ultra (256GB Unified Memory) Apple Silicon โข 1200 GB/s | 236 GB | 4.24 GB | +231.76 GB | ~285 tok/s | โ FITS | Test Fit โ |
| AMD Strix Halo Mini-PC (Ryzen AI Max+ 395 128GB) Unified APU / Mini-PC โข 256 GB/s | 110 GB | 4.24 GB | +105.76 GB | ~53 tok/s | โ FITS | Test Fit โ |
| NVIDIA DGX Spark (128GB Grace-Blackwell Unified) AI Appliance โข 273 GB/s | 118 GB | 4.24 GB | +113.76 GB | ~68 tok/s | โ FITS | Test Fit โ |
| NVIDIA H100 SXM (80GB HBM3 Cloud GPU) Datacenter Cloud GPU โข 3350 GB/s | 80 GB | 4.24 GB | +75.76 GB | ~895 tok/s | โ FITS | Test Fit โ |
| NVIDIA GeForce RTX 5070 Ti (16GB GDDR7) Consumer GPU โข 896 GB/s | 16 GB | 4.24 GB | +11.76 GB | ~226 tok/s | โ FITS | Test Fit โ |
| NVIDIA GeForce RTX 5070 (12GB GDDR7) Consumer GPU โข 672 GB/s | 12 GB | 4.24 GB | +7.76 GB | ~170 tok/s | โ FITS | Test Fit โ |
| NVIDIA GeForce RTX 4080 Super (16GB GDDR6X) Consumer GPU โข 736 GB/s | 16 GB | 4.24 GB | +11.76 GB | ~186 tok/s | โ FITS | Test Fit โ |
| AMD Radeon RX 7900 XTX (24GB GDDR6) Consumer GPU โข 960 GB/s | 24 GB | 4.24 GB | +19.76 GB | ~207 tok/s | โ FITS | Test Fit โ |
| AMD Radeon RX 7900 XT (20GB GDDR6) Consumer GPU โข 800 GB/s | 20 GB | 4.24 GB | +15.76 GB | ~172 tok/s | โ FITS | Test Fit โ |
| Apple Mac Studio M2 Ultra (192GB Unified Memory) Apple Silicon Workstation โข 800 GB/s | 144 GB | 4.24 GB | +139.76 GB | ~193 tok/s | โ FITS | Test Fit โ |
| NVIDIA GeForce RTX 3090 (24GB GDDR6X) Consumer GPU โข 936 GB/s | 24 GB | 4.24 GB | +19.76 GB | ~226 tok/s | โ FITS | Test Fit โ |
| NVIDIA GeForce RTX 4060 Ti (16GB GDDR6) Consumer GPU โข 288 GB/s | 16 GB | 4.24 GB | +11.76 GB | ~69 tok/s | โ FITS | Test Fit โ |
| Apple Mac Mini M4 (16GB Unified Memory) Apple Silicon โข 120 GB/s | 13 GB | 4.24 GB | +8.76 GB | ~27 tok/s | โ FITS | Test Fit โ |
| Apple Mac Mini M4 (24GB Unified Memory) Apple Silicon โข 120 GB/s | 20 GB | 4.24 GB | +15.76 GB | ~27 tok/s | โ FITS | Test Fit โ |
| Apple Mac Studio M3 Ultra (512GB Unified Memory) Apple Silicon โข 819 GB/s | 448 GB | 4.24 GB | +443.76 GB | ~194 tok/s | โ FITS | Test Fit โ |
| 2x NVIDIA RTX 5090 Dual Rig (64GB Total GDDR7) Multi-GPU Rig โข 3584 GB/s | 64 GB | 4.94 GB | +59.06 GB | ~825 tok/s | โ FITS | Test Fit โ |
| 2x NVIDIA RTX 4090 Dual Rig (48GB Total GDDR6X) Multi-GPU Rig โข 2016 GB/s | 48 GB | 4.94 GB | +43.06 GB | ~464 tok/s | โ FITS | Test Fit โ |
| NVIDIA RTX PRO 6000 Blackwell (96GB GDDR7 ECC) Consumer GPU โข 1792 GB/s | 96 GB | 4.24 GB | +91.76 GB | ~465 tok/s | โ FITS | Test Fit โ |
| NVIDIA GeForce RTX 5060 Ti (16GB GDDR7) Consumer GPU โข 448 GB/s | 16 GB | 4.24 GB | +11.76 GB | ~113 tok/s | โ FITS | Test Fit โ |
| Apple MacBook Pro M4 Max (48GB Unified Memory) Apple Silicon โข 546 GB/s | 40 GB | 4.24 GB | +35.76 GB | ~130 tok/s | โ FITS | Test Fit โ |
| Apple MacBook Pro M4 Max (64GB Unified Memory) Apple Silicon โข 546 GB/s | 54 GB | 4.24 GB | +49.76 GB | ~130 tok/s | โ FITS | Test Fit โ |
| AMD Radeon RX 9070 XT (16GB GDDR6 RDNA 4) Consumer GPU โข 640 GB/s | 16 GB | 4.24 GB | +11.76 GB | ~142 tok/s | โ FITS | Test Fit โ |
| Intel Arc B580 (12GB GDDR6 Battlemage) Consumer GPU โข 456 GB/s | 12 GB | 4.24 GB | +7.76 GB | ~98 tok/s | โ FITS | Test Fit โ |
| NVIDIA H200 SXM (141GB HBM3e Cloud GPU) Datacenter Cloud GPU โข 4800 GB/s | 141 GB | 4.24 GB | +136.76 GB | ~1318 tok/s | โ FITS | Test Fit โ |
| NVIDIA A100 SXM4 (80GB HBM2e Cloud GPU) Datacenter Cloud GPU โข 2039 GB/s | 80 GB | 4.24 GB | +75.76 GB | ~530 tok/s | โ FITS | Test Fit โ |
| AMD Instinct MI300X (192GB HBM3 Cloud GPU) Datacenter Cloud GPU โข 5300 GB/s | 192 GB | 4.24 GB | +187.76 GB | ~1298 tok/s | โ FITS | Test Fit โ |
| Intel Arc Pro B60 (24GB GDDR6) Workstation GPU โข 456 GB/s | 24 GB | 4.24 GB | +19.76 GB | ~95 tok/s | โ FITS | Test Fit โ |
| Apple Mac Studio M5 Max (128GB Unified Memory) Apple Silicon โข 614 GB/s | 112 GB | 4.24 GB | +107.76 GB | ~148 tok/s | โ FITS | Test Fit โ |
| Apple Mac Studio M5 Ultra (512GB Unified Memory) Apple Silicon โข 1200 GB/s | 448 GB | 4.24 GB | +443.76 GB | ~289 tok/s | โ FITS | Test Fit โ |
| NVIDIA B200 (180GB HBM3e Cloud GPU) Datacenter Cloud GPU โข 8000 GB/s | 180 GB | 4.24 GB | +175.76 GB | ~2137 tok/s | โ FITS | Test Fit โ |
API PRICING //
Google Gemini 3.5 Flash-Lite API Cost Comparisons
Head-to-head token pricing, prompt caching discounts, and self-host break-even economics for Google Gemini 3.5 Flash-Lite against every major competitor.
SIMULATOR //
Simulate Custom Context Windows for Google Gemma 4 E4B (Edge 4B)
Need to calculate memory scaling up to 64K context or multi-GPU Tensor Parallelism?